Data query display method and system and electronic equipment
Through a single gateway matching interface display and protocol and data acquisition template, the problem of insufficient flexibility in data acquisition and display of multiple devices is solved, efficient and intuitive data display is achieved, and users' needs for data visualization are met.
Patent Information
- Application Number
- CN202510576968.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-06
- Publication Date
- 2025-08-19
AI Technical Summary
The prior art lacks flexibility in multi-device data acquisition and display, and cannot quickly adapt to different device protocols and data formats, resulting in complex processes and lack of intuitiveness and readability, making it difficult to meet users' needs for data visualization.
A single gateway is used to realize data query of multiple devices, display templates, protocols, and data acquisition templates by matching the target interface, automatically adapt according to the device model, and obtain target data from the database for processing and display.
It realizes rapid adaptation to multiple models of equipment, improves the accuracy and efficiency of data acquisition, provides an intuitive data display method, and meets users' needs for data visualization.
Smart Images

Figure CN120508584A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to a data query and display method, system, and electronic device. Background Art
[0002] Data query and display technology occupies an important position in the modern information society. With the popularization of IoT devices and the surge in data volume, how to efficiently and accurately collect, process and present device data to users has become a core issue of concern in the industry.
[0003] In the existing technology, in order to realize the collection and display of multi-device data, the following methods are usually adopted: First, different devices are connected through multiple independent gateways, and each gateway is responsible for data collection and transmission of a specific device; second, multiple generating devices are connected through a single gateway, and data collection is performed according to a preset fixed protocol; third, manually write scripts or programs to customize the data collection and display logic for different devices.
[0004] These methods generally suffer from a lack of flexibility, particularly when dealing with multiple device models. They are unable to quickly adapt to different device protocols and data formats, making data collection and presentation complex and time-consuming. Furthermore, traditional methods primarily rely on a single text display format, lacking intuitiveness and readability, making them difficult to meet user needs for data visualization. These issues have limited the widespread adoption and development of data query and presentation technologies in practical applications. Summary of the Invention
[0005] The purpose of this application is to overcome the above-mentioned technical problems and provide a data query and display method, system and electronic device. By adopting a single gateway to query the production data of multiple devices, the flexibility of data processing is improved, and the intuitiveness and readability of data display are achieved, meeting the user's demand for data visualization.
[0006] In a first aspect, an embodiment of the present application discloses a data query and display method, which adopts the following scheme: A data query and display method comprises: receiving a data query instruction of a target device; matching a target interface display template according to the model of the target device and determining a target protocol template and a target data acquisition template to be executed by a gateway acquisition database, wherein the target data acquisition template comprises an address range corresponding to the target data and a data processing rule corresponding to the target data, wherein the data processing rule comprises a data calculation formula and a data splicing method; obtaining target data corresponding to the target device from a database according to the address range and the data processing rule; associating the target data with the target interface template and rendering and displaying it on a display interface.
[0007] By adopting this technical solution, we can automatically match the appropriate interface display template to the target device model, as well as match protocol templates and data collection templates for a single gateway. This allows for rapid adaptation of multiple device models, accurately retrieves the target device's required data from the database, and processes and displays it according to the preset rules of the interface display template. This method improves data processing flexibility and makes data display intuitive and readable, meeting user needs for data visualization.
[0008] Optionally, obtaining the target data corresponding to the target device from the database according to the address range and the data processing rules also includes: obtaining the real-time data of the target device from the database according to the address range and the target protocol template through the gateway; and calculating and integrating the real-time data according to the data processing rules to obtain the target data corresponding to the target device.
[0009] By adopting the above technical solution, it is possible to accurately obtain the real-time data of the target device from the database, and to calculate and integrate the real-time data through data processing rules to obtain target data that meets the needs of the target device. This not only improves the accuracy of data collection, but also enhances the flexibility and efficiency of data processing. Specific effects include: through the gateway, the real-time data of the target device is obtained from the database based on the address range and the use of the target protocol template, ensuring the targeted and real-time nature of data collection and reducing the interference of redundant data; through the calculation and integration of real-time data through data processing rules, it is possible to effectively process complex data, meet the specific requirements of the target device for data format and content, and improve the usability and intuitiveness of data display.
[0010] Optionally, associating the target data with the target interface template and rendering and displaying it on the display interface includes: obtaining the to-be-configured items and configuration rules in the target interface template; matching the target data with the target interface template according to the to-be-configured items and the configuration rules, and rendering and displaying the matched target data on the display interface.
[0011] By employing the above technical solution, we achieve precise matching and efficient display of target data and the target interface template. Specifically, by obtaining the configuration items and configuration rules from the target interface template, we ensure that the target data is accurately mapped to the designated location of the target interface template, improving the pertinence and accuracy of data display. Matching the target data to the target interface template and rendering it on the display interface optimizes the user experience, allowing users to intuitively and clearly view the relevant data of the target device.
[0012] Optionally, before receiving the data query instruction of the target device, the method also includes: receiving the protocol configuration instruction of the gateway relative to the target device; and selecting the corresponding protocol template from the protocol library as the target protocol template for data collection through the gateway according to the protocol configuration instruction and the protocol adopted by the target device.
[0013] By adopting the above technical solution, it is possible to select an appropriate protocol template from the protocol library as the target protocol template for data collection by the gateway based on the protocol configuration instructions and the protocol used by the target device before receiving the data query instruction from the target device. The effects of this solution include: improving the accuracy of data collection by pre-configuring a protocol template that matches the target device protocol, ensuring that the gateway can correctly parse and collect database data; enhancing the flexibility and adaptability of the system, supporting dynamic selection of protocol templates based on the protocol requirements of different target devices, and being applicable to multiple device types; and optimizing the data processing process, reducing data collection failures or errors caused by protocol mismatches, and improving the stability and reliability of the entire system.
[0014] Optionally, before receiving the data query instruction of the target device, it includes: receiving the data processing configuration instruction of the gateway relative to the target device; configuring the address range and the data processing rules through the gateway according to the data processing configuration instruction and the model of the target device to serve as the target data collection template.
[0015] By adopting this technical solution, the gateway can pre-configure the address range and data processing rules for data collection from the target device based on the target device's model and data processing configuration instructions before receiving the target device's data query instructions. This solution has the following benefits: improving the targetedness and accuracy of data collection, ensuring that the gateway can accurately collect data based on the specific needs of the target device; simplifying the subsequent data processing process by pre-configuring data processing rules, reducing unnecessary data calculations and splicing errors; and enhancing the system's flexibility and adaptability, supporting customized data collection templates for different device models.
[0016] Optionally, before receiving the data query instruction of the target device, the method further includes: binding the target data acquisition template and the target interface display template to the model of the target device respectively.
[0017] By employing this technical solution, we achieve the effect of binding the target data collection template and target interface display template to the target device model before receiving the target device's data query command. This solution ensures a close connection between data collection and interface display, improves the consistency and accuracy of data processing and display, reduces the error rate in the template matching process, and improves the system's operational efficiency.
[0018] Optionally, it also includes: receiving an instruction for a new device to associate with a gateway; configuring a protocol template and a data collection template to be executed by the collection database for the gateway according to the model and execution protocol of the new device, and binding and storing them.
[0019] By implementing this technical solution, we achieve rapid integration and configuration of new devices. Specifically, by receiving instructions from the new device's associated gateway, the system can promptly respond to the needs of the newly added device, improving system scalability. We configure the corresponding protocol template and data collection template based on the new device's model and execution protocol, ensuring the accuracy and adaptability of data collection. Binding and storing the configured protocol template and data collection template facilitates subsequent unified management and access, improving system maintenance efficiency.
[0020] Optionally, the method further includes: receiving a template modification instruction; and modifying and updating the target protocol template and the target data acquisition template according to the template modification instruction.
[0021] By adopting the above technical solution, the target protocol template and target data collection template can be flexibly modified and updated. Specifically, by modifying the target protocol template, it can be dynamically adjusted according to actual needs, ensuring that the gateway adapts to the protocol requirements of different devices during the data collection process, thereby improving the system's compatibility and adaptability. Modifying and updating the target data collection template, including adjusting the data collection address range and data processing rules, enables the system to promptly optimize data collection and processing logic based on changes in device characteristics and data processing requirements, thereby improving the accuracy and efficiency of data processing.
[0022] In a second aspect, an embodiment of the present application discloses a data query and display system, which adopts the following scheme: A data query and display system includes: an instruction receiving module for receiving a data query instruction of a target device; a matching module for matching a target interface display template and determining a target protocol template and a target data acquisition template to be executed by a gateway acquisition database according to the model of the target device, wherein the target data acquisition template includes an address range corresponding to the target data and a data processing rule corresponding to the target data, wherein the data processing rule includes a data operation formula and a data splicing method; an acquisition module for acquiring target data corresponding to the target device from a database according to the address range and the data processing rule; and an association display module for associating the target data with the target interface template and rendering and displaying it on a display interface.
[0023] By adopting the above technical solution, the data query and display system can realize the automated processing and display of target device data. First, the data query instruction of the target device is received through the instruction receiving module, ensuring the interactivity between the system and the device. Secondly, the matching module matches the appropriate interface display template according to the target device model and matches the data collection and processing template for a single gateway, thereby improving the pertinence and accuracy of data processing. The acquisition module extracts the target data from the database according to the set address range and data processing rules, ensuring the effectiveness of data collection and the accuracy of processing. Finally, the associated display module combines the processed target data with the interface template and renders it for display, which improves the intuitiveness and convenience of users viewing data. The overall solution significantly optimizes the data processing process and enhances the adaptability and flexibility of the system.
[0024] In a third aspect, an embodiment of the present application discloses an electronic device, which adopts the following solution: An electronic device comprises: a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to implement the steps of any one of the methods described above when executing the computer program.
[0025] In a fourth aspect, an embodiment of the present application discloses a computer-readable storage medium, which adopts the following solution: A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of any one of the methods described above.
[0026] In summary, this application includes at least one of the following beneficial technical effects: 1. By matching the target interface display template and matching the target protocol template and target data collection template for a single gateway, rapid adaptation to multiple models of equipment is achieved, improving the flexibility of data collection and display; 2. Based on the address range and data processing rules in the target data collection template, it can accurately obtain and process the data of the target device, ensuring the accuracy and efficiency of data collection; 3. Associating the processed target data with the target interface template and rendering it for display provides a more intuitive and visual data presentation method, improves the user experience, and meets the user's demand for data visualization. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A flowchart of a data query and display method disclosed in one embodiment of the present application; Figure 2 for Figure 1 A specific flow chart of a data query and display method disclosed in ; Figure 3 for Figure 1 A specific flow chart of a data query and display method disclosed in ; Figure 4 This is a flow chart of a data query and display system disclosed in another embodiment of the present application; Figure 5 This is a schematic structural diagram of an electronic device disclosed in yet another embodiment of the present application. DETAILED DESCRIPTION
[0028] The present application is further described in detail below with reference to the accompanying drawings.
[0029] The following describes embodiments of the present application in more detail with reference to the accompanying drawings. Although the accompanying drawings illustrate embodiments of the present application, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. Rather, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.
[0030] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
[0031] It should be understood that although the terms "first", "second", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0032] The technical solutions of the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0033] [First embodiment] See Figure 1 , is a data query and display method disclosed in an embodiment of the present application, which specifically includes the following steps: S10, receiving a data query instruction from a target device; When users need to know the production data of production equipment, they can log in to the platform terminal, select the equipment they are interested in, that is, the target equipment, from the many production equipment on the display screen, trigger the data query command, and obtain the real-time production data of the equipment. S20. Match the target interface display template and determine the target protocol template and target data collection template to be executed by the gateway acquisition database according to the model of the target device; The server stores a large number of pre-configured protocol templates and data collection templates for production equipment models in the cloud. These templates include OPC UA (Unified Architecture) and Modbus, corresponding to production equipment using the OPC UA and Modbus protocols, respectively. Based on the target protocol template (i.e., the protocol's communication specifications), the gateway establishes a connection with the device's data storage address based on the target data collection template, thereby collecting data stored at the corresponding address in real time.
[0034] In this embodiment, step S20 can match different protocol templates and data collection templates to a single gateway based on the models of different devices, so as to achieve rapid adaptation of a single gateway to multiple models of devices and collect data from multiple models of devices, thereby reducing the cost of using multiple gateways in the system and the complexity of the system. Specifically, the target data collection template includes the address range corresponding to the target data and the data processing rules corresponding to the target data. Based on the address range corresponding to the target data, that is, multiple addresses, the total production data of the production equipment can be accurately collected. The data processing rules include data calculation formulas and data splicing methods, etc. The data calculation formula can be addition, subtraction, multiplication, division, averaging and other operations on the collected data. The data splicing method can be to combine multiple data into new data according to certain rules, such as data cleaning, deduplication, and unified format.
[0035] Due to length limitations during device design, some data uses multiple MODBUS addresses to represent a complete data set. The data processing center then integrates and processes this scattered data based on pre-defined processing rules. It should be noted that these processing rules are not limited and can be pre-defined based on actual needs.
[0036] S30, acquiring target data corresponding to the target device from the database according to the address range and data processing rules; The address range refers to the multiple addresses collected corresponding to the target data, and the data processing rules include data calculation formulas and data splicing methods (as described above), so that the execution of step S30 can obtain accurate target data.
[0037] Furthermore, step S30 specifically includes: S31. Obtaining real-time data of the target device from the database according to the address range and the target protocol template through the gateway; In step S31 , the gateway may obtain real-time data from a database storing multiple addresses based on the collected address range and target protocol template.
[0038] S32. Calculate and integrate the real-time data according to data processing rules to obtain target data corresponding to the target device.
[0039] Among them, after successfully collecting data, the gateway will push the collected data to the data processing center. Taking MODBUS protocol data processing as an example, due to length limitations of some data during device design, multiple MOD BUS address combinations are used to represent a complete data. The data processing center will integrate and calculate these scattered data according to pre-set data processing rules, and finally obtain usable target data to complete the secondary processing of the data. S40, associating the target data with the target interface template, and rendering and displaying it on the display interface; Among them, this step fills the target data into the corresponding position in the interface display template. The data can be rendered into the interface display template through a rendering engine or framework. This process will insert the data into the corresponding position of the template to be displayed on the display interface.
[0040] Furthermore, step S40 specifically includes: S41. Obtain the items to be configured and the configuration rules in the target interface template; S42. Match the target data to the target interface template according to the to-be-configured items and the configuration rules, and render and display the matched target data on the display interface; Among them, by obtaining the items to be configured and configuration rules in the target interface template, it can be ensured that the target data can be accurately mapped to the corresponding position of the target interface template, thereby improving the accuracy of data display; matching the target data to the target interface template and rendering and displaying it can improve the data visualization effect and enhance the user experience.
[0041] See also Figure 2 In this embodiment, before step S10, the method further includes: S01, receiving a protocol configuration instruction from the gateway relative to the target device; S02. According to the protocol configuration instruction and the protocol adopted by the target device, a corresponding protocol template is selected from the protocol library as a target protocol template for data collection via the gateway.
[0042] Among them, when a new production device is connected to the gateway, the system administrator can initiate a protocol configuration instruction for the production device on the platform terminal, and configure the protocol template of the gateway with the relatively new production device as the target device, so that the gateway can subsequently read the generated data of the target device through the protocol template.
[0043] Here, the protocol template is determined based on the protocol used by the target device to ensure protocol consistency. Furthermore, the protocol library can be stored independently in the device memory or in the cloud, which is not limited here. In this embodiment, steps S01 and S02 can improve the efficiency of protocol adaptation between the gateway and the target device, reduce compatibility issues during the data collection process, and thus enhance the reliability and flexibility of the overall data query and display method.
[0044] See also Figure 3 In this embodiment, before step S10, the following steps are further included: S03, receiving a data processing configuration instruction from the gateway relative to the target device; S04. According to the data processing configuration instruction and the model of the target device, the address range and data processing rules of the target device are configured through the gateway to serve as a target data collection template.
[0045] Prior to step S10, the gateway pre-configures the address range and data processing rules for data collection from the target device based on the data processing configuration instructions and the target device model. This pre-configuration makes the data collection process more targeted and efficient, avoids unnecessary data collection and processing, and improves system response speed and resource utilization.
[0046] In this embodiment, step S03 and step S04 can determine the precise range of data collection, reduce the collection of invalid data, and define data processing rules to ensure the consistency and accuracy of subsequent data processing.
[0047] Furthermore, before step S10, the method further includes: S05. Bind the target data acquisition template and the target interface display template to the model of the target device respectively.
[0048] In the data query and display method, step S05 pre-compiles the template binding operation, ensuring that when a data query instruction is subsequently received from the target device, the corresponding target interface display template and target data collection template can be quickly matched, thereby improving the efficiency and accuracy of data processing and display. In addition, this binding method can also reduce unnecessary matching calculations and optimize the use of system resources.
[0049] Furthermore, in this embodiment, the following is also included: S50, receiving an instruction for associating a new device with a gateway; The execution of step S50 can demonstrate that the system can dynamically sense the existence of new devices, thereby enhancing the scalability of the system.
[0050] S60: According to the model and execution protocol of the new device, configure the protocol template and data collection template to be executed by the collection database for the gateway, bind them, and store them.
[0051] Configuring the corresponding protocol template and data collection template based on the new device model and execution protocol ensures that the gateway can accurately communicate with the new device and collect data. Binding and storing the protocol template and data collection template provides a foundation for subsequent data processing and display, further improving the system's automation and management efficiency.
[0052] Furthermore, in this embodiment, it also includes: S70, receiving a template modification instruction; S80, modifying and updating the target protocol template and the target data collection template according to the template modification instruction; By modifying the target protocol template, it can be dynamically adjusted based on the actual production equipment, ensuring that the gateway adapts to the protocol requirements of different devices during data collection, improving the system's compatibility and adaptability. Modifying and updating the target data collection template, including adjusting the address range and data processing rules for data collection, enables the system to promptly optimize data collection and processing logic based on changes in device characteristics and data processing requirements, improving the accuracy and efficiency of data processing.
[0053] To sum up, the first embodiment of the present invention discloses a data query and display method, which matches the corresponding interface display template, target protocol template and target data acquisition template according to the model of the target device, and can automatically adapt to the data query and display needs of multiple models of devices; extracts and integrates data through clear target data acquisition address range and data processing rules, thereby ensuring the accuracy and efficiency of the data processing process and meeting the diverse needs in complex scenarios; dynamically binds the protocol template and interface template of the target device to realize the integrated management of the data acquisition and display process, thereby improving the system's degree of automation and resource utilization efficiency.
[0054] [Second embodiment] See Figure 4 In the second embodiment of the present application, a data query and display system is disclosed. The system includes: an instruction receiving module 210, a matching module 220, an acquisition module 230 and an associated display module 240.
[0055] Among them, the instruction receiving module 210 is used to receive the data query instruction of the target device; the matching module 220 is used to match the target interface display template and determine the target protocol template and target data acquisition template to be executed by the gateway acquisition database according to the model of the target device. The target data acquisition template includes the address range corresponding to the target data and the data processing rules corresponding to the target data. The data processing rules include data calculation formulas and data splicing methods; the acquisition module 230 is used to obtain the target data corresponding to the target device from the database according to the address range and the data processing rules; the association display module 240 is used to associate the target data with the target interface template and render it on the display interface.
[0056] It should be noted that the data query display method implemented by the data query display system disclosed in the second embodiment of this application is the same as the first embodiment, so it will not be described in detail here. Optionally, the various modules in this embodiment and the above-mentioned other operations or functions are respectively for implementing the methods in the aforementioned embodiments.
[0057] [Third embodiment] See Figure 5In the third embodiment of the present application, an electronic device is disclosed, which includes: a memory 310 and a processor 320, the memory 310 is used to store computer programs; the processor 320 is used to implement the steps of a data query and display method described in the first embodiment when executing the computer program. For details, please refer to the above, so it will not be described in detail here.
[0058] The technical effect of an electronic device provided by this embodiment in actual application is the same as the technical effect of a data query and display method in the first embodiment.
[0059] [Fourth embodiment] In the fourth embodiment of the present application, a computer-readable storage medium is disclosed. The computer-readable storage medium is, for example, a non-volatile memory, such as: magnetic media (such as hard disks, floppy disks, and tapes), optical media (such as CDROMs and DVDs), magneto-optical media (such as optical disks), and hardware devices specially constructed to store and execute computer-executable instructions (such as read-only memory (ROM), random access memory (RAM), flash memory, etc.). A computer program is stored on the computer-readable storage medium. The computer-readable storage medium can be used by one or more processors or processing devices to execute the computer program to implement a data query display method in the aforementioned embodiment.
[0060] In addition, it can be understood that the aforementioned embodiments are merely exemplary descriptions of the present invention. Under the premise that the technical features do not conflict, the structures do not contradict, and the purpose of the present invention is not violated, the technical solutions of the various embodiments can be arbitrarily combined and used in combination.
[0061] In the several embodiments provided by the present invention, it should be understood that the disclosed methods, systems, and devices can be implemented in other ways. For example, the modules included in the system described above are merely schematic, and the division of modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0062] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0063] In addition, the functional units / modules in various embodiments of the present invention may be integrated into a single processing unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated into a single unit / module. The aforementioned integrated units / modules may be implemented in the form of hardware or hardware plus software functional units / modules.
[0064] The above-mentioned integrated unit / module implemented in the form of a software functional unit / module can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium and includes a number of instructions for causing one or more processors of a computer device (which can be a personal computer, server, or network device, etc.) to execute some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc., various media that can store program code.
[0065] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A data query and display method, characterized in that: include: Receive data query instructions from the target device; According to the model of the target device, match the target interface display template and determine the target protocol template and target data acquisition template to be executed by the gateway acquisition database. The target data acquisition template includes the address range corresponding to the target data and the data processing rules corresponding to the target data. The data processing rules include data calculation formulas and data splicing methods; Acquire target data corresponding to the target device from a database according to the address range and the data processing rule; The target data is associated with the target interface template and rendered and displayed on the display interface.
2. The method according to claim 1, characterized in that The step of acquiring target data corresponding to the target device from a database according to the address range and the data processing rule further includes: Obtaining, through a gateway, real-time data of the target device from the database according to the address range and the target protocol template; The real-time data is calculated and integrated according to the data processing rules to obtain target data corresponding to the target device.
3. The method according to claim 1, characterized in that The associating the target data with the target interface template and rendering and displaying it on the display interface includes: Obtaining the items to be configured and the configuration rules in the target interface template; According to the to-be-configured item and the configuration rule, the target data is matched with the target interface template, and the matched target data is rendered and displayed on the display interface.
4. The method according to claim 1, wherein Before receiving the data query instruction from the target device, the method further includes: Receiving a protocol configuration instruction from the gateway relative to the target device; According to the protocol configuration instruction and the protocol adopted by the target device, a corresponding protocol template is selected from a protocol library as the target protocol template for data collection via the gateway.
5. The method according to claim 1, wherein Before receiving the data query instruction of the target device, the method includes: receiving a data processing configuration instruction of the gateway relative to the target device; According to the data processing configuration instruction and the model of the target device, the address range and the data processing rules are configured for the target device through the gateway to serve as the target data collection template.
6. The method according to claim 1, characterized in that Before receiving the data query instruction from the target device, the method further includes: The target data acquisition template and the target interface display template are respectively bound to the model of the target device.
7. The method according to claim 1, characterized in that Also includes: Receive instructions for new device association with the gateway; According to the model and execution protocol of the new device, the protocol template and data collection template to be executed by the collection database are configured for the gateway and bound and stored.
8. The method according to claim 1, characterized in that Also includes: Receive template modification instructions; The target protocol template and the target data collection template are modified and updated according to the template modification instruction.
9. A data query and display system, characterized in that: include: A command receiving module, used to receive data query commands from a target device; A matching module is used to match the target interface display template according to the model of the target device and determine the target protocol template and target data acquisition template to be executed by the gateway acquisition database. The target data acquisition template includes the address range corresponding to the target data and the data processing rules corresponding to the target data. The data processing rules include data calculation formulas and data splicing methods; an acquisition module, configured to acquire target data corresponding to the target device from a database according to the address range and the data processing rule; The associated display module is used to associate the target data with the target interface template and render and display it on the display interface.
10. An electronic device, characterized in that: include: A memory and a processor, wherein the memory is used to store a computer program; and the processor is used to implement the steps of the method according to any one of claims 1 to 8 when executing the computer program.
Citation Information
Patent Citations
Data display method and device, computer equipment and storage medium
CN111327678A
Display method and device and electronic equipment
CN119420976A
Joint autonomous repair verification and inspection system
US20230052634A1
Cognitive recognition and reproduction of structure graphs
US20230222150A1
Apparatus, method and storage medium for data query
US20240330343A1