![]() Rather than just assuming the number of serial ports, or leaving it up to the user to know this beforehand, the code finds the installed serial ports. This class contains methods to start and stop listening for data on the serial port. The serial port handling code is placed in a class called SerialPortManager. ![]() In this solution, a form converts the data to ASCII-text and displays it in a text box. ![]() Serial port listening applications usually have this only as a part of a bigger solution, while this application does nothing else than list the available COM-ports, list the available baud rates for the selected COM-port, and starts sending the data. This application is connected to a GPS sending ASCII text for test, but the serial port listening part is all byte-oriented.ĬodeProject is missing a simple serial port application. This is a basic sample of serial port (COM port) listening in C#.
0 Comments
Leave a Reply. |