[Bug 598085] New: Can't set baud rate to 128000 on /dev/ttyUSB0 cp210x device
http://bugzilla.novell.com/show_bug.cgi?id=598085 http://bugzilla.novell.com/show_bug.cgi?id=598085#c0 Summary: Can't set baud rate to 128000 on /dev/ttyUSB0 cp210x device Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: x86-64 OS/Version: openSUSE 11.2 Status: NEW Severity: Major Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: velocedge@hotmail.com QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=355553) --> (http://bugzilla.novell.com/attachment.cgi?id=355553) modinfo output User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100317 SUSE/3.5.9-0.1.1 Firefox/3.5.9 The cp210x.c shows support for 128000 baud as of 2.3.30.6. which I need to run my cp2102 USB device. From cp210x.c: .. else if (baud <= 117028) baud = 115200; else if (baud <= 129347) baud = 128000; else if (baud <= 156868) baud = 153600; .. Whether I set the rate with stty -F /dev/ttyUSB0 128000 or try setting comport.BaudRate = 128000 in Mono, it defaults to 9600. stty gives "invalid argument". I'm running the latest version of 11.2 and even tried the 2.6.34-RC kernel with the same results. Reproducible: Always Steps to Reproduce: 1. stty -F /dev/ttyUSB0 128000 2. 3. Actual Results: invalid argument Expected Results: Sets the /dev/ttyUSB0 device baud rate to 128000 I'm converting a program from Windows to C# and Mono. The device works fine in Windows at 128000. This capability is critical to us in order to move off Windows and on to Linux so any help is greatly appreciated. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c1
Jeff Mahoney
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c2
--- Comment #2 from Steve Ricketts
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c3
--- Comment #3 from Steve Ricketts
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c4
--- Comment #4 from Steve Ricketts
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c5
Steve Ricketts
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c6
Greg Kroah-Hartman
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c7
--- Comment #7 from Steve Ricketts
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c8
Steve Ricketts
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c9
--- Comment #9 from Steve Ricketts
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c10
--- Comment #10 from Steve Ricketts
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c11
Greg Kroah-Hartman
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c12
Steve Ricketts
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c13
--- Comment #13 from Steve Ricketts
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c14
Greg Kroah-Hartman
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c15
Greg Kroah-Hartman
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c16
--- Comment #16 from Steve Ricketts
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c17
--- Comment #17 from Greg Kroah-Hartman
I guess I don't consider 128000 arbitrary... ;-) Seems like a major shortcoming of the kernel to limit baud rates to such a small number of rates when there are so many devices using other rates for very good reasons... like we are with the CP210x.
This is what POSIX defines, sorry, can't do much about that.
Basically, in Mono I'm setting comport.BaudRate = 128000; but in looking at the log, it's getting set to 9600 so something strange going on there.
I would file a bug with Mono to get that looked at first.
If I understand correctly, the driver is part of and ships with the 2.6 kernel (http://www.etheus.net/CP210x_Linux_Driver)... so when you say "it could be added", what exactly are you saying? Added to the kernel or added to the driver?
Added to the driver which is part of the kernel, which is where the driver lives that you are using here. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c18
--- Comment #18 from Jeff Mahoney
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c19
--- Comment #19 from Steve Ricketts
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c20
--- Comment #20 from Jeff Mahoney
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c21
--- Comment #21 from Steve Ricketts
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c22
--- Comment #22 from Steve Ricketts
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c23
--- Comment #23 from Jeff Mahoney
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c24
--- Comment #24 from Steve Ricketts
http://bugzilla.novell.com/show_bug.cgi?id=598085
http://bugzilla.novell.com/show_bug.cgi?id=598085#c25
--- Comment #25 from Steve Ricketts
participants (1)
-
bugzilla_noreply@novell.com