-
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
Beacons with data #243
Comments
It makes more sense to encode this in another AD. So, you use the manufacturer AD to have a properly listed manufacturing ID and you use e.g. a service list to encode the payload. It's most convenient to use the 128-bit service uuid list (type 0x07). |
I'm not sure I understand why I need both manufacturer data and service data. Surely, I can do this with either? The main point of this issue was to capture 2 things:
|
iOS strips it out when in the background, https://stackoverflow.com/questions/63175411/ios-omits-manufacturer-data-from-advertisement-in-background-mode Reverse engineered the service UUIDs hash towards the bits in the overflow area in the past. https://github.com/crownstone/bluenet-ios-basic-localization/blob/master/BROADCASTING_AS_BEACON.md I understand that it's just an edge case though. |
It is possible to encode data into the advertising data. With Bluetooth the Manufacturer Data has 23 octets that can be given some structure to send data without connecting.
One barrier to doing this idea might be that manufacturer data uses company identifiers which are unique numbers assigned by the Bluetooth SIG to member companies requesting one.
https://www.bluetooth.com/specifications/assigned-numbers/company-identifiers/
An idea for structure of the data could be:
For switching data to and from bytes in python
An example of an implementation for number packets might be:
This example is only with integers. An alternative might be to have an exponent also to change to order of magnitude and create decimal numbers.
The text was updated successfully, but these errors were encountered: