Brilliant, it works:) Thanks Dan
On Thu, 2009-02-26 at 10:37 -0500, Dan Streetman wrote: > Please reply to the list, not privately to me. > > If you can't see any devices, then it probably is permissions. If you > are running as a user "tester" you need to give that user permission > to access the /dev/bus/usb/*/* node(s). You can either manually > change the permissions (which won't be kept across reboots/hotplugs) > or you can edit the udev rule(s) which are probably at > /etc/udev/rules.d/ to give permission to your user. > On Thu, Feb 26, 2009 at 10:30 AM, Mihai Popa <[email protected]> wrote: > > Hi Dan, > > > > thank you for the quick response. > > I've used javax-usb_1.0.2.zip, > > javax-usb-ri_1.0.2.zip > > > > I forgot to mention there is no exception or anything, > > and the device does work, it sends back the code that > > I'm scanning; the detection doesn't work. > > I've put some debug code in the my recursive getDevice() > > code and the productId and vendorIds are always -1. > > So it does detect some usb devices, but device descriptor > > for each of them return the values as descrived above. > > I have a suspicion it might be related to the permissions. > > The application runs as user "tester", which might not give > > the right permissions to the lib. > > > > > > > > -- > > mihai > > > > > > On Thu, 2009-02-26 at 09:13 -0500, Dan Streetman wrote: > >> Do you see any devices at all in Ubuntu 8.04? Also what code level > >> (specifically javax-usb-ri-linux) are you using? CVS or release > >> package? > >> > >> On Thu, Feb 26, 2009 at 1:55 AM, Mihai Popa <[email protected]> wrote: > >> > Hi, > >> > > >> > I've written a simple program in java that connects to > >> > a bar code reader. In order to find out if the > >> > device is attached or not, I've implemented a > >> > USBServicesListener; > >> > All is good in FC8, my usbDeviceAttached and > >> > usbDeviceDetached methods get called. > >> > > >> > The problem is when I run the same code in Ubuntu 8.04, > >> > on a Dell Mini9, the events never get triggered. > >> > Any ideas where I should look ? > >> > > >> > > >> > thank you > >> > mihai > >> > > >> > > >> > > >> > ------------------------------------------------------------------------------ > >> > Open Source Business Conference (OSBC), March 24-25, 2009, San > >> > Francisco, CA > >> > -OSBC tackles the biggest issue in open source: Open Sourcing the > >> > Enterprise > >> > -Strategies to boost innovation and cut costs with open source > >> > participation > >> > -Receive a $600 discount off the registration fee with the source code: > >> > SFAD > >> > http://p.sf.net/sfu/XcvMzF8H > >> > _______________________________________________ > >> > javax-usb-devel mailing list > >> > [email protected] > >> > https://lists.sourceforge.net/lists/listinfo/javax-usb-devel > >> > > > -- > > Mihai Popa <[email protected]> > > Lattica, Inc. > > > > -- Mihai Popa <[email protected]> Lattica, Inc. ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ javax-usb-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
