CN-121984881-A - Mine equipment hierarchical configuration management system and method for dynamic tree structure and JSON cache
Abstract
The application discloses a mine equipment hierarchical configuration management system and method based on a dynamic tree structure and a JSON cache, wherein the system comprises a dynamic tree structure model module, a hierarchical equipment management and verification module, a JSON cache and data persistence module and a data synchronization module, wherein the dynamic tree structure model module is used for displaying the hierarchical topology of mine equipment in a tree structure on a user interface and generating equipment node data models corresponding to tree nodes one by one and storing the equipment node data models in a memory, the hierarchical equipment management and verification module is used for verifying modification operation of equipment nodes based on preset mine equipment hierarchical rules, the JSON cache and data persistence module is used for serializing the equipment node data models into a JSON format for caching and persistence and supporting reading and writing of configuration of any node through equipment identification, and the data synchronization module is used for synchronizing configuration data among the user interface, the equipment node data models and the JSON cache in real time. The method and the system realize visualization, standardization, high efficiency and consistency of the mine equipment configuration.
Inventors
- An Jingxiang
- YUAN WENTAO
- GAO BING
- LIAN ZHENZHONG
- JIN YONG
Assignees
- 南京北路智控科技股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260114
Claims (10)
- 1. The mine equipment hierarchical configuration management system based on the dynamic tree structure and the JSON cache is characterized by comprising: The dynamic tree structure model module is used for displaying the hierarchical topology of the mine equipment in a tree structure on a user interface, generating equipment node data models corresponding to tree nodes one by one and storing the equipment node data models in a memory, wherein the equipment node data models at least comprise equipment identification, configuration information and node relation information; The hierarchical equipment management and verification module is used for verifying the modification operation of the equipment nodes based on preset mine equipment hierarchical rules; The JSON caching and data persistence module is used for serializing the equipment node data model into a JSON format for caching and persistence and supporting the reading and writing of the configuration of any node through the equipment identifier; and the data synchronization module is used for synchronizing configuration data among the user interface, the equipment node data model and the JSON cache in real time.
- 2. The system of claim 1, wherein the device node data model is a tree node class instance defined by object-oriented programming; Preferably, the device identity is a globally unique identifier; Preferably, the configuration information is stored in the form of key value pair objects; Preferably, the device node data model is configured to automatically notify the user interface of an update when the device node data model attribute changes.
- 3. The system of claim 1, wherein the mine equipment hierarchy rules preset in the hierarchy equipment management and verification module include at least one of: checking whether the type of the device node to be added accords with the hooking constraint of the type of the parent device node; it is checked whether the number of child device nodes of the same type exceeds the maximum number threshold allowed by its parent device type.
- 4. The system of claim 1, wherein the JSON cache and data persistence module comprises: The unified cache center is used for managing the global configuration cache in the memory by adopting a single-instance mode; The serialization unit is used for recursively converting the equipment node data model and the hierarchical relation thereof into JSON character strings for storage; and the deserializing unit is used for deserializing the stored JSON character string and reconstructing the JSON character string into the equipment node data model.
- 5. The system of claim 1, wherein the data synchronization module is triggered when a tree node in the user interface is selected, and automatically extracts the latest configuration information from the JSON cache according to the device identifier corresponding to the node, and updates the device node data model and the configuration content displayed in the user interface.
- 6. The system of claim 1, further comprising: The equipment configuration interface linkage module is used for synchronously updating the corresponding visual configuration elements in the configuration interface when equipment is selected in the tree structure; and the configuration form view switching module is used for automatically switching and displaying the corresponding configuration form according to the type of the selected equipment when the equipment is selected in the tree structure.
- 7. The mine equipment hierarchical configuration management method based on the dynamic tree structure and the JSON cache is characterized by comprising the following steps of: displaying the hierarchical topology of mine equipment on a user interface in a tree structure, generating equipment node data models corresponding to tree nodes one by one, and storing the equipment node data models in a memory, wherein the equipment node data models at least comprise equipment identification, configuration information and node relation information; Checking the modification operation of the equipment nodes based on preset mine equipment hierarchy rules; Serializing the equipment node data model into a JSON format for caching and persistence, and supporting the reading and writing of the configuration of any node through the equipment identifier; And synchronizing configuration data among the user interface, the equipment node data model and the JSON cache in real time.
- 8. The method of claim 7, wherein the mine equipment level rule check comprises at least one of: checking whether the type of the device node to be added accords with the hooking constraint of the type of the parent device node; it is checked whether the number of child device nodes of the same type exceeds the maximum number threshold allowed by its parent device type.
- 9. The method of claim 7, wherein the JSON caching and data persistence step comprises: managing global configuration cache in the memory by adopting a single-case mode; Recursively converting and serializing the equipment node data model and the hierarchical relation thereof into a JSON character string for storage; And deserializing and reconstructing the stored JSON character string into a data model tree of the equipment node.
- 10. The method of claim 7, further comprising automatically extracting the latest configuration information from the JSON cache and updating the device node data model and configuration content displayed in the user interface based on the device identifier corresponding to the tree node when the tree node in the user interface is selected.
Description
Mine equipment hierarchical configuration management system and method for dynamic tree structure and JSON cache Technical Field The application relates to the technical field of configuration management of industrial automation equipment, in particular to a hierarchical configuration management method and system for mine equipment with a dynamic tree structure and JSON (Java Server on) caches. Background In mine automation systems, there are a large and wide variety of remote I/O devices (e.g., gateways, various types of interface modules, digital/analog acquisition modules, etc.). These devices are typically organized in a strict hierarchical relationship (e.g., gateway- > interface module- > functional sub-module). The traditional configuration management mode has the following pain points: the configuration complexity is high, the inter-equipment layer level relationship is complex, the manual configuration is easy to make mistakes, and the topology structure of the whole equipment network is difficult to intuitively display. The data consistency is difficult to ensure that configuration information (such as IP address, sampling rate, measuring range and the like) of the equipment is scattered in different files or databases, and all relevant data are difficult to update synchronously during modification. The flexibility is poor, when the equipment needs to be replaced or the topological structure is adjusted, the existing system often needs complicated reconfiguration and cannot be rapidly completed through simple operations such as dragging. State synchronization is difficult-there is a lack of efficient real-time synchronization mechanisms between the device state, configuration, and the underlying stored actual data presented on the User Interface (UI). Disclosure of Invention The embodiment of the application provides a mine equipment hierarchical configuration management method of a dynamic tree structure and a JSON cache, which is used for solving the technical problems of high configuration complexity, poor data consistency, poor flexibility, difficult state synchronization and the like of the conventional configuration method. The first aspect of the application provides a mine equipment hierarchical configuration management system based on a dynamic tree structure and a JSON cache, which comprises: The dynamic tree structure model module is used for displaying the hierarchical topology of the mine equipment in a tree structure on a user interface, generating equipment node data models corresponding to tree nodes one by one and storing the equipment node data models in a memory, wherein the equipment node data models at least comprise equipment identification, configuration information and node relation information; The hierarchical equipment management and verification module is used for verifying the modification operation of the equipment nodes based on preset mine equipment hierarchical rules; The JSON caching and data persistence module is used for serializing the equipment node data model into a JSON format for caching and persistence and supporting the reading and writing of the configuration of any node through the equipment identifier; and the data synchronization module is used for synchronizing configuration data among the user interface, the equipment node data model and the JSON cache in real time. Preferably, the device node data model is a tree node class instance defined by object-oriented programming. Preferably, the device identity is a globally unique identifier. Preferably, the configuration information is stored in the form of key-value pair objects. Preferably, the device node data model is configured to automatically notify the user interface of an update when the device node data model attribute changes. Preferably, the mine equipment hierarchy rule preset in the hierarchy equipment management and verification module comprises at least one of the following: checking whether the type of the device node to be added accords with the hooking constraint of the type of the parent device node; it is checked whether the number of child device nodes of the same type exceeds the maximum number threshold allowed by its parent device type. Preferably, the JSON cache and data persistence module includes: The unified cache center is used for managing the global configuration cache in the memory by adopting a single-instance mode; The serialization unit is used for recursively converting the equipment node data model and the hierarchical relation thereof into JSON character strings for storage; and the deserializing unit is used for deserializing the stored JSON character string and reconstructing the JSON character string into the equipment node data model. Preferably, the data synchronization module is triggered when a tree node in the user interface is selected, automatically extracts the latest configuration information from the JSON cache according to the device identifier corresp