Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
deepin使用串口工具的使用方法
Experiences and Insight
3889
views ·
1
replies ·
To
floor
Go
memelsky
deepin
2016-04-02 08:29
Author
最近弄来了一根DT-5002A的usb转RS232的线,查询资料后发现其芯片为PL2303芯片。现需要使用deepin连接该通讯线。一开始使用官方的驱动,总是装不上。官方的驱动是基于红帽设计的,deepin试了一下似乎不能用。官方驱动是有源码的,但是编译过程中还是出了点问题,不成功。
最后查询了网上的方法,总结归纳以后可以使用。现梳理汇总如下:
1、命令行运行find寻找pl2303.ko,在/
usr/src/linux-headers-4.2.0-1-amd64/include/config/usb/s
erial下找到
usbserial.ko pl2303.ko
wwb@wwb-pc:/$
sudo find / -name
serial
Copy the Code
2、在驱动目录下执行如下命令安装驱动模块
wwb@wwb-pc:/$
insmod usbserial.ko
wwb@wwb-pc:/$insmod pl2303.ko
Copy the Code
3、界面提示两个ko已经存在了,再执行lsmod 查看模块装载的情况
wwb@wwb-pc:/$ lsmod | grep pl2303
pl2303 20480 0
usbserial 49152 1 pl2303
Copy the Code
4、查看系统控制台的输出,确定驱动已经注册
wwb@wwb-pc:/$ dmesg | grep pl2303
[ 12.815865] usbcore: registered new interface driver pl2303
[ 12.815883] usbserial: USB Serial support registered for pl2303
[ 12.815899] pl2303 1-2:1.0: pl2303 converter detected
[ 12.816462] usb 1-2: pl2303 converter now attached to ttyUSB0
Copy the Code
5、确定了端口号是 ttyUSB0 以后,查看/dev/ttyUSB0发现这是一个主设备为188的字符驱动。
wwb@wwb-pc:/$ ls -l /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 4月 1 23:41 /dev/ttyUSB0
Copy the Code
6、运行 minicom -s进行配置。选择Serial port setup
+-----[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 |
+--------------------------+
Copy the Code
7、进入串口配置,设置后保存
+-----------------------------------------------------------------------+
| A - Serial Device : /dev/ttyUSB0 |
| 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? |
+-----------------------------------------------------------------------+
Copy the Code
8、下次输入sudo minicom即可通信。
Reply
Like 0
Favorite
View the author
All Replies
大川小朋友
deepin
2023-04-19 19:20
#1
问一下第一步没有找到pl2303.ko应该怎么办呢
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
Nuntia - Modern IMAP/SMTP mail client for Deepin (Beta tester wanted!)
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Popular Events
More
最后查询了网上的方法,总结归纳以后可以使用。现梳理汇总如下:
1、命令行运行find寻找pl2303.ko,在/usr/src/linux-headers-4.2.0-1-amd64/include/config/usb/serial下找到usbserial.ko pl2303.ko