Advertisement
Guest User

Untitled

a guest
May 31st, 2016
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. screen /dev/ttyACM0 115200
  2.  
  3. sudo stty -F /dev/ttyACM* 115200 -parenb -parodd -cmspar cs8 -hupcl -cstopb cread clocal -crtscts
  4. -ignbrk brkint ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl ixon -ixoff -iuclc
  5. -ixany -imaxbel -iutf8
  6. -opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
  7. -isig -icanon iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl
  8. echoke -flusho -extproc
  9.  
  10. $ cu -l /dev/ttyACM0 -s 115200
  11. <continuous stream of data>
  12. $ killall cu # (from another shell)
  13. $ cat /dev/ttyACM0 | hexdump -c
  14. <e.g. 7 bytes>
  15. $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement