linux serial communications
picocom -f n -p n -b 115200 -i -r -l /dev/ttyUSB0
picocom -b 115200 -l -r /dev/ttyUSB0 #OpenWrt
Exit: C-a C-x // Ctrl-C Ctrl-A Ctrl-X
screen /dev/ttyUSB0 115200
cu -l /dev/ttyUSB0 -s 115200
~. Drop the connection and exit.
ser2net
Sniffer:
jpnevulator --ascii --timing-print --tty /dev/ttyS0:SB9600d --tty "/dev/ttyUSB0:Motorola MTM800" --read
3G Modem
comgt {info,sig,reg} -d /dev/ttyUSB0
stty -F /dev/ttyUSB0
speed 115200 baud; line = 0;
-brkint -imaxbel
$ stty -F /dev/ttyUSB0 -a
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; flush = ^O; min = 1; time = 0;
-parenb -parodd 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
$ stty -F /dev/ttyUSB0 -g
500:5:1cb2:8a3b:3:1c:7f:15:4:0:1: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
Ubuntu fix:
dialout:x:20:alex,rttymgr
id -Gn |grep dialout
sudo adduser $USER dialout