Advertisement
Guest User

Untitled

a guest
Jan 7th, 2025
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Smarty 2.21 KB | None | 0 0
  1. Default configuration:
  2. ```
  3. $ stty -F /dev/ttyACM0 --all
  4. speed 9600 baud; rows 0; columns 0; line = 0;
  5. 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;
  6. min = 1; time = 0;
  7. -parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal -crtscts
  8. -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel -iutf8
  9. opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
  10. isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke -flusho -extproc
  11. ```
  12.  
  13. Set known working config: `stty -F /dev/ttyACM0 115200 -echo -icanon -onlcr -icrnl`
  14.  
  15. After config:
  16. ```
  17. $ stty -F /dev/ttyACM0 --all
  18. speed 115200 baud; rows 0; columns 0; line = 0;
  19. 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;
  20. min = 1; time = 0;
  21. -parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal -crtscts
  22. -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl ixon -ixoff -iuclc -ixany -imaxbel -iutf8
  23. opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
  24. isig -icanon iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke -flusho -extproc
  25. ```
  26.  
  27. As configured by scopehal:
  28.  
  29. ```
  30. $ stty -F /dev/ttyACM0
  31. speed 0 baud; line = 0;
  32. ignbrk -brkint -icrnl -imaxbel
  33. -opost -onlcr
  34. ```
  35.  
  36. ```
  37. $ stty -F /dev/ttyACM0 --all
  38. speed 0 baud; rows 0; columns 0; line = 0;
  39. intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>;
  40. swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V;
  41. discard = ^O; min = 1; time = 0;
  42. -parenb -parodd -cmspar cs8 -hupcl -cstopb cread clocal -crtscts
  43. ignbrk -brkint ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany
  44. -imaxbel -iutf8
  45. -opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
  46. isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke -flusho
  47. -extproc
  48. ```
  49.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement