I've search through the list archives and the web but still haven't been able to find a suitable example for what I need to do. Douglas Roberts had sort of the same problem as myself last year but never seemed to get it sorted either. All the examples I've seen so far only write input_event structures to the device which don't allow you to send an array of unsigned char's. What I'm doing is opening the device querying it for it's report id (ioctl) and then writing to the device (write). Is this the correct procedure? Could someone please post a short example of writing an unsigned char array to a device.
Cheers McGiv -----Original Message----- From: Charles Lepple [mailto:[EMAIL PROTECTED] Sent: 18 July 2003 15:10 To: McGivern, Damien Cc: [EMAIL PROTECTED] Subject: Re: [linux-usb-devel] Simple write/read example McGivern, Damien said: > Could someone please point me to or > post an example of how to write custom commands to a HID device > please. You might want to check the list archives for discussion about SET_REPORT (which it seems like you want to use) because it was only recently fixed in 2.4. apcupsd (an APC UPS daemon) uses HID SET_REPORT functionality to tell the UPS to shut down. HTH, -- Charles Lepple <[EMAIL PROTECTED]> http://www.ghz.cc/charles/ ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
