Real-time visual display method and system for sensor monitoring data
By using the server-set configuration files and terminal dynamic update technology in the sensor monitoring data visualization system, the problems of insufficient configuration flexibility, limited real-time limitation, poor scalability and weak error handling capabilities in the prior art are solved, and the effects of flexible configuration, real-time update and high scalability are achieved.
Patent Information
- Application Number
- CN202411929516.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-03-28
AI Technical Summary
Existing sensor monitoring data visualization methods have problems such as insufficient configuration flexibility, limited real-time capability, poor scalability and weak error handling capabilities.
The monitoring data display plan configuration file is set through the server, including monitoring data type, numerical interval, path or color code for the corresponding display picture, and allows the terminal to dynamically update the display screen based on the configuration file and the monitoring data obtained in real time.
It improves the flexibility and convenience of configuration, realizes synchronization and real-time between monitoring data and display screen, and enhances the scalability and error handling capabilities of the system.
Smart Images

Figure CN119719448A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electric power technology, and in particular to a method and system for real-time visualization of sensor monitoring data. Background Art
[0002] With the continuous advancement of sensor technology, there are more and more types of sensors and their performance is becoming more and more powerful. From simple temperature and humidity sensors to complex acceleration, magnetic field, image and other sensors, they can monitor various physical quantities in real time and convert data into electrical signals or digital signals for transmission and processing.
[0003] The advancement of network communication technology has provided strong support for the real-time transmission of sensor data. From wired networks to wireless networks, from local area networks to wide area networks, the development of network communication technology has enabled sensor data to transcend spatial limitations and achieve remote real-time monitoring and visualization.
[0004] With the rise of big data and artificial intelligence technologies, data processing and visualization technologies have also developed rapidly. Various data processing algorithms, data mining technologies, and visualization tools continue to emerge, providing more possibilities for real-time analysis and display of sensor monitoring data.
[0005] Real-time visualization of sensor monitoring data plays an important role in various application scenarios. For example, in industrial automation, sensor visualization technology is used for product positioning, counting, and defect detection; in environmental monitoring, sensor visualization technology is used to monitor environmental parameters such as air quality and water quality.
[0006] However, the existing visualization methods of sensor monitoring data have the following shortcomings:
[0007] Insufficient configuration flexibility: Existing sensor monitoring data visualization methods often rely on fixed configurations, which are difficult to flexibly adjust once set. This results in the need to reconfigure or even replace the system when monitoring needs or display requirements change, increasing maintenance costs and time.
[0008] Limited real-time performance: Although advances in network communication technology have made real-time data transmission possible, some visualization systems are difficult to achieve true real-time updates due to limitations in data processing or display technology, resulting in delays between monitoring data and display images.
[0009] Poor scalability: With the increase in sensor types and the complexity of monitoring needs, existing visualization systems are often unable to adapt to the access and display of new types of sensor data, limiting the scope of application of the system.
[0010] Weak error handling capability: During data acquisition or transmission, data anomalies or loss may occur due to network failures, sensor failures, etc. Existing visualization systems often lack effective error handling mechanisms, resulting in errors or blanks on the display screen, affecting the user experience. Summary of the invention
[0011] The technical problem to be solved by the present invention is to provide a method and system for real-time visualization of sensor monitoring data, which can improve the flexibility of configuration, the synchronization effect between monitoring data and display screen, and the scalability.
[0012] The technical solution adopted by the present invention is that, as one aspect of the present invention, a method for real-time visualization of sensor monitoring data is provided, which comprises the following steps:
[0013] Step S1, the server sets a monitoring data display scheme configuration file, including the monitoring data type, value range, and the path or color code of the corresponding display picture;
[0014] Step S2, the server distributes the configuration file to each terminal;
[0015] Step S3, the terminal receives the configuration file, and parses and extracts the monitoring data type, value range, display image and color information;
[0016] Step S4, the terminal creates a visualization element according to the configuration file and initializes the display screen;
[0017] Step S5, the terminal periodically acquires sensor monitoring data through the object data acquisition network;
[0018] Step S6, the terminal matches the acquired monitoring data with the value range in the configuration file to determine a new display image and background color;
[0019] Step S7: The terminal updates and displays the visualization image to reflect the latest monitoring status.
[0020] Preferably, in step S1, the server designs the configuration file structure, sets the display rules, and generates the configuration file through the configuration management module.
[0021] Preferably, in step S3, the terminal uses a configuration file parsing module to read and parse the configuration file received from the server.
[0022] Preferably, in step S4, the terminal uses a visualization element creation module to create corresponding graphical interface elements according to the rules in the configuration file, and initializes the display screen.
[0023] Preferably, in step S2, a communication connection is established between the server and the terminal via a protocol such as TCP / IP, HTTP or WebSocket, and a configuration file is sent;
[0024] In step S5, the terminal periodically requests the latest monitoring data from the sensor or server through protocols such as MQTT and REST API.
[0025] Preferably, it also includes:
[0026] When data acquisition fails or data is abnormal, the terminal uses the error handling module to display a default screen or prompt information.
[0027] As another aspect of the present invention, a real-time visual display system for sensor monitoring data is also provided, which includes:
[0028] The server is used to set and store the monitoring data display scheme configuration file, and distribute the configuration file to each terminal;
[0029] The terminal is connected to the server for receiving the configuration file and generating and displaying the visualization image according to the configuration file;
[0030] Object data collection network, used to obtain sensor monitoring data in real time and transmit the data to the terminal;
[0031] Among them, the configuration file set by the server contains the monitoring data type, value range, and the path or color code of the corresponding display image. The terminal dynamically updates and displays the visualization image based on the configuration file and the monitoring data obtained in real time.
[0032] Preferably, the server further includes:
[0033] The configuration management module is used to design the configuration file structure, set display rules, and generate configuration files.
[0034] Preferably, the terminal further includes:
[0035] The configuration file parsing module is used to read and parse the configuration file received from the server, extract the monitoring data type, value range, display image and color information;
[0036] A visualization element creation module is used to create corresponding graphical interface elements according to the rules in the configuration file;
[0037] The error handling module is used to display a default screen or prompt information when data acquisition fails or data is abnormal.
[0038] Preferably, the object data acquisition network uses protocols such as MQTT and REST API to periodically request the latest monitoring data from the sensor or server; the communication connection between the server and the terminal uses TCP / IP, HTTP or WebSocket protocol.
[0039] Implementing the embodiments of the present invention has the following beneficial effects:
[0040] The present invention provides a method and system for real-time visual display of sensor monitoring data; a terminal application monitoring data display scheme configuration file is set by a server, and users are allowed to flexibly adjust according to actual needs, which greatly improves the flexibility and convenience of configuration.
[0041] At the same time, the terminal application obtains sensor monitoring data through the object data acquisition network through regular refresh, and updates the display screen in real time according to data changes, ensuring the synchronization and real-time nature of the monitoring data and the display screen.
[0042] Moreover, the visualization display method of the present invention does not rely on a specific sensor type or data format, supports the access and display of new types of sensor data, and greatly enhances the scalability and application scope of the system.
[0043] In addition, during the data acquisition or transmission process, the present invention provides a corresponding error handling mechanism, such as displaying a default screen or prompt information, to ensure that the system can give reasonable feedback when data is abnormal or lost, thereby improving user experience and system stability.
[0044] In summary, the present invention effectively solves the deficiencies in the prior art by providing a method for real-time visualization of sensor monitoring data, improves configuration flexibility, realizes real-time data updating, enhances system scalability and strengthens error handling capabilities, and has significant technical advantages and practical application value. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the drawings required for use in the embodiments of the present invention or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0046] Figure 1 A schematic diagram of the main process of an embodiment of a method for real-time visual display of sensor monitoring data provided by the present invention;
[0047] Figure 2 for Figure 1 A more detailed flow chart of
[0048] Figure 3 A schematic diagram of the structure of a real-time visual display system for sensor monitoring data provided by the present invention;
[0049] Figure 4 for Figure 3 Schematic diagram of the terminal structure in . DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0051] like Figure 1 FIG. 1 is a schematic diagram showing the main process of an embodiment of a method for real-time visualization of sensor monitoring data provided by the present invention. Figure 2 As shown, in this embodiment, the method includes the following steps:
[0052] Step S1, the server sets a monitoring data display scheme configuration file, including the monitoring data type, value range, and the path or color code of the corresponding display picture;
[0053] In a specific example, in step S1, the server designs a configuration file structure, sets display rules, and generates a configuration file through a configuration management module.
[0054] For example, in this step S1, it is necessary to design a configuration file structure: define a configuration file in JSON or XML format, including monitoring data type, value range, path or color code of the corresponding display image, etc.
[0055] At the same time, set display rules: for example, the data of the temperature sensor, when the value is between 0-25℃, the background is green and the picture is the "normal" icon; when it is between 25-35℃, the background is yellow and the picture is the "warning" icon; when it exceeds 35℃, the background is red and the picture is the "danger" icon.
[0056] Then generate the configuration file: According to the above rules, use a text editor or special tools to generate the configuration file and save it in the specified directory of the server.
[0057] An example data format (JSON) is as follows:
[0058] {
[0059] "sensorType":"temperature",
[0060] "ranges":[
[0061] {"min":0,"max":25,"color":"#00FF00","image":"normal.png"},
[0062] {"min":26,"max":35,"color":"#FFFF00","image":"warning.png"},
[0063] {"min":36,"max":100,"color":"#FF0000","image":"danger.png"} ]
[0065] }
[0066] This JSON data is just an example, it defines a configuration or rule set related to the temperature sensor. Specifically, it contains the following information:
[0067] sensorType: This is a string indicating the type of sensor, here "temperature", which means temperature sensor.
[0068] ranges: This is an array containing multiple objects, each of which defines a temperature range and its associated visual representation (color and image). These ranges are used to represent different temperature intervals and their corresponding states (such as normal, warning, danger, etc.). Each range object contains the following fields:
[0069] min: Indicates the lowest value of the temperature range.
[0070] max: Indicates the highest value in the temperature range.
[0071] Color: indicates the color code within the temperature range, used for visual distinction. For example, "#00FF00" represents green, "#FFFF00" represents yellow, and "#FF0000" represents red.
[0072] image: indicates the image file name associated with the temperature range for further visual representation or icon display. For example, "normal.png" may represent the normal state, "warning.png" may represent the warning state, and "danger.png" may represent the dangerous state.
[0073] In summary, this JSON data defines the configuration of a temperature sensor, including its type and the colors and images corresponding to different temperature ranges, which can be used to intuitively display the temperature status on the user interface or trigger the corresponding warning / alarm mechanism. It should be noted that in this process, ensure that the configuration file format is correct, the value intervals do not overlap, and cover all possible monitoring value ranges.
[0074] Step S2, the server distributes the configuration file to each terminal;
[0075] In a specific example, in step S2, a communication connection is established between the server and the terminal via a protocol such as TCP / IP, HTTP or WebSocket, and a configuration file is sent;
[0076] For example, in this step, the server needs to establish a communication connection with the terminal, read the configuration file content, and send it as a data packet to each connected terminal. After receiving the configuration file, the terminal generally sends a confirmation message to the server, indicating that it has successfully received and is ready to apply the new configuration.
[0077] Step S3, the terminal receives the configuration file, and parses and extracts the monitoring data type, value range, display image and color information;
[0078] In a specific example, in step S3, the terminal uses a configuration file parsing module to read and parse the configuration file received from the server. Specifically, the application (such as APP) in the terminal reads and parses the configuration file received from the server to extract information such as monitoring data type, value range, display picture and color.
[0079] Step S4, the terminal creates a visualization element according to the configuration file and initializes the display screen;
[0080] In a specific example, in step S4, the terminal uses the visualization element creation module to create corresponding graphical interface elements according to the rules in the configuration file, and initializes the display screen. In a specific example, the terminal will create corresponding graphical interface elements, such as background color blocks, icons, etc. according to the rules in the configuration file.
[0081] Step S5, the terminal periodically acquires sensor monitoring data through the object data acquisition network;
[0082] In a specific example, in step S5, the terminal periodically requests the latest monitoring data from the sensor or server through protocols such as MQTT, REST API, etc. In this step, the terminal application periodically requests the latest monitoring data from the sensor or server through an object data collection network (such as MQTT, REST API, etc.).
[0083] Step S6, the terminal matches the acquired monitoring data with the value range in the configuration file to determine a new display image and background color;
[0084] In this step, the terminal will match the acquired monitoring data with the value range in the configuration file to determine the new display image and background color. The terminal will render the visualization elements corresponding to the initial monitoring data on the terminal screen and wait for real-time data updates. For example, in one example, if the initial temperature is 20°C, the terminal application sets the background to green and displays the "normal" icon.
[0085] Step S7: The terminal updates and displays the visualization image to reflect the latest monitoring status.
[0086] Specific examples also include:
[0087] When data acquisition fails or data is abnormal, the terminal uses the error handling module to display a default screen or prompt message. For example, if the temperature rises to 30°C, the terminal application updates the background color to yellow and displays a "warning" icon, accompanied by a short prompt sound or text to notify the user.
[0088] like Figure 3 FIG. 1 is a schematic diagram showing a structure of an embodiment of a real-time visual display system for sensor monitoring data provided by the present invention. Figure 4 As shown, in this embodiment, the sensor monitoring data real-time visualization display system includes:
[0089] Server 2, used to set and store monitoring data display scheme configuration files, and distribute the configuration files to various terminals;
[0090] Terminal 1 is connected to the server for receiving the configuration file and generating and displaying the visualization image according to the configuration file;
[0091] Object data collection network 3, used to obtain sensor monitoring data in real time and transmit the data to the terminal;
[0092] More specifically, the object data collection network 3 uses protocols such as MQTT and REST API to periodically request the latest monitoring data from the sensor or server 2; the communication connection between the server 2 and the terminal 1 uses TCP / IP, HTTP or WebSocket protocols.
[0093] Among them, the server 2 includes a configuration management module 20, which is used to design the configuration file structure, set the display rules, and generate the configuration file; specifically, the configuration file set by the server 2 includes the monitoring data type, the numerical range, the path or color code of the corresponding display picture, and the terminal 1 will dynamically update and display the visualization picture according to the configuration file and the monitoring data obtained in real time.
[0094] In a specific example, Figure 4 As shown, the terminal 1 also includes:
[0095] The configuration file parsing module 10 is used to read and parse the configuration file received from the server, and extract the monitoring data type, value range, display image and color information;
[0096] A visualization element creation module 11 is used to create corresponding graphical interface elements according to the rules in the configuration file;
[0097] The error handling module 12 is used to display a default screen or prompt information when data acquisition fails or data is abnormal.
[0098] For more details, please refer to and combine the above Figure 1 to Figure 2 The description is not repeated here.
[0099] Implementing the embodiments of the present invention has the following beneficial effects:
[0100] The present invention provides a method and system for real-time visual display of sensor monitoring data; a terminal application monitoring data display scheme configuration file is set by a server, and users are allowed to flexibly adjust according to actual needs, which greatly improves the flexibility and convenience of configuration.
[0101] At the same time, the terminal application obtains sensor monitoring data through the object data acquisition network through regular refresh, and updates the display screen in real time according to data changes, ensuring the synchronization and real-time nature of the monitoring data and the display screen.
[0102] Moreover, the visualization display method of the present invention does not rely on a specific sensor type or data format, supports the access and display of new types of sensor data, and greatly enhances the scalability and application scope of the system.
[0103] In addition, during the data acquisition or transmission process, the present invention provides a corresponding error handling mechanism, such as displaying a default screen or prompt information, to ensure that the system can give reasonable feedback when data is abnormal or lost, thereby improving user experience and system stability.
[0104] In summary, the present invention effectively solves the deficiencies in the prior art by providing a method for real-time visualization of sensor monitoring data, improves configuration flexibility, realizes real-time data updating, enhances system scalability and strengthens error handling capabilities, and has significant technical advantages and practical application value.
[0105] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0106] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0107] The above disclosure is only a preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A method for real-time visualization of sensor monitoring data, characterized in that: The following steps are involved: Step S1, the server sets a monitoring data display scheme configuration file, including the monitoring data type, value range, and the path or color code of the corresponding display picture; Step S2, the server distributes the configuration file to each terminal; Step S3, the terminal receives the configuration file, and parses and extracts the monitoring data type, value range, display image and color information; Step S4, the terminal creates a visualization element according to the configuration file and initializes the display screen; Step S5, the terminal periodically acquires sensor monitoring data through the object data acquisition network; Step S6, the terminal matches the acquired monitoring data with the value range in the configuration file to determine a new display image and background color; Step S7: The terminal updates and displays the visualization image to reflect the latest monitoring status.
2. The method according to claim 1, characterized in that In step S1, the server designs the configuration file structure, sets the display rules, and generates the configuration file through the configuration management module.
3. The method according to claim 2, characterized in that In step S3, the terminal uses a configuration file parsing module to read and parse the configuration file received from the server.
4. The method according to claim 3, characterized in that In step S4, the terminal uses the visualization element creation module to create corresponding graphical interface elements according to the rules in the configuration file and initializes the display screen.
5. The method according to claim 4, characterized in that in: In step S2, a communication connection is established between the server and the terminal via a protocol such as TCP / IP, HTTP or WebSocket, and a configuration file is sent; In step S5, the terminal periodically requests the latest monitoring data from the sensor or server through protocols such as MQTT and REST API.
6. The method according to claim 5, characterized in that Also includes: When data acquisition fails or data is abnormal, the terminal uses the error handling module to display a default screen or prompt information.
7. A real-time visual display system for sensor monitoring data, characterized in that: include: The server is used to set and store the monitoring data display scheme configuration file, and distribute the configuration file to each terminal; The terminal is connected to the server for receiving the configuration file and generating and displaying the visualization image according to the configuration file; Object data collection network, used to obtain sensor monitoring data in real time and transmit the data to the terminal; Among them, the configuration file set by the server contains the monitoring data type, value range, and the path or color code of the corresponding display image. The terminal dynamically updates and displays the visualization image based on the configuration file and the monitoring data obtained in real time.
8. The system according to claim 7, characterized in that The server also includes: The configuration management module is used to design the configuration file structure, set display rules, and generate configuration files.
9. The system according to claim 8, characterized in that The terminal further includes: The configuration file parsing module is used to read and parse the configuration file received from the server, extract the monitoring data type, value range, display image and color information; A visualization element creation module is used to create corresponding graphical interface elements according to the rules in the configuration file; The error handling module is used to display a default screen or prompt information when data acquisition fails or data is abnormal.
10. The system according to claim 9, characterized in that The object data acquisition network uses protocols such as MQTT and RESTAPI to periodically request the latest monitoring data from sensors or servers; the communication connection between the server and the terminal uses TCP / IP, HTTP or WebSocket protocols.