2025-04-04 2:27 AM - edited 2025-04-04 6:27 AM
Hi, I am using stdatalog-pysdk on a Raspberry PI with Raspberry OS to acquire some data on STEVAL-STWINBX1 and send them to the cloud. I wrote a script in python that sends a number of messages and in every message I start the SensorAcquisitionThread() defined in the HSDLink library. However, when I close the comunication using hsd_link.stop_log() function, the program crashes and continuous printing errors as shown in the following picture:
I noticed this problems seems related to the lib_usb library closing procedure after an acquisition. I found that some other users in GitHub have similar issues, but now I'm stucked on a work project in which I use both Raspberry and STwin.box. Do you have any idea when the new version that fixes this bug might be released? Do you know if this issue is related to only Raspberry 4 or to only Raspberry PI OS? Do you think that with Raspberry Pi 5 and Ubuntu the library will works correctly?
Thank you!
UPDATE: also tried on Ubuntu 24.04 LTS and facing the same issues.
2025-04-04 8:29 AM
Hello @toti5
Please refer to this GitHub issue, where we are already discussing about the same issue and we are solving it.
Best regards
Simone