Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Default configuration:
- ```
- $ stty -F /dev/ttyACM0 --all
- 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 = 1; 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
- ```
- Set known working config: `stty -F /dev/ttyACM0 115200 -echo -icanon -onlcr -icrnl`
- After config:
- ```
- $ stty -F /dev/ttyACM0 --all
- speed 115200 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 = 1; 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
- ```
- As configured by scopehal:
- ```
- $ stty -F /dev/ttyACM0
- speed 0 baud; line = 0;
- ignbrk -brkint -icrnl -imaxbel
- -opost -onlcr
- ```
- ```
- $ stty -F /dev/ttyACM0 --all
- speed 0 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 = 1; 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
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement