首先安装 ckermit 软件
该脚本用来以特定波特率连接串口终端:
#!/usr/bin/kermit +
define usage_and_exit {
echo "Usage: \%0 device baudrate"
exit
}
if not defined \%1 usage_and_exit
if not defined \%2 usage_and_exit
echo "Using device: \%1"
echo "Baudrate: \%2"
set line \%1
set modem type none
set speed \%2
set carrier-watch off
set handshake none
set flow-control none
robust
#set file type bin
#set file name lit
#set rec pack 1000
#set send pack 1000
#set window 5
connect
|
然后执行(假设保存为 mytty 执行文件)类似:
$ mytty /dev/ttyS0 115200
即可。
更多参数见
$ man kermit
阅读(1723) | 评论(0) | 转发(0) |