On Thu, 22 Dec 2005, Elliotte Harold wrote: >The UsbDevice Interface declares these three methods: > >public String getSerialNumberString() throws UsbException, >UnsupportedEncodingException, UsbDisconnectedException >public String getManufacturerString() throws UsbException, >UnsupportedEncodingException, UsbDisconnectedException >public String getProductString() throws UsbException, >UnsupportedEncodingException, UsbDisconnectedException > >All three say that a UsbException might be thrown "If there was an error >getting the UsbStringDescriptor." Could someone elaborate on that >please? What sort of error might you encounter here?
To get a String Descriptor you have to talk to the device, and anytime you actually talk to a device you can get an exception (see the sync/async Submit methods). >Is this common? For >instance, might a device that only draws power from a USB port (e.g. a >lamp) not respond to any method calls and thus cause this error? or >would it not be recognized as a USB device in the first place? If it can't talk USB then it won't appear, since it obviously wouldn't be able to complete the device enumeration process ;-) -- 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: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ javax-usb-devel mailing list javax-usb-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/javax-usb-devel