You need /proc/bus/usb/ mounted (the usbfs filesystem) and you need read-write access to the device nodes (/proc/bus/usb/NNN/NNN). By default the nodes are read-write only be root. On 2.4 kernels you can make them read-write by mounting the filesystem with the mount option "devmode", e.g.: mount -o devmode=666 -t usbfs usbfs /proc/bus/usb
Does that help? On Thu, 15 Jul 2004, Andre Neto wrote: >Hello, > >We are working in a project at about three years, we've always used >RS-232 and the javax.comm API to connect several apparatus to different >computers, but now we've decided to use USB to control the new apparatus. >Since we use Linux and Java, I've decided to use your API, but when I >run one of the example programs available at the CVS root, it can't find >any device attached to the computer (the Virtual Root UsbHub >(getAttachedUsbDevices has size 0 )). I've tried it at work (in RedHat >9-kernel 2.4.20, Gentoo and FC1) and at home (FC2-kernel 2.6.5). Using >the usbview I'm able to see the connected devices. >I've searched a lot in the web, but couldn't find the solution, can you >please give me some hint? I've also tried the examples from the tck. > >Thank you very much! >Best regards, >André Neto > > >------------------------------------------------------- >This SF.Net email is sponsored by BEA Weblogic Workshop >FREE Java Enterprise J2EE developer tools! >Get your free copy of BEA WebLogic Workshop 8.1 today. >http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click >_______________________________________________ >javax-usb-devel mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/javax-usb-devel > -- Dan Streetman [EMAIL PROTECTED] --------------------- 186,272 miles per second: It isn't just a good idea, it's the law! ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idG21&alloc_id040&op=click _______________________________________________ javax-usb-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/javax-usb-devel