1.使用串口调试工具 cutecom
sudo apt install -y cutecom
sudo cutecom
2.使用cat指令
# 查看串口信息
dmesg | grep tty
# 查看串口波特率
stty -F /dev/ttyS0 speed
# 设置串口信息
stty -F /dev/ttyS0 9600 cs8 -cstopb -parenb
# 向串口发送文件内容
cat 1.txt > /dev/ttyS0
博思德打印机串口调试指令 1.txt 注意空格
N
ZB
OD
H20
Q100
q100
W1