Share via


What is com port (19200 8-N-1)?

Question

Monday, August 17, 2015 1:43 PM

Hi,

Any links or information? If yes can we access the port with C#.

Thanks,

Weera

All replies (2)

Monday, August 17, 2015 2:14 PM âś…Answered

The info you're posting is the details of the COM port (whatever port that is). Speed (19200), data bits (8), parity (even), stop bits (1).  Any port can use these settings but both sides of the communication must use the same settings.  You can use the SerialPort class to talk to the COM ports on your computer.  There is a constructor that accepts all this info. Of course you have to have a COM port defined on your machine before it'll work so you need to verify that Windows has set one up first. If it hasn't then please create one.  If you don't know how then post the question in the TechNet forums and they can help you.

Michael Taylor
http://blogs.msmvps.com/p3net


Saturday, June 10, 2017 10:39 PM

Up to the best of my knowledge

8 data bits

N no parity (not even)

1 stop bit

Reference

8-N-1 on Wikipedia

C# Code example

var sp = new SerialPort
            {
                BaudRate = 4800,
                DataBits = 8,
                Parity = Parity.None,
                StopBits = StopBits.One
            };

Waleed El-Badry