开发者

Need to use COMM port 2 to get information from a device. .NET doesnt support it though

开发者 https://www.devze.com 2022-12-20 03:43 出处:网络
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 c

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消