BlueSTSDK_Python icon indicating copy to clipboard operation
BlueSTSDK_Python copied to clipboard

Sto uscendo pazzo -

Open Martons00 opened this issue 1 year ago • 7 comments

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.

Martons00 avatar Jan 12 '24 01:01 Martons00

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

davidroid avatar Jan 12 '24 11:01 davidroid

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: @.***>

Martons00 avatar Jan 12 '24 11:01 Martons00

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

davidroid avatar Jan 12 '24 11:01 davidroid

Ah... my bad. Thanks you. I ll wait that version 🍀

Martons00 avatar Jan 12 '24 11:01 Martons00

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 avatar Apr 09 '24 16:04 francus-dev

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...

francus-dev avatar Apr 18 '24 08:04 francus-dev

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.

Martons00 avatar Apr 18 '24 09:04 Martons00