我想制作一个能够控制客户端计算机上的硬件的网站
在本地主机上运行测试,使用c#编写的网站,能够连接到通信端口并向硬件传递命令,就像超级终端软件所做的那样
如果此网站已上传/托管,则这将不起作用,因为服务器没有将此硬件连接到所需的通信端口。
一种方法是要求托管公司为我设置一台特殊的计算机,并提供硬件驱动程序等。
不可能。
- 定义硬件,该硬件是遥控车。
那么解决办法是什么呢?
running test on local host, the website coded with c#, is able to connect to the comm port and pass commands to the hardware just as done by hyperterminal software
if this website is uploaded/hosted this will not work, as the server doesnot have this harware connected to the comm port needed.
one way is to ask the hosting company to set up a special computer for me with the hardware drivers etc.
not possible.
- defining hardware, the hardware is a remote control car.
so what is the solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以创建一个可以使用提升的权限运行的 Silverlight Out of Browser 应用程序。
也许也可以使用 ActiveX 访问 COM 端口。但这只是 Internet Explorer 的解决方案。
我发现这个博客,有人设法让它工作。
http://tech-michael.blogspot.com/2009 /12/silverlight-talking-to-arduino.html
You can create a Silverlight Out of Browser application which can run with elevated rights.
Perhaps it is possible to access the COM Port with ActiveX, too. But that would be a Internet Explorer only solution.
I found this blog where someone managed to get that working.
http://tech-michael.blogspot.com/2009/12/silverlight-talking-to-arduino.html