Net 2.0, and this time Microsoft added the System.IO.Ports Namespace, and within that was the SerialPort Class. Worse yet, C# developers had to rely on a Visual Basic control and Namespace if they wanted to communicate via serial port. It was soon discovered that, with all it's OO abilities, the ability to communicate via a serial port wasn't available, so once again VB developers were forced to rely on the MSComm Control from previous versions of Visual Basic, still not that big of a deal, but some were upset that an intrinsic way of serial port communication wasn't offered with the. Net 1.1, VB programmers loved the fact that Visual Basic had finally evolved to an OO language. The control did exactly what was needed for the task. Back in the days of Visual Basic 6.0, you had to use the MSComm Control that was shipped with VB6, the only problem with this method was you needed to make sure you included that control in your installation package, not really that big of a deal. Lately Ive seen a lot of questions on how to send and receive data through a serial port, so I thought it was time to write on the topic. Welcome to my tutorial on Serial Port Communication in C#.
0 Comments
Leave a Reply. |