Skip to content

[Errno 32] Pipe Error using PyUSB; SLM-25 Decibel Meter Connected to Laptop #411

Closed Answered by jonasmalacofilho
808reefer asked this question in Q&A
Discussion options

You must be logged in to vote

One way to look at a problem like this is to go to the backend documentation for the call and the error. You haven't mentioned, but I'm going to assume for now that the backend is libusb 1.0.

Under that assumption, the error is LIBUSB_ERROR_PIPE, and libusb_control_transfer() is documented to return it "if the control request was not supported by the device."

That said, another thing to note is the dev.set_configuration() call, and the commented out line:

#ret = dev.read(0x81, 200, 100)  #results in USBTimeoutError

This might be relevant because dev.set_configuration() can act as a soft-reset in some cases, and that could explain the mentioned timeout. More information about this can be f…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mcuee
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #410 on February 09, 2022 03:47.