
4
STEVAL-ASTRA1B BlueST-SDK and Bluetooth
®
Low Energy
manager
The
®
Low Energy peripheral. You can connect it via a Bluetooth
®
Low
Energy central entity, such as a smartphone, tablet, or industrial gateway.
The Bluetooth
®
Low Energy firmware implementation is simplified thanks to the
the board to be recognized also in advertising mode, as the advertising packet has a specific structure and some
Bluetooth
®
Low Energy characteristics are preconfigured.
The main functionalities are:
•
the data exchange;
•
the debug console characteristic for the trace messages and textual human interaction;
•
the extended configuration characteristic for the configuration data exchange in the json format.
These functionalities are available in the middleware through the APIs.
The
enables the microcontroller firmware to advertise its capabilities and exchange data with mobile
applications as well as industrial gateways via Bluetooth
®
Low Energy. It is shared as an open-source code on
multiple Github repositories for Android, iOS, and Python.
The following figure shows the advertise frame format.
Figure 13.
Advertise format
We assume that the mobile application (or the gateway), which receives the advertisement and needs to interpret
it, is able to translate the device ID and the firmware ID into a set of related properties. This can be achieved by
relying on a database.
The mapping among the device ID, the firmware ID, and the actual description of the firmware capabilities relies
on a json document.
There are maximum three option bytes available. The firmware developer can define their meaning to convey
different types of information. The developer also translates each byte and its meaning (for example, the mobile
application according to the mapping table defined in the json file).
UM3019
STEVAL-ASTRA1B BlueST-SDK and Bluetooth® Low Energy manager
UM3019
-
Rev 1
page 14/43