Browsing index pages (2 articles)
↧
Interpreting serial data via bash
I am trying to write a bash script that is able to interpreter data coming from a serial device. I configure the port in raw and then I am able to do a simple cat of /dev/ttyUSB0 and see the data. My...
View ArticleAnswer by icarus for Interpreting serial data via bash
Untested! #!/bin/bash ETX=$'\003' STX=$'\002' # Open /dev/ttyUSB0 open on FD9 exec 9< /dev/ttyUSB0 # do any stty stuff needed on fd9 # e.g. # stty 9600 < /proc/self/fd/9 > /proc/self/fd/9 #...
View Article
Browsing index pages (2 articles)