为解决基于Web的工业远程控制中的无线传输短连接问题,设计了一种基于Qt和Web的工业远程控制系统。该系统利用Qt中的信号和槽机制及socket通信套接字,使Qt后台软件与工业主控制器的WiFi通信模块建立长连接数据收发功能;采用Web编程技术编写网页,以Ajax技术实现网页的动态无刷新功能;将MySQL数据库作为数据中转站,为Web网页提供数据显示和控制功能。经测试,整个远程控制系统运行正常,能够在无线传输中适应频繁的数据收发操作并保持长连接通信,实现了用户通过浏览器对工业现场的远程控制。
In order to solve the problem of short connection of wireless transmission in industrial remote control based on Web,an industrial remote control system based on Qt and Web is designed.The system uses the mechanism of signal and slot in Qt and socket communication to make the Qt software and the WiFi module of the main controller establish a long connection of data transmitting and receiving; the system uses Web programming to write the Web page and uses Ajax to achieve the dynamic function without refreshing; It uses MySQL database as the data transfer station for the function of data display and control in Web page.h is indicated by test that the remote control system is in normal operation. It can adapt to the frequent operations of data transfer and maintain long connection communication in wireless transmission,and it allows users to control the industrial site by a browser.