We're trying to emulate a beacon on a Android device and would like to include some 50 bytes of application data in payload? We found that with AltBeacon format this is not possible? How can it be done with help of AltBeacon lib for Android? Moreover, what are primary and secondary beacon advertisements? What is role of GattBeacon in this context and when and how should it be used?
Asked
Active
Viewed 103 times
1 Answers
0
There are two basic types of BLE beacon advertisements:
Manufacturer advertisements (iBeacon, AltBeacon, Gimbal)
GATT Service Advertisements (Eddystone, UriBeacon, GattBeacon)
They differ mainly by the bluetoorh PDU type, but in both cases the number of bytes that can be transmitted are similarly limited. It is 23 bytes for manufacturer advertisements (not counting the two byte manufacturer code).
With Bluetooth 4.x, you just won't get close to 50 bytes in a single packet. Bluetooth 5.0 is expected to increase this at some point in the future.
None of the beacon layouts let you go beyond this limit. GattBeacon is merely a generic example layout of a beacon based on GATT Service advertisements, and is not meant for practical use.

davidgyoung
- 63,876
- 14
- 121
- 204
-
What are primary and secondary beacon advertisement? When and how they should be used? – innovation morpho Apr 22 '16 at 13:09
-
I'm not sure what you mean by primary and secondary in this context. Can you point me to where you are seeing those terms used? – davidgyoung Apr 22 '16 at 13:33