Bash, serial I/O and Arduino

后端 未结 10 2343
眼角桃花
眼角桃花 2020-12-23 18:53

So, I\'m in a bit over my head, and I feel like I\'m very close to a solution, but it\'s just not working quite yet. Here\'s my situation:

I\'m working with an Ardui

10条回答
  •  梦毁少年i
    2020-12-23 19:17

    Try using the tool stty:

    stty -F /dev/my_serial_port  cs8 cread clocal
    

    As always, read the manpage before applying the above. cread allows you to receive data. You may want to omit clocal if you are using flow control. If you aren't sure what the above settings are, ask, and I can write up a more complete answer.

提交回复
热议问题