Hi!
I'm trying to communicate between two Arduino Duemilanove using the built in Serial class, and the TX RX (0 and 1) pins.
Yes, Baud rates match, and its the good old default 9600
Yes, TX is connected against RX on the other board and vice versa.
No, they don't have their ground pins connected, but they are powered from the same line, so they should have a common ground anyway.
Yes, the USB cabel to the CP is always removed when trying the board-board communication.
The point is that 1 board is a slave, controlling multiple motors, and reading back, and count their encoder signal, while the other board (master) reads multiple sensors, and sends serial messages (single bytes) to order the slave to turn motors accordingly to the per-defined byte command.
The master and slave codes are unnecessary, both is tested with the PC, and operate nearly as expected. The point is I use Serial.begin(9600); and Serial.available(), Serial.read, Serial.write. The only unexpected behavior is that when the arduino is powered, it does not start the expected transmitting (serial leds don't flash) until a suitable program on the computer don't start to listen on the given port.
I tried connecting the two arduinos with home made printer-printer cable (a cable with plug on both ends that goes into this arduino), and with connecting pins 0 and 1 (TX, RX). None did work. The serial leds stay dark, and no communication occurs.
My sniffer says that there might me some king of built in handshake that must be done, and the PC does it automatically before communication happens, or it may be due both arduinos keep resetting their selves from the communication opening, but I doubt that.
Anyway, I can't find out, nor solve this on my own. Any suggestions?