-
Notifications
You must be signed in to change notification settings - Fork 28
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
V2 control transfer target device #64
V2 control transfer target device #64
Conversation
Hi. I've tried to use this but I am running into an error. The file Here's what I did:
Error occurs:
|
@nickrobillard: I skipped device listing for this preview. It was using a file from the "old"
Basically Note: all changes were made in You can install and test the new code as described in the original pull request information. |
- Currently, each `controlTransfer` by setting `bmRequestType` targets the camera _interface_ rather than _device_. - Using an interface would require claiming it, which is not performed. - Claiming an interface would kill access for any other process which may be using the camera (including the kernel?). - This commit targets `controlTransfer` to the _device_ instead. - There might be better ways to transfer control commands. - Ported from `uvc-control` v1 to v2. Fixes makenai#58 Fixes joelpurra/uvcc#2 See - makenai#58 - joelpurra/uvcc#2
- Fixes typo which affected `CT` control types. Fixes joelpurra/uvcc#4 See - joelpurra/uvcc#4
- Possibly related to the previous commit which had a typo affecting camera input terminal (CT) controls. - There might be other bugs in the control data, should check against UVC v1.5 reference. Fixes makenai#60 See - makenai#60 - https://www.usb.org/documents?search=uvc
c0e37fe
to
d2ae47e
Compare
Closing in favor of #66. |
Work-in-progress patches to the future
node-uvc-control
v2, onmaster
. Fixes Linux issues (primarily) but also compatibility with other cameras (confirmed by someuvcc
users). Sorry for mixing issues in one pull request -- submitting this as a draft pull request for testing, and I'd be happy to split to multiple when it's confirmed to work.Fixes were created to get
uvcc
working, so testing (unfortunately still manually) is mostly done using theuvcc
CLI.While
uvcc
v2 is not up to par withnode-uvc-control
v2, I've also fixed a few more basicuvcc
features to get basicuvcc export | uvcc import
functionality working. Thefeature/uvc-control-v2-next
branch ofuvcc
targets the code in this pull request.There are still bugs, both in
uvcc
(missing functionality, setting values when they're in auto-mode, etcetera) andnode-uvc-control
(spotted some on the byte-reading level). Tested on macOS and Ubuntu using a Logitech C920 (0x46d/0x82d) with node v12.What are the results for your camera(s)? Any major issues? Please show some output for verification, along with the camera vendor/product ids.
Note: similar/backported fixes for Linux are available for
node-uvc-control
v1.0.2 in a separate branch, but github doesn't let me create pull request against tags.