Seems my usbfs was mounted without write permissions. I remounted 0666 and it seems to work now.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of David Hooker Sent: Monday, July 16, 2007 12:16 PM To: 'Dan Streetman' Cc: javax-usb-devel@lists.sourceforge.net Subject: Re: [javax-usb-devel] Help - javax-usb very slow No, my code only creates one thread, which sleeps 10 seconds then attempts to send a packet to a USB device. My code before that looks like this: inEndpoint = DeviceManager.getInstance().getInEndpoint("3053/4352"); outEndpoint = DeviceManager.getInstance().getOutEndpoint("3053/4352"); inEndpoint.getUsbInterface().claim(); inPipe = inEndpoint.getUsbPipe(); inPipe.open(); inPipe.addUsbPipeListener(this); outPipe = outEndpoint.getUsbPipe(); outPipe.open(); The "DeviceManager" is a class I wrote which recursively goes through the USB hierarchy of hub/devices, creating a hashmap of product/vendor ids to configured endpoints. Oh, and it prints out the entire tree and descriptors for everything. Once the pipes are open, I see in the debugger a number of threads, all with names which appear to be set within the javax-usb library. I'd post those names, but now, for some reason, my searching for usb devices can't find any: Initializing usb services Getting root hub Root hub: javax.usb OS-independent Reference Implementation Virtual Root UsbHub has 1 ports. Finding USB devices... Attached devices: 0 I don't know why it can no longer find ANY USB devices. I did download and compile the "libusb" library, and ran the tests associated with it - and it finds all of the USB devices just fine. I rebooted, thinking that it somehow masked them from the javax-usb library, but even after a reboot the java code can't see anything. I didn't "install" the library - just compiled it and ran the tests. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dan Streetman Sent: Monday, July 16, 2007 11:22 AM To: [EMAIL PROTECTED] Cc: javax-usb-devel@lists.sourceforge.net Subject: Re: [javax-usb-devel] Help - javax-usb very slow Maybe if you posted your code we could help more. Your description is pretty vague, especially of what you are doing when the problem happens. Maybe your code is creating all the threads? On 7/15/07, David Hooker <[EMAIL PROTECTED]> wrote: > > So, I spent all day downloading the javax.usb packages, compiling them... > then writing code to use them. Now, when I run my program, the machine > grinds to a halt! Here's all that I've learned, and if someone could tell me > what's going on that would be fantastic! > > Latest released javax.usb code (1.0.1), compiled today on this machine. > > OS: Linux localhost.localdomain 2.6.9-1.667 #1 Thu Aug 11 16:18:41 CDT 2005 > i686 athlon i386 GNU/Linux > (Fedora Core 3 - I think) > > gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3) > > java version "1.5.0" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64) > Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode) > > So... my code simply goes through the usb topology, recursively printing out > all the information for all the objects it sees. That works fine. When it > sees a UsbInterface that is configured/active, it gets the in/out > UsbEndpoints and puts them in Hashtables, with the devices vendor/product ids > (concatenated to a string) as the key. That way, I can just ask the > hashtable for the "in" endpoint for device "123/456". Which works. Once it > does that, it get's a particular device, claims the interface, get's the > output pipe, and sends a string. Then it quits. > > What seems to happen is that once I've walked through the device tree, the > whole computer slows to a crawl until the program ends. Hooking up a remote > debugger (Eclipse) shows a bunch of threads fired up... and the debugger even > has trouble getting the jvm to respond because the machine is so hosed. > > I tried fiddling with the settings in javax.usb.properties - setting the > polling to true, then false, chaning the poll time... nothing affects this > weird behvior. JNI tracing doesn't seem to do anything, either. (I've > searched my whole machine for any conflicting libraries, jar files, and > property files - it's clean). > > Any ideas??? > > Thanks in advance!!! > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > javax-usb-devel mailing list > javax-usb-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/javax-usb-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ javax-usb-devel mailing list javax-usb-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/javax-usb-devel ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ javax-usb-devel mailing list javax-usb-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/javax-usb-devel