The same ch340 device works fine on Windows 7 with official driver, so the device isn't broken. Using an FTDI based adapter works perfectly on the contrary. # lsusb -d 1a86:7523 Bus 001 Device 015: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter Kernel seems to bring up correctly the driver: giu25 16:33 usb 1-1.4.3: new full-speed USB device number 15 using xhcihcd +0,085072 usb 1-1.4.3: New USB device found, idVendor=1a86, idProduct=7523 +0,000004 usb 1-1.4.3: New USB device strings: Mfr=0, Product=2, SerialNumber=0 +0,000002 usb 1-1.4.3: Product: USB2.0-Ser! +0,000716 ch341 1-1.4.3:1.0: ch341-uart converter detected +0,001119 usb 1-1.4.3: ch341-uart converter now attached to ttyUSB0 but opening the device with minicom or screen doesn't produce any input or output. I could probably have use the Karl’s Linux kernel, but I remembered having read that Canonical makes some changes to the Linux kernel, so instead I went to to download and install Linux 3.18 in my machine (This is 3.18.0, but with hindsights I should have gone with 3.18.Diego 10:47:20 EDT Description of problem: I've bought a USB serial adapter which is based on ch340 chipset. So it was time for plan B, or rather option 2. I decided to go with option 1 at first, but I quickly changed my mind as there’s been a bit too many modifications between the two versions, and it started to be time consuming. Instructions to build a kernel module in Ubuntu are already available, but the patch for ch341 driver is for Linux 3.18.6, and Ubuntu 14.04 comes with Linux 3.13. Since I did not want to wait I decided to build ch341.ko with the patched driver, and I can now use Sigrok with my HL-340 USB-Serial adapter successfully, but I’ll write more about that in another post, and today, I’ll document the steps I followed to build the driver for my machine. A few days later, Karl Parsonn left a comment saying ch341 driver just ignored parity (UNI-T DMM use odd parity), but that he wrote a patch that should eventually make it to mainline. Finally, I gave up on Sigrok on Linux, and tested the power consumption of some Rockchip RK3288 & Amlogic S802 devices in a Windows 7 virtual machine running in my Ubuntu 14.04 host PC. Was most likely to culprit, so I decided to buy another random USB to serial dongle on eBay, and after a few weeks I received it only to find out it had the exact same VID:PID, so I was out of luck. IdProduct 0x7523 HL - 340 USB - Serial adapter
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |