看板 LinuxDev 關於我們 聯絡資訊
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://www.ptt.cc/bbs/LinuxDev/M.1489580623.A.A29.html
derailed: fd = open(dev_name, O_RDWR | O_NOCTTY | O_NDELAY);? 04/03 13:33