I'm working with a custom 2560 board using multiple serial ports to communicate with 2 PCs (one for debugging only) and a Leonardo at 9600 baud.
My problem is that the 2560 freezes when I use multiple serials at once a lot. It then stops reacting to any means of communication until it is reseted. After I took the debugging PC out of the equation by disabling that serial connection and programmed the other PC to wait for an "ok" message after it sent a message before it sends another, I pretty much had this problem fixed, but sometimes it still happens.
Here are some questions I was asking myself. Any help would be appreciated!
Is this a known problem? Could it be that the Serial library is based on interrupts and that the chip gets stuck in one of those interrupt routines when receiving messages on multiple ports at once? I am using the TimerOne library. Could that interfere with above business? Would it make sense to close the other serial ports while communicating on one?
Thanks for listening! ff