最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Serialuart configuration on RPi 4 - Stack Overflow

programmeradmin2浏览0评论

Quick question I'm recovering from breakdown on my RPi 4. Old RPi was scrapped and copying all setup on new RPi. Unfortunatelly setap which use to work now does not respond. I have noticed settings of my serial0 vary depending on command I'm giving. What may be reason baudrate with stty command is 9600 (correct) and sudo stty gives baud 38400 (too high)? Need to mention cmdline.txt include line console=serial0,9600 console=tty1.

a@RPi:~ $ stty</dev/serial0
speed 9600 baud; line = 0;
min = 0; time = 0;
-brkint -icrnl -imaxbel iutf8
-opost -onlcr
-isig -icanon -iexten -echo -echoe -echok -echoctl -echoke
a@RPi:~ $ sudo stty</dev/serial0
speed 38400 baud; line = 0;
-brkint -imaxbel
a@RPi:~ $ 
发布评论

评论列表(0)

  1. 暂无评论