Hello there !
I have build a ps2 keyboard to serial ascii converter with a Nano so I can use these keyboards with my old computers.
This is working well but I need a function to send a 'break' to the serial line. I choose the Pause/Attn key to initiate this function.
At this moment I have do that :
Serial.begin(300, SERIAL_7N2); // Set slow baud rate
Serial.begin(1200, SERIAL_7N2): // Restore normal baud rate
With the lower speed null char is interpreted as a break.
This give a break to the host computer but I noticed two problems.
After the break the Arduino UART is more or or less crazy and I have to reboot the Nano to get it working well again...
Also the successive Serial.end. Serial begin etc... seems to cause swing on the TX line and this is badly interpreted as a character (ascii code 120 decimal) by the host computer.
I search a clean solution to do that.
Many thanks for help and suggestions.