STMicroelectronics / BlueSTSDK_Python

Bluetooth Low Energy Sensors Technology Software Development Kit (Python version for Linux Gateways)
https://www.st.com/en/embedded-software/bluest-sdk.html
BSD 3-Clause "New" or "Revised" License
62 stars 19 forks source link

Sto uscendo pazzo - #34

Open Martons00 opened 10 months ago

Martons00 commented 10 months ago
Screenshot 2024-01-12 at 02 42 52

Sto usando un RPi4, devo usare una venv per le librerie ma niente da fare. I'm using an RPi4, I need to use a venv for libraries, but I'm not having any luck.

davidroid commented 10 months ago

Hello Martons00, This is tricky: when you activate the venv, it automatically sets the PYTHONPATH environment variable to include the venv site-packages directory; since you activate the venv as a normal user but then run the scripts as super user (because the BLE requires this), then the path is not found. Do become super user before activating the venv, and everything should work:

  1. sudo su
  2. source .venv/bin/activate
  3. python3 example_ble_1.py

Regards, Davide

Martons00 commented 10 months ago

Thanks you, now it โ€˜s working But I canโ€™t find any devices. (SensorTile.BoxPRO) The sensor works properly with the mobile app(iOS)

On Fri, 12 Jan 2024 at 12:14, davidroid @.***> wrote:

Hello Martons00, This is tricky: when you activate the venv, it automatically sets the PYTHONPATH environment variable to include the venv site-packages directory; since you activate the venv as a normal user but then run the scripts as super user (because the BLE requires this), then the path is not found. Do become super user before activating the venv, and everything should work:

  1. sudo su
  2. source .venv/bin/activate
  3. python3 example_ble_1.py

Regards, Davide

โ€” Reply to this email directly, view it on GitHub https://github.com/STMicroelectronics/BlueSTSDK_Python/issues/34#issuecomment-1888904961, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYPH6FQ3JZM7F5JF7M3APQ3YOELJXAVCNFSM6AAAAABBXM6FC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBYHEYDIOJWGE . You are receiving this because you authored the thread.Message ID: @.***>

davidroid commented 10 months ago

This is because we are adding the support to this board right now; you can see the list of the currently supported boards here: https://github.com/STMicroelectronics/BlueSTSDK_Python?tab=readme-ov-file#advertising-data We'll be releasing a new version of the SDK soon, by end of January.

Regards, Davide

Martons00 commented 10 months ago

Ah... my bad. Thanks you. I ll wait that version ๐Ÿ€

francus-dev commented 7 months ago

This is because we are adding the support to this board right now; you can see the list of the currently supported boards here: https://github.com/STMicroelectronics/BlueSTSDK_Python?tab=readme-ov-file#advertising-data We'll be releasing a new version of the SDK soon, by end of January.

Regards, Davide

Hi Davide, I'm coming through the same issue, and I was becoming crazy too until I read this post and your reply. My enterprise bought the SensorTile.Box Pro to have something more than the standard version, but without the possibility to use the SDK for the acquisition of BTLE data, we are completely stuck to a pole. Is there any information on when will the new SDK be released? Regards, Francesco

francus-dev commented 7 months ago

Ah... my bad. Thanks you. I ll wait that version ๐Ÿ€

Hi Martons00, have you found any solution for this problem? I tried to fix the Python SDK based on information collected in the Android SDK (which already supports the SensorTile.Box Pro), but I don't know why it is not working...

Martons00 commented 7 months ago

I'm waiting for the new version but ... โ˜ ๏ธ I don't know if it will be released. The alternative is to study the mobile version and write by your own the script in python.