[Bluez] How to fully use Adv and Scan Resp packets

Anviori

New Member
Joined
Oct 21, 2024
Messages
1
Reaction score
0
Credits
17
I'm trying to set up my BLE advertisements and Scan Response using these properties as a guideline: https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/org.bluez.LEAdvertisement.rst.

The API doesn't currently let me decide where I want the data to end up (adv vs scan resp payload).
For the advertisement packet, the following shows up:
  • The primary service UUID, Manufacturer ID, Flags
  • This leaves 1 byte for the manufacturer data

The only thing that ends up in the Scan response is the device name. I have more data (adding up to about 16 bytes) that I want in the Scan response. Adding it to the ManufacturerData seems to force Bluez to add it to the advertisement packet (doesn't work because there's not enough space) even though the scan response has enough space.

How can I add that data in the scan response, or at least choose where things end up?

Thanks
 



Latest posts

Top