$ setserial /dev/ttyUSB0 -G
Cannot get serial info: Inappropriate ioctl for device
Run Code Online (Sandbox Code Playgroud)
这个错误是什么意思?stty工作正常:
$ stty -F /dev/ttyUSB0
speed 9600 baud; line = 0;
eof = ^A; min = 1; time = 0;
-brkint -icrnl -imaxbel
-opost -onlcr
-isig -icanon -iexten -echo -echoe -echok -echoctl -echoke
Run Code Online (Sandbox Code Playgroud)
这意味着驱动程序不支持setserial正在使用的 IOCTL:
setserial gets the information via an ioctl() call. In case the driver
for your device does not support TIOCGSERIAL, the "invalid argument" is
returned.
Run Code Online (Sandbox Code Playgroud)
我认为stty应该能够执行 USB 串行设备所需的任何配置。
| 归档时间: |
|
| 查看次数: |
12635 次 |
| 最近记录: |