Closed VitorLima closed 5 years ago
Hello Vitor, Concerning the first issue, can you see other BLE devices when discovering? Maybe you need to enable the BLE in a configuration panel.
Second, Python3 is not yet supported (it is specified in the README file), but I am adding it, please keep monitored the package. In the meantime, please use Python2. Thank you
Regards, Davide
Il ven 14 giu 2019, 20:25 VitorLima notifications@github.com ha scritto:
I am trying to use BlueST-SDK to read and log all sensors from SensorTile device. There are two main issues:
First: My laptop bluetooth seems to not being able to find the device. I use linux mint OS and it cannot find the SensorTile, using others computers and smartphone it's visible.
Second: When i run the command sudo python3 Repositories/BlueSTSDK_Python/blue_st_examples/example_ble_1.py, the result is: Scanning Bluetooth devices... Discovery started. Bluetooth scanning requires root privilege, so please run the script with "sudo". Exiting...
but I just used "sudo". Any idea?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/STMicroelectronics/BlueSTSDK_Python/issues/8?email_source=notifications&email_token=AAZTU2KEFR5E37D7Q42FIBDP2PPCDA5CNFSM4HYL6WSKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZTYYWA, or mute the thread https://github.com/notifications/unsubscribe-auth/AAZTU2LIY4SDHY5FDDOYC7LP2PPCDANCNFSM4HYL6WSA .
Thanks for the reply David. It looks like you are right. I don't think my BT hardware can see BLE devices, but I will check it. The reason I am using Python3 is because I was not able to install pip in Python2. I looks like I has and old version but it does not upgrade when I run command. Any suggestion?
Unfortunately I never used Linux mint. I just Googled and found this, like many other pages, maybe it can be useful: https://tecadmin.net/install-python-2-7-on-ubuntu-and-linuxmint/
Hope it helps, Davide
Il ven 14 giu 2019, 20:38 VitorLima notifications@github.com ha scritto:
Thanks for the reply David. It looks like you are right. I don't think my BT hardware can see BLE devices, but I will check it. The reason I am using Python3 is because I was not able to install pip in Python2. I looks like I has and old version but it does not upgrade when I run command. Any suggestion?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/STMicroelectronics/BlueSTSDK_Python/issues/8?email_source=notifications&email_token=AAZTU2JFBVI52V2JXSOJGV3P2PQQ7A5CNFSM4HYL6WSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXXUFXA#issuecomment-502219484, or mute the thread https://github.com/notifications/unsubscribe-auth/AAZTU2I2XF5ML2HX5DYPEWDP2PQQ7ANCNFSM4HYL6WSA .
Hi David, looks like if you have Python2 and Python3 at same time, it just install and update pip on Python3. Anyway, fixed that by just copy files. Thanks for all the support. I'd like to ask one more thing. Do think it's possible to log all sensor from SensorTile board at the same time, with this SDK? Thanks again.
Hello Vitor, The SDK does not provide at the moment a way to log data, but you can easily implement this by writing manually to a file within you main application, after polling the sensors or after receiving a notification from them.
Regards, Davide
Il mar 18 giu 2019, 15:05 VitorLima notifications@github.com ha scritto:
Hi David, looks like if you have Python2 and Python3 at same time, it just install and update pip on Python3. Anyway, fixed that by just copy files. Thanks for all the support. I'd like to ask one more thing. Do think it's possible to log all sensor from SensorTile board at the same time, with this SDK? Thanks again.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/STMicroelectronics/BlueSTSDK_Python/issues/8?email_source=notifications&email_token=AAZTU2PS5EB6YSLOB7U7LELP3DMTNA5CNFSM4HYL6WSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX6RVGA#issuecomment-503126680, or mute the thread https://github.com/notifications/unsubscribe-auth/AAZTU2JQMJ7667O43YUMLE3P3DMTNANCNFSM4HYL6WSA .
Thank you very much for the kind attention.
I am trying to use BlueST-SDK to read and log all sensors from SensorTile device. There are two main issues:
First: My laptop bluetooth seems to not being able to find the device. I use linux mint OS and it cannot find the SensorTile, using others computers and smartphone it's visible.
Second: When i run the command
sudo python3 Repositories/BlueSTSDK_Python/blue_st_examples/example_ble_1.py
, the result is: Scanning Bluetooth devices... Discovery started. Bluetooth scanning requires root privilege, so please run the script with "sudo". Exiting...but I just used "sudo". Any idea?