|
![]() USB
![]() CP2102 and parity EVEN under Linux
|
| next newest topic | next oldest topic |
| Author | Topic: CP2102 and parity EVEN under Linux |
|
gugl New Member |
Hi I'm going to connect a serial printer to a PC USB port. This printer demands even parity. For this I'm doing some tests with the CP2102EK using Linux 2.4.22. I use the actual driver sources from ftp.silabs.com. During my tests I found out that USB-serial communication doesn't work properly when using parity even or odd (no problem with no parity). I suppose it is a driver bug because a Windows XP test environment doesn't have any problems with even parity. Are there any ideas (driver fixes) to handle this problem? Many thanks in advance IP: Logged |
|
Tsuneo Member |
Hello gugl, Linux Kernel 2.6.12 and later has a "cp2101" driver and its source (by Craig Shelley) in the usb section. Try it. In the spirit of the open-source, user should contribute to fix the problem as much as (s)he can in the Linux world. However, the Linux driver source from SiLabs (MCCI) is what never be called a "source code" because of encryption. It isn't worth for us to contribute it. So ignore it. Tsuneo [This message has been edited by Tsuneo (edited November 17, 2005).] IP: Logged |
|
gugl New Member |
Hi Tsuneo Many thanks for your hint. I tried with 2.6.13 and it worked great. The remaining problem is that I need this stuff on Linux 2.4.22. Building the 2.6.13 sources for the cp2102 module on Linux 2.4.22 didn't work out of the box. So, does anyone know some kind of 2.4.22 back-port for this driver? Many thanks in advance IP: Logged |
|
Steve_Tulk New Member |
Tsuneo, I am wondering how well the 2101 driver works for you that is built into the 2.6.12 and above Kernels? I have a U-EC2 adapter that I have been trying to get working on several distribtions and several stock and custom kernels. In all cases, it tries to communicate and seems to have a timing problem and causes a time out. I see that there is at least one command getting to the U-EC2 as the LED's change states but I get an error after that. I see many Linux posts from you and am wondering of you have run across any timing issues that might help me. I haven't dug into this real deep yet but plan to if no one else has run across any timing issues wiht that driver or know of any patches or tweaks to make it work better. Thanks IP: Logged |
|
Tsuneo Member |
Hello Steve, Do you talk about SiLabs "EC2" serial adaptor? Surely, EC2 connects properly using CP210x with the SiLabs driver on Windows. However, it doesn't mean it works correctly on Linux even if CP210x is used, because the driver is different. I didn't dig into this connectivity problem so much, but the "default" behavior on RTS/DTR may be concerned. Please see, "Admins - Please Read But how do you use the EC2 on Linux? Any native application? Tsuneo IP: Logged |
|
Steve_Tulk New Member |
Tsuneo, I have 2 different devices. The standard EC2 works fine on Linux and on Windows. The U-EC2 from Dragon Systems in Shenzhen, China works on Windows just fine but hangs on Linux. From what I can tell, the U-EC2 is just a standard EC2 with a 2101 on the front of it. I just can't seem to get the driver right in Linux for it. I am trying to go 100% linux as I am sick of MS and the problems involved. To get the EC2 to work in Linux, see my posting a few days ago in the Development Tools section. I have it working 100% with uVision2 and 99% with Silabs IDE. Feel free to email me at " steve AT pr-lighting DOT net " if you need some more details on configurations and such. IP: Logged |
|
klondike New Member |
It looks like there is a new 2.4 unofficial backport the CP2101 driver. http://www.microtron.org.uk/~craig/Projects/CP2101Driver/ IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() |
|
Have you seen our MCU Knowledge Base?