如何在asp.net的web应用程序中从服务器的客户端机器的RS232进行通信 [英] How to communicate with RS232 of client machine from server in web application in asp.net

查看:94
本文介绍了如何在asp.net的web应用程序中从服务器的客户端机器的RS232进行通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过重新审核文章 http://codesamplez.com/programming/serial-port-communication-c -sharp [ ^ ]

但是我发现它可以用于Windows应用程序

请建议。

by referance of article http://codesamplez.com/programming/serial-port-communication-c-sharp[^]
but i found that it can be used for windows application
Kindly suggest.

推荐答案

如果你是使用客户端计算机上的 RS232 从外部设备收集数据,方法可以是:

  • 收集数据本地机器。
  • 将收集的数据发送到服务器(例如,通过 TCP通信 [ ^ ])。
If you are using the RS232 on the client machine for collecting data from an external device, the approach could be:
  • Collect data on the local machine.
  • Send collected data to the server (via, for instance, TCP communication[^]).


我遇到过这个解决方案..使用ActivXobject ..



I have come across this solution..Using ActivXobject..

function GetLineCount(filename) {
          alert('method start');
          var fso = new ActiveXObject("Scripting.FileSystemObject");
          var i = -1;
          if (fso.FileExists(filename)) {
              var CTF = fso.OpenTextFile(filename, 1, true);
                              data = CTF.ReadAll();
                              alert(data);
                              CTF.Close();

          }
      }



我还在做UAT。


I am still doing UAT on it.


这篇关于如何在asp.net的web应用程序中从服务器的客户端机器的RS232进行通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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