Advertisement packets are sent on 3 channels which include 37, 38, and 39; these channels are 2.402GHz, 2.426GHz, and 2.480GHz respectively.
Four types of advertising events can be used, with each advertising event type having different sized advertising packets. These advertising packets can vary in length from 8 to 39 octets.
The basic format of a BLE packet looks like this:
The best place to obtain more detailed information is via the Bluetooth spec, which is available online here: Bluetooth Core Specification Version 4.0
Sorry that if I don't put question specifically.
From blecen.c, the function 'blecen_AdvDataParse' do some specific parsing from the advertising event.
Is there document for defining the format of these packet type, i.e. ADV_FLAGS, ADV_SERVICE_UUID16_COMP?
Thanks in advance.
The definitions of the advertisement types are available at:
The Core 4.1 Spec Section 2.3 ADVERTISING CHANNEL PDU (Page 2504/2684) also lists the details of the Advertising PDU's and the Flags field.
Does this answer your question?
Great thanks for this.
This did answer my question.