本文介绍了串行协议通用或可配置类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在c#或vb.net中开发一套串行COM协议,以实现PC与具有串行COM接口的设备之间的点对点通信.每个设备在帧组成和发送的数据方面都有不同的协议(异步). 从PC期望,我希望找到一个类/工具来配置协议结构并建立一个DLL,该DLL为特定设备实现协议(一种要使用ini文件或xml模型配置的通用协议).有什么建议吗?

I need to develop a set of serial COM protocols in c# or vb.net to realize Point to Point comunications between PC and Devices with serial COM interface. Each devices has a different protocol (asyncrounos) in terms of frames composition and data sent and expected from pc, i 'm loking for a class/tool to configure protocol structure and build up a dll that implements protocol for specific device (a sort of generic protocol to be configured with an ini file or xml model). Any suggestion? thank you very much!

推荐答案

.Net Framework中有一组处理串行通信和串行端口的类.文档位于此处:

There is a set of classes in the .Net Framework that handle serial commuunications and serial ports.  The documentation is located here:

http://msdn.microsoft.com/en-us/library /system.io.ports.serialport.aspx

,您可以使用C#或VB.Net来实现您的解决方案.

and you can use either C# or VB.Net to implement your solution.

此致

Ed


这篇关于串行协议通用或可配置类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-11 18:30