[Mono-bugs] [Bug 599498] New: Can't set baud rate to 128000 on cp210x device, defaulting to 9600

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Apr 25 09:01:46 EDT 2010



           Summary: Can't set baud rate to 128000 on cp210x device,
                    defaulting to 9600
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.6.x
          Platform: x86-64
        OS/Version: openSUSE 11.2
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: io-layer
        AssignedTo: lupus at novell.com
        ReportedBy: velocedge at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Created an attachment (id=356672)
 --> (http://bugzilla.novell.com/attachment.cgi?id=356672)
rsyslogd, allmessages

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:
Gecko/20100317 SUSE/3.5.9-0.1.1 Firefox/3.5.9

I'm trying to set the baud rate for a cp2102 USB receiver (/dev/ttyUSB0) using
comport.BaudRate = 128000;  The driver is part of the 2.6+ kernels
(http://www.etheus.net/CP210x_Linux_Driver) and both the driver and the device
support 128000.  However, when I look at the log (attached) it resets the baud
rate to 9600.  When I run the same test in Mono on Windows, this works fine.

I reported this as a kernel bug (#598085) and they said there was not much they
could do to the kernel, but to report it as a bug in Mono. That bug report
contains a great deal of information why it won't work, but says setting the
rate with TIOCGSERIAL would set the rate.

Reproducible: Always

Steps to Reproduce:
0. set baud rate with stty -F /dev/ttyUSB0 115200 to set arbitrary rate
1. In source: comport.BaudRate = 128000;
2. Compile and run mono test.exe
3. Check rsyslogd output to see reset to 9600
Actual Results:  
Baud rate is set to 9600 and not 128000

Expected Results:  
Baud rate should have been changed to 128000 just like it is when you run this
on a Windows PC

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list