带RS-232串行端口的Javascript接口 [英] Javascript interface with RS-232 Serial Port
问题描述
我目前正在从事一个涉及4端口A/V开关的项目.该开关可以通过RS-232进行控制.
I am currently working on a project that involves a 4 Port A/V switch. This switch can be controlled via RS-232.
将与交换机连接的计算机运行Vista.我想创建一个具有4个按钮的侧边栏小工具-交换机上的每个端口1个.当用户按下按钮时,它将切换到该端口.
The computer that will interface with the switch runs Vista. I would like to create a sidebar gadget that has 4 buttons- 1 for each port on the switch. When the user presses the button, it switches to that port.
我做了一些谷歌搜索,看来在javascript和rs-232之间没有很好的接口.
I have done a bit of googling, and it seems that there isn't a very good way to interface between javascript and rs-232.
有人对我有什么建议吗?
Does anyone have any suggestions for me?
谢谢!
推荐答案
您喜欢令人费解的骇客吗?
Do you like convoluted hacks?
安装Web服务器.使用CGI,Python,PHP,Perl或其他方法从Web服务器上的页面控制串行端口.
Install a webserver. Use CGI, Python, PHP, Perl, or some other method to control the serial port from a page on the webserver.
将控件指向网页.
这篇关于带RS-232串行端口的Javascript接口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!