On Wed, 11 Jan 2006, Elliotte Harold wrote:

>Dan Streetman wrote:
>
>> However there are a large number of other USB exceptions, PID, CRC, 
>> Babble, BitStuff, Stall, etc.  Basically whenever you send/receieve data 
>> over the USB bus, any of the errors defined in the USB spec can happen.  
>> Additionally, the OS may encounter a non-specific error and throw a 
>> UsbPlatformException.
>
>
>I've now encountered several of these myself. However, in every single 
>case I've seen so far, each one has been an indication of a bug in my 
>program, not an unexpected problem with a device. Thus I would have 
>expected these to be runtime exceptions. Is there any way a condition on 
>the bus outside the control of my program might cause one of these 
>exceptions?

All the bus errors indicate a problem on the bus (not in your program).  
There is no way to programatically induce any of the bus errors (bitstuff, 
babble, crc, etc.).  You _can_ induce a stall, as that is used loosely in 
the spec to (possibly) mean whatever command you sent is unsupported.  It 
also has other meanings.  Anyway there are plenty of bus errors that are 
possible.

-- 
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

Reply via email to