Skip to main content
Visitor II
February 25, 2021
Question

SensorTile.box, unable to connect through the GATT interface on Windows

  • February 25, 2021
  • 4 replies
  • 2671 views

Hello,

Is there any reason which could explain I cannot connect to the sensor using GATT interface on Windows ?

The sensor often return, file not found, aborted or it is not able at all to connect to the sensor.

Application of ST in IOS works. Custom application with accelerometer has been pushed.

The only difference I have if I compare with another sensor which is working, it is the passcode.

Regards,

    This topic has been closed for replies.

    4 replies

    ST Employee
    February 26, 2021

    Hi @ACout.1​ ,

    Are you trying the ST BLE sensor app, right?

    If so, there may be some issues with Windows OS since the application is available only for Android and iOS...

    To run the application on Windows, I would suggest you to use Android studio and refer to the source code available at this link on the Github repository.

    You should also check your hardware, if your device is equipped by BLE (Bluetooth low energy) module, and not standard bluetooth.

    But ok, it's not an easy-to-implement suggestion...

    -Eleon

    ACout.1Author
    Visitor II
    February 26, 2021

    Indeed the ST BLE sensor app works on my IOS smartphone.

    All of my others sensors are using LE bluetooth, so it should not be the issue. One is using 4.1, and another 5.0.

    Is there something which could interfer with discovery process ?

    ST Employee
    February 26, 2021

    Hi @ACout.1​ ,

    I'm afraid this app is not available for Windows OS... From the app page on st.com the available versions are the following ones:

    0693W000007ZcKvQAK.png 

    -Eleon

    ACout.1Author
    Visitor II
    March 1, 2021

    Hello

    I have setup a Linux workstation in order to move forward.

    I am now able to scann and connect to the device, gyro, mqgneto features notifications works but accelerometer still not.

    Based on your documentation, I tried to push the feature gain: dm00550659-getting-started-with-the-bluest-protocol-and-sdk-stmicroelectronics.pdf

    But I get an error,

    Traceback (most recent call last):

     File "add.py", line 4, in <module>

       mask_to_features_dic[0x00800000] = feature_accelerometer.FeatureAccelerometer

    NameError: name 'feature_accelerometer' is not defined

    I use the a copy of your GIT repository (Python), the feature file exists under the folder /features/feature_accelerometer.py

    Is there something wrong ?

    Do you document which describe how merge multiple features in 1 GATT characteristic ? I would merge Gyroscope; Magnetometer, Accelerometer in the same charactistic.

    ST Employee
    March 1, 2021

    Hi @ACout.1​ ,

    regarding your python error, it seems that the file is not seen by the main, hence it is not included in your project.

    try to check if  /features/ is in the list of folders with included files, in the project options.

    The fact that you are able to detect the gyro and mag characteristics, but not the acc one, is very strange, because they are the same from a connection point of view. can you try to download an app that enables every sensor from the ST BLE Sensor App and try again?

    if you want to merge more features into one, you should rework the firmware too, but you should start from one of the example MCU & MPU Embedded Software that are on the board page ( https://www.st.com/en/evaluation-tools/steval-mksbox1v1.html#tools-software )

    I hope this is helpful =)

    Niccolò

    ACout.1Author
    Visitor II
    March 1, 2021

    Hello

    Yes folders are there

    Traceback (most recent call last):

     File "add.py", line 4, in <module>

       mask_to_features_dic[0x00800000] = feature_accelerometer.FeatureAccelerometer

    NameError: name 'feature_accelerometer' is not defined

    xxxxxxx@-xxxxxxxxxxxxx:/usr/local/lib/python3.8/dist-packages/blue_st_sdk/features$ ls

    add.py                          feature_audio_scene_classification.py feature_proximity_gesture.py field.py

    audio                           feature_gyroscope.py                  feature_proximity.py         __init__.py

    device_timestamp_feature.py     feature_humidity.py                   feature_stepper_motor.py     __pycache__

    feature_accelerometer.py        feature_magnetometer.py               feature_switch.py            standard_characteristics

    feature_activity_recognition.py feature_pressure.py                   feature_temperature.py

    arnaud@arnaud-HP-Laptop-14s-fq0xxx:/usr/local/lib/python3.8/dist-packages/blue_st_sdk/features$

    I will check for your alternative firmeware. I can download it and use your "ST BLE Sensor" app or ST32CubeProgrammer" ?

    It is strange, because the IOS ST application "ST BLE Sensor" is able to read accelerometer data, but not from python in Linux.