I'm automating a configuration process for an embedded board. To enter the setup screen I need to send "Ctrl-C" command.
This is NOT to interrupt a process I'm running locally, KeyboardInterrupt will not work. I need to send a value that will be interpreted by the bootloader as Ctrl-C.
What is the value I need to send?
Thank you
IIRC, Ctrl-C is etx
. Thus send \x03
.
You should send a character with the ASCII code 3:
serial.write('\x03')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With