This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Grabbing on air mac address from advertising messages

I am creating a device that grabs on air mac addresses from advertising channels.  I know that that macs can rotate and change.  Im able to pull out bytes 3:8 of the payload and get the mac from a fitbit, which has a static mac, and the message type is "ADV_IND". 

Question is, will bytes 3:8 in all other advertising messages contain macs as well? 

If not, where I can find the breakdown of what type of advertising message has what.

Thanks. 

Parents
  • The data format of all the BLE on-air packets are given in the Core Specification Volume 6, Part B: Link Layer Specifcation. The advertising packets are explained in section 2.3 (page 2871) with ADV_IND in 2.3.1.1. As you can see in 2.3, all advertising packets have a 16 bit header, and in an ADV_IND that is followed by a 6 B advertising address, which is again followed by the actual advertising data (which is described in Volume 3, Part C, chapter 11).

    Section 2.3, about advertising PDUs in general:

    2.3.1.1, about ADV_IND:

    So in short, yes, an ADV_IND will always have the advertising address in bytes 3:8.

Reply
  • The data format of all the BLE on-air packets are given in the Core Specification Volume 6, Part B: Link Layer Specifcation. The advertising packets are explained in section 2.3 (page 2871) with ADV_IND in 2.3.1.1. As you can see in 2.3, all advertising packets have a 16 bit header, and in an ADV_IND that is followed by a 6 B advertising address, which is again followed by the actual advertising data (which is described in Volume 3, Part C, chapter 11).

    Section 2.3, about advertising PDUs in general:

    2.3.1.1, about ADV_IND:

    So in short, yes, an ADV_IND will always have the advertising address in bytes 3:8.

Children
No Data
Related