[Mono-bugs] [Bug 688940] New: System.IO.Ports.SerialPort does not acccept non-standard BaudRate

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 20 18:24:28 EDT 2011


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

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


           Summary: System.IO.Ports.SerialPort does not acccept
                    non-standard BaudRate
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.10.x
          Platform: x86
        OS/Version: Kubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: tzok at poczta.onet.pl
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101
Firefox/4.0

When running Windows XP there is no problem to set the BaudRate to 7680bps,
while on Linux it causes that nothing is received from the port. On Linux only
standard baud rates do work.

Reproducible: Always

Steps to Reproduce:
0. //Connect a loopback plug to COM-1
1. System.IO.Ports.SerialPort sport = new
System.IO.Ports.SerialPort("/dev/ttyS0");
2. sport.BaudRate = 7680;
3. sport.Open();
4. sport.Write(new byte[] { 0x41 }, 0, 1);
5. char response = (char)sport.ReadByte();
Actual Results:  
response = ''

Expected Results:  
response = 'A'

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


More information about the mono-bugs mailing list