Go Down

Topic: Serial communication stops after long periods. (Read 3 times) previous topic - next topic

Twinsen


Please describe the PC side program.


The PC side program is not the problem.
I have this issue when using putty to connect to the com port, and even when no application are connected to the com port. At some point, when using the remote control, the FT232RL "TX" LED no longer lights up.

Now I'm running zoomkat's code. I'll see how it behaves. It's hard to do extensive testing, because many times it takes up to 4 hours for the problem to happen.

Twinsen

#6
Nov 05, 2011, 05:09 pm Last Edit: Nov 05, 2011, 05:12 pm by Twinsen Reason: 1
oook...
I was testing serial communication with the simple code from zoomkat, and I found what was causing this: the refrigerator... that's right, the refrigerator...

This might seem like a bad joke, but I replicated this 4 times today and I didn't believe it either. Every single time the refrigerator turns off, the serial connection just breaks.

The only connections is that the computer and the refrigerator is plugged in the same wall socket.
Being an old fridge, I'm guessing an electric impulse is sent through the wall socket, through the power supply, and somehow messes up the USB port.

Still looks like a driver problem to me. The driver does not behave correctly when it gets interference through the USB cable.

Any other ideas? Any way to fix this? This shouldn't be happening obviously, since all other things plugged in the USB ports and all of the computer components work perfectly.

dxtinct

Hi i have the same problem.

I see this is only related to arduino uno, as my program is working already for aprox 5 days on arduino duemilanove.

The problem is that i'm building an Andon sistem , and i print on serial the production line status, as messages like, "x" , "a", "f" and i need this messages to always be recieved.
I manage to reset the Arduino Uno Board with watchdog timer, and to trigger an wtd_reset every let's say 1 hour, but the fact all the program variables initialize to 0 this also not quite the solution in my case.
Anyone having other ideas ?

I really feel that the milis() counter gets too big and then the board stucks somehow, but i can't understand why Arduino uno hanges after some random hours amount compared to Arduino Duemilanove.

I also have almost 10 Arduin uno's that I would like to use.

Thank you.

sbright33

I had a similar problem.  The TX light stops blinking.  The Sketch continues to run, but the PC doesn't see the data.  It has something to do with the USB chip on the Uno.  When you run the same sketch on a Pro mini using only 1 wire connected to the serial TX, obviously an LED will still blink if you connect one.  You can read this data with serial TTL to USB converter.  I'm not saying the USB chip is defective or stops on it's own.  It's reacting to something on the PC.  Perhaps closing the PC port inadvertently.  I'm going to say something obvious here:  Something is changing on the PC causing this to happen after a few hours.  You can prove this by disconnecting the USB cable, then restarting the sketch without it.

A power surge from the refrigerator could effect the USB chip without resetting the 328?
If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

Nikarus


oook...
I was testing serial communication with the simple code from zoomkat, and I found what was causing this: the refrigerator... that's right, the refrigerator...

This might seem like a bad joke, but I replicated this 4 times today and I didn't believe it either. Every single time the refrigerator turns off, the serial connection just breaks.

The only connections is that the computer and the refrigerator is plugged in the same wall socket.
Being an old fridge, I'm guessing an electric impulse is sent through the wall socket, through the power supply, and somehow messes up the USB port.

Still looks like a driver problem to me. The driver does not behave correctly when it gets interference through the USB cable.

Any other ideas? Any way to fix this? This shouldn't be happening obviously, since all other things plugged in the USB ports and all of the computer components work perfectly.


Actually it might completly be the fridge. I recall a couple months ago a person was having some trouble with a machine that would monitor the temperature of some beer storage I think, and then use that to control when to turn on the refridgeration. But it kept breaking down because they eventually found out the fridge was causing the problem. Try connecting the fridge into a socket a little farther away and running it. Honestly thats what the other guy ended up doing to fix it. I'll find that forum a little later and link it to you if you don't believe me.

Go Up