Additional observation.


If I keep adding devices to the bus, then n-1 devices show up in the tree view. My original report below was for the case where I have a single hub and am plugging a single device in and out.

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

Reply via email to