📝BLE
(Bluetooth Low Energy)
BLE advertising frame:
Preamble | Access Address | PDU | CRC |
1 octet | 4 octets | 2 to 39(4.0) or 257(5.0) octets | 3 octets |
For all advertising channels, Access Address is always 0x8E89BED6.
PDU format:
Header (16 bits) | Payload |
Header format (4.0):
4b PDU Type | 2b RFU | 1b TxAdd | 1b RxAdd | 6b Length | 2b RFU |
Header format (5.0):
4b PDU Type | 1b RFU | 1b ChSel | 1b TxAdd | 1b RxAdd | 8b Length |
PDU type | Packet Name | comment |
---|---|---|
0000 | ADVIND | broadcast advertisement |
0001 | ADVDIRECTIND | directed advertising |
0010 | ADVNONCONNIND | beacons |
0011 | SCANREQ | for connection |
0100 | SCANRSP | for connection |
0101 | CONNECTREQ | for connection |
0110 | ADVSCANID | additional info on scan |
Max A. recommendation:
getting started with bluetooth low energy
bluetooth core specification 5.2 pdf