range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn
80
www.xunlong.tv
3) Then modify the serial device node name opened by the serial test program serialTest
in wiringOP to /dev/ttyS1
root@orangepir1plus:~/wiringOP/examples# vim serialTest.c
4) Recompile the serial test program serialTest in wiringOP
root@orangepir1plus:~/wiringOP/examples# make serialTest
[CC] serialTest.c
[link]
root@orangepir1plus:~/wiringOP/examples#
5) Finally run serialTest, if you can see the following print, it means that the serial
communication is normal
root@orangepir1plus:~/wiringOP/examples# ./serialTest
Out: 0: -> 0
Out: 1: -> 1
Out: 2: -> 2
Out: 3: -> 3
Out: 4: -> 4
Out: 5: -> 5
Out: 6: -> 6
Out: 7: -> 7
Out: 8: -> 8^C