连接到远程设备

编程入门 行业动态 更新时间:2024-10-24 14:20:41
本文介绍了连接到远程设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用c#在asp中使用生物识别读取器(指纹)来进行时间和出勤项目.如果我想让软件专家与读者交流,请使用以下代码,

Hi , I''m doing a time and attendance project using a biometric reader(finger print) in asp with c#. If i want my softwate to communicate with the reader , i use the following code ,

bIsConnected = CtrlBioComm.Connect_Net("192.168.1.12", 4370);

192.168.1.12是读取器的IP. 但是现在我想与远程阅读器进行通信.我有一个静态IP.是否可以?有人告诉我,我必须使用Web服务来实现这一目标.任何人都可以引导我..

where 192.168.1.12 is the ip of the reader. But now i want to communicate with the remote reader. I have a static Ip.. Is it possible?.. Someone told me i have to use web service to achieve this.. Can anyone pls guide me..

推荐答案

如果您可以直接从计算机访问(ping)该设备,则您的应用程序也可以直接访问(ping)该设备,不需要Web服务(将不起作用,WS可以调用WebMethods而不是设备驱动程序功能). 可能您需要编写一些代码才能连接到互联网(例如代理设置),其余部分是相同的. if you can access (ping) the device from your computer directly, your application can also access the same directly, web service is not required (will not work instead, WS works to call WebMethods not device driver functions). probably you have to write some code to connect to internet (like proxy settings), rest is the same.

更多推荐

连接到远程设备

本文发布于:2023-11-23 21:05:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1622858.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:连接到   设备

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!