Wiki

This version (30 Jul 2019 20:27) was approved by Brandon Bushey.

ADICUP3029 BLE Connection Documentation

This is a guide with information regarding the BLE registration, data packet size, and configuration. This is will enable users to use the IoTNode smart app in applications leveraging the capabilities of ADICUP3029 board with Bluetooth connectivity.

General Description/Overview

IoTNode application permits the connection of a single board at a time to visualize data from it. However multiple sensors may be present on that board (ex. temperature, CO, acceleration). The information sent to the application is tied to the sensor id.

The ADI BLE packet description currently has three types of packets:

Packet type Value
Registration packet 0x00
Name packet 0x01
Data packet 0x02

The packet type is specified using the packet type sensor id field.

The sensorID/packetType byte is composed of:

76543210
SID5SID4SID3SID2SID1SID0PKT1PKT0
Sensor ID Packet Type
6 bits 2 bits

You could have multiple sensors on a board with different ids the app shows information from one sensor at a time. It knows what information is related to which sensor by using the sensor id.

Registration Packet

Data Info Size(byte)
pktTypeSensorId registration packet 1
numFields must match No. of field name packets 1
dataType every field in the data packet must have this data type 1
sensorName string with the name of the sensor 17
SensorID value 6 bits
0x00 0b000000
to to
0x3F 0b111111
Data type value Description Size (bytes)
1 Byte 1
2 Short 2
3 Int 4
4 Long 8
5 Float 4
6 Double 8
7 Char 2

Field Name Packet

Data Info Size(byte)
pktTypeSensorId registration packet 1
fieldId index of field in data packet 1
fieldName string with the name of the sensor 18

Data Packet

Data Info Size(byte)
pktTypeSensorId registration packet 1
Sensor_Data1 Represents 4 bytes float data for field 1 4
Sensor_Data2 Represents 4 bytes float data for field 2 4
Sensor_Data3 Represents 4 bytes float data for field 3 4
Sensor_Data4 Represents 4 bytes float data for field 4 4

End of Document

resources/eval/user-guides/eval-adicup3029/smart_app/ble_connect.txt · Last modified: 30 Jul 2019 20:27 by Brandon Bushey