I have some application that communicates via a RS-232 serial port.
Is there some application or library that I can use to send data to a local serial port?
I need it to be able to locally debug my application.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If your looking to virtulize a serial port in code, then this will do the trick for you.
http://com0com.sourceforge.net/
As for .NET code, then the “SerialPort” class is incredibly easy to use, a good reference (Iv’e used many times) can be found here.
http://msmvps.com/blogs/coad/archive/2005/03/23/SerialPort-_2800_RS_2D00_232-Serial-COM-Port_2900_-in-C_2300_-.NET.aspx
Using the .NET serial class, you can do what you need in very few lines of code. Be aware though, you WILL need to use delegates to update your UI.