Using the HL-340 USB-serial adapter with Linux (1a86:7523, driver ch341)
Here is what dmesg reports :
It works fine with the ch341 driver, I just had to add one line to drivers/usb/serial/ch341.c:
The relevant lines from my .config are:
From the module comments:
I'm currently using a "vanilla" kernel 2.6.25.4.
New USB device found, idVendor=1a86, idProduct=7523
New USB device strings: Mfr=0, Product=2, SerialNumber=0
Product: USB2.0-Ser!
It works fine with the ch341 driver, I just had to add one line to drivers/usb/serial/ch341.c:
static struct usb_device_id id_table [] = {
{ USB_DEVICE(0x4348, 0x5523) },
{ USB_DEVICE(0x1a86, 0x7523) },
{ },
};
The relevant lines from my .config are:
CONFIG_USB_SERIAL=m
CONFIG_USB_SERIAL_GENERIC=y
CONFIG_USB_SERIAL_CH341=m
From the module comments:
ch341.c implements a serial port driver for the Winchiphead CH341.
The CH341 device can be used to implement an RS232 asynchronous serial port, an IEEE-1284 parallel printer port or a memory-like interface. In all cases the CH341 supports an I2C interface as well. This driver only supports the asynchronous serial interface.
I'm currently using a "vanilla" kernel 2.6.25.4.
Trackbacks
The author does not allow comments to this entry
Comments
Display comments as Linear | Threaded
crox on :
net blues on :
Linux atom.home.loc 2.6.18-348.el5 #1 SMP Tue Jan 8 17:57:28 EST 2013 i686 i686 i386 GNU/Linux
In addition to info above
had to comment out what is suggested here
http://softwarelivre.org/gud-ba/blog/using-a-hl-340-usb-serial-adapter-against-2.6.23-linux-kernel
AND
everything after
EXPORT_SYMBOL_GPL(tty_encode_baud_rate);
in tty_ioctl.c
and also remove the
.usb_driver line
in ch341.c (circa line 320).
after compiling and insterting
I got
drivers/usb/serial/usb-serial.c: USB Serial support registered for ch341-uart
ch341 4-1:1.0: ch341-uart converter detected
usb 4-1: ch341-uart converter now attached to ttyUSB3
usbcore: registered new driver ch341
Haven't tried connecting anything yet, but it seems it will work...
Carlos on :
https://www.mediafire.com/?3ph5x6ttc7ddde4
thanks to:
http://stackoverflow.com/questions/23040820/driver-ch341-usb-adapter-serial-port-or-qserialport-not-works-in-linux