CN114035770A - Menu modeling and configuration method and device for relay protection embedded device - Google Patents
Menu modeling and configuration method and device for relay protection embedded device Download PDFInfo
- Publication number
- CN114035770A CN114035770A CN202111313138.3A CN202111313138A CN114035770A CN 114035770 A CN114035770 A CN 114035770A CN 202111313138 A CN202111313138 A CN 202111313138A CN 114035770 A CN114035770 A CN 114035770A
- Authority
- CN
- China
- Prior art keywords
- menu
- file
- configuration
- relay protection
- modeling
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 230000006870 function Effects 0.000 claims description 21
- 238000012217 deletion Methods 0.000 claims description 5
- 230000037430 deletion Effects 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000012938 design process Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
A method and a device for modeling and configuring a menu of a relay protection embedded device are provided, wherein the method comprises the steps of modeling a menu module to form a menu template file; establishing corresponding menu configuration according to the modeled menu template file, and generating a menu configuration file; in the menu configuration, a required menu is established, corresponding menu parameter assignment is carried out, and a relay protection embedded device menu configuration file is generated; and loading the menu configuration file of the relay protection embedded device into the relay protection embedded device, analyzing the configuration file by the device, and generating a menu configuration and an interface according to the file content. According to the invention, the menu is modeled, and the man-machine configuration is rapidly completed by using the tool and the configuration file is generated, so that the platform is prevented from being modified, the man-machine configuration efficiency is improved, and the error probability is reduced.
Description
Technical Field
The invention relates to the technical field of embedded system application, in particular to a method and a device for modeling and configuring a menu of a relay protection embedded device.
Background
With the wider application field and the improved performance of the embedded system, the system is required to have the capability of human-computer interaction display, in the field of development of relay protection embedded devices, a plurality of applications are developed on the basis of the same software and hardware platform, the human-computer interface requirements of different applications are different, and even devices of the same model are different in different projects. And the displayed content and the human-computer interaction requirements are different, for example, some menus display analog quantity, switching quantity and fixed value, some menus are printing functions, some menus need to display device events according to specific types, and the like. Based on the idea of layering and decoupling, it has been proposed to provide a configuration file based liquid crystal display scheme at the platform HMI layer, namely: when the liquid crystal menu or the main interface has differences, the device program is not required to be upgraded, and only the configuration file is required to be modified and downloaded through a tool, but the schemes often cannot meet the increasingly complex menu function requirements, and finally the platform is required to be modified.
Disclosure of Invention
Based on the above situation in the prior art, an object of the present invention is to provide a method and a device for modeling and configuring a menu of an embedded relay protection device, so as to solve how to model the menu, quickly complete human-computer configuration and generate a configuration file through a tool, improve human-computer configuration efficiency, and reduce the chance of error.
The invention provides a method for modeling and configuring a menu of a relay protection embedded device, which comprises the following steps:
modeling the menu module to form a menu template file;
establishing corresponding menu configuration according to the modeled menu template file, and generating a menu configuration file;
in the menu configuration, a required menu is established, corresponding menu parameter assignment is carried out, and a relay protection embedded device menu configuration file is generated;
and loading the menu configuration file of the relay protection embedded device into the relay protection embedded device, analyzing the configuration file by the device, and generating a menu configuration and an interface according to the file content.
Further, the step of modeling the menu module to form the menu template file includes:
constructing a menu name, an api function and a menu source file;
the api function includes whether printing is possible, a data set name, an immediate, an event type, and/or a CPU number.
Further, the step of establishing a corresponding menu configuration according to the modeled menu template file and generating a menu configuration file includes:
establishing a menu, a file and/or menu parameters, wherein the menu, the file and/or the menu parameters comprise function modules of new creation, deletion, upward movement and downward movement;
after the menu configuration is finished, the file is stored, and the background forms a menu configuration file according to the menu template file and the menu established by the interface.
Further, the menu parameter corresponds to an api function.
Further, the menu configuration file of the relay protection embedded device comprises an lcdconfig.
Further, the step of loading the menu configuration file of the relay protection embedded device into the relay protection embedded device, analyzing the configuration file by the device, and generating the menu configuration and the interface according to the file content includes:
after the elf file is downloaded to the relay protection embedded device, the device analyzes lcdconfig. txt generated by the menu configuration tool, and performs menu configuration and interface generation according to the txt file content.
A second aspect of the present invention provides a relay protection embedded device menu modeling and configuration device, configured to execute the method described above, including a menu configuration tool and a menu configuration tool;
the menu configuration tool interface comprises menus, files and menu parameters, so that corresponding menu configuration is established according to the modeled menu template file, and a menu configuration file is generated;
the menu configuration tool is used for establishing a required menu in menu configuration, assigning values to corresponding menu parameters, and generating a menu configuration file of the relay protection embedded device to establish the menu configuration.
In summary, the present invention provides a method and a device for modeling and configuring a menu of an embedded relay protection device, the method includes modeling a menu module to form a menu template file; establishing corresponding menu configuration according to the modeled menu template file, and generating a menu configuration file; in the menu configuration, a required menu is established, corresponding menu parameter assignment is carried out, and a relay protection embedded device menu configuration file is generated; and loading the menu configuration file of the relay protection embedded device into the relay protection embedded device, analyzing the configuration file by the device, and generating a menu configuration and an interface according to the file content. According to the invention, the menu is modeled, and the man-machine configuration is rapidly completed by using the tool and the configuration file is generated, so that the platform is prevented from being modified, the man-machine configuration efficiency is improved, and the error probability is reduced.
Drawings
Fig. 1 is a schematic flow chart of a menu modeling and configuration method for a relay protection embedded device according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of a menu template file according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of parameter types in the embodiment of the present invention.
FIG. 4 is a diagram illustrating menu creation according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of a menu configuration file according to an embodiment of the present invention.
FIG. 6 is a diagram illustrating a new menu in an embodiment of the present invention.
FIG. 7 is a diagram illustrating a complete menu according to an embodiment of the present invention.
FIG. 8 is a diagram illustrating a new sub-menu in an embodiment of the present invention.
Fig. 9 is a schematic diagram of a configuration file of a relay protection device in an embodiment of the present invention.
Fig. 10 is a schematic diagram of an lcdconfig.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings in conjunction with the following detailed description. It should be understood that the description is intended to be exemplary only, and is not intended to limit the scope of the present invention. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present invention.
The invention provides a method for modeling and configuring a menu of an embedded relay protection device, which comprises the following steps as shown in figure 1:
step S100, modeling a menu module to form a menu template file;
s200, establishing corresponding menu configuration according to the modeled menu template file, and generating a menu configuration file;
step S300, in the menu configuration, establishing a required menu, assigning values to corresponding menu parameters, and generating a menu configuration file of the relay protection embedded device;
and step S400, loading the menu configuration file of the relay protection embedded device into the relay protection embedded device, analyzing the configuration file by the device, and generating a menu configuration and an interface according to the file content.
Further, the step of modeling the menu module to form the menu template file includes:
constructing a menu name, an api function and a menu source file;
the api function includes whether printing is possible, a data set name, an immediate, an event type, and/or a CPU number.
Further, the step of establishing a corresponding menu configuration according to the modeled menu template file and generating a menu configuration file includes:
establishing a menu, a file and/or menu parameters, wherein the menu, the file and/or the menu parameters comprise function modules of new creation, deletion, upward movement and downward movement;
after the menu configuration is finished, the file is stored, and the background forms a menu configuration file according to the menu template file and the menu established by the interface.
Further, the menu parameter corresponds to an api function.
Further, the menu configuration file of the relay protection embedded device comprises an lcdconfig.
Further, the step of loading the menu configuration file of the relay protection embedded device into the relay protection embedded device, analyzing the configuration file by the device, and generating the menu configuration and the interface according to the file content includes:
after the elf file is downloaded to the relay protection embedded device, the device analyzes lcdconfig. txt generated by the menu configuration tool, and performs menu configuration and interface generation according to the txt file content.
The invention is further illustrated in a specific embodiment, as shown in fig. 2-8.
In order to quickly complete the human-computer configuration through a tool and improve the human-computer configuration efficiency, a menu module is firstly modeled and designed, and the menu comprises a menu name, an api function name, a menu source file and the like. Api function parameters are abstracted in this patent as: whether printing is possible, data set name, immediate, event type, cpu number, and the like. The data set is a data set selected from the variable symbol table, and the data set is formed by combining a plurality of data. The data printed by menu browsing in the device is the data in the data set selected by the menu item. Therefore, the series of parameters of the menu are modeled in the design process. Since the api parameter is a key item of a menu, a menu must have an api parameter. The api parameter is bound as a mandatory item of the menu and the menu itself. The same is true for menu names, and a menu must also have its own name. If the data set key words can be printed or not, other parameters are immediately the parameters belonging to the api, and the parameters owned by different apis are different. For example, some apis do not require printing or not printing, and some apis do not require parameters such as data sets. And because the five simple parameters of whether printing can be carried out, the data set parameters, the immediate data, the CPU number and the like have the same structure, the five simple parameters comprise simple data formats of names, values and the like, and only the types are different. We integrate these five parameters. As well as menu parameter attributes. A field distinguishes the type to which the parameter belongs. The file does not belong to the api, is essentially different from other parameters, and contains parameters such as address information, so that the file is independently an attribute, and the menu is modeled on the basis. Thus, a simple structural model of the menu is formed. A menu template profile is formed on the basis of this modeling, as shown in fig. 2. This is the partial completion of the menu modeling.
On the basis of the menu modeling, a menu configuration tool is designed for facilitating designers to design menus on the basis of menu templates. The parameters of the menu in the menu modeling are divided into two items, namely a file and a menu parameter. Therefore, the overall interface is divided into three parts when the menu configuration tool is designed: menu, file, menu parameters. The following is a detailed description.
In the menu part, the user can create, delete, move up and down the menu. When different menus are clicked, the interfaces of the second part (file) and the third part (parameter) are refreshed according to the files and menu parameters owned by the menus. Wherein the overall order of the menu will be used in the second tool.
The file part is also divided into several functions of new creation, deletion, upward movement and downward movement, wherein when a file is created, a menu to which the new file belongs is a menu selected by the left menu part.
The third part (menu parameters) is also divided into several functions of new creation, deletion, upward movement and downward movement. When the parameters are newly built, the menu to which the newly built parameters belong is a menu selected by the left menu interface (if the left interface has no selected menu, the newly built parameters fail). The top-down order of the parameters is the order of the parameters of the api key (platform callback function) (detailed in the second tool). Wherein the type of the parameter can be newly created or changed according to the type field, as shown in fig. 3.
To facilitate the configuration of the second tool (menu configuration tool), menus are first created, as shown in FIG. 4.
After the menu configuration is completed, when the file is saved, the background can form a menu configuration file according to the menu template file and the menu established by the interface. As shown in fig. 5, the menutipe node is the created menu, the menutium node is all the created parameters, and the menu to which the parameter belongs is determined according to the owner field in the parameter node. At this point, the first tool (menu configuration tool) is designed.
After the menu configuration tool saves the file, the menu configuration function may begin. In the menu configuration tool, a menu is established in menu configuration based on the established menu configuration, specific values are given to menu parameters, and then the tool compiles the menu to generate a configuration file. The detailed configuration process is explained below.
Opening a menu configuration tool, establishing a menu in menu configuration, and only after inputting an English name of the menu and selecting one menu, (for example, fig. 6, taking an alarm and user event browsing and printing as examples, fig. 4 shows that the menu includes those functions) the tool automatically generates a menu in a memory, the menu includes all parameters of the selected template menu, and the parameters are displayed on an interface, and at this time, only corresponding values need to be selected for the menu parameters. A simple menu is set up after the value is selected. The full menu is shown in fig. 7. The submenu creation process is similar to the new menu, except that the add submenu button is clicked. And the rest process is the same as the new menu. An alarm and user event browsing and printing sub-menu is newly created on the basis of fig. 7, and the effect is shown in fig. 8.
After all menus required by the corresponding device are established and the menu parameters are assigned. The device profile may be generated as illustrated by the menu created in figure 9. After the menu is built and the menu parameters are assigned, the configured menu is generated and configured by a generating and configuring interface of the tool to form an lcdconfig. Txt content is shown in figure 10. After elf goes to the device, the device analyzes lcdconfig. txt generated by the menu configuration tool, and generates menu configuration and interface according to the txt file content.
A second aspect of the present invention provides a relay protection embedded device menu modeling and configuration device, configured to execute the method described above, including a menu configuration tool and a menu configuration tool;
the menu configuration tool interface comprises menus, files and menu parameters, so that corresponding menu configuration is established according to the modeled menu template file, and a menu configuration file is generated;
the menu configuration tool is used for establishing a required menu in menu configuration, assigning values to corresponding menu parameters, and generating a menu configuration file of the relay protection embedded device to establish the menu configuration.
In summary, the present invention provides a method and a device for modeling and configuring a menu of an embedded relay protection device, the method includes modeling a menu module to form a menu template file; establishing corresponding menu configuration according to the modeled menu template file, and generating a menu configuration file; in the menu configuration, a required menu is established, corresponding menu parameter assignment is carried out, and a relay protection embedded device menu configuration file is generated; and loading the menu configuration file of the relay protection embedded device into the relay protection embedded device, analyzing the configuration file by the device, and generating a menu configuration and an interface according to the file content. According to the invention, the menu is modeled, and the man-machine configuration is rapidly completed by using the tool and the configuration file is generated, so that the platform is prevented from being modified, the man-machine configuration efficiency is improved, and the error probability is reduced.
It is to be understood that the above-described embodiments of the present invention are merely illustrative of or explaining the principles of the invention and are not to be construed as limiting the invention. Therefore, any modification, equivalent replacement, improvement and the like made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. Further, it is intended that the appended claims cover all such variations and modifications as fall within the scope and boundaries of the appended claims or the equivalents of such scope and boundaries.
Claims (7)
1. A method for modeling and configuring a menu of an embedded relay protection device is characterized by comprising the following steps:
modeling the menu module to form a menu template file;
establishing corresponding menu configuration according to the modeled menu template file, and generating a menu configuration file;
in the menu configuration, a required menu is established, corresponding menu parameter assignment is carried out, and a relay protection embedded device menu configuration file is generated;
and loading the menu configuration file of the relay protection embedded device into the relay protection embedded device, analyzing the configuration file by the device, and generating a menu configuration and an interface according to the file content.
2. The method for modeling and configuring the menu of the relay protection embedded device according to claim 1, wherein the step of modeling the menu module to form the menu template file comprises:
constructing a menu name, an api function and a menu source file;
the api function includes whether printing is possible, a data set name, an immediate, an event type, and/or a CPU number.
3. The relay protection embedded device menu modeling and configuration method according to claim 1 or 2, wherein the step of establishing a corresponding menu configuration according to the modeled menu template file and generating a menu configuration file comprises:
establishing a menu, a file and/or menu parameters, wherein the menu, the file and/or the menu parameters comprise function modules of new creation, deletion, upward movement and downward movement;
after the menu configuration is finished, the file is stored, and the background forms a menu configuration file according to the menu template file and the menu established by the interface.
4. The method of claim 3, wherein the menu parameters correspond to api functions.
5. The method for modeling and configuring a menu for an embedded relay protection device according to any one of claims 1-4, wherein the menu configuration file for an embedded relay protection device comprises an lcdconfig.
6. The method of claim 5, wherein the steps of loading the menu configuration file of the relay protection embedded device into the relay protection embedded device, parsing the configuration file by the device, and performing menu configuration and interface generation according to file contents comprise:
after the elf file is downloaded to the relay protection embedded device, the device analyzes lcdconfig. txt generated by the menu configuration tool, and performs menu configuration and interface generation according to the txt file content.
7. A relay protection embedded device menu modeling and configuration device, wherein the device is configured to perform the method of any one of claims 1-6;
the device comprises a menu configuration tool and a menu configuration tool;
the menu configuration tool interface comprises menus, files and menu parameters, so that corresponding menu configuration is established according to the modeled menu template file, and a menu configuration file is generated;
the menu configuration tool is used for establishing a required menu in menu configuration, assigning values to corresponding menu parameters, and generating a menu configuration file of the relay protection embedded device to establish the menu configuration.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111313138.3A CN114035770A (en) | 2021-11-08 | 2021-11-08 | Menu modeling and configuration method and device for relay protection embedded device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111313138.3A CN114035770A (en) | 2021-11-08 | 2021-11-08 | Menu modeling and configuration method and device for relay protection embedded device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114035770A true CN114035770A (en) | 2022-02-11 |
Family
ID=80143264
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111313138.3A Pending CN114035770A (en) | 2021-11-08 | 2021-11-08 | Menu modeling and configuration method and device for relay protection embedded device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114035770A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104503769A (en) * | 2015-01-07 | 2015-04-08 | 山东鲁能智能技术有限公司 | Character dot matrix liquid crystal interface implementation method based on XML (extensive markup language) configuration file |
CN107391815A (en) * | 2017-07-01 | 2017-11-24 | 广东电网有限责任公司电网规划研究中心 | A kind of quickly configuration method towards extensive intelligent grid communication simulation platform |
CN110119272A (en) * | 2018-02-07 | 2019-08-13 | 许昌许继软件技术有限公司 | A kind of human-machine interface configuration design method and device |
CN112214257A (en) * | 2020-10-13 | 2021-01-12 | 许昌许继软件技术有限公司 | Method and device for dynamically configuring and displaying massive load data based on menu |
-
2021
- 2021-11-08 CN CN202111313138.3A patent/CN114035770A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104503769A (en) * | 2015-01-07 | 2015-04-08 | 山东鲁能智能技术有限公司 | Character dot matrix liquid crystal interface implementation method based on XML (extensive markup language) configuration file |
CN107391815A (en) * | 2017-07-01 | 2017-11-24 | 广东电网有限责任公司电网规划研究中心 | A kind of quickly configuration method towards extensive intelligent grid communication simulation platform |
CN110119272A (en) * | 2018-02-07 | 2019-08-13 | 许昌许继软件技术有限公司 | A kind of human-machine interface configuration design method and device |
CN112214257A (en) * | 2020-10-13 | 2021-01-12 | 许昌许继软件技术有限公司 | Method and device for dynamically configuring and displaying massive load data based on menu |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210160151A1 (en) | SYSTEM-ON-CHIP (SoC) ASSEMBLY, CONFIGURABLE IP GENERATION AND IP INTEGRATION UTILIZING DISTRIBUTED COMPUTER SYSTEMS | |
US8086955B2 (en) | Methods and apparatus for modifying process control data | |
US20130152038A1 (en) | Project management workflows | |
CN103425468B (en) | Plug-in type software integrating method and device | |
JP2002229783A (en) | Software construction support system, its method, and software construction support program | |
CN111736821A (en) | Visual modeling analysis method, system, computer device and readable storage medium | |
CN111427577A (en) | Code processing method and device and server | |
CN112433701A (en) | Industrial software development project implementation flow, content and code generation method and device | |
CN106371869B (en) | IEC61850 configuration software implementation method for bay level equipment of intelligent substation | |
CN114064213A (en) | Kubernets container environment-based rapid arranging service method and system | |
CN114117645B (en) | Ship overall performance forecasting integrated application system | |
CN103593188A (en) | System and method for managing what-you-see-is-what-you-get menus of instrument | |
CN107220044B (en) | Method and device for driving business object based on meta-model | |
CN109408322A (en) | A kind of automatic business process implementation method of cloud platform | |
CN117311718A (en) | Domestic GIS application development method and system | |
CN114035770A (en) | Menu modeling and configuration method and device for relay protection embedded device | |
WO2005055491A2 (en) | System and method for hierarchically representing configuration items | |
CN111291444B (en) | Modeling method, device, equipment and storage medium for aircraft assembly | |
CN112784417A (en) | Avionics distributed joint simulation method and system based on SysML | |
KR100609240B1 (en) | Method and apparatus for generating diagram modeling tools with user's customization requirements based on mof meta-models | |
KR100283099B1 (en) | Object-Oriented Modeling Tool and Its Logical and Graphical Information Processing Methods | |
Lu et al. | Model Driven Development of Complex User Interface. | |
CN117008890B (en) | Extended application development system and method | |
CN115826932B (en) | Evaluation model and evaluation model construction method | |
CN108427567B (en) | Automatic upgrading method for device driver package |
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 |