minicom 不能写入内容到串口
Tofloor
poster avatar
岳阳小罗
deepin
2020-08-15 00:42
Author
deepin 20, 5.3.0-3-amd64
minicom version 2.7.1 (compiled May  6 2018)
putty v0.70



使用的是USB转串口线,设备文件 /dev/ttyUSB0,设备的波特率为 115200
minicom可以读取测试设备的打印,但是不能写入。
使用putty可以正常读取和写入


Reply Favorite View the author
All Replies
avatar
绍贝格尔
deepin
2020-08-15 00:50
#1
应该是要串口加入组
Reply View the author
avatar
zhangn1985
deepin
2020-08-15 01:42
#2
本帖最后由 zhangn1985 于 2020-8-14 17:44 编辑

Ctrl-a + ctrl-o 调整设置。比如流控之类的。注意是纯键盘操作,比如前面高亮了大写字母A,那就输入大写字母A调整该项设置。
Reply View the author
avatar
岳阳小罗
deepin
2020-08-25 18:49
#3
谢谢,关闭硬件流控就OK了
Reply View the author
avatar
岳阳小罗
deepin
2020-08-25 18:50
#4
sudo minicom -s

+-----[configuration]------+
| Filenames and paths |
| File transfer protocols |
| Serial port setup |
| Modem and dialing |
| Screen and keyboard |
| Save setup as dfl |
| Save setup as.. |
| Exit |
| Exit from Minicom |
+--------------------------+

进入Serial port setup界面

+-----------------------------------------------------------------------+
| A - Serial Device : /dev/ttyS1 |
| B - Lockfile Location : /var/lock |
| C - Callin Program : |
| D - Callout Program : |
| E - Bps/Par/Bits : 115200 8N1 |
| F - Hardware Flow Control : No |
| G - Software Flow Control : No |
| |
| Change which setting? |
+-----------------------------------------------------------------------+

此时F - Hardware Flow Contorl项为Yes,按下F键就修改为No了,即关闭硬件流控,回车回到上级菜单

+-----[configuration]------+
| Filenames and paths |
| File transfer protocols |
| Serial port setup |
| Modem and dialing |
| Screen and keyboard |
| Save setup as dfl |
| Save setup as.. |
| Exit |
| Exit from Minicom |
+--------------------------+

选择| Save setup as dfl |,然后选择 Exit from Minicom  重启minicom
Reply View the author
avatar
q77190858
deepin
2020-08-26 04:07
#5
我都是用ckermit,感觉比minicom好用
Reply View the author