通过串口从 HTML5 页面发送和接收信息

发布于 2024-12-11 03:30:00 字数 145 浏览 3 评论 0原文

我必须制作一个 HTML5 页面,以便在手持控制台上运行,该控制台通过 RS485 串行端口(如果我是对的,这是 RS232 的工业版本!) 通信信息。

我想知道我可以使用哪种编程语言从 HTML5 页面向串行端口 RS485 发送或接收信息?我期待您的回复。

I have to make a HTML5 page to run on a handheld console that communicates information through a RS485 serial port (which is an industrial version of the RS232, if I am right!).

I wonder which programming language can I use to send or receive information from my HTML5 page to the serial port RS485? I look forward to your responses.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风情万种。 2024-12-18 03:30:00

如果您的意思是想要与控制台上的串行端口进行交互,那么您可能应该使用 JavaScript。我不确定是否有任何现代浏览器允许您诚实。如果您的意思是在服务器上,那么您可以使用 PHP 并使用此 PHP 串行接口

如果您尝试在设备上执行此操作,那么我唯一的建议是以某种方式再次使用 PHP 串行接口在设备上安装 Web 服务器。

If you mean that you want to interface with the Serial Port on the console then you should probably use JavaScript. I'm not sure if any modern browser will allow you to to be honest. If you mean on the server then you could use PHP and use this PHP-Serial Interface.

If you are trying to do it on the device then my only suggestion would be to somehow install a web server on the device again use the PHP-Serial interface.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文