USB
  CP2102 and parity EVEN under Linux

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   CP2102 and parity EVEN under Linux
gugl
New Member
posted November 17, 2005 02:04 AM     Click Here to See the Profile for gugl   Click Here to Email gugl     Edit/Delete Message
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
gugl

IP: Logged

Tsuneo
Member
posted November 17, 2005 09:06 AM     Click Here to See the Profile for Tsuneo   Click Here to Email Tsuneo     Edit/Delete Message
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
posted November 18, 2005 03:37 AM     Click Here to See the Profile for gugl   Click Here to Email gugl     Edit/Delete Message
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
gugl

IP: Logged

Steve_Tulk
New Member
posted November 27, 2005 08:23 AM     Click Here to See the Profile for Steve_Tulk   Click Here to Email Steve_Tulk     Edit/Delete Message
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
Steve Tulk

IP: Logged

Tsuneo
Member
posted November 27, 2005 11:13 AM     Click Here to See the Profile for Tsuneo   Click Here to Email Tsuneo     Edit/Delete Message
Hello Steve,

Do you talk about SiLabs "EC2" serial adaptor?
It is a notorious application for a USB-Serial adaptor. You'll find many post on this forum, "why it doesn't work on my USB-Serial" even on Windows.

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
posted November 28, 2005 12:27 AM     Click Here to See the Profile for Steve_Tulk   Click Here to Email Steve_Tulk     Edit/Delete Message
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
posted December 07, 2005 06:52 AM     Click Here to See the Profile for klondike   Click Here to Email klondike     Edit/Delete Message
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

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | MCU User Forum

Have you seen our MCU Knowledge Base?


Ultimate Bulletin Board 5.47b