📝BLE

(Bluetooth Low Energy)

BLE advertising frame:

PreambleAccess AddressPDUCRC
1 octet4 octets2 to 39(4.0) or 257(5.0) octets3 octets

For all advertising channels, Access Address is always 0x8E89BED6.

PDU format:

Header (16 bits)Payload

Header format (4.0):

4b PDU Type2b RFU1b TxAdd1b RxAdd6b Length2b RFU

Header format (5.0):

4b PDU Type1b RFU1b ChSel1b TxAdd1b RxAdd8b Length
PDU typePacket Namecomment
0000ADV_INDbroadcast advertisement
0001ADV_DIRECT_INDdirected advertising
0010ADV_NONCONN_INDbeacons
0011SCAN_REQfor connection
0100SCAN_RSPfor connection
0101CONNECT_REQfor connection
0110ADV_SCAN_IDadditional info on scan

Max A. recommendation:

  1. getting started with bluetooth low energy
  2. https://habr.com/ru/post/319244/
  3. bluetooth core specification 5.2 pdf