Here is the code. I am using java to load the libhid library and talk to the device.
LibHid libHid = LibHid.libHid; libHid.hid_set_debug(HIDDebugLevel.ALL); libHid.hid_init(); LibHid.HIDInterfaceMatcher hidMatcher = new LibHid.HIDInterfaceMatcher((short) 0x0801, (short) 0x0011, null, null, 0); libHid.hid_force_open(hidInterface, 0, hidMatcher, (short) 3); libHid.hid_interrupt_read(hidInterface, 0x81, output, 887, 0); libHid.hid_close(hidInterface); libHid.hid_delete_HIDInterface(hidInterface); libHid.hid_cleanup() Thanks! On Sat, Dec 11, 2010 at 2:52 AM, Manuel F Martinez <man...@bashlinux.com>wrote: > Good to hear that, anyways, feel free to post your code if you still want > to try CentOS, I'll be happy to help. > I successfully build apps for some USB devices on CentOS 5 with 2.6.18 > kernel. > > Thanks, > > > On Fri, Dec 10, 2010 at 8:24 AM, shiva vadla <shiva...@gmail.com> wrote: > >> I think it's the kernel issue. I was trying it on CentOs 2.6.18 and it >> wasn't working. But when I tried on OpenSuse 11.3, it works fine. Thanks all >> for your help. >> >> >> On Fri, Dec 10, 2010 at 1:11 AM, Manuel F Martinez >> <man...@bashlinux.com>wrote: >> >>> Are you able to post your code? maybe it can help everyone to see what >>> you are trying to accomplish. >>> >>> Thanks, >>> >>> >>> On Thu, Dec 9, 2010 at 7:27 PM, Xiaofan Chen <xiaof...@gmail.com> wrote: >>> >>>> On Fri, Dec 10, 2010 at 1:48 AM, shiva vadla <shiva...@gmail.com> >>>> wrote: >>>> >> Just a guess, what if you reset the hid interface before closing >>>> >> the interface? >>>> >> >>>> > >>>> > Thanks for the response. I have just tried that, but I still see the >>>> same >>>> > issue. Any suggestions? >>>> > >>>> >>>> Sorry I have no idea. Maybe you want to ask in the Linux usb mailing >>>> list cause I do not think this is a libhid/libusb issue, but rather a >>>> usb device issue. They will probably ask you to provide the >>>> usbmon log or things like that. >>>> >>>> >>>> -- >>>> Xiaofan >>>> >>>> _______________________________________________ >>>> libhid-discuss mailing list >>>> libhid-discuss@lists.alioth.debian.org >>>> http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss >>>> http://libhid.alioth.debian.org/ >>>> >>> >>> >>> >>> -- >>> Manuel F Martinez >>> Linux Systems Engineer >>> >> >> >> >> -- >> Shiva >> > > > > -- > Manuel F Martinez > Linux Systems Engineer > -- Shiva
_______________________________________________ libhid-discuss mailing list libhid-discuss@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss http://libhid.alioth.debian.org/