Hi,Can you tell us your electronics, programming, Arduino, hardware experience?Thanks.. Tom..
An optional second argument configures the data, parity, and stop bits. The default is 8 data bits, no parity, one stop bit.SyntaxSerial.begin(speed)Serial.begin(speed, config)
Parametersspeed: in bits per second (baud) - longconfig: sets data, parity, and stop bits. Valid values are : SERIAL_5N1 SERIAL_6N1 SERIAL_7N1 SERIAL_8N1 (the default) SERIAL_5N2 SERIAL_6N2 SERIAL_7N2 SERIAL_8N2 SERIAL_5E1 SERIAL_6E1 SERIAL_7E1 SERIAL_8E1 SERIAL_5E2 SERIAL_6E2 SERIAL_7E2 SERIAL_8E2 SERIAL_5O1 SERIAL_6O1 SERIAL_7O1 SERIAL_8O1 SERIAL_5O2 SERIAL_6O2 SERIAL_7O2 SERIAL_8O2
Serial can also send a parity bit that is made 1 or zero in order that all the 1 bits add to an even or odd number.That is one built-in error check.You may not need to go that far. If you only expect certain characters (alphas, digits) then get anything else is error.
all are giving me good ideas how to check errors but nothing how to obtain that string again if the error occurred