从串口读取 [英] Reading from a serial port

查看:83
本文介绍了从串口读取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



谁能帮我吗.我正在尝试从asp.net应用程序中的串行端口读取.
我已经从ActiveComport串行端口工具包下载并安装了ActiveX控件,并试图在后面的代码中实现它,但是它什么也没读. 有谁知道我可以实现这一目标的方法吗?

感谢您的任何建议.

Chris

Hi

Can any one help me out. I am trying to read from a serial port in an asp.net application.
I have downloaded and installed the ActiveX control from ActiveComport Serial Port Toolkit and have tried to implement it in the code behind, but it does not read anything..
Does any one know a way I can achieve this?

Thanks for any suggestions.

Chris

推荐答案

如果它是第三方库,最好与他们的技术支持联系.
If it''s a 3rd party library, it would be best to talk to their tech support.


第一个告诉我你为什么要进行第三方ativeX控件,以实现背后的代码.
您是否打算访问客户端PC/Server的服务端口?

如果是服务器端,则可以直接使用串行端口类...
First tell me why are u going for 3rd party ativeX control, to implement code behind.
are you tring to access the serilport of client PC/ Server???

if it is server side, you can use the Serial Port class directly...


您好,

因此,您想从网页访问客户端串行端口,这在访问客户端资源时会导致一些安全问题.但是您可以通过在网页中嵌入Active X来做到这一点,但是客户端在访问此端口时会收到警告成分.

局限性:
[1]即使您进行了数字签名,您的用户也会收到安全警告,提示他们下载ActiveX组件.

[2]如果您决定废弃VB Comonent并使用.NET ActiveX对象,则需要确保用户在其计算机上具有.NET框架.

[3] Netscape/Mozilla对ActiveX组件不太友好.

谢谢与问候
拉杰什B
Hi.,

So you want to access client Serial Port from your web pages , this leads to some security issues while accessing the client resources., but you can do it with embed Active X in your web pages., but client will get a warning while accessing this components.

Limitations:
[1] Your users will get a security warning prompting them to download the ActiveX component, even when you have had it digitally signed.

[2] If you decide to scrap your VB Comonent and go with a .NET ActiveX object, you''re going to need to make sure the user has the .NET framework on his/her machine.

[3] Netscape/Mozilla is less than friendly with ActiveX components.

Thanks & Regards
Rajesh B


这篇关于从串口读取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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