PETRONE / BLE / Protocol / Intro
Modified : 2018.2.13



1. Bluetooth Low Energy(Bluetooth SMART)

PETRONE uses Bluetooth Low Energy(BLE) for wireless connections.


The services and Characteristics used in PETRONE :

Service Characteristic UUID Direction of data
DRONE_SERVICE   C320DF00-7891-11E5-8BCF-FEFF819CDC9F  
DRONE_DATA C320DF01-7891-11E5-8BCF-FEFF819CDC9F Drone → Application (Notify)
DRONE_CONF C320DF02-7891-11E5-8BCF-FEFF819CDC9F Application → Drone (Write)



2. Data transfer structure.

0
1
2
...
N-1
N
DataType
Data
  • Fist byte is datatype
  • Passing data defined in the first byte (datatype) from the second byte
  • Maximum data length is 20byte.



3. Data transfer rules

  • Data transfer cycles are recommended for Android 50ms and iOS 100ms
  • If request to PETRONE, response that data. Ack response if not. Control commands do not send Ack and any responses.
  • If app sends data to the drone, Write DRONE_CONF.
  • If drone sends data to the app, Notify DRONE_DATA.



PETRONE

  1. Intro
  2. Typedef
  3. DataType
  4. Definitions
  5. Base Structs
  6. Structs
  7. Structs - Light
  8. Firmware Update
  1. Intro
  2. DataType
  3. Definitions
  4. Structs
  5. Examples


Index