How-to-simply...

Send F10 key to picocom over TTY serial console

  • 1 F10 key:
    echo -e "\e[21~" > /dev/ttyUSB0
  • 2 Press 'Y':
    echo -e "Y" > /dev/ttyUSB0
  • 3 Cursor Up: "\e[A"
    Cursor Left: "\e[D"
    Cursor Down: "\e[B"
    Cursor Right: "\e[C"
    F1: "\e[11~"
    F2: "\e[12~"
  • 4 Enter (new line):
    echo -en "\n" > /dev/ttyUSB0
  • 5 Escape:
    echo -en "\e" /dev/ttyUSB0
  • N sudo picocom --quiet --baud 115200 --parity n --stopbits 1 /dev/ttyUSB0 -l
    Raspberry:
    --------
    01 oo 5V|
    3V oo 5V|
    05 oo GND <--- Black
    07 oo TXD <--- White -- GPIO 14
    09 oo RXD <--- Green -- GPIO 15
    11 oo 12|
    13 oo GND
    15 oo 16|
    3V oo 18|
    19 oo GND

References