-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LIBUSB_TRANSFER_STALL errno: 4 #12
Comments
@siteswapjuggler: it can be an incompatible/problematic camera or some bug in
|
Hello @joelpurra and thanks a lot for your answer.
The camera is seen by uvcc devices, but I do not succeed with ranges, export or other commands as if my device selection was not good. |
@siteswapjuggler: it does seem that the ELP-USBFHD01M camera series is UVC compatible, confirmed by this blog entry from 2015. Unsure if they all have VID Others had problems with Without this particular camera, I can't do much. Since you have the camera available, could you debug it? If not, perhaps using another UVC control software is better. Or ask @ECMAScript3, since they fixed a similar bug before but didn't publish a patch. |
Hi, I have the same error with an HD Pro C920 camera. I get this error for all the following controls:
The strange thing is I can get the current values of this controls, it's not working only when trying to set the value. I'm posting here, but the bug comes from you're fork (i'm using it directly, not through uvcc). |
@EmrysMyrddin: the error code may be the same, but your issue is different from @siteswapjuggler's issue. The particular controls you list are presumably "locked" from user modification, because they are in automatic mode. This means that the camera sets the control value, which may vary by light conditions etcetera. Turn off the corresponding automatic mode control(s) first. In a graphical user interface these controls would perhaps be greyed out and the mode toggled by a checkbox. This is unfortunately not very well documented in The upstream |
Your right, it was the problem :-) Do you know any way to detect this and avoid this errors ? Or the protocol doesn't allow this ? |
@EmrysMyrddin: the UVC standard allows reading the "automatic mode" state for each control. The Other UVC library/wrapper may also implement automatic mode state checking. Alternatively, with low-level USB communications open you can send
For follow-up questions to your library usage, please open a new issue in |
@siteswapjuggler: tested a couple of cameras (but in an unstructured approach) and found some hints as to why some (most?) are not working with Here's an explanation regarding UVC control transfers from an experienced USB developer working on WebUSB. The answer is with regards to WebUSB usage, but it seems to apply generally (at least in 2017).
Am not familiar enough with USB to "see" this in the While
|
Thanks a lot @joelpurra I'll have a look as soon as possible. To be honnest I did not pursue my project using this command that's why I did not give more news recently. Thanks a lot for your time and your latest answer, really hope that someone will find this usefull and maybe solve the mystery at one point. |
Hello,
I'm trying to get it work on MacBookPro with OSX 10.13.6, I did get a result for devices, but none for ranges and export (it give me empty {} resultes) and get commands give me this error message : error: { Error: LIBUSB_TRANSFER_STALL errno: 4 } }
Do I miss something ?
The text was updated successfully, but these errors were encountered: