H anyone
I am using a mega 2560...1 serial port to a GPRS shield, 1 serial port to an RS232 device, 1 port to an attached monitoring PC. All at 9600 baud.
i set up a session with an TCP server (with a public IP address) via the GPRS shield. i wrote the server code as well.
i then enter into a dialog between the server and the RS232 device with the arduino acting as a go between.
Sending is via serial1.write() or serial2.write() or serial.write(byte) ie i'm sending 1 byte at a time so as not to overload the serial driver....i found that if i use serial.write(buffer,count) strange things happened....like bytes got dropped.
All works for a number of legs, and then all of a sudden the data that comes through at the server end is garbage.
It is as if the pin state set by the serial handler is not the state the GPRS shield is reading.
Also, the shield has its Rx & Tx pins sitting in pins 5 & 6 on the arduino shield AND i also have connections from those pins to pins 16 & 17......could that cause interference?
where can one start focusing on such an issue?
thanks in advance...