带有 RS-232 串行端口的 Javascript 接口

2022-01-18 00:00:00 windows-vista serial-port javascript

我目前正在从事一个涉及 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?

谢谢!

推荐答案

你喜欢复杂的 hacks 吗?

Do you like convoluted hacks?

安装网络服务器.使用 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.

将控件指向网页.

相关文章