https://bugzilla.novell.com/show_bug.cgi?id=664800

https://bugzilla.novell.com/show_bug.cgi?id=664800#c0


           Summary: SerialPort incorrect handling of high speed baud rate
    Classification: Mono
           Product: Mono: Runtime
           Version: 1.2.0
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: io-layer
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.10
(KHTML, like Gecko) Ubuntu/10.04 Chromium/8.0.552.224 Chrome/8.0.552.224
Safari/534.10

new instance of SerialPort, e.g. "mySerialPort = new SerialPort("/dev/ttyUSB0",
921600)" opens the port at incorrectly low 9600 Baud (port setting from "stty
-F /dev/ttyUSB0"), all the while mySerialPort.BaudRate returns "921600".

Lower baud rates, e.g. 230400 and lower, don't have such inconsistency.  Higher
baud rates automatically become 9600 baud when tested using "stty -F ..."
command.

Python (on Ubuntu) used to have similar problem but it appear resolved, I don't
know if it is related to the one here.

Thanks!!

Reproducible: Always

Steps to Reproduce:
1. create new instance of SerialPort via SerialPort("/dev/ttyUSB0", 921600),
keep program running in loop
2. from shell, use "stty -F /dev/ttyUSB0" to display port settings
3. only see problem when baud rate is at least above then 23400.
Actual Results:  
baud rate reported in SerialPort::BaudRate differ from "stty -F" result for
high baud rate.  Also, serial communication at that baud rate doesn't work,
where it works on same OS using python serial library doing the same thing.

Expected Results:  
baud rate should be set to match, and serial communication at high baud rate
should work as do when in lower baud rate.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to