source-code-examples
source-code-examples copied to clipboard
basic_example: set the baud rate to a standard value
I'm using socat, and the man page said to do socat -hh |grep ' b[1-9]'
to get all possible speeds, which is 30, none of them worked. Other posts claim it is 74880 baud, instead set a standard computer value. If nothing else this way the source code tells the user what to expect.
socat -,echo=0,icanon=0 /dev/ttyUSB0,raw,echo=0,b115200,crnl
the value that worked for me was 38400