Tim Snape wrote: > > Using RH7.1 kernel 2.4.2 and trying to communicate with a non standard HID > device (scientific measuring instrument). > > The device hotplugs ok and I can see it in /proc/dev/usb. What I need to do > is communicate with it in 'C' using low level ioctl and read/writes. > > Does anyone have an example of how to do this with a USB device, or point me > at some documentation that would help. Depends on what you want to do. If you want to work at the HID level, try the raw hiddev interface. http://athome.wetlogic.net:8008/hiddev/ has a simple example (a UPS) and documentation. There is similar code in current versions of NUT (http://www.exploits.org/nut). There is a copy of essentially identical documentation in the Documentation/usb directory in a current kernel tree.
If you want to work at the USB level, libusb is probably your friend. jusb is probably good if you grok Java - I don't, so I'm not sure. The author seems to like it though :) Both those project are on sourceforge, and have examples. If you can describe what you are trying to do in a bit more detail, we might be able to help further. Brad _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
