Need to use COMM port 2 to get information from a device. .NET doesnt support it though
I am writing 开发者_StackOverflow社区a VB.NET app that has a piece which needs to send a small command to COM port 2 and get the return result. The problem is .NET doesnt have any support for serial communication seems like. Please help.
I just need to send the command "headtype" and get the result.
It certainly does, System.IO.Ports.SerialPort, available since .NET 2.0
Take a look at the SerialPort class.
精彩评论