On Mon, May 14, 2012 at 8:24 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:
> On Mon, May 14, 2012 at 7:56 PM, Pete Batard <p...@akeo.ie> wrote:
>> Moving on with the list of 1.0.12 items, the attached patch reinstates HID
>> support for Windows, as well as adds HID feature reports querying to xusb.
>
> Great. I should be able to give this some tests, like Jan Axelson's
> generic HID firmware and some modes.
>
> The other test I want to do is to see if I can use this works well
> as the backend for HIDAPI or not.
>

First test is positive.

Test firmware: modified generic HID device with report ID
Test host software
http://code.google.com/p/picusb/source/browse/#svn%2Flvr_genhid_mod

Test result:
mcuee@dellxp /c/work/libusbx/hidtest
$ gcc -o libusb1_lvrhid8 libusb1_lvrhid8.c  -lusb-1.0

mcuee@dellxp /c/work/libusbx/hidtest
$ ls
Firmware_generic_hid      libusb1_lvrhid8.c
Firmware_generic_hid.zip  libusb1_lvrhid8.exe

mcuee@dellxp /c/work/libusbx/hidtest
$ ./libusb1_lvrhid8.exe
Successfully find the LVR Generic HID device
Successfully set usb configuration 1
Successfully claimed interface
Testing control transfer using loop back test of feature report
03, 04; 21, 21; 22, 22; 23, 00;
Testing control transfer using loop back test of input/output report
02, 01; 31, 31; 32, 32; 33, 00;
Testing interrupt transfer using loop back test of input/output report
02, 01; 41, 41; 42, 42; 43, 00;

(first byte is report id, Input 01, Output 02, Feature 03/04)
(the last byte is to test whether there is an overflow).

-- 
Xiaofan

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to