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

How to send 8 bit device Id as an advertising packet?

Hi,

I am using nRF52832 for my development, I want to send 8 bit device ID as an advertising packet with company ID and Data.

Is thereany way to send the same or any example that I can refer for this? 

Your suggestion would be appreciated.

Thank you

Kruti Parikh 

Parents Reply Children
  • Hi tesc,

    I have gone through the tutorial link provided by you.

    But my question is, Is there any data specific field to send the device ID (like we have a specific field in manufacturer specific data to send the company ID) in advertising packet? 

    Thanks and Regards,

    Kruti Parikh 

  • Hi,

    There was a "Device ID" concept in Bluetooth Classic, but from what I can tell it is not included for BLE and advertising data types there. That means you need to provide that information as part of the manufacturer specific data. The only requirement for the manufacturer specific data is that the first two bytes is the company ID, then you are free to use the format you want for the rest.

    Please note that manufacturer specific data is only useful if the device receiving the advertisement is aware of the format used for the data. E.g. if you also made the device acting as central, if it is a smartphone app that you made, or if it is made by a third party that knows how to interpret the data.

    Regards,
    Terje

Related