通过我自己的网页通过rs232进行串口设备控制

编程入门 行业动态 更新时间:2024-10-24 04:30:50
本文介绍了通过我自己的网页通过rs232进行串口设备控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

你好! 我刚用html和javascript创建了一个网页。页面以带有各种按钮的控制面板图像为中心。每个按钮旁边都有2个矩形,当按下按钮时,正方形从红色变为绿色(开启时)。我的问题是:你能通过我的网页控制一台串口机吗? (如果我按下网站上的按钮,它就会关闭,同时也会在串口机上关闭它吗? 我尝试了什么: 什么都没有,因为我现在不知道在哪里以及如何开始所以请帮助我

Hello! I just created a web page using html and javascript. The page centered on an image of a control panel with various buttons. Next to each button there are 2 rectangles the squares when crushing the button pass from red to green (on off). My question is this: can you control a serial machine through my web page? (If I press on the button on the site it is turned off and also on the serial machine it goes from on to off? What I have tried: nothing till now cause i dont now where and how to start so please help me

推荐答案

是,如果串行机器连接到服务器。例如,通过 exec [ ^ ]来电, PHP 代码可以执行程序以启动/停止串行机器。 Yes, if the serial machine is connected to the server. For instance, via the exec[^] call, PHP code can execute a program in order to start/stop the serial machine.

更多推荐

通过我自己的网页通过rs232进行串口设备控制

本文发布于:2023-10-26 12:01:23,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1530077.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自己的   串口   网页   设备

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!