linux下通过shell命令测试串口

linux思想:万物皆文件

串口在linux中以字符型设备存在,名称一般为/dev/tty*

默认参数一般为9600 8-N-1

发送:echo “hello” > /dev/tty*

接收:cat /dev/tty*

猜你喜欢

转载自www.cnblogs.com/real-bert/p/11743476.html
今日推荐