VMware 虚拟机下 Ubuntu usb转Rs232串口 解决方案

本文提供了一种在Ubuntu系统中无需使用附带驱动光盘即可安装USB转串口驱动的方法,通过检查硬件消息、使用lsusb命令找出设备编号,然后加载驱动程序。确保设备正常工作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

前两天买个usb转串口在笔记上连s3c2410,串口在ubuntu下却无法正常安装驱动  后来找到这么一个方法,根本用不上附带的驱动光盘,所以和大家分享,谢谢。

From: http://forums.reprap.org/read.php?12,4546

If you are using the usb -> RS232 adapter, the serial drivers may need to be installed for the device to work properly. After plugging in the device, first check the hardware messages to see the device was detected:

dmesg

Torward the end of the messages, you should see this:

usb 1-1: new full speed USB device using uhci_and address 2
usb 1-1: configuration #1 chosen from 1 choice

Now, we need to figure out the device vendor number and product number to tell the usbserial driver. For this we can use lsusb. The easiest way to find the information is to first unplug the device, then run lsusb:

lsusb

You will see a summary list of your USB devices on the system, I only have one:

Bus 001 Device 001: ID 0000:0000

Now, plug the device back in, and run lsusb again:

lsusb

Which returns the summary list again, but now showing the new USB device:

Bus 001 Device 002: ID 4348:5523
Bus 001 Device 001: ID 0000:0000

Now, we can load up the driver for this device:

sudo modprobe usbserial vendor=0×4348 product=0×5523

Finally, check dmesg again to ensure it loaded properly.

dmesg

Near the end, you should see something like:

usbserial_generic 1-1:1.0: generic converter detected
usb 1-1: generic converter now attached to ttyUSB0
usbcore: registered new interface driver usbserial_generic

Congratulations, your link is up – in this example, the device can be used on /dev/ttyUSB0. As much fun as you had doing this, there is some chance you want to do this automatically in the future. Just add this line:

usbserial vendor=0×4348 product=0×5523

to /etc/modules with the vendor and product numbers you found. Now, you should have no problem using this device for RepRap like a normal serial port.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值