实时I/O Web服务 [英] Real time I/O web service

查看:66
本文介绍了实时I/O Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从流量计读取数字脉冲数据,该流量计测量泵送的总水量以及从RFID感应卡输入C#程序的数量,以便跟踪谁购买了水以及购买了多少水. >
数字脉冲被测量为高速脉冲.我可以将其作为单个脉冲接收,然后求和以获得总泵浦量,或者可以接收一个代表所计数脉冲总数的数字.

读卡器通过电缆传递数据流,可以通过RS232连接传输串行数据,也可以通过Cat 5电缆传输以太网数据.

有人可以告诉我如何将数据放入我的应用程序吗?

I need to read the digital pulse data from a flow meter that measures the total amount of water pumped and a number from RFID proximity card into a C# program so I can track who purchased water and how much they purchased.

The digital pulse is measured as a high speed pulse. I can either receive this as single pulses that I can then sum for a total amount pumped or I can receive a number that represents the total number of pulses counted.

The card reader passes a data stream on a wire, either serial data over a RS232 connection or ethernet data over a Cat 5 cable.

Can someone tell me how to get the data into my application?

推荐答案

读卡器非常类似于信用卡读卡器,您需要做一些事情要知道,通常那些阅读器会为开发人员提供足够的信息,以使他们知道如何与阅读器进行交流.

这些卡有一个窍门,因为RFID信息应该加密,而且信息也应该包含在文档中,一些读者也要求您对发送的所有数据进行校验和,并在通信中添加校验和.

关于水泵读卡器,我不知道您在说什么
The card reader is pretty much like a credit card reader, there are a few things you will need to know, normally those readers provide enough information to developers to know how to communicate with the reader.

The cards have a trick though, because RFID information should be encrypted, but also that information should come in the documentation, also some readers require that you checksum all the data you send and add the checksum in your communication.

About the water pump reader, I have no idea what you''re talking about


您将需要参考流量计和读卡器的文档来确定所发送数据的格式在电线上.您没有指定流量计与PC的连接方式,因此我们无法为您提供帮助.对于读卡器,可以将SerialPort类用于RS232,将TcpListener和/或TcpClient类用于以太网.
You will need to refer to the documentation for flow meter and card reader to determine the format of the data sent over the wire. You don''t specify how the flow meter connects to a PC, so we can''t help you on that. For the card reader, you can use the SerialPort class for RS232 or the TcpListener and/or TcpClient classes for ethernet.


这篇关于实时I/O Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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