3
BLE applications
3.1
BLE Sensor demo
The Bluetooth® Low Energy sensor demo application for ST BLE Sensor Classic app is supported on the
SensorTile.box PRO kit. This application shows how to implement a sensor demo custom profile application
tailored for interacting with the ST BLE Sensor Classic smartphone app. Once configured and connected, the
BlueNRG-LP device sends the data collected from the motion sensor (accelerometer, gyroscope, and
magnetometer) and environmental sensor (pressure and temperature) to the ST BLE Sensor Classic smartphone
app, which displays this information.
Running the application:
Two versions (Android and iOS) of the smartphone ST BLE Sensor Classic app are available for download.
Step 1.
Connect the STLINK V3 programmer probe to JP3 header on SensorTile.box PRO board. Connect the
programmer to PC with a USB Cable
Step 2.
Build the related BLE Sensor Demo application (STSW-MKBOX BLEDK\Projects\BLE_Examples\
BLE_SensorDemo) on the selected platform (pre-built image is available on STSW-MKBOX-
BLEDK\Firmware\ BLE_Examples\BLE_SensorDemo\BlueNRG-LP\Release folder and can be loaded
through RF Flasher Utility)
Step 3.
Load the firmware on the hardware either using IAR/KEIL workspace or flashing Binary File(.hex/.bin)
directly using RF Flasher Utility GUI
Note:
While flashing BLE_SensorDemo binary(.bin) using RF Flasher Utility enter the image "Flash from
Address" as "0x10040000".
Step 4.
Remove the STLINK Debugger and Power reset the Board using S1 switch
Step 5.
Install the app and launch it.
Step 6.
The app starts scanning for the BlueNRG-LP Sensor Demo peripheral device. A device called
"BLESenBP" appears on the screen
Step 7.
Select the "BLESenBP" name and connect to the selected platform. The ST BLE Sensor Classic app
enables notifications on the motion characteristic (Accelerometer, Gyroscope, Magnetometer) and on
the environment characteristics (pressure and temperature) and displays the received environment
characteristic values on the screen
UM3227 - Rev 1
Figure 7.
Sensors orientation
UM3227
BLE applications
page 8/27
Need help?
Do you have a question about the STEVAL-MKBOXPRO and is the answer not in the manual?