Pages: [1]   Go Down
Author Topic: Usb host shield issues  (Read 1625 times)
0 Members and 1 Guest are viewing this topic.
Palermo
Offline Offline
God Member
*****
Karma: 3
Posts: 766
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How come after a few hours that the shield is on, it does not receive the correct data but only errors (type F0)?

Thank you!
Logged

Gianfranco

Louisville, CO
Offline Offline
Full Member
***
Karma: 2
Posts: 174
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

F0 means receive timeout, i.e., device not sending anything while it should. What happens if you reconnect the device?
Logged

/felis

Palermo
Offline Offline
God Member
*****
Karma: 3
Posts: 766
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I will try tonight! In any case, it works correctly for a few hours, getting a constant stream of data without any error. Then he begins to work in this bad way.

Another problem: when I try to reset by pressing the button on the shield, in the new reboot, I do not receive any data. Only if I remove the external power supply (Vin, 9V), it starts to work properly. Do not use USB power, only external power supply.

I use the Arduino Ethernet shield + Official + SparkFun USB host shield, connected in this way: http://arduino.cc/forum/index.php/topic,51874.0.html
Logged

Gianfranco

Palermo
Offline Offline
God Member
*****
Karma: 3
Posts: 766
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok, I get again FO error (after more or less 2Hrs).

if I  reconnect it, a first time
I get again continuous FO error, and a second time (after a few of seconds)
this error : "Setup packet error: E", and I don't receive
more data (even if the sketch continue to go). The usb
device don't has more the usb status active in his
display (instead it has when usb connection is ok).

then, if I press the reset button, the sketch starts again, but it can't recognize the usb device, so I have to switch off supply power and then switch on. so it starts to function again!

there is a way to simulate the switch off/on of  the power supply?

in my sketch, usb polling starts with
"rcode = Usb.inTransfer( DEVADDR, 1, 8, buf, 1 );  "
Logged

Gianfranco

Pages: [1]   Go Up
Jump to: