cancel
Showing results for 
Search instead for 
Did you mean: 

stdatalog-pysdk error on STEVAL-STWINBX1 with Raspberry Pi 4 (libusb_control_transfer error)

toti5
Visitor

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:   

428997931-08f54ab6-1dab-488f-bb26-749764e67926.png

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.

1 REPLY 1
SimonePradolini
ST Employee

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

 

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.