Skip to content
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

Prevent LIBUSB_TRANSFER_STALL #16

Closed
positlabs opened this issue Jun 12, 2017 · 3 comments
Closed

Prevent LIBUSB_TRANSFER_STALL #16

positlabs opened this issue Jun 12, 2017 · 3 comments
Assignees

Comments

@positlabs
Copy link
Collaborator

I'm getting LIBUSB_TRANSFER_STALL when trying to set a few values.

  • absoluteExposureTime
  • absolutePanTilt
  • whiteBalanceTemperature

Testing on Logitech C920 on OSX 10.12.5.

https://github.com/positlabs/obscura-webcam-controller

@positlabs positlabs self-assigned this Jun 12, 2017
@positlabs
Copy link
Collaborator Author

I'm guessing it means these controls are not supported.

http://libusb.sourceforge.net/api-1.0/group__asyncio.html#gga9fcb2aa23d342060ebda1d0cf7478856a23cdfd929f5fe82cca9654f8075eeebb

Even though control endpoints do not halt, a completed control transfer may have a LIBUSB_TRANSFER_STALL status code. This indicates the control request was not supported.

@positlabs
Copy link
Collaborator Author

Implementing a solve for #22 would allow the dev (or this lib) to detect supported controls, and only surface those - or throw a more descriptive error if a user tries accessing an unsupported control

@positlabs
Copy link
Collaborator Author

I'm going to add an initialization step in #22 so the user shouldn't ever access unsupported controls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant