Unfortunately you have to have read/write access even to read the device info topology. Is that what you are talking about?
On Dec 13, 2007 5:46 PM, <[EMAIL PROTECTED]> wrote: > > Platform: > - Red Hat Linux, kernel 2.6.15.7 > > Java JDK: > 1.6.0_03 > > Javax.usb version: > 1.0.1 > > I got everything set up so that I have the three jars in > /usr/<jdk>/jre/lib/ext > > - jsr80.jar > - jsr80_ri.jar > - jsr80_linux.jar > > Native libraries in /usr/lib > > - libJavax.so > > I am running from NetBeans 5.5.1 > > I am running the example program from the "javax-usrb-example_1.0.0.zip" > set. The example app is "FindUsbDevice.java" > > When I run "cat /proc/bus/usb/devices" I see the following (sorry for the > chunck of data below): > > > T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 > > B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 > > D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 > > P: Vendor=0000 ProdID=0000 Rev= 2.06 > > S: Manufacturer=Linux 2.6.15.7-gemOS-v009 uhci_hcd > > S: Product=UHCI Host Controller > > S: SerialNumber=0000:00:1d.3 > > C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA > > I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub > > E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms > > T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 > > B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 > > D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 > > P: Vendor=0000 ProdID=0000 Rev= 2.06 > > S: Manufacturer=Linux 2.6.15.7-gemOS-v009 uhci_hcd > > S: Product=UHCI Host Controller > > S: SerialNumber=0000:00:1d.2 > > C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA > > I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub > > E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms > > T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 > > B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 > > D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 > > P: Vendor=0000 ProdID=0000 Rev= 2.06 > > S: Manufacturer=Linux 2.6.15.7-gemOS-v009 uhci_hcd > > S: Product=UHCI Host Controller > > S: SerialNumber=0000:00:1d.1 > > C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA > > I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub > > E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms > > ################################################ > > # my comment - Here is device I plugged into my computer > > # but is not recognized by javax.usb > > # The manufacturer is NDI > > ################################################ > > T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=12 MxCh= 0 > > D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 > > P: Vendor=0403 ProdID=da71 Rev= 4.00 > > S: Manufacturer=NDI > > S: Product=NDI Polaris Spectra SCU > > C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 40mA > > I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=ftdi_sio > > E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms > > E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms > > T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 > > B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 > > D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 > > P: Vendor=0000 ProdID=0000 Rev= 2.06 > > S: Manufacturer=Linux 2.6.15.7-gemOS-v009 uhci_hcd > > S: Product=UHCI Host Controller > > S: SerialNumber=0000:00:1d.0 > > C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA > > I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub > > E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms > > > > ################################################ > > # my comment - Here is what the FindUsbDevice.java reports > > ################################################ > > Found 1 devices total. > > Found 1 devices with vendor ID 0xffff product ID 0xffff > > Found 1 devices with device class 0x09 > > Found 0 devices with manufacturer string "This probably won't match > anything" > > I read that part of the necessary Linux setup is to ensure that I have > permissions for the usb file system (usbfs). Currently, my machine reports > that it only has "root" privileges. I understand that I need to do this if > I want to "claim" a device and communicate with it, etc. However, for this > test case I thought this example program should work because it is only > doing a query on the bus topology and reporting what it found. So, I > figured it woud show, not only the "root" hub as the program is doing > (although the vendor and product IDs don't match what was reported by > /proc/bus/usb/devices), but also the the device I plugged in. > > Any suggestions would be appreciated. > > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > javax-usb-devel mailing list > javax-usb-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/javax-usb-devel > > ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ javax-usb-devel mailing list javax-usb-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/javax-usb-devel