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
61 stars 19 forks source link

cannot detect the sensor using the program(example_ble_1.py) #14

Closed ArthurKun21 closed 4 years ago

ArthurKun21 commented 4 years ago

Python 3.7.3 Bluetooth 5.0 Raspberry Pi 4B Raspbian Buster September 2019 Version

The Program(example_ble_1.py and example_ble_2.py) cannot detect the sensor (PM1V200) but if using the native bluetooth it manages to detect the sensor(PM1V200)

2019-10-08-095126_1024x768_scrot

edit: added Raspberry Pi software Version

davidroid commented 4 years ago

Dear Rulerkun, as you can read in the "Setting up the application examples" section of the repository page, the SDK is compatible only with devices equipped with a firmware that embeds the BlueST Protocol.

Regards, Davide

Il giorno mar 8 ott 2019 alle ore 03:55 Rulerkun notifications@github.com ha scritto:

Python 3.7.3 Bluetooth 5.0 Raspberry Pi 4B

The Program(example_ble_1.py and example_ble_2.py) cannot detect the sensor (PM1V200) but if using the native bluetooth it manages to detect the sensor(PM1V200)

[image: 2019-10-08-095126_1024x768_scrot] https://user-images.githubusercontent.com/16458204/66361422-49e8fd80-e9b1-11e9-81b5-b42b1bb02b7b.png

— 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/14?email_source=notifications&email_token=AAZTU2KZXY72TDO4XBBXUSDQNPR77A5CNFSM4I6L3JKKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HQHCDSA, or mute the thread https://github.com/notifications/unsubscribe-auth/AAZTU2ODMQXYMNR2Q22MWGDQNPR77ANCNFSM4I6L3JKA .

ArthurKun21 commented 4 years ago

yes, we are using devices equipped with a firmware that embeds the BlueST Protocol.

https://www.st.com/resource/en/product_presentation/fp-ind-predmnt1_quick_start_guide.pdf

STM32 Nucleo with expansion boards • NUCLEO-F446RE + X-NUCLEO-CCA02M1 + X-NUCLEO-IDB05A1 + X-NUCLEO-IKS01A2 + STEVAL-MKI182V2

image

ArthurKun21 commented 4 years ago

edit the first comment

davidroid commented 4 years ago

Ok, now I understand. The FP-IND-PREDMNT1 is not supported yet; you can find the supported features in the "Note" section of the "BlueST Protocol" chapter of the readme file.

We are continuously adding features, and the predictive maintenance is on the roadmap, so please check here for updates.

Thank you for your interest and regards, Davide

ArthurKun21 commented 4 years ago

yes although i understand that the preventive maintenance is not yet implemented. We just need to get some basic data like temperature, pressure and humidity for testing purposes. How can we do that? the program can't detect the sensor?

ArthurKun21 commented 4 years ago

my colleague managed to make it work out with the RPi3, the part where getting the temperature,pressure and humidity but not on the RPi4. Could i know what some parts we need to check so we could fix and make it work in the RPi 4?

davidroid commented 4 years ago

Don't have at the moment a PI4 to try, but I will manage to try it. There shouldn't be any difference, anyway. Are you maybe missing some library?

Regards, Davide

Il giorno mer 9 ott 2019 alle ore 02:53 Rulerkun notifications@github.com ha scritto:

my colleague managed to make it work out with the RPi3, the part where getting the temperature,pressure and humidity but not on the RPi4. Could i know what some parts we need to check so we could fix and make it work in the RPi 4?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/STMicroelectronics/BlueSTSDK_Python/issues/14?email_source=notifications&email_token=AAZTU2NMXPZKWLEAZ33L77DQNUTQTA5CNFSM4I6L3JKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAWDLOY#issuecomment-539768251, or mute the thread https://github.com/notifications/unsubscribe-auth/AAZTU2LAX6RZAHZKWFSNGCTQNUTQTANCNFSM4I6L3JKA .

ArthurKun21 commented 4 years ago

Hi @davidroid

I found the problem here, the python 3.7.3 have a problem with the bluepy library. The solution is to downgrade it to python 3.5.7 and now it works.

Are you maybe missing some library?

No Sir, i have installed all of the libraries here

We are now just waiting for the predictive maintenance feature of BlueSTSDK Python. Can we have the estimated time of release of this feature?

davidroid commented 4 years ago

Ok, good to know.

I hope to have time to work on it soon in this quarter.

Thank you and regards, Davide

Il gio 10 ott 2019, 03:27 Rulerkun notifications@github.com ha scritto:

Hi @davidroid https://github.com/davidroid

I found the problem here, the python 3.7.3 have a problem with the bluepy library. The solution is to downgrade it to python 3.5.7 and now it works.

Are you maybe missing some library?

No Sir, i have installed all of the libraries here

  • sudo apt-get install python3-pip libglib2.0-dev
  • sudo pip3 install bluepy
  • sudo pip3 install futures
  • sudo pip3 install blue-st-sdk

We are now just waiting for the predictive maintenance feature of BlueSTSDK Python. Can we have the estimated time of release of this feature?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/STMicroelectronics/BlueSTSDK_Python/issues/14?email_source=notifications&email_token=AAZTU2LXDAUMOEN4DQXGXXLQN2AIPA5CNFSM4I6L3JKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA2A45Y#issuecomment-540282487, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZTU2KLGY52NRMOCG6MGY3QN2AIPANCNFSM4I6L3JKA .