【发布时间】:2014-01-15 15:10:19
【问题描述】:
似乎无法正确断开与正在使用的 com 端口的连接并结束生成的进程。我需要断开与 COM 端口的连接,然后重新连接。
# Read the COM port from the command line
if { $argc >= 1 } {
set file [lindex $::argv 0]
} else {
set file /dev/ttyUSB0
}
set fh [open $file RDWR]
fconfigure $fh -mode "115200,n,8,1" -blocking 0 -buffering none -eofchar {}
spawn -open $fh -noecho
【问题讨论】: