nipunbatra
Posts: 1
Joined: Mon Apr 22, 2013 12:13 pm

ch341- UART convertor not working in RPi

Mon Apr 22, 2013 12:20 pm

Hi,
I am using a CH341-UART convertor ( which converts RS 485 serial to USB). This gets detected on RPi as confirmed by lsmod and dmesg. However i am not able to communicate with my host device. A lot of googling led me to understand that this is a known issue with Linux.
http://git.kernel.org/cgit/linux/kernel ... 423d17538e shows that a single line needs to be added to ch341.c file.
I do not see ch341.c file and i did a recursive grep to find it. However i was able to find ch341.ko file, which obviously is not a native source file.

What is the recommended procedure in such a case?

slink
Posts: 4
Joined: Tue Apr 30, 2013 7:59 pm

Re: ch341- UART convertor not working in RPi

Sun May 05, 2013 1:06 am

I would be very interested to know if you ever found a solution to this problem as I have just encountered it myself.

mesmariusz
Posts: 57
Joined: Fri Feb 15, 2013 6:07 am

Re: ch341- UART convertor not working in RPi

Thu Aug 01, 2013 10:06 pm

Did you manage? Does it work?

I see:

- win driver: http://www.winchiphead.com/download/CH341/CH341SER.ZIP
- datasheet: http://www.winchiphead.com/download/CH341/CH341DS1.PDF

But if you could let me know if it is working with linux for you it would be great!

akatran
Posts: 1
Joined: Mon Jan 26, 2015 7:18 pm

Re: ch341- UART convertor not working in RPi

Sun Feb 15, 2015 3:28 pm

The main problem that this dongle doesn't work is because, possibly, you can not change the port settings from software.

I found trying to do some java modbus programming that what ever setting I put the port uses the casual 8 databits, 1 stop bit and no parity.

I know it is an old question but it came up!!!

dkeverne
Posts: 4
Joined: Wed Jan 01, 2014 11:37 pm
Location: Northamptonshire, UK

Re: ch341- UART convertor not working in RPi

Sun Feb 15, 2015 4:48 pm

I use both ch341 and pl2303 USB to serial devices. The RS-422 device I use is this one:

http://www.ebay.co.uk/itm/USB-2-0-to-RS ... 4aba17779a

It is a pl2303 device and works fine. It connects to my solar inverter for monitoring.

I also have devices that come up as ch341 although they are RS-232, so maybe not the same as yours, but they work fine for me too.

I use minicom for testing, because you can easily change the comms settings.

Hope it helps.

mimi123
Posts: 583
Joined: Thu Aug 22, 2013 3:32 pm

Re: ch341- UART convertor not working in RPi

Mon Feb 16, 2015 9:09 am

you should recompile the kernel

Return to “Raspberry Pi OS”