Re: urb->status -EOVERFLOW

"Alain Degreffe" <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <040001c7cc80$d1437e10$73ca7a30$@com>
Yes I know.

In fact the device respond CMDERROR  wich is more thant one byte
The command was just a simple RXCMD followed by a bulk_read 1 byte len, but
instead of giving a number between 0 and 255, The device send this string.
this mean that my command rxcdm is not supported by the device ( This
happens after some time... ) That's why I suspect and I think that the
polling spped is not well supported by the device...

The sequence is normally:

1. sending RXCMD
2. receiving 1 byte that give the len of data in the device buffer
If 2 = 0 back to step 1.
3. receiving data with len = value from step 2
4. back to step 1

My problem happens suddenly at step 2 after some time ... (This sequence is
well supported during 10 to 60 seconds by fails after that...)

So I repeat the question, may I slow down the polling ?

Alain



-----Message d'origine-----
De : [email protected]
[mailto:[email protected]] De la part de Alan
Stern
Envoyé : dimanche 22 juillet 2007 18:02
À : Alain Degreffe
Cc : [email protected]
Objet : Re: [linux-usb-devel] urb->status -EOVERFLOW

On Sun, 22 Jul 2007, Alain Degreffe wrote:

> Hi,
> 
> After a big rewriting of iuu_phoenix, I have the following problem.
> The polling is well working with callback mechanism but only during 30
> seconds maximum.
> After sometime, The read_bulk_callback give me an urb-status EOVERFLOW...
> Is the polling running to faster than the device can support ? Is there a
> way to slow down the polling ?
> The only way to recover is to reset the device ( usb_reset_device )

EOVERFLOW has nothing to do with the speed of polling.  It means that 
the device is sending more data than urb->transfer_buffer_length.

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.