doh, looks like the kernel is notifying us that a new device is connected before it's present in the devnode topology was actually there...something must have changed in the 2.4.32 pre-series. I added a 1 second delay to be safe, altho it seems just a couple ms is enough, at least for an unloaded system. try the code from CVS and see if that works.
On Sat, 25 Oct 2003, Aaron Metzger wrote: > >When I launch the UsbView tool, it correctly displays all of my USB >devices in the tree view. If I unplug a device, the topology update >logic correctly removes the device from the tree view. > >If I then plug that device back in, the tree view is *not* updated to >show the new device. > >A toplogy change event is fired. > >The nativeTopologyUpdater logic is executed but the "connectedDevices" >list is returned with a size of zero. Therefore, the >usbDeviceAttached() method of the UsbServicesListener is never invoked. > >No errors are reported. > >I poked around in the native code of >"Java_com_ibm_jusb_os_linux_JavaxUsb_nativeTopologyUpdater" and >"build_device" but couldn't quickly determine why the >"connectedDevices" list was not updated. > >Ideas? > >If you have any suggestions of where to put debug code, I'd be happy >to dig in deeper. > >-- >Aaron > > > > > > > > >------------------------------------------------------- >This SF.net email is sponsored by: The SF.net Donation Program. >Do you like what SourceForge.net is doing for the Open >Source Community? Make a contribution, and help us add new >features and functionality. Click here: http://sourceforge.net/donate/ >_______________________________________________ >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: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ javax-usb-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/javax-usb-devel