python-ivi / python-usbtmc

Provides a USBTMC driver for controlling instruments over USB
MIT License
162 stars 70 forks source link

usb.core.USBError: (ERRno 32) Pipe error #45

Open samifourati opened 6 years ago

samifourati commented 6 years ago

Hello everybody I‘ve installed in my Raspberry pi 3 the usbtmc driver and all what it needs to communicate with a Siglent 1102CML+ oscilloscope. Everything seemed to be alright (it’s already connected i can use the basic commands like :RUN :STOP *IDN? ..) until i try to acquire data from it, or when i write another command even if it’s wrong written, i always receive this kind of error : usb.core.USBError: (ERRno 32) Pipe error . Is there any solution to fix it ?

alexforencich commented 6 years ago

Send me a wireshark capture of the USB traffic to the scope and I'll take a look.

alexforencich commented 6 years ago

Well, I don't know what to tell you; there's not much I can do unless I see some sort of trace of the USB traffic. Maybe try on a different computer where you can install wireshark?

AlexDroll commented 6 years ago

I see the same error when communicating with a Waverunner 8404 oscilloscope. The error shows up if a start a simple python script twice. The first time everything works fine (all commands are seen by the scope and all responds are sent). The second time it cannot setup a connection to the scope. I have to replug the USB connector. The error only shows up when I send an odd number of commands.