CN114518906B - Device configuration parameter management system and method based on XML description file - Google Patents
Device configuration parameter management system and method based on XML description file Download PDFInfo
- Publication number
- CN114518906B CN114518906B CN202210086277.5A CN202210086277A CN114518906B CN 114518906 B CN114518906 B CN 114518906B CN 202210086277 A CN202210086277 A CN 202210086277A CN 114518906 B CN114518906 B CN 114518906B
- Authority
- CN
- China
- Prior art keywords
- configuration
- xml
- description file
- parameters
- module
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 21
- 230000008676 import Effects 0.000 claims abstract description 9
- 238000007726 management method Methods 0.000 claims description 17
- 238000012546 transfer Methods 0.000 claims description 15
- 230000005540 biological transmission Effects 0.000 claims description 3
- 238000012423 maintenance Methods 0.000 abstract description 2
- 230000008569 process Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a device configuration parameter management system and method based on XML description file, the method includes: acquiring an XML description file, adding view components related to equipment configuration parameters to a list view according to rules of the XML description file to generate a configuration page, and displaying equipment configuration parameter attributes and corresponding values on the configuration page; the XML description file comprises a plurality of attribute nodes which are defined according to rules and related to equipment configuration parameters, and the attribute nodes are used for associating a configuration page and the associated equipment configuration parameters. When equipment of different types is configured, the method does not need to modify software, only needs to modify description in the XML description file, can greatly shorten the time of software development and maintenance, can export configuration to the XML description file, and then import other equipment, and only needs to connect and import two steps of operation when importing the other equipment, thereby simplifying batch configuration flow.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a system and a method for managing equipment configuration parameters based on an XML description file.
Background
When the gateway product of the internet of things is configured, the configuration is usually performed by software, and when a new product is adapted, the software needs to be modified to adapt a configuration instruction. Since configuration software generally needs to configure a plurality of product models, and configuration instructions and configuration rules of different products are different, it is time-consuming to modify the software when the configuration software is developed or when the configuration instructions are modified. In addition, when a plurality of gateway products are configured in batches, because different gateway configuration rules and commands are different, the analysis rules of the software are usually required to be redesigned, so that the problems of long development period, high error rate and the like can be caused, and when a new instruction appears, the software is often required to be modified and recompiled.
Disclosure of Invention
The invention mainly aims to provide a device configuration parameter management system and method based on an XML description file, which can greatly shorten the time of software development and maintenance without modifying software and only modifying the description in the XML description file when configuring devices of different models.
The invention adopts the following technical scheme:
In one aspect, a device configuration parameter management system based on an XML description file includes: the system comprises an XML analysis module, a parameter transfer module, a view editing module and a configuration page module;
the XML analysis module is used for analyzing the acquired XML description file according to the rule, sending the node parameters related to the view editing module, and sending the node parameters related to the equipment configuration to the parameter transfer module;
The parameter transfer module is used for receiving the node parameters related to the equipment configuration sent by the XML analysis module, reading the values of the configuration parameters from the equipment or writing the values of the configuration parameters into the equipment according to the configuration parameter instructions in the node parameters, and sending the values of the configuration parameters to the view editing module;
The view editing module is used for receiving the node parameters related to the view sent by the XML analysis module, acquiring the corresponding component types and component positions, adding the corresponding component types and component positions to the list view of the configuration page module as required, sending the values of the configuration parameters sent by the parameter transfer module to the configuration page module for display, and sending the values of the configuration parameters modified in the configuration page module to the XML analysis module;
And the configuration page module comprises at least one list view in a configuration page of the configuration page module, and is used for adding view components corresponding to the configuration parameters into the list according to rules of the XML description file and displaying values of the configuration parameters.
Preferably, the configuration page module is further configured to receive a save configuration instruction, so as to save the value of the read configuration parameter or the written configuration parameter.
Preferably, the configuration page module is further configured to receive an import configuration instruction, and the XML parsing module parses the imported XML description file.
Preferably, the configuration page module is further configured to receive a configuration export instruction, so as to send the value of the current configuration parameter to the XML parsing module, and store the value to the XML description file.
Preferably, the XML description file includes a plurality of attribute nodes related to device configuration parameters defined according to rules; the attribute nodes comprise < editor >, < name > and < discription > nodes of the associated configuration page, wherein the < editor > node is used for configuring the type and the parameter of the display component, the < name > node is used for writing the content of the display, and the < discription > node is used for writing the display description; the attribute nodes further comprise < value > and < command > nodes for associating device configuration parameters, wherein the < value > node is a value of the configuration parameters, and the < command > node is a configuration parameter instruction; the plurality of attribute nodes further includes a < combovalue > node for converting between values of configuration parameters and display content.
On the other hand, the device configuration parameter management method based on the XML description file comprises the following steps:
Acquiring an XML description file, adding view components related to equipment configuration parameters to a list view according to rules of the XML description file to generate a configuration page, and displaying equipment configuration parameter attributes and corresponding values on the configuration page; the XML description file comprises a plurality of attribute nodes related to equipment configuration parameters defined according to rules; the attribute nodes comprise < editor >, < name > and < discription > nodes of the associated configuration page, wherein the < editor > node is used for configuring the type and the parameter of the display component, the < name > node is used for writing the content of the display, and the < discription > node is used for writing the display description; the attribute nodes further comprise < value > and < command > nodes for associating device configuration parameters, wherein the < value > node is a value of the configuration parameters, and the < command > node is a configuration parameter instruction; the plurality of attribute nodes further includes a < combovalue > node for converting between values of configuration parameters and display content.
Preferably, the method for managing device configuration parameters based on XML description file further includes:
And storing the read equipment configuration parameter attribute and the corresponding value, and exporting the equipment configuration parameter attribute and the corresponding value to an XML description file according to rules.
Preferably, the method for managing device configuration parameters based on XML description file further includes:
And modifying a corresponding value corresponding to the equipment configuration parameter, writing the corresponding value into the connected equipment, storing the corresponding value into an XML description file according to a rule, and exporting the XML description file.
Preferably, the obtaining the XML description file adds the view component related to the device configuration parameter to the list view according to the rule of the XML description file to generate a configuration page, and displays the device configuration parameter attribute and the corresponding value on the configuration page, which specifically includes:
And when the device is connected, automatically selecting an XML description file corresponding to the model of the device for importing, adding view components related to the configuration parameters of the device to the list view according to the rule of the XML description file to generate a configuration page, and reading corresponding values from the device to display the corresponding values on the configuration page.
Preferably, the obtaining the XML description file adds the view component related to the device configuration parameter to the list view according to the rule of the XML description file to generate a configuration page, and displays the device configuration parameter attribute and the corresponding value on the configuration page, which specifically includes:
After the connection with the equipment is completed, importing a designated XML description file corresponding to the equipment model, adding view components related to equipment configuration parameters to a list view according to rules of the XML description file to generate a configuration page, and displaying and writing corresponding values read from the XML description file into the configuration page;
Or alternatively
After the connection with the equipment is completed, a designated XML description file corresponding to the equipment model is imported, and corresponding values read from the XML description file are displayed and written into the equipment on a configuration page.
Compared with the prior art, the invention has the following beneficial effects:
When the method is used for configuring equipment of different types, software is not required to be modified, only description in the XML description file is required to be modified, the time for developing and maintaining the software can be greatly shortened, in addition, the configuration can be exported to the XML description file, other equipment is imported, and when the other equipment is imported, only two steps of operation of connection and importing are required, so that the batch configuration flow is simplified.
The foregoing description is only an overview of the present invention, and is intended to provide a more clear understanding of the technical means of the present invention, so that it may be carried out in accordance with the teachings of the present specification, and to provide a more complete understanding of the above and other objects, features and advantages of the present invention, as exemplified by the following detailed description.
The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of the specific embodiments of the present invention when taken in conjunction with the accompanying drawings.
Drawings
FIG. 1 is a block diagram of a device configuration parameter management system based on XML description files according to an embodiment of the present invention;
FIG. 2 is a block diagram of a device configuration parameter management system based on XML description files according to an embodiment of the present invention;
FIG. 3 is a block diagram of a device configuration parameter management system based on XML description files according to an embodiment of the present invention;
FIG. 4 is a display interface of a configuration page module according to an embodiment of the present invention;
fig. 5 is a flowchart of a device configuration parameter management method based on an XML description file according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention; it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments, and that all other embodiments obtained by persons of ordinary skill in the art without making creative efforts based on the embodiments in the present invention are within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Referring to fig. 1 to 3, a device configuration parameter management system based on an XML description file includes: an XML parsing module 101, a parameter transferring module 102, a view editing module 103 and a configuration page module 104;
the XML parsing module 101 is configured to parse the acquired XML description file 20 according to a rule, send node parameters related to the view therein to the view editing module 103, and send node parameters related to the device configuration to the parameter transfer module 102;
the parameter transfer module 102 is configured to receive the node parameter related to the device configuration sent by the XML parsing module 101, read the value of the configuration parameter from the device 30 or write the value of the configuration parameter into the device according to the configuration parameter instruction therein, and send the value of the configuration parameter to the view editing module 103;
The view editing module 103 is configured to receive the node parameters related to the view sent by the XML parsing module 101, obtain a corresponding component type and a component position, add the corresponding component type and the component position to a list view of the configuration page module 104 as required, send the values of the configuration parameters sent by the parameter transferring module 102 to the configuration page module 104 for display, and send the values of the configuration parameters modified in the configuration page module 104 to the XML parsing module 101;
The configuration page module 104 includes at least one list view in a configuration page of the configuration page module 104, and is configured to add view components corresponding to the configuration parameters to the list according to rules of the XML description file, and display values of the configuration parameters.
In this embodiment, the device configuration parameter management system based on the XML description file is implemented by the configuration software 10, and the implementation body of the configuration software 10 may be a computer or the like. The device may be a gateway device or other device.
Specifically, referring to fig. 4, in the configuration page of the configuration page module 104 of this embodiment, the device configuration parameters include baud rate, check bit, data set, stop bit, serial port function and packet byte interval time, and the corresponding values of the configuration parameters are displayed in the edit boxes behind the configuration parameters.
Further, the configuration page module 104 is further configured to receive a save configuration instruction to save the read configuration parameter value or the written configuration parameter value.
Further, the configuration page module 104 is further configured to receive an import configuration instruction, and the XML parsing module 101 parses the imported XML description file.
Further, the configuration page module 104 is further configured to receive a derived configuration instruction, so as to send the value of the current configuration parameter to the XML parsing module 101, and store the value in the XML description file.
After the device is connected to the computer installed with the configuration software 10 through the serial port, the configuration software 10 actively reads the XML description file stored in the memory or the path designated by the computer, and automatically selects the XML description file matched with the device model for importing. In general, the value corresponding to the configuration parameter of the XML description file is null, and after the configuration software 10 processes, the configuration parameter read from the XML description file and the value of the configuration parameter read from the device are displayed on the configuration page (see fig. 4). The read configuration button, save configuration button, import configuration button, and export configuration button at the bottom right of FIG. 4 are buttons that are not directly associated with the XML description file (i.e., all device configuration pages will present these buttons) and can be clicked after the device has been successfully connected to the computer. Clicking the read configuration button can read the value of the configuration parameter from the device. Clicking the save configuration button enables saving the values of the parameters read in the device and writing the modified values of the configuration parameters to the device and saving. Clicking the import configuration button, acquiring an XML description file from the selected path, analyzing and displaying the XML description file, and writing the value of the configuration parameter into the equipment. Clicking the export configuration button exports the configuration parameter attribute and the corresponding value to the XML description file and stores the XML description file to the appointed path, so that the follow-up equipment with the same model is conveniently imported in batches.
Further, the XML description file comprises a plurality of attribute nodes related to equipment configuration parameters defined according to rules; the attribute nodes comprise < editor >, < name > and < discription > nodes of the associated configuration page, wherein the < editor > node is used for configuring the type and the parameter of the display component, the < name > node is used for writing the content of the display, and the < discription > node is used for writing the display description; the attribute nodes further comprise < value > and < command > nodes for associating device configuration parameters, wherein the < value > node is a value of the configuration parameters, and the < command > node is a configuration parameter instruction; the plurality of attribute nodes further includes a < combovalue > node for converting between values of configuration parameters and display content.
It should be noted that the attribute node may also include other attribute nodes, and the naming rules of the attribute nodes may be different, which is not specifically limited in this embodiment, so long as the configuration and the XML description file can be mutually parsed.
Referring to fig. 5, a device configuration parameter management method based on an XML description file includes:
s101, acquiring parameters required to be configured by equipment and instructions thereof.
Specifically, the instruction will exist in an XML description file, and the device configuration information is obtained through software according to the instruction.
S102, writing an XML description file according to an XML rule.
Specifically, the XML description file is used for configuration page layout of associated equipment and configuration software, and is also used for reading, writing, importing and exporting equipment parameters. The reading and writing refers to reading or modifying the values of configuration parameters in the equipment, and the same configuration can be written into a plurality of different equipment with the same model by leading in and leading out.
The present embodiment will explain the XML description file rule by taking the following XML description file as an example.
In the XML description file, a label named < child > is provided under a node where any menu of the configuration page is located, the serial port configuration is a primary menu, secondary menus such as a local serial port 1 and a local serial port 2 can be provided under the < child > label, and when the primary menu is selected in the configuration page, the secondary menu under the primary menu is displayed. If a < child > tag is not found under a node, it is interpreted that the node is a configuration parameter rather than a menu, such as the < child > node in this embodiment. And whether the < child > tag exists or not, all nodes except the < child > tag are all attributes of the node except the < child > tag, and values of all nodes are stored in the value attribute of the node in the rule. If the < value > child node attribute "value" under the < baud rate > node is empty, when the device is connected, the slave device reads the parameter and writes the parameter into the "value" attribute, if the value of the node is modified, the information needs to be converted into an instruction to be written into the device from configuration software during storage, the description file can also be exported as a configuration file, and the value is used as the configuration data to be imported into the next device.
The nodes used as attributes in the nodes can be defined according to requirements, and the attributes of equipment configuration parameters, such as parameter names, whether the equipment configuration parameters are multi-parameter configuration items or not, and the parameters are what parameters of the multi-parameter configuration items, can be defined only by writing the configuration software according to rules required by the equipment; it is also possible to define what row or what column the parameter is displayed in the configuration page. In short, these attributes may be device-oriented or configuration software-oriented. For example, in the embodiment configuration item, the < editor >, < name >, < discription > nodes face configuration software, the < editor > nodes are used for configuring the types and parameters of the display components, and the < name >, < discription > nodes are used for writing the displayed contents and descriptions; < value >, < command > is used to read the configuration of the device, as instructions and values of configuration items; < combovalue > is used for converting the configuration item value and the display content, for example, if the configuration value corresponding to the "off option in < serial port 1 communication > is 0, the configuration page is displayed as off when the value read from the device is 0.
And S103, the configuration software acquires an XML description file, adds view components related to the device configuration parameters to the list view according to rules of the XML description file to generate a configuration page, and displays the device configuration parameter attributes and corresponding values on the configuration page.
Specifically, at least one list view is required in a configuration page of the configuration software, so that view components corresponding to the configuration items are added to the list according to rules of the XML description file.
The view editing module is used for adding the component types and the component positions acquired by the XML parsing module into a list view of the configuration page according to requirements, such as a drop-down frame, an editing frame, whether the components can be edited or not, displaying the values acquired by the parameter transfer module from the equipment in the configuration page, and transferring the values to the XML parsing module when the parameters in the configuration page are modified.
The parameter transfer module acquires the configuration item instruction from the node parameters related to the equipment configuration transferred by the XML analysis module, reads the configuration parameters from the equipment according to the instruction, stores the read parameters in an XML analysis file, and simultaneously transfers the parameters to the view editing module.
When the XML analysis module starts, the XML description file is analyzed, node parameters related to views in the XML description file are transmitted to the view editing module, the node parameters related to equipment configuration are transmitted to the parameter transmission module, the parameters are obtained or modified through other modules, and when the parameters are changed, the parameters transmitted to the XML analysis module by the other modules are stored in corresponding nodes of the XML model.
The export of the parameters is to re-export the XML model in the XML parsing module as an XML description file stored locally with the acquired and modified configuration parameters. The importing configuration needs an XML description file with parameters, and the parameter transmitting module acquires the parameter configuration through the XML analyzing module and transmits the parameters to the equipment according to the configuration instruction.
Further, the method for managing the device configuration parameters based on the XML description file further comprises the following steps:
And storing the read equipment configuration parameter attribute and the corresponding value, and exporting the equipment configuration parameter attribute and the corresponding value to an XML description file according to rules.
Further, the method for managing the device configuration parameters based on the XML description file further comprises the following steps:
And modifying a corresponding value corresponding to the equipment configuration parameter, writing the corresponding value into the connected equipment, storing the corresponding value into an XML description file according to a rule, and exporting the XML description file.
Further, the obtaining the XML description file, adding the view component related to the device configuration parameter to the list view according to the rule of the XML description file to generate a configuration page, and displaying the device configuration parameter attribute and the corresponding value on the configuration page, which specifically includes:
And when the device is connected, automatically selecting an XML description file corresponding to the model of the device for importing, adding view components related to the configuration parameters of the device to the list view according to the rule of the XML description file to generate a configuration page, and reading corresponding values from the device to display the corresponding values on the configuration page.
Further, the obtaining the XML description file, adding the view component related to the device configuration parameter to the list view according to the rule of the XML description file to generate a configuration page, and displaying the device configuration parameter attribute and the corresponding value on the configuration page, which specifically includes:
After the connection with the equipment is completed, importing a designated XML description file corresponding to the equipment model, adding view components related to equipment configuration parameters to a list view according to rules of the XML description file to generate a configuration page, and displaying and writing corresponding values read from the XML description file into the configuration page;
Or alternatively
After the connection with the equipment is completed, a designated XML description file corresponding to the equipment model is imported, and corresponding values read from the XML description file are displayed and written into the equipment on a configuration page.
Specifically, after the device is connected with the computer provided with the configuration software through the serial port, the configuration software actively reads the XML description file stored in the memory or in the specified path of the computer, and automatically selects the XML description file matched with the device model for importing. In general, the value corresponding to the configuration parameter of the XML description file is null, and after the configuration software processes, the configuration parameter read from the XML description file and the value of the configuration parameter read from the device are displayed on the configuration page (see fig. 4). The read configuration button, save configuration button, import configuration button, and export configuration button at the bottom right of FIG. 4 are buttons that are not directly associated with the XML description file (i.e., all device configuration pages will present these buttons) and can be clicked after the device has been successfully connected to the computer. Clicking the read configuration button can read the value of the configuration parameter from the device. Clicking the save configuration button enables saving the values of the parameters read in the device and writing the modified values of the configuration parameters to the device and saving. Clicking the import configuration button, acquiring an XML description file from the selected path, analyzing and displaying the XML description file, and writing the value of the configuration parameter into the equipment. Clicking the export configuration button exports the configuration parameter attribute and the corresponding value to the XML description file and stores the XML description file to the appointed path, so that the follow-up equipment with the same model is conveniently imported in batches.
In addition, in the present invention, the XML description file may be designed as needed, for example:
i.e., the < child > tag in step S102 can be removed, the < chlid > tag can be represented as a node attribute, and any child nodes can be designed in the node attribute.
The above description is only of the preferred embodiments of the present invention; the scope of the invention is not limited in this respect. Any person skilled in the art, within the technical scope of the present disclosure, may apply to the present invention, and the technical solution and the improvement thereof are all covered by the protection scope of the present invention.
Claims (9)
1. A device configuration parameter management system based on XML description files, comprising: the system comprises an XML analysis module, a parameter transfer module, a view editing module and a configuration page module;
the XML analysis module is used for analyzing the acquired XML description file according to the rule, sending the node parameters related to the view editing module, and sending the node parameters related to the equipment configuration to the parameter transfer module;
The parameter transfer module is used for receiving the node parameters related to the equipment configuration sent by the XML analysis module, reading the values of the configuration parameters from the equipment or writing the values of the configuration parameters into the equipment according to the configuration parameter instructions in the node parameters, and sending the values of the configuration parameters to the view editing module;
The view editing module is used for receiving the node parameters related to the view sent by the XML analysis module, acquiring the corresponding component types and component positions, adding the corresponding component types and component positions to the list view of the configuration page module as required, sending the values of the configuration parameters sent by the parameter transfer module to the configuration page module for display, and sending the values of the configuration parameters modified in the configuration page module to the XML analysis module;
The configuration page module comprises at least one list view in a configuration page of the configuration page module, and is used for adding view components corresponding to configuration parameters into a list according to rules of an XML description file and displaying values of the configuration parameters;
The XML description file comprises a plurality of attribute nodes related to equipment configuration parameters defined according to rules; the attribute nodes comprise < editor >, < name > and < discription > nodes of the associated configuration page, wherein the < editor > node is used for configuring the type and the parameter of the display component, the < name > node is used for writing the content of the display, and the < discription > node is used for writing the display description; the attribute nodes further comprise < value > and < command > nodes for associating device configuration parameters, wherein the < value > node is a value of the configuration parameters, and the < command > node is a configuration parameter instruction; the plurality of attribute nodes further includes a < combovalue > node for converting between values of configuration parameters and display content.
2. The XML descriptive file-based device configuration parameter management system of claim 1, wherein the configuration page module is further configured to receive a save configuration instruction to save the value of the read configuration parameter or the value of the written configuration parameter.
3. The system for managing device configuration parameters based on XML description file according to claim 1, wherein said configuration page module is further configured to receive an import configuration instruction, and said XML parsing module parses the imported XML description file.
4. The system of claim 1, wherein the configuration page module is further configured to receive an export configuration instruction to send the value of the current configuration parameter to the XML parsing module and save the value to the XML description file.
5. An XML description file-based device configuration parameter management method, characterized in that the XML description file-based device configuration parameter management system according to claim 1 comprises:
Acquiring an XML description file, adding view components related to equipment configuration parameters to a list view according to rules of the XML description file to generate a configuration page, and displaying equipment configuration parameter attributes and corresponding values on the configuration page;
Specifically, the view editing module adds the component type and the component position acquired by the XML analysis module into a list view of the configuration page according to requirements, displays the value acquired by the parameter transmission module from the equipment in the configuration page, and transmits the value to the XML analysis module when the parameter in the configuration page is modified;
The parameter transfer module acquires a configuration item instruction from the node parameters related to the equipment configuration transferred by the XML analysis module, reads the configuration parameters from the equipment according to the instruction, stores the read parameters in an XML analysis file, and simultaneously transfers the parameters to the view editing module;
The XML analysis module analyzes the XML description file and transmits the node parameters related to the view editing module, transmits the node parameters related to the equipment configuration to the parameter transmission module, acquires the parameters or modifies the parameters through other modules, and stores the parameters transmitted to the XML analysis module by the other modules to the corresponding nodes of the XML model when the parameters are changed;
the export of the parameters is to re-export the XML model in the XML analysis module into an XML description file which is stored locally, wherein the XML description file contains the acquired and modified configuration parameters; the importing configuration needs an XML description file with parameters, and the parameter transmitting module acquires the parameter configuration through the XML analyzing module and transmits the parameters to the equipment according to the configuration instruction.
6. The XML descriptive file-based device configuration parameter management method of claim 5, further comprising:
And storing the read equipment configuration parameter attribute and the corresponding value, and exporting the equipment configuration parameter attribute and the corresponding value to an XML description file according to rules.
7. The XML descriptive file-based device configuration parameter management method of claim 5, further comprising:
and modifying the value corresponding to the equipment configuration parameter, writing the value into the connected equipment, storing the value into an XML description file according to a rule, and exporting the XML description file.
8. The method for managing device configuration parameters based on XML description file according to claim 5, wherein said obtaining XML description file, adding the view component related to the device configuration parameters to the list view according to the rule of XML description file to generate the configuration page, and displaying the device configuration parameter attribute and the corresponding value on the configuration page, specifically comprises:
And when the device is connected, automatically selecting an XML description file corresponding to the model of the device for importing, adding view components related to the configuration parameters of the device to the list view according to the rule of the XML description file to generate a configuration page, and reading corresponding values from the device to display the values on the configuration page.
9. The method for managing device configuration parameters based on XML description file according to claim 5, wherein said obtaining XML description file, adding the view component related to the device configuration parameters to the list view according to the rule of XML description file to generate the configuration page, and displaying the device configuration parameter attribute and the corresponding value on the configuration page, specifically comprises:
After the connection with the equipment is completed, importing a designated XML description file corresponding to the equipment model, adding view components related to equipment configuration parameters to a list view according to rules of the XML description file to generate a configuration page, and displaying and writing corresponding values read from the XML description file into the configuration page;
Or alternatively
After the connection with the equipment is completed, a designated XML description file corresponding to the equipment model is imported, and corresponding values read from the XML description file are displayed and written into the equipment on a configuration page.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210086277.5A CN114518906B (en) | 2022-01-25 | 2022-01-25 | Device configuration parameter management system and method based on XML description file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210086277.5A CN114518906B (en) | 2022-01-25 | 2022-01-25 | Device configuration parameter management system and method based on XML description file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114518906A CN114518906A (en) | 2022-05-20 |
CN114518906B true CN114518906B (en) | 2024-05-14 |
Family
ID=81597219
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210086277.5A Active CN114518906B (en) | 2022-01-25 | 2022-01-25 | Device configuration parameter management system and method based on XML description file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114518906B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118312240B (en) * | 2024-04-30 | 2024-11-05 | 北京中数睿智科技有限公司 | Big data component management device and method based on cloud native technology |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040090866A (en) * | 2003-04-18 | 2004-10-27 | (주)아이펜텍 | XML Document Editor Using a Form and Computer-Readable Recording Medium |
CN103218751A (en) * | 2013-04-25 | 2013-07-24 | 清华大学 | Technological prescription document processing system of semiconductor equipment based on extensive markup language (XML) |
CN107959580A (en) * | 2016-10-17 | 2018-04-24 | 中兴通讯股份有限公司 | The method and apparatus of configuration service |
CN108416069A (en) * | 2018-05-10 | 2018-08-17 | 湖南利能新能源有限公司 | A kind of data acquisition device and method |
CN109460276A (en) * | 2018-10-25 | 2019-03-12 | 北京字节跳动网络技术有限公司 | The page and page configuration document generating method, device, terminal device and medium |
CN109460231A (en) * | 2018-09-25 | 2019-03-12 | 北京通广龙电子科技有限公司 | Upper computer software implementation method based on XML |
CN110795024A (en) * | 2019-10-12 | 2020-02-14 | 北京四方继保自动化股份有限公司 | Protection equipment universal man-machine interaction system and method based on XML |
CN111488631A (en) * | 2020-06-28 | 2020-08-04 | 中国核动力研究设计院 | Nuclear-level security display device and configuration-analysis system thereof |
CN111651405A (en) * | 2020-04-28 | 2020-09-11 | 中国平安财产保险股份有限公司 | Configuration file management method, device, equipment and storage medium |
CN112000331A (en) * | 2020-08-07 | 2020-11-27 | 北京三快在线科技有限公司 | Page rendering method and device, electronic equipment and storage medium |
CN112181409A (en) * | 2019-07-03 | 2021-01-05 | 马上消费金融股份有限公司 | Application construction method, application rendering method and device |
CN112631585A (en) * | 2020-12-22 | 2021-04-09 | 中国航空工业集团公司西安航空计算技术研究所 | XML-based rapid parameter interface configuration method |
CN113391808A (en) * | 2021-07-08 | 2021-09-14 | 北京沃东天骏信息技术有限公司 | Page configuration method and device and electronic equipment |
CN113608903A (en) * | 2021-06-21 | 2021-11-05 | 天津津航计算技术研究所 | Fault management method based on XML language |
CN113900958A (en) * | 2021-10-29 | 2022-01-07 | 中国电信股份有限公司 | Test case script generation method, system, medium and electronic device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4124001B2 (en) * | 2003-03-24 | 2008-07-23 | 富士ゼロックス株式会社 | Image processing apparatus, image processing method, and image processing program |
US20050091346A1 (en) * | 2003-10-23 | 2005-04-28 | Brijesh Krishnaswami | Settings management infrastructure |
US9110673B2 (en) * | 2010-08-31 | 2015-08-18 | Daniel Reuven Ostroff | System and method of creating and remotely editing interactive generic configurator programs |
-
2022
- 2022-01-25 CN CN202210086277.5A patent/CN114518906B/en active Active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040090866A (en) * | 2003-04-18 | 2004-10-27 | (주)아이펜텍 | XML Document Editor Using a Form and Computer-Readable Recording Medium |
CN103218751A (en) * | 2013-04-25 | 2013-07-24 | 清华大学 | Technological prescription document processing system of semiconductor equipment based on extensive markup language (XML) |
CN107959580A (en) * | 2016-10-17 | 2018-04-24 | 中兴通讯股份有限公司 | The method and apparatus of configuration service |
CN108416069A (en) * | 2018-05-10 | 2018-08-17 | 湖南利能新能源有限公司 | A kind of data acquisition device and method |
CN109460231A (en) * | 2018-09-25 | 2019-03-12 | 北京通广龙电子科技有限公司 | Upper computer software implementation method based on XML |
CN109460276A (en) * | 2018-10-25 | 2019-03-12 | 北京字节跳动网络技术有限公司 | The page and page configuration document generating method, device, terminal device and medium |
CN112181409A (en) * | 2019-07-03 | 2021-01-05 | 马上消费金融股份有限公司 | Application construction method, application rendering method and device |
CN110795024A (en) * | 2019-10-12 | 2020-02-14 | 北京四方继保自动化股份有限公司 | Protection equipment universal man-machine interaction system and method based on XML |
CN111651405A (en) * | 2020-04-28 | 2020-09-11 | 中国平安财产保险股份有限公司 | Configuration file management method, device, equipment and storage medium |
CN111488631A (en) * | 2020-06-28 | 2020-08-04 | 中国核动力研究设计院 | Nuclear-level security display device and configuration-analysis system thereof |
CN112000331A (en) * | 2020-08-07 | 2020-11-27 | 北京三快在线科技有限公司 | Page rendering method and device, electronic equipment and storage medium |
CN112631585A (en) * | 2020-12-22 | 2021-04-09 | 中国航空工业集团公司西安航空计算技术研究所 | XML-based rapid parameter interface configuration method |
CN113608903A (en) * | 2021-06-21 | 2021-11-05 | 天津津航计算技术研究所 | Fault management method based on XML language |
CN113391808A (en) * | 2021-07-08 | 2021-09-14 | 北京沃东天骏信息技术有限公司 | Page configuration method and device and electronic equipment |
CN113900958A (en) * | 2021-10-29 | 2022-01-07 | 中国电信股份有限公司 | Test case script generation method, system, medium and electronic device |
Non-Patent Citations (2)
Title |
---|
一种基于读取和解析XML文件的设备自动配置方案;玉龙 等;技术研发与应用 视听;20190628;全文 * |
线激光3D相机后台软件的设计与实现;陆杨;CNKI 优秀硕士学位论文全文库,信息科技;20211122;35-49 * |
Also Published As
Publication number | Publication date |
---|---|
CN114518906A (en) | 2022-05-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210405629A1 (en) | System and method for interoperable communication of an automation system component with multiple information sources | |
US7725606B2 (en) | Method and apparatus for two phase structured message to tagged message translation | |
US7168077B2 (en) | System and method of executing and controlling workflow processes | |
US20040031015A1 (en) | System and method for manipulation of software | |
WO2001073546A2 (en) | Industrial automation system graphical programming language storage and transmission | |
CN100407193C (en) | Network equipment managing method, network equipment managing system and processing program | |
US20030121001A1 (en) | Automated method, system, and software for transforming data between extensible markup language format and electronic data interchange format | |
CN105830417A (en) | A method and a system for replacing and commissioning of a field device | |
WO2003009517A2 (en) | Generate customized xml mapping conversion code | |
US9864346B2 (en) | Method for connecting a substation automation device according to IEC61850 to any industry automation field bus | |
JP2007536640A (en) | Method and apparatus for modifying process control data | |
CN110333863A (en) | A kind of method and device for generating, showing the small routine page | |
CN109240688A (en) | Interface development method, electronic device and readable storage medium storing program for executing | |
WO2001006418A1 (en) | Spreadsheet cell-data source binding | |
GB2423387A (en) | Application-Generic Sequence Diagram Generator Driven by a Non-Proprietary Language | |
CN111782199B (en) | Development method of PLC graphical editor based on XML technology | |
CN109995643A (en) | Business mail push method and device | |
CN114518906B (en) | Device configuration parameter management system and method based on XML description file | |
CN111107059A (en) | Unmanned aerial vehicle multi-protocol transmission data analysis method | |
US20020107917A1 (en) | Rapid development in a distributed application environment | |
CN109445384B (en) | Multi-device control system | |
CN111311461A (en) | B-S based editor and generation method for structured dynamic medical record form | |
CN112631585B (en) | XML-based rapid parameter interface configuration method | |
JP4084049B2 (en) | Content data extraction / structure conversion processing program, content data extraction / structure conversion processing program recording medium, and content reconstruction processing system | |
CN101635711B (en) | Programmable character communication method |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |