A nice feature or two is auto-detection of installed COM ports that update at runtime if you plugin or remove USB-to-Serial adapters, also you can change the DTR and RTS levels and monitor the CTS, DSR, and CD lines.īuild Note: You will receive an error that Visual Studio isn’t able to find NoahCode.pfx. It is just a simple little application with basic support for text or binary (hex) modes to send and receive data. This requires Visual Studio 2010 to compile, which can be obtained free via C# Express. To start off, here is sample code in a terminal application which you can try out to see how the SerialPort class is used. It is installed as part of the regular Windows Updates (make sure your computer is fully up to date, see Microsoft Updates for more info) or if that doesn’t work for some reason, you can install. If you’re looking for USB info, see here.Įxample Application & Sample Code: SerialPort Terminal NET 2.0 or later by using the System.IO.Ports.SerialPort class. ![]() Here’s how…īTW, this article is about communicating through the PC’s Serial COM RS-232 port using Microsoft. ![]() NET 2.0 and is freely available in C# Express on MSDN. NET has a great class called SerialPort ( MSDN reference) part of.
0 Comments
Leave a Reply. |