makenai / node-uvc-control

Control UVC compliant USB webcams from node
80 stars 28 forks source link

Support hardware interrupt #24

Open mickaelv opened 7 years ago

mickaelv commented 7 years ago

Hi,

Thanks for your script !

Is it possible to add hardware interruption to use snapshot button on UVC device ?

I know that the status packet must be like : bStatusType : 2 bOriginator : 0x00 Button Press bValue : 0x00 released, 0x01 pressed

But actually I don't know how to easly get this status packet

Regards,

Mickaël

positlabs commented 5 years ago

This is possible, but I would have to do some digging in the uvc docs to figure out exactly how. What device are you using that supports this? I have never seen a snapshot button on a webcam

positlabs commented 5 years ago

I don't have a device to test hardware interrupt, but I could make it work programmatically

http://www.cajunbot.com/wiki/images/8/85/USB_Video_Class_1.1.pdf

2.4.2.4 Still Image Capture