作者yshihyu (yshihyu)
看板LinuxDev
标题[问题] serial 导向问题
时间Wed Mar 15 20:23:39 2017
https://gist.github.com/anonymous/dcb1765e005110cab52cfa571ac2ddf7
上面程式是码 hello world 字串导向 /dev/ttyS0
sudo ./test_uart ttyS0
我开cutecom 跟 minicom 想收hello world 字串但都收不到
baud rate 两边都是115200
可是我导向某个终端机
sudo ./test_uart pts/22 可以收到 hello world 字串
不明白为什麽 ttyS0 收不到字串
谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 175.181.157.189
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/LinuxDev/M.1489580623.A.A29.html
1F:→ derailed: fd = open(dev_name, O_RDWR | O_NOCTTY | O_NDELAY);? 04/03 13:33