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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |