Re: Libusb-win32 code to control Ricoh Theta
Ekkehard <[email protected]>
| Newsgroups | gmane.comp.lib.libusb.devel.windows |
|---|---|
| Message-ID | <[email protected]> |
Hi, I have'nt done anything with the camara matter. From the programmers view, there is one thing I dont understand. The used bytes the buffer are only 15 = "trigger-capture", but you are sending 64 bytes. If the command detection algo in the camera validating the length of the buffer first, than the command will not be recognised. So maybe you can try int result = usb_control_msg(devHandle, 0x21, 9, 0x2, 0x0, (char*)buffer, 15, 100); if (result == 15) cout << "Successfully sent all bytes to camera" << endl; or, if the camera may expect one zero at the end of the command int result = usb_control_msg(devHandle, 0x21, 9, 0x2, 0x0, (char*)buffer, 16, 100); if (result == 16) cout << "Successfully sent all bytes to camera" << endl; A minor thing, as far as I know there is no need to claim the interface since the control mesaages are not related to any interface. Best regards Ekkehard -- View this message in context: http://libusb.6.n5.nabble.com/Libusb-win32-code-to-control-Ricoh-Theta-tp5713450p5713451.html Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds