Communication with ST BLE Sensor Classic app • Bluetooth® Low Energy examples like beacon, throughput, and serial Port Figure 1. STEVAL-MKBOXPRO (SensorTile.box PRO) multisensor and wireless connectivity development kit UM3227 - Rev 1 - September 2023 www.st.com For further information contact your local STMicroelectronics sales office.
UM3227 Acronyms and abbreviations Acronyms and abbreviations Table 1. List of acronyms Acronym Description Bluetooth Low Energy Mega Hertz Microcontroller unit Inter Integrated Circuit UM3227 - Rev 1 page 2/27...
BLE Beacon • BLE Throughput • BLE Serial Port Master Slave There are several ST products used including BLE controllers and sensors on SensorTile.box PRO board: • BlueNRG-LP (Host BLE Microcontroller) • LSM6DSV16X (iNEMO 3D accelerometer & 3D gyroscope) •...
UM3227 Folder Structure Figure 3. Example block diagram Folder Structure STSW-MKBOX-BLEDK software package files are organized in the following main directories: • Firmware: contains prebuilt binary Bluetooth® Low Energy sample applications • Drivers: – BSP: SDK drivers providing an API interface to the BlueNRG-LP/BlueNRG-LPS platform hardware resources (LEDs, buttons, sensors, I/O channel) –...
IAR ARM v9.20.1/MDK -ARM v5.37.0 • RF-Flasher Utility GUI • STM32CubePROGRAMMER GUI • ST BLE Sensor Classic Mobile App for Android/IOS • BlueNRG-GUI – (Required for BLE OTA Reset Manager Application) • Tera Term Board setup In the SensorTile.box PRO there are components like sensors, LED, switches connected both BlueNRG-LP and STM32U5 controllers.
UM3227 Board setup Step 2. Then use the STM32 Cube Programmer: make sure you have the latest STM32CubePROGRAMMER version (old versions might not get recognize the U5 in DFU Mode) – Select USB, Select the port USB1, click on Connect (see Figure –...
BLE applications 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...
UM3227 BLE beacon Step 8. Select the ST BLE Sensor Classic Demo, Plot Data window and select sensor options to plot the received values. The sensor values are displayed on a graphical chart. Figure 8. Expected output on ST BLE Sensor Classic App...
Page 10
UM3227 BLE beacon 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 Beacon application (STSW-MKBOX BLEDK\Projects\BLE_Examples\ BLE_Beacon) on the selected platform (pre-built image is available on STSW-MKBOX- BLEDK\Firmware\ BLE_Examples\BLE_Beacon\Release folder and can be loaded through RF Flasher Utility) Step 3.
UM3227 BLE beacon Step 7. Download and Open the BLE scanner mobile App and search for the Beacon Device Figure 10. BLE Beacon Tera Term Settings Figure 11. BLE Beacon Tera term output: release configuration UM3227 - Rev 1 page 11/27...
UM3227 BLE Throughput Figure 12. BLE Beacon Tera term output: extended configuration Figure 13. BLE Beacon Tera term output: periodic configuration BLE Throughput This Throughput demo has two roles: • The server that exposes the Throughput service. It is the slave •...
Page 13
UM3227 BLE Throughput Press e to Toggle notify Press p to Print APP flags Press s to Read LE PHY (TX, RX) Press d to Set LE RX PHY to Coded Press D to Set LE TX PHY to Coded Press t to Set LE TX PHY to 1 Mbps Press r to Set LE RX PHY to 1 Mbps Press T to Set LE TX PHY to 2 Mbps...
UM3227 BLE Throughput Step 5. The platform is seen on the PC as a virtual COM port. Open the port in a serial terminal tool. The required serial port baud rate is 115200 Step 6. The two platforms try to establish a connection. As soon as they get connected, the slave continuously sends notification of a characteristic to the client Step 7.
UM3227 BLE OTA reset manager BLE OTA reset manager • The application implements the OTA Reset Manager which, at reset, passes control to the latest valid Bluetooth LE application updated through the Bluetooth LE Over-The-Air (OTA) Service • The OTA Reset Manager is a basic application which is stored at BlueNRG-LP FLASH base address (0x10040000) and it allows to transfer of control towards the new upgraded application every time we reset •...
Page 16
UM3227 BLE OTA reset manager Step 11. After the device selection, the connection through ‘Connect’ button and reading of the related free memory range, the user is requested to provide the new image file compiled with a base address and size fitting within the expected range on the slave device.
UM3227 BLE OTA reset manager Step 14. On process completion the new application is launched Figure 16. BLE OTA Reset Manager Firmware upgrade using BlueNRG-GUI - 1 UM3227 - Rev 1 page 17/27...
UM3227 BLE OTA service manager Figure 18. BLE OTA Reset Manager Firmware upgrade using BlueNRG-GUI - 3 BLE OTA service manager • The application implements a basic standalone Bluetooth LE Over The Air(OTA) firmware upgrade. It provides the Bluetooth LE Over-The-Air Service management for handling OTA firmware upgrade of a Bluetooth LE application which doesn’t have any Bluetooth LE OTA service •...
Remove the Debugger from PC, Power reset the Board using S1 switch. Step 6. Open the ST BLE Sensor Classic Mobile app and click ‘Select one Device’. Step 7. Save the firmware binary(.bin) to be flashed in Smart Phone at a known location. For example, pre-built...
Page 21
UM3227 BLE serial port master slave • The Serial Port Master and Slave application configures a BlueNRG-LP device as Central & Peripheral using the aci_gap_init (GAP_CENTRAL_ROLE|GAP_PERIPHERAL_ROLE, ...). Then it performs the following steps: – It starts discovery procedure for a another BlueNRG-LP device configured with the same binary image.
UM3227 BLE serial port master slave Step 5. The application will listen for keys typed in one node and, on return press, it will send them to the remote node. The remote node will listen for RF messages, and it will output them in the serial port. In other words, everything typed in one node will be visible to the other node and vice versa.
BLE OTA Reset Manager Firmware upgrade using BlueNRG-GUI - 3 ......19 Figure 19. BLE OTA Service Manager Firmware upgrade using ST BLE Sensor Classic Mobile App....20 Figure 20.
Page 27
ST’s terms and conditions of sale in place at the time of order acknowledgment. Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of purchasers’...
Need help?
Do you have a question about the STEVAL-MKBOXPRO and is the answer not in the manual?
Questions and answers