-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add Flags inside Advertising Data? #411
Comments
I'm not sure I have a good answer for you on this as it is about what BlueZ supports. Depending what version of BlueZ you have on your RPi, there is the possibility to add more detail to advertisements using the To access features hidden behind the experimental flag you have to restart If you wanted a command line option that was not deprecated then doing it with For example:
seems to be very close to what you are looking for. To remove the advertisement you use:
|
Hi @ukBaz :) I still tried to extend some examples for BlueZ for my needs - like adding the Discoverable property (wich adds Flags to the advertisement but behind the manufacturer specific data) and the usage of the Data property. Now I know why: I did not set the bluetoothd to experimental mode Aaaarggghh :( And I will add an advertiser-class using the btmgmt tool, thanks for your hint. Another idea is - to prevent using commandline tools - to do the same as hciool or btmgmt internally do in python. |
You might want to take a look at: I did some experiments to use the Bluez mgmt API. |
Thanks a lot - now I have a very good starting point... |
Hi @ukBaz :) First I tried your suggestion with btmgmt tool
and it works like a charm! ;) I added and removed three instances of different advertisements with success. Now I have the next problem: I think I have to set the add_ext_adv_params_options "min-internal" and "max-interval". I looked everywhere how to set these parameters with btmgmt tool. Without success. |
I think you are looking for the The full help for the
|
@ukBaz, dear Barry,
OK, this will help me in the future! ;) And I'll try out the timeout und duration options. At the moment my code switches between the different advertisement in a loop by calling the btmgmt tool about 4 times the second... |
Thank you @ukBaz for your great work!
In my project I'm trying to send special BT-Advertising-Telegrams to control MouldKing Hubs.
My platform is a Raspberry 4.
I managed to send the required telegrams using the deprecated HCITool:
This calls generate the following output - catched by wireshark
Inside the "Advertising Data" are two bytes of "Flags", followed by the "Manufacturer Specific" data
I'm trying to reproduce the same BT-telegrams by modifying your example "manufacturer_data_beacon.py":
Wireshark's output looks like this - very close to my requirements:
Only the Flags are missing.
Could you please help me to add the missing Flags ? :)
The text was updated successfully, but these errors were encountered: