查看串口是否可用,可以对串口发送数据比如对com1口,echo helloworld >/dev/ttyS0
[root@H3LINUX90 ~]# echo helloworld >/dev/ttyS0 [root@H3LINUX90 ~]#
串口端显示:
[root@H3LINUX90 ~]# helloworld
查看串口中断:
[root@H3LINUX90 ~]# cat /proc/interrupts | grep serial 4: 7716 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-IO-APIC-edge serial [root@H3LINUX90 ~]# [root@H3LINUX90 ~]# [root@H3LINUX90 ~]# cat /proc/interrupts | grep serial 4: 7778 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-IO-APIC-edge serial [root@H3LINUX90 ~]#