Laura Barilli laura.barilli@mail.polimi.it
Luisa Cucugliato luisa.cucugliato@mail.polimi.it
Thursday, April 12, 2016
Politecnico di Milano
Dipartimento di Elettronica, Informazione e Bioingegneria (DEIB)
NECST lab, Via Ponzio, Building 20
Reverse engineering
Reverse Engineering
Open source codeProcessed data
1
Classes
Attributes
Methods
Objects
P1 P2
Swift
[*] https://www.xcoding.it 2
[*]
Classes
Attributes
Methods
Objects
Swift
View Controller Model
Code
According to the
output of view it
chages execution
Preservation
of information
User interface
[*] https://developer.apple.com/swift/ 3
[*]
Bluetooth Low Energy
[*] https://learn.adafruit.com/introduction-to-bluetooth-low-energy/introduction 4
[*]
Bluetooth Smart
Power version of Bluetooth
that was built for the devices
that run for long periods
Platform supported
•iOS5+
•Android 4.3+
•Apple OS X 10.6+
•Windows 8
•GNU/Linux Vanilla BlueZ 4.93+
CB Core Bluetooth
There are two major players involved in all Bluetooth low energy communication:
central and peripheral
https://developer.apple.com/ 4
Smartphone Device
• CB Central Manager: object that
controls and manages the Bluetooth
of the iPhone
• Core Bluetooth: Library that manages
bluetooth connection
Peripheral
CB Central Manager
Service 1
Characteristic
Characteristic
Characteristic
Service 2
Characteristic
Characteristic
Characteristic
Service 3
Characteristic
Characteristic
Characteristic
Central Device Central Device
Service 4
Characteristic
Characteristic
Characteristic
https://developer.apple.com/ 5
Peripheral
CB Central Manager
Heart Rate
Characteristic
Characteristic
Characteristic
Vibration
Characteristic
Characteristic
Characteristic
Steps
Characteristic
Characteristic
Characteristic
Central Device Central Device
Upgrade
Characteristic
Characteristic
Characteristic
https://developer.apple.com/ 5
Peripheral
CB Central Manager
HEART RATE
Characteristic
Characteristic
Characteristic
Vibration
Characteristic
Characteristic
Characteristic
Steps
Characteristic
Characteristic
Characteristic
Central Device Central Device
Upgrade
Characteristic
Characteristic
Characteristic
https://developer.apple.com/ 5
Overview of code
APP
Initialization and allocation of
Central Manager
Research peripherals
Find peripherals?
Research Services
Find services?
Research characteristics
HEART RATE
YES
NO
YES
NO
6
 Allocate and initialize a Central Manager instance
Verify the state of Central Manager
Central Manager
7
Peripherals
 Interface view
Mi
 Controller
Every peripheral is saved in an array
which is shown on the Table View
8
Services
 UUID: Universally Unique Identifier
Numbers which identificate a specific
service
Standard services have a 16-bit UUID
9
Heart Rate Service
 Assigned Number: 0x180D
 Two characteristics: 2A37 and 2A39
10
The Heart Rate Service shows heart rate and other data related to a
heart rate sensor
PPG sensor Bpm
Results
MiHeart
11
Contacts
Reverse Engineering of
Biomedical Elaborated Signal
Laura.barilli@mail.polimi.it
Luisa.cucugliato@mail.polimi.it
https://www.facebook.com/reebes.project2016/
12

Reverse engineering

  • 1.
    Laura Barilli laura.barilli@mail.polimi.it LuisaCucugliato luisa.cucugliato@mail.polimi.it Thursday, April 12, 2016 Politecnico di Milano Dipartimento di Elettronica, Informazione e Bioingegneria (DEIB) NECST lab, Via Ponzio, Building 20 Reverse engineering
  • 2.
    Reverse Engineering Open sourcecodeProcessed data 1
  • 3.
  • 4.
    Classes Attributes Methods Objects Swift View Controller Model Code Accordingto the output of view it chages execution Preservation of information User interface [*] https://developer.apple.com/swift/ 3 [*]
  • 5.
    Bluetooth Low Energy [*]https://learn.adafruit.com/introduction-to-bluetooth-low-energy/introduction 4 [*] Bluetooth Smart Power version of Bluetooth that was built for the devices that run for long periods Platform supported •iOS5+ •Android 4.3+ •Apple OS X 10.6+ •Windows 8 •GNU/Linux Vanilla BlueZ 4.93+
  • 6.
    CB Core Bluetooth Thereare two major players involved in all Bluetooth low energy communication: central and peripheral https://developer.apple.com/ 4 Smartphone Device • CB Central Manager: object that controls and manages the Bluetooth of the iPhone • Core Bluetooth: Library that manages bluetooth connection
  • 7.
    Peripheral CB Central Manager Service1 Characteristic Characteristic Characteristic Service 2 Characteristic Characteristic Characteristic Service 3 Characteristic Characteristic Characteristic Central Device Central Device Service 4 Characteristic Characteristic Characteristic https://developer.apple.com/ 5
  • 8.
    Peripheral CB Central Manager HeartRate Characteristic Characteristic Characteristic Vibration Characteristic Characteristic Characteristic Steps Characteristic Characteristic Characteristic Central Device Central Device Upgrade Characteristic Characteristic Characteristic https://developer.apple.com/ 5
  • 9.
    Peripheral CB Central Manager HEARTRATE Characteristic Characteristic Characteristic Vibration Characteristic Characteristic Characteristic Steps Characteristic Characteristic Characteristic Central Device Central Device Upgrade Characteristic Characteristic Characteristic https://developer.apple.com/ 5
  • 10.
    Overview of code APP Initializationand allocation of Central Manager Research peripherals Find peripherals? Research Services Find services? Research characteristics HEART RATE YES NO YES NO 6
  • 11.
     Allocate andinitialize a Central Manager instance Verify the state of Central Manager Central Manager 7
  • 12.
    Peripherals  Interface view Mi Controller Every peripheral is saved in an array which is shown on the Table View 8
  • 13.
    Services  UUID: UniversallyUnique Identifier Numbers which identificate a specific service Standard services have a 16-bit UUID 9
  • 14.
    Heart Rate Service Assigned Number: 0x180D  Two characteristics: 2A37 and 2A39 10 The Heart Rate Service shows heart rate and other data related to a heart rate sensor PPG sensor Bpm
  • 15.
  • 16.
    Contacts Reverse Engineering of BiomedicalElaborated Signal Laura.barilli@mail.polimi.it Luisa.cucugliato@mail.polimi.it https://www.facebook.com/reebes.project2016/ 12

Editor's Notes

  • #4  Is easy to read Require less code Fast Supports dynamics library OGGETTO ISTANZA DI UNA CLASSE RIFERIMENTI, CLASSE UOMO
  • #6 Breve distanza 10 metri velocità di trasmissione La trasmissione dei dati via bluettoth è facilitata da un oggetto chiamato core bluetooth che è alla base dei dispositivi periferici GRAFICO, LAYOUT DIAPOSITIVA, SCRIVERE CORE BLUETOOTH
  • #7 Sistema trasmissione dati basato sul BLE La trasmissione dei dati via bluettoth è facilitata da un oggetto chiamato core bluetooth che è alla base dei dispositivi periferici
  • #8 SPECIFICARE I SERVIZI
  • #9 SPECIFICARE I SERVIZI
  • #13 IMMAGINE DELL’INTERFACCIA