Hello there :)

I hope anyone can give me a hint how to solve my problem with my
usb-device. It's a hid-class device which works perfectly with
windows.

I tried to write a kernel-driver module, which is currently able to
send a report to the device. But on some computer, the device is
claimed directly by the hid device and not by my kernel-module.

But since this might be OK also, i tried to write a usermode-program
to access my device.

For this i read all the Information i can get about accessing the
hiddev, but i must admit i mostly failed to fully understand the
meaning of the documentation. 

>From the kernel-driver i know that a simple 

usb_set_report(s->dev,s->ifnum,0,2,s->buf,2);

transfers the data correctly to my device.
With reading, i simply wait for the back-report coming in, and then
read the in-buffer, since i can set the reading by using

FILL_INT_URB(s->urb, dev, pipe,
                 s->iBuf, maxp,
                  usbio_int_complete, s, 5);
                                      }
to set my routine for reading.

My question now is, how do i transfer this into usermode.
1. How do i set the 2-byte out-report ?
2. How do i wait for the INT-report, and how do i read the 5-bytes ?

I would be very nice, if someone could point me to a bit more
information. (I read hiddev.txt and Linux-HID.pdf)

My System:
Linux-2.4.20 (debian-system)
usb-ohci-driver
CY7C63001 as usb-controller of the external device


Many thanks in advance

Martin Kneppe



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to