如何编写在浏览器中控制rs232的代码(首选C#.NET) [英] How to write a code (C#.NET preferred) that controls rs232 from within a browser
本文介绍了如何编写在浏览器中控制rs232的代码(首选C#.NET)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要向连接到本地PC RS232的投影仪发送开/关命令.控制程序必须是基于Web的浏览器.我知道我可以购买能够解决问题的商业ActiveX组件,但是它们非常昂贵,并且我不能使用第三方软件(公司政策).需要自己写.
I need to send an on/off command to a projector connected to a local PC RS232. The control program must be web based running in the browser. I know that I can buy a commercial ActiveX component that would do the trick but they are quite expensive and I cannot use third party software (the company policy). Need to write it myself. Any step by step instructions would be greatly appreciated.
推荐答案
请参阅下面的链接以使用c管理串行com,然后可以在c#.net <中构建自定义控件. br/>
使用Fluke和PC进行RS 232串行编程. /a> [ ^ ]
See the following link to manage serial com with c, then you can build a custom control in c#.net
RS 232 serial programming using fluke and PC.[^]
什么组件?!没办法!
如果您更喜欢C#,则只需使用此System.IO.Ports.SerialPort
;请参阅 http://msdn.microsoft.com/en-us/library/system .io.ports.serialport.aspx [ ^ ].
—SA
What component?! No way!
If you prefer C#, just use thisSystem.IO.Ports.SerialPort
; see http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx[^].
—SA
这篇关于如何编写在浏览器中控制rs232的代码(首选C#.NET)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文