I’m trying to interface with a cdc card reader which outputs to a virtual com port. How does one go about opening a stream to read from a com port?
Share
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.
You can use the SerialPort from System.IO.Ports.SerialPort
It is available as a Form component in the Toolbox under Toolbox->Components->SerialPort
In the properties, you can select which COM port you want to connect to
Since your question relates to a stream object I think you can use SerialPort.BaseStream and cast it into a StreamWriter/StreamReader