Pages: [1]   Go Down
Author Topic: Mega 2560 - serial communication problem  (Read 6008 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 1
Posts: 32
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If Arduino scetch on Mega includes serial.begin(XXXX) -line, the program hangs easily.

If some data is sent to serial port right after opening it on PC, Arduino program hangs.
But if the port is opened, some wait delay applied and then data sending started. Program works nicely.
So Mega needs some time to get back on track after port is opened from computer side. In other case scetch will hang/crash.

Same phenomenon doesn't occur on Duemilanove.

This same topic is discussed on my Project related thread**, but I decided to post this also here since it seems to be a low level problem.

**http://arduino.cc/forum/index.php/topic,50151.0.html
Logged

0
Offline Offline
Newbie
*
Karma: 1
Posts: 32
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This one is solved in the other thread. See the link above
or
http://arduino.cc/forum/index.php/topic,50151.0.html
Logged

Pages: [1]   Go Up
Jump to: