Hello!
I'm currently running into a problem i can't seem to find the answer for :
-i'm running a python program communicating via serial with the arduino and sending and recieving data at a rate of about once every 30 seconds : after around 30-45 minutes, i can't get or send data via serial anymore (but the part running independently from serial input is still running )
Now i wonder : could this be related to an arduino sleep mode or am i missing something ?
If it is the case is there any way to disable the arduino sleeping completely ?
I might try the method of "waking up via UART " in the end but for testing purposes it would be great if i could disable it completely.
I'm running Ubuntu 8.04 and you seem to be completely right about this: after reading up a bit on the sleep mode and finding nothing conclusive i checked my software's logs and then the system logs and found this at the exact time the serial failed:
hub 1-0:1.0: port 3 disabled by hub (EMI?), re-enabling...
After digging around i found people with similar problems:
This happens under heavy I/O + network traffic
This is no good , it seems to be a kernel problem : well i guess i will have to find a workaround for this!
Glad it helped. By the way, I am running Ubuntu 9.10 and I haven't had any issues with it (neither did I have any problems with 9.04), probably it's time to upgrade?