Hi all,
Please help me..
I have to devices that send string output by serial. One is fixed 1200,7,O,1 setting and another one is 1200,8,N,1. I have a Max232 serial converter connected to UNO. I can read output from second device (1200,8,N,1), and got unreadable from 1200,7,O,1 device. But It can be read by PC using hyperterminal.
1200,7,O,1 device ==> MAX232 ==> UNO = Unreadable string
1200,7,O,1 device ==> MAX232 ==> PC = Readable string
1200,8,N,1 device ==> MAX232 ==> UNO = Readable string
1200,8,N,1 device ==> MAX232 ==> PC = Readable string
Arduoino Code :
Serial.begin(1200, SERIAL_7O1); //for 1200,7,O,1 device
//Serial.begin(1200); //for 1200,8,N,1 device
if (Serial.available()) {
String vChar = "";
char inByte = Serial.read();
vChar = String(inByte);
Serial.println(vChar );
}
I'm looking forward to read your advices.
Thank you