使用C#通过astm协议将实验室嵌入式系统与计算机通信的代码 [英] code to comunicate a laboratory embeded system to computer through astm protocol using C#

查看:357
本文介绍了使用C#通过astm协议将实验室嵌入式系统与计算机通信的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个实验室设备,它通过

rs-232c串行接口与计算机连接。

我知道这个设备使用的是ASTM协议。 />
我需要连接到这个设备并向他发送一些命令。

如何做到这一点并给我示例链接。

I have one laboratoric device, which it is connected with computer by
rs-232c serial interface.
I know taht this device is using ASTM protocol.
I need to connect to this deviceand send him some commands.
How to do this and give me the example link .

推荐答案

您需要ASTM协议规范才能使用正确的语言与您的设备进行对话。我看到,你可以在astm.org购买规格,或谷歌可能会帮助你。



然后你需要SerialPort类 [ ^ ]通过RS232与设备通信。





BTW:你为什么用ASP.NET标记你的问题?
You need the ASTM protocol specification to talk in the right "language" with your device. I saw, that you can buy the specs at astm.org or Google might help you.

Then you need the SerialPort Class[^] to communicate with the device via RS232.


BTW: Why did you tag your question wit ASP.NET?


你应该找到你设备的手册来查看命令。



要通过串口发送,请看这个链接: [ ^ ]
You should find the manual for your device to see the commands.

To send via serial see this link : Serial Communication using C# and Whidbey[^]


这篇关于使用C#通过astm协议将实验室嵌入式系统与计算机通信的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆