1
0
Fork 0

Fix serial port setup

With a complete and correct setting. The old setup relied on settings
made before.
This commit is contained in:
J. Elfring (p) 2019-09-02 12:21:14 +02:00
parent cf24866498
commit d9814ec1a2

View file

@ -4,7 +4,13 @@ port=/dev/ttyUSB0
cmdfile=~/annunciatorServer.txt
## Setup serial port
stty -F $port ispeed 9600 ospeed 9600 -ignpar cs8 -cstopb -hupcl
## speed 9600 baud; rows 0; columns 0; line = 0;
## intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O; min = 0; time = 0;
## -parenb -parodd -cmspar cs8 -hupcl -cstopb cread clocal -crtscts
## -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany -imaxbel -iutf8
## -opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
## -isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop -echoprt -echoctl -echoke -flusho -extproc
stty -F $port 0:4:8bd:0:3:1c:7f:15:4:0:0:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0
## Setup files
touch $cmdfile