請參考此篇文章 Use Serial Port To Remote Control
使用cu command
cu -l /dev/device -s baud-rate-speed
# cu -l /dev/ttyS0 -s 57600
若出現
cu: open (/dev/ttyS0): Permission denied
cu: /dev/ttyS0: Line in use
請打下列指令確認權限
# ls -la /dev/ttyUSB0
# chmod 666 /dev/ttyUSB0
ref:https://superuser.com/questions/794309/linux-tells-me-a-serial-port-is-in-use-but-it-isnt/1155172
https://www.cyberciti.biz/hardware/5-linux-unix-commands-for-connecting-to-the-serial-console/