Skip to main content
Visitor II
November 3, 2023
Question

SensorTile.Box Pro not detected using example_ble_1.py from the BlueSTSDK Python Library

  • November 3, 2023
  • 1 reply
  • 1052 views

Hello,

I have a SensorTile.Box Pro that I can connect to using my Android Phone. However, when I run the example_ble_1.py script to discover ST devices and connect to them to read their features using ble, it detects my SensorTile.Box and not my SensorTile.Box Pro. I have mad sure the Pro is turned on and can connect to the ST BLE App. Any advice on how to get it to connect using the SDK would be appreciated as I have created a gui for plotting gyro and acc data in real time which can utilize the SensorTile.Box and the kit. Currently I am missing the ability to connect to the Box Pro.

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    November 3, 2023

    Hi @ahalwah ,

    Welcome to ST Community!

    how does the script work?

    if the board is visible to the application, it should be available also for an example script that scans every device.

    if the script has some filter, the board can be omitted from the list of devices.

    ahalwahAuthor
    Visitor II
    November 3, 2023

    I tried to trace back the methods being used for device discovery, and it looks like the Scanner method from the bluepy library is being used for device discovery. I did not see any filtration of the detected devices for it to potentially omit the box Pro. 

    This is the link to the script: https://github.com/STMicroelectronics/BlueSTSDK_Python/blob/master/blue_st_examples/example_ble_1.py

    I did notice in the readme that it states "They need to be equipped with BLE connectivity and a FW compatible with the BlueST Protocol."

    Furthermore, it states that

    The SDK is compatible with the following ST firmware:

    • FP-SNS-MOTENV1: STM32 ODE function pack for IoT node with BLE connectivity plus environmental and motion sensors
    • FP-SNS-ALLMEMS1: STM32 ODE function pack for IoT node with BLE connectivity, digital microphone, environmental and motion sensors
    • FP-SNS-FLIGHT1: STM32 ODE function pack for IoT node with BLE connectivity, environmental and motion sensors, time-of-flight sensors (Please remove NFC when used with Python SDK)

    So I guess, should I try flashing it with one of these firmwares, and if so is there a file that I can send using the ST BLE App to the box Pro.