-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Plain text is fine. Thanks.
On Thu, 10 Oct 2002 08:29, Douglas Roberts wrote: > <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> > <html> > <head> > <title></title> > </head> > <body> > <br> > <br> > Brad Hards wrote: > <blockquote type="cite" > cite="[EMAIL PROTECTED]"> > <blockquote type="cite"> > <blockquote type="cite"> > <pre wrap=""> > </pre> > </blockquote> > <pre wrap="">Do you mean the input core support? If so, that's turned > on. </pre> > </blockquote> > <pre wrap=""><!---->In later kernels, there is a config option for HID > -> input layer. It is CONFIG_USB_HIDINPUT. > </pre> > </blockquote> > <br> > Yes, that's turned on too:<br> > #<br> > # USB Human Interface Devices (HID)<br> > #<br> > CONFIG_USB_HID=m<br> > CONFIG_USB_HIDINPUT=y<br> > CONFIG_USB_HIDDEV=y<br> > CONFIG_USB_KBD=m<br> > CONFIG_USB_MOUSE=m<br> > CONFIG_USB_WACOM=m<br> > <br> > <blockquote type="cite" > cite="[EMAIL PROTECTED]"> > <pre wrap=""> > </pre> > <blockquote type="cite"> > <pre wrap="">The radio identifies itself as an hid device, so I don't > understand what you meant by "wrong application", above. > </pre> > </blockquote> > <pre wrap=""><!---->You're going to have to read the HID spec some more > times, before you'll be able to write a userspace app :-)</pre> > </blockquote> > <br> > You got that one right ;-}. I have mucked around in the kernel in the > past, though, so I'm not totally new. About 4 or 5 years ago I > hacked a fix to the cardbus driver in RH5.3(I think), because it wasn't > working on an old Gateway laptop I had at the time. That earned me a > spot on the RH developer's list, but I did not take advantage when RH did > their IPO. RH closed today at $3.84, so I guess I didn't miss out too > much.<br> > <blockquote type="cite" > cite="[EMAIL PROTECTED]"> > <pre wrap=""> > In the HID spec, Application (I'm using caps to denote a defined term) is a > specific value returned by the HID interface. It is used to determine > things like the usage pages. Look in the hid code (hid.h) and find the test > for IS_INPUT_APPLICATION. If the Application(s) reported by the HID device > matches, then the device is considered an input device, and gets associated > with the hid-input code. Otherwise it goes to hiddev. > </pre> > </blockquote> > Ok, here's the macro:<br> > <br> > #define IS_INPUT_APPLICATION(a) (((a >= 0x00010000) && (a <= > 0x00010008)) || (a == 0x00010080) || ( a == 0x000c0001))<br> > <br> > <blockquote type="cite" > cite="[EMAIL PROTECTED]"> > <pre wrap=""> > The dump-events code I gave a link to in my previous email can tell you > what the Applications are for your device.</pre> > </blockquote> > <br> > And here they are:<br> > <br> > <br> > Application 0 is 0xffa00001 (Needs to be added)<br> > Report id: 1 (1 fields)<br> > Field: 0: app: ffa00001 phys ffa00002 flags 2 (1 usages) > unit 0 exp 0<br> Usage: ffa00003 val 0 idx > 0<br> > Report id: 2 (1 fields)<br> > Field: 0: app: ffa00001 phys ffa00004 flags 2 (1 usages) > unit 0 exp 0<br> Usage: ffa00005 val 0 idx > 0<br> > Report id: 3 (1 fields)<br> > Field: 0: app: ffa00001 phys ffa00006 flags 2 (1 usages) > unit 0 exp 0<br> Usage: ffa00007 val 0 idx > 0<br> > Report id: 4 (1 fields)<br> > Field: 0: app: ffa00001 phys ffa00008 flags 2 (1 usages) > unit 0 exp 0<br> Usage: ffa00009 val 0 idx > 0<br> > Waiting for events ... (interrupt to exit)<br> > <br> > Which sort of leaves me using /dev/usb/hid/hiddev0 to talk to my radio, > which is perfectly fine with me, as long as I can figure out how to do > it...<br> <br> > Can you (continue) to help by suggesting an approach? I don't mind > patching the kernel, and I mind using hiddev. All I really need to do > at the moment is to send a control sequence to the radio and read it's > response back. <br> <br> > Thanks for the help so far...<br> > <br> > --Doug<br> > <br> > <pre class="moz-signature" cols="$mailwrapcol">-- > ==================================================================== > Douglas Roberts, D-2 | "There is no reason anyone would > Los Alamos National Laboratory | want a computer in their home." > ^ | -- Ken Olsen, President, Chairman > (505)-667-4569 | and Founder of Digital Equipment > <a class="moz-txt-link-abbreviated" > href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a> | Corp., > 1977 ==================================================================== > </pre> > </body> > </html> - -- http://linux.conf.au. 22-25Jan2003. Perth, Aust. I'm registered. Are you? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9pKzmW6pHgIdAuOMRAs+QAKCYMbJFPg0HXEzDoMck1p+BHU3gngCfbPY7 j5FRwwRbp6wy8s0lA+K3xxs= =jtXV -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel