当前位置: 首页 > news >正文

Linux ubuntu安装pl2303USB转串口驱动

文章目录

  • 1.绿联PL2303串口驱动下载
  • 2.驱动安装
  • 3.验证方法

1.绿联PL2303串口驱动下载

下载地址:https://www.lulian.cn/download/16-cn.html
也可以直接通过CSDN下载:https://download.csdn.net/download/Axugo/89447539

2.驱动安装

下载后解压找到Linux
然后可以看到如下:
在这里插入图片描述执行如下命令:

uname -r

在这里插入图片描述
可以看到版本为4.15.0,然后进入到对应的绿联驱动文件目录下:

在这里插入图片描述执行如下命令:

make all
sudo cp pl2303.ko /lib/modules/$(uname -r)/kernel/drivers/usb/serial

若命令执行失败可以参考https://blog.csdn.net/gsls200808/article/details/126466867
完成上述步骤后,编辑/etc/modules文件添加驱动名pl2303:

sudo gedit /etc/modules
#添加内容
pl2303
#保存

在这里插入图片描述保存后重启Ubuntu服务器即可.

3.验证方法

那么怎么判断usb串口驱动是否正常呢?可以参考如下方法:
拔插RS232转USB线缆,然后执行如下命令:

dmesg

在这里插入图片描述可以看到pl2303以及关于ttyUSB*串口的信息:

 881.004700] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
[  881.004749] pl2303 1-3:1.0: device disconnected
[  896.156007] usb 1-3: new full-speed USB device number 11 using xhci_hcd
[  896.304928] usb 1-3: New USB device found, idVendor=067b, idProduct=23a3
[  896.304934] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  896.304938] usb 1-3: Product: USB-Serial Controller 
[  896.304942] usb 1-3: Manufacturer: Prolific Technology Inc. 
[  896.304945] usb 1-3: SerialNumber: AHDKb132J02
[  896.305663] pl2303 1-3:1.0: pl2303 converter detected
[  896.305941] usb 1-3: pl2303 converter now attached to ttyUSB0
[  902.529545] usb 1-4.3: new full-speed USB device number 12 using xhci_hcd
[  902.750714] usb 1-4.3: New USB device found, idVendor=067b, idProduct=23a3
[  902.750721] usb 1-4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  902.750725] usb 1-4.3: Product: USB-Serial Controller 
[  902.750729] usb 1-4.3: Manufacturer: Prolific Technology Inc. 
[  902.750732] usb 1-4.3: SerialNumber: DUCOb11A922
[  902.751571] pl2303 1-4.3:1.0: pl2303 converter detected
[  902.751896] usb 1-4.3: pl2303 converter now attached to ttyUSB1
[  911.191627] usb 1-2.4: new full-speed USB device number 13 using xhci_hcd
[  911.412863] usb 1-2.4: New USB device found, idVendor=067b, idProduct=23a3
[  911.412869] usb 1-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  911.412873] usb 1-2.4: Product: USB-Serial Controller 
[  911.412877] usb 1-2.4: Manufacturer: Prolific Technology Inc. 
[  911.412881] usb 1-2.4: SerialNumber: FLBGb11BS12
[  911.413721] pl2303 1-2.4:1.0: pl2303 converter detected
[  911.414038] usb 1-2.4: pl2303 converter now attached to ttyUSB2
[  921.139586] usb 1-2.4: USB disconnect, device number 13
[  921.139976] pl2303 ttyUSB2: pl2303 converter now disconnected from ttyUSB2
[  921.140053] pl2303 1-2.4:1.0: device disconnected
[  929.186353] usb 1-3: USB disconnect, device number 11
[  929.186738] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
[  929.186836] pl2303 1-3:1.0: device disconnected
[  936.249723] usb 1-4.3: USB disconnect, device number 12
[  936.250100] pl2303 ttyUSB1: pl2303 converter now disconnected from ttyUSB1
[  936.250178] pl2303 1-4.3:1.0: device disconnected
http://www.lryc.cn/news/380041.html

相关文章:

  • 关于使用命令行打开wps word文件
  • 将Vite添加到您现有的Web应用程序
  • Apache Kafka与Spring整合应用详解
  • SpringBoot配置第三方专业缓存技术Redis
  • javascript的toFixed()以及使用
  • 软件功能测试和性能测试包括哪些测试内容?又有什么联系和区别?
  • 从工具产品体验对比spark、hadoop、flink
  • 【软件设计】详细设计说明书(word原件,项目直接套用)
  • java本地缓存(map,Guava,echcache,caffeine)优缺点,以及适用场景
  • Monica
  • 国产数据库中读写分离实现机制
  • kubernetes部署dashboard
  • FPGA早鸟课程第二弹 | Vivado 设计静态时序分析和实际约束
  • STM32项目分享:家庭环境监测系统
  • 华为HCIP Datacom H12-821 卷5
  • Mongodb数据库基本操作
  • 【机器学习】基于Softmax松弛技术的离散数据采样
  • .NET+Python量化【1】——环境部署和个人资金账户信息查询
  • 洛谷 P10584 [蓝桥杯 2024 国 A] 数学题(整除分块+杜教筛)
  • 深入讲解C++基础知识(一)
  • Python爬虫实战:批量下载网站图片
  • 使用 JavaScript 获取电池状态
  • java—类反射机制
  • 浏览器-服务器架构 (BS架构) 详解
  • 微型操作系统内核源码详解系列五(四):cm3下svc启动任务
  • 筛质数(暴力法、埃氏筛、欧拉筛)
  • 使用USI作为主SPI接口
  • AI播客下载:Eye on AI(AI深度洞察)
  • Flink 窗口触发器
  • Java面试题:解释线程间如何通过wait、notify和notifyAll方法进行通信