On Wed, 15 May 2013, Phil Dibowitz wrote: >> One thing I don't quite like - I hard coded the report length to 64. >> We used to read this from the descriptor, but hidapi does not >> provide a way to get this. Not sure what to do about that. > > We should ask on their devel list. It's lame we can't get to the descriptor > info.
Do they have a devel list? Their web page says they are setting up a mailing list "soon." >> + hid_info.ver = cur_dev->release_number; >> + h_dev = hid_open(cur_dev->vendor_id, cur_dev->product_id, NULL); > > One thing I noticed is that we should use hid_force_open() > >> + int err = hid_write(h_dev, data, USB_PACKET_LENGTH); > > Eh? There's not even an hid_write in their docs. hid_interrupt_write is the > closest I see. > >> + int err = hid_read_timeout(h_dev, data, USB_PACKET_LENGTH, timeout); > > Same here. I'm not sure which API documents you're reading. :) http://www.signal11.us/oss/hidapi/hidapi/doxygen/html/group__API.html ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ concordance-devel mailing list concordance-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/concordance-devel