Hi, We're working on an undergraduate senior engineering project, and we're having trouble getting Linux to communicate over USB to the device we're building. We're using a PIC USB development board. It came with a number of sample programs, but all the samples on the host side are for Windows. At the moment, we have the device programmed to send two bytes to the host based on the settings of a pushbutton and a potentiometer on the device. When we cat out the contents of /dev/usb/hiddev0, we see some interesting characters, so we're pretty sure that something is being sent. With the root privledges, we can open this device in a C program, and we can get information about the device using ioctl(), but read(deviceFileDescriptor, &buffer, 2) reads 0 bytes. What's going on here? Is there some other way I should be trying to access this data? I read something to the effect that hiddev is broken in the 2.4 kernel, but we tried running the same program using a 2.6 kernel and it still didn't work.
We also want to work in Java for another aspect of our project, and we downloaded the JDK package from Sun - it appears to be working correctly. We then downloaded the jUSB package and followed the directions in the README file. However, when we get to the "sanity check" part and type "make show" we get the following error: java.io.IOException: USB Host support is unavailable. at usb.core.HostFactory.getHost(HostFactory.java:78) at usb.util.ShowTree.main(ShowTree.java:65) This is on a machine on which USB devices are already working. The site from which we downloaded the jUSB package said the version available was from 2001, but we were unable to use CVS to get a more recent version. Does anyone have any suggestions??? -H&L ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users