CN111031059A - Websocket-based Internet of things large-screen monitoring system and method - Google Patents
Websocket-based Internet of things large-screen monitoring system and method Download PDFInfo
- Publication number
- CN111031059A CN111031059A CN201911341131.5A CN201911341131A CN111031059A CN 111031059 A CN111031059 A CN 111031059A CN 201911341131 A CN201911341131 A CN 201911341131A CN 111031059 A CN111031059 A CN 111031059A
- Authority
- CN
- China
- Prior art keywords
- websocket
- data
- ethernet
- server
- internet
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Multimedia (AREA)
- Computer And Data Communications (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses an Internet of things large-screen monitoring system and method based on WebSocket, and the Internet of things large-screen monitoring system based on WebSocket comprises a WebSocket interaction mechanism, a WebSocket heartbeat mechanism, a WebSocket reconnection mechanism, a WebSocket data processing mechanism, a WebSocket pushing mechanism and a monitoring mechanism.
Description
Technical Field
The invention relates to the technical field of Internet of things, in particular to a WebSocket-based Internet of things large-screen monitoring system and method.
Background
Under the current internet of things era, real-time monitoring is indispensable, and computer monitoring lays a foundation for unattended operation or unattended operation. However, many conventional or existing monitoring technologies have certain defects, which are mainly shown in the following points: flow resources are consumed, and the operation and maintenance cost is high; the traditional monitoring technology adopts a C/S system architecture, and a client needs to be installed on a special computer, so that the deployment cost is high, the updating and the maintenance are inconvenient, and the use is inconvenient; although the problem of troublesome deployment and maintenance is solved by a part of Web-based monitoring systems, the display data is updated by adopting a JavaScript polling or page refreshing mode periodically, so that the performance is low, the network overhead is high, and the economic burden is caused to a user.
Therefore, the WebSocket-based internet-of-things large-screen monitoring system and method are provided for solving the problem of real-time and timing data interaction in internet-of-things large-screen monitoring and improving usability and flexibility of the system, and are worthy of research.
Disclosure of Invention
Aiming at the defects of the prior art, the invention aims to provide a WebSocket-based Internet of things large-screen monitoring system and method.
The purpose of the invention is realized as follows:
an Internet of things large screen monitoring system based on WebSocket comprises an Internet of things large screen, a Web client industrial personal computer, a server end industrial personal computer, a WebSocket interaction mechanism, a WebSocket connection request, a WebSocket heartbeat mechanism, a WebSocket reconnection mechanism, a WebSocket data processing mechanism and an ebSocket pushing mechanism, wherein the Internet of things large screen is connected with the Web client industrial personal computer through an HMI bus, the Web client and the server end industrial personal computer are respectively provided with double Ethernet ports which are connected through a double Ethernet WebSocket protocol, the Ethernet ports are configured in the same network segment, and the double Ethernet ports are respectively described as Ethernet ① and Ethernet ②;
the WebSocket interaction mechanism is characterized in that a Web client WebSocket sends a WebSocket connection request to a server through an Ethernet ①, and the server establishes WebSocket connection with the client after verification;
a WebSocket heartbeat mechanism, wherein a Web client WebSocket sends a heartbeat package to a server through an Ethernet ②, and the Web client detects whether the current connection is normal;
the WebSocket reconnection mechanism is characterized in that after data interruption or disconnection, the WebSocket can establish a reconnection mechanism through the Ethernet ②, reconnection can be always carried out when no connection is connected, and a delay reconnection mechanism is arranged to avoid excessive requests;
the WebSocket data processing mechanism is characterized in that data received from a server through the Ethernet ① are provided with independent identifiers, the identifiers comprise equipment information and alarm data, and the WebSocket can be analyzed and extracted to only obtain 'new' data;
the system comprises a WebSocket pushing mechanism, wherein a Web client WebSocket continuously receives equipment data pushed by a server through an Ethernet ①, when the WebSocket receives the data for the first time, all the data are pushed and displayed to an Internet of things large screen in real time, and when receipts are received for the second time/times, the WebSocket only updates alarm data or change data and pushes and displays the alarm data or change data to the Internet of things large screen;
and the monitoring mechanism monitors the picture to display the state of the equipment and alarm data in real time, and realizes a dynamic monitoring function.
A Web socket-based Internet of things large screen monitoring method comprises the following steps of 101, sending a Websocket connection request to a server by a client Websocket, establishing Websocket connection with the client after verification by the server, 102, sending a heartbeat packet to the server by the client Websocket, detecting whether current connection is normal or not by the client Websocket, 103, if data is interrupted or disconnected, establishing a reconnection mechanism by the Websocket, and if the connection is not always reconnected, setting a delay reconnection mechanism to avoid excessive requests, 104, analyzing and extracting an identifier data plane received by the Web socket Ethernet ① from the server, 105, pushing server end data received by the Web socket Ethernet ① of the Web client to a large screen, 106, displaying equipment state and alarm data in real time by the Internet of things large screen through a monitoring picture, and achieving a dynamic monitoring function.
The invention has the beneficial effects that: the invention is light in weight, completely based on a static page, has no server end code, high operation efficiency and flow saving, only receives data sent by a server end for the first time, only stores changed data or alarm data when receiving data for the second time or multiple times, then pushes the data to a large monitoring screen, keeps synchronization of a monitoring picture and actual data, and when the data changes, WebSocket pushes the data to the large monitoring screen in time without refreshing the page, thereby having good experience effect.
Drawings
FIG. 1 is a schematic structural diagram of an Internet of things large screen, a Web client industrial personal computer and a server industrial personal computer;
FIG. 2 is a flow chart of a large-screen monitoring method of the Internet of things based on WebSocket;
fig. 3 is a working principle diagram of the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
Example 1
As shown in fig. 1 and 2, an internet of things large screen monitoring system based on WebSocket includes an internet of things large screen, a Web client industrial personal computer, a server industrial personal computer, a WebSocket interaction mechanism, a WebSocket connection request, a WebSocket heartbeat mechanism, a WebSocket reconnection mechanism, a WebSocket data processing mechanism, and an ebSocket push mechanism, the internet of things large screen is connected with the Web client industrial personal computer through an HMI bus, the Web client and the server industrial personal computer both have dual ethernet ports, and are connected through a dual ethernet WebSocket protocol, the ethernet ports are configured in the same network segment, and the dual ethernet ports are respectively described as ethernet ① and ethernet ②;
the WebSocket interaction mechanism is characterized in that a Web client WebSocket sends a WebSocket connection request to a server through an Ethernet ①, and the server establishes WebSocket connection with the client after verification;
as shown in fig. 3, in the WebSocket heartbeat mechanism, a Web client WebSocket sends a heartbeat packet to a server through an ethernet ②, and the Web client detects whether the current connection is normal, wherein the heartbeat mechanism is that an initial heartbeat time value is set first, then the system automatically sets a heartbeat time value for the offline time before counting, if the initial value is set to 2 seconds, the average offline time of the system after statistical analysis is 30 minutes, and the shortest offline time is 20 minutes, then the heartbeat time value is automatically adjusted to 10 minutes, so that the system is ensured to be stable and resources are saved;
the WebSocket reconnection mechanism is characterized in that after data interruption or disconnection, the WebSocket can establish a reconnection mechanism through the Ethernet ②, reconnection can be always carried out when no connection is connected, and a delay reconnection mechanism is arranged to avoid excessive requests;
the WebSocket data processing mechanism is characterized in that data received from a server through the Ethernet ① are provided with independent identifiers, the identifiers comprise equipment information and alarm data, and the WebSocket can be analyzed and extracted to only obtain 'new' data;
the system comprises a WebSocket pushing mechanism, wherein a Web client WebSocket continuously receives equipment data pushed by a server through an Ethernet ①, when the WebSocket receives the data for the first time, all the data are pushed and displayed to an Internet of things large screen in real time, and when receipts are received for the second time/times, the WebSocket only updates alarm data or change data and pushes and displays the alarm data or change data to the Internet of things large screen;
and the monitoring mechanism monitors the picture to display the state of the equipment and alarm data in real time, and realizes a dynamic monitoring function.
Example 2
As shown in FIGS. 2 and 3, the Internet of things large screen monitoring method based on the Websocket comprises the following steps of 101, sending a Websocket connection request to a server by the client Websocket, establishing Websocket connection with the client after verification of the server, 102, sending a heartbeat packet to the server by the client Websocket, detecting whether current connection is normal or not by the client Websocket, 103, if data is interrupted or disconnected, establishing a reconnection mechanism by the Websocket, always reconnecting the Websocket without connection, and setting a delay reconnection mechanism to avoid excessive requests, 104, analyzing and extracting identifier data received by the Web socket Ethernet ① from the server, 105, pushing server data received by the Web socket Ethernet ① to a large screen, displaying all data to the large screen in real time when the Web socket receives the data for the first time, and displaying alarm data or real-time change data to the large screen of the Internet of things by the Websocket when the data is received for the second time or multiple times, and displaying alarm data on the large screen of the Internet of things by the Websocket, and realizing dynamic monitoring functions through 106 and displaying the alarm data of the Internet of things.
The invention is light in weight, completely based on a static page, has no server end code, high operation efficiency and flow saving, only receives data sent by a server end for the first time, only stores changed data or alarm data when receiving data for the second time or multiple times, then pushes the data to a large monitoring screen, keeps synchronization of a monitoring picture and actual data, and when the data changes, WebSocket pushes the data to the large monitoring screen in time without refreshing the page, thereby having good experience effect.
Claims (2)
1. The Internet of things large screen monitoring system based on WebSocket is characterized by comprising an Internet of things large screen, a Web client industrial personal computer, a server-side industrial personal computer, a WebSocket interaction mechanism, a WebSocket connection request, a WebSocket heartbeat mechanism, a WebSocket reconnection mechanism, a WebSocket data processing mechanism and an ebSocket pushing mechanism, wherein the Internet of things large screen is connected with the Web client industrial personal computer through an HMI (human machine interface) bus, the Web client and the server-side industrial personal computer are respectively provided with double Ethernet ports which are connected through a double Ethernet WebSocket protocol, the Ethernet ports are configured in the same network segment, and the double Ethernet is respectively described as Ethernet ① and Ethernet ②;
the WebSocket interaction mechanism is characterized in that a Web client WebSocket sends a WebSocket connection request to a server through an Ethernet ①, and the server establishes WebSocket connection with the client after verification;
a WebSocket heartbeat mechanism, wherein a Web client WebSocket sends a heartbeat package to a server through an Ethernet ②, and the Web client detects whether the current connection is normal;
the WebSocket reconnection mechanism is characterized in that after data interruption or disconnection, the WebSocket can establish a reconnection mechanism through the Ethernet ②, reconnection can be always carried out when no connection is connected, and a delay reconnection mechanism is arranged to avoid excessive requests;
the WebSocket data processing mechanism is characterized in that data received from a server through the Ethernet ① are provided with independent identifiers, the identifiers comprise equipment information and alarm data, and the WebSocket can be analyzed and extracted to only obtain 'new' data;
the system comprises a WebSocket pushing mechanism, wherein a Web client WebSocket continuously receives equipment data pushed by a server through an Ethernet ①, when the WebSocket receives the data for the first time, all the data are pushed and displayed to an Internet of things large screen in real time, and when receipts are received for the second time/times, the WebSocket only updates alarm data or change data and pushes and displays the alarm data or change data to the Internet of things large screen;
and the monitoring mechanism monitors the picture to display the state of the equipment and alarm data in real time, and realizes a dynamic monitoring function.
2. A Web socket-based Internet of things large screen monitoring method is characterized by comprising the following steps of 101, sending a Websocket connection request to a server by a client Websocket, establishing Websocket connection with the client after verification by the server, 102, sending a heartbeat packet to the server by the client Websocket, detecting whether current connection is normal or not by the client Websocket, 103, if data is interrupted or disconnected, establishing a reconnection mechanism by the Websocket, continuously reconnecting the Websocket without connection, setting a delay reconnection mechanism to avoid excessive requests, 104, analyzing and extracting an identifier data plane received by the Web socket Ethernet ① from the server, 105, pushing server data received by the Web socket Ethernet ① of the client to an Internet of things large screen, and 106, displaying equipment state and alarm data in real time by the Internet of things large screen through a monitoring picture to realize a dynamic monitoring function.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911341131.5A CN111031059A (en) | 2019-12-23 | 2019-12-23 | Websocket-based Internet of things large-screen monitoring system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911341131.5A CN111031059A (en) | 2019-12-23 | 2019-12-23 | Websocket-based Internet of things large-screen monitoring system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111031059A true CN111031059A (en) | 2020-04-17 |
Family
ID=70211752
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911341131.5A Withdrawn CN111031059A (en) | 2019-12-23 | 2019-12-23 | Websocket-based Internet of things large-screen monitoring system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111031059A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111600955A (en) * | 2020-05-18 | 2020-08-28 | 山东汇贸电子口岸有限公司 | Websocket-based foreground processing method and system |
CN112866345A (en) * | 2020-12-31 | 2021-05-28 | 珠海派诺科技股份有限公司 | Websocket-based streaming media low-delay communication implementation method, electronic device and storage medium |
CN113132477A (en) * | 2021-04-16 | 2021-07-16 | 易斌 | Real-time transmission interaction method and system for browser terminal and equipment |
CN113507382A (en) * | 2020-09-28 | 2021-10-15 | 西部证券股份有限公司 | Data early warning monitoring method and system based on enterprise WeChat |
CN113611052A (en) * | 2021-07-02 | 2021-11-05 | 南京华设云信息技术有限公司 | Electronic invoice printing system based on electric power internet of things |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105306288A (en) * | 2014-06-27 | 2016-02-03 | 中兴通讯股份有限公司 | WebSocket server monitoring method and device |
CN105915411A (en) * | 2016-06-20 | 2016-08-31 | 河南派亚尼尔自动化设备有限公司 | WebSCADA-based internet-of-things monitoring platform and application method |
CN105915394A (en) * | 2016-06-20 | 2016-08-31 | 河南派亚尼尔自动化设备有限公司 | Visual monitoring platform based on HTML5 and application method |
CN106850745A (en) * | 2016-12-23 | 2017-06-13 | 北京五八信息技术有限公司 | A kind of real-time synchronization method and device |
US20170302756A1 (en) * | 2016-04-19 | 2017-10-19 | International Business Machines Corporation | Delivery of incremental sensor data over optimized channel |
CN109769001A (en) * | 2019-03-19 | 2019-05-17 | 中信梧桐港供应链管理有限公司 | A kind of internet of things data transmission method and system |
-
2019
- 2019-12-23 CN CN201911341131.5A patent/CN111031059A/en not_active Withdrawn
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105306288A (en) * | 2014-06-27 | 2016-02-03 | 中兴通讯股份有限公司 | WebSocket server monitoring method and device |
US20170302756A1 (en) * | 2016-04-19 | 2017-10-19 | International Business Machines Corporation | Delivery of incremental sensor data over optimized channel |
CN105915411A (en) * | 2016-06-20 | 2016-08-31 | 河南派亚尼尔自动化设备有限公司 | WebSCADA-based internet-of-things monitoring platform and application method |
CN105915394A (en) * | 2016-06-20 | 2016-08-31 | 河南派亚尼尔自动化设备有限公司 | Visual monitoring platform based on HTML5 and application method |
CN106850745A (en) * | 2016-12-23 | 2017-06-13 | 北京五八信息技术有限公司 | A kind of real-time synchronization method and device |
CN109769001A (en) * | 2019-03-19 | 2019-05-17 | 中信梧桐港供应链管理有限公司 | A kind of internet of things data transmission method and system |
Non-Patent Citations (3)
Title |
---|
王民昆: "基于CIM/G的电网调度控制系统 Web图形展示技术", 《电力系统自动化》 * |
胡朝举: "基于 WebSocket 的云监控系统的研究", 《电脑编程技巧与维护》 * |
范鹏程: "基于 WebSocket 技术的温湿度监控系统研究", 《湖北农业科学》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111600955A (en) * | 2020-05-18 | 2020-08-28 | 山东汇贸电子口岸有限公司 | Websocket-based foreground processing method and system |
CN111600955B (en) * | 2020-05-18 | 2023-03-28 | 山东汇贸电子口岸有限公司 | Websocket-based foreground processing method and system |
CN113507382A (en) * | 2020-09-28 | 2021-10-15 | 西部证券股份有限公司 | Data early warning monitoring method and system based on enterprise WeChat |
CN112866345A (en) * | 2020-12-31 | 2021-05-28 | 珠海派诺科技股份有限公司 | Websocket-based streaming media low-delay communication implementation method, electronic device and storage medium |
CN112866345B (en) * | 2020-12-31 | 2022-12-16 | 珠海派诺科技股份有限公司 | Websocket-based streaming media low-delay communication implementation method, electronic device and storage medium |
CN113132477A (en) * | 2021-04-16 | 2021-07-16 | 易斌 | Real-time transmission interaction method and system for browser terminal and equipment |
CN113132477B (en) * | 2021-04-16 | 2023-09-19 | 成都易明半导体有限公司 | Real-time transmission interaction method and system for browser terminal and equipment |
CN113611052A (en) * | 2021-07-02 | 2021-11-05 | 南京华设云信息技术有限公司 | Electronic invoice printing system based on electric power internet of things |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111031059A (en) | Websocket-based Internet of things large-screen monitoring system and method | |
CN107645529B (en) | Heartbeat packet sending method and device | |
WO2016004733A1 (en) | Integrated system and method for figure/model/data of main distributed grid based on remote retrieval and information interaction | |
CN110120961B (en) | Distributed service cluster and route synchronization method thereof | |
CN104980898A (en) | Information pushing method, system and equipment | |
CN106100914A (en) | The method for pushing of a kind of cloud AC warning information and system | |
CN101426181A (en) | Intelligent multimedia information mobile phone viewing system having instant interaction and implementation method | |
CN104866272A (en) | Control treatment system and method of monitor screen wall | |
CN101969463A (en) | Method for realizing whiteboard full-screen synchronization on web page | |
CN111669438A (en) | Live broadcast message transmission method and device, electronic equipment and medium | |
CN103607423A (en) | Distributed broadcast system based on WebSocket protocol | |
WO2019019897A1 (en) | Data processing system, method and apparatus | |
US20140075046A1 (en) | Information management method and device | |
EP2523407B1 (en) | Method and apparatus to determine the amount of delay in the transfer of data associated with a tcp zero window event or set of tcp zero window events | |
CN110661884A (en) | Switching system and method of cloud desktop and local desktop | |
CN103312586B (en) | A kind of method of instant messaging, system and server | |
CN107566881B (en) | VR equipment control method, device and system | |
CN114500243B (en) | Data communication method, device, computer readable medium and electronic equipment | |
CN105263169A (en) | WLAN equipment management frame transmission speed adjusting method and system, WLAN equipment | |
CN109275156B (en) | Wifi network alarm information control method and system | |
CN105357387A (en) | Method, apparatus and system for wakening terminal | |
CN107291409B (en) | Online desktop sharing method and system | |
CN102724213B (en) | A kind of virtual seamless desktop and implementation method | |
CN111600955B (en) | Websocket-based foreground processing method and system | |
CN108737460A (en) | A kind of processing method and client of connection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20200417 |