A menu modeling and configuration method and device for relay protection embedded device

The method and device for menu modeling and configuration in relay protection embedded devices enhance efficiency and reduce errors by using tools to create and parse menu template files, facilitating quick configuration without platform modifications.

CN114035770BActive Publication Date: 2024-12-27XUCHANG XJ SOFTWARE TECHNOLOGIES LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111313138.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-08
Publication Date
2024-12-27
Estimated Expiration
2041-11-08

AI Technical Summary

Technical Problem

Existing menu configuration methods for relay protection embedded devices are inefficient and prone to errors due to the need for platform modifications when human-computer interface requirements vary, failing to meet complex menu function demands.

Method used

A method and device for menu modeling and configuration that involves creating a menu template file, generating a configuration file, and loading it into the device for parsing and interface generation, using tools to streamline the process and reduce errors.

Benefits of technology

Improves human-machine configuration efficiency and reduces errors by allowing quick menu configuration without platform modifications, leveraging tools for menu template file creation and device parsing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114035770B_ABST
    Figure CN114035770B_ABST
Patent Text Reader

Abstract

A method and device for modeling and configuring menus of a relay protection embedded device, the method comprising modeling a menu module to form a menu template file; establishing a corresponding menu configuration according to the modeled menu template file to generate a menu configuration file; in the menu configuration, establishing a required menu, assigning values ​​to corresponding menu parameters, and generating a relay protection embedded device menu configuration file; loading the relay protection embedded device menu configuration file into the relay protection embedded device, parsing the configuration file by the device, and performing menu configuration and interface generation according to the file content. The present invention improves the efficiency of human-machine configuration and reduces the probability of error by modeling the menu, using tools to quickly complete human-machine configuration and generate configuration files, avoiding platform modification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of embedded system application, and in particular to a menu modeling and configuration method and device for a relay protection embedded device. Background Art

[0002] As the application field of embedded systems becomes wider and wider and the performance is improved, the system is required to have the ability of human-computer interaction display. In the field of relay protection embedded device development, multiple applications are developed based on the same software and hardware platform. Different applications have different human-computer interface requirements. Even the same model of device has differences in different projects. In addition, the displayed content and human-computer interaction requirements vary greatly. For example, some menus display analog quantities, switch quantities, and fixed values, some menus are printing functions, and some menus need to display device events according to specific types, etc. Based on the idea of ​​​​layering and decoupling, some people have proposed to give a configuration file-based LCD display solution at the platform HMI layer, that is: when there is a difference in the LCD menu or the main interface, there is no need to upgrade the device program, just modify and download the configuration file through the tool, but these solutions often cannot meet the increasingly complex menu function requirements, and ultimately the platform needs to be modified. Summary of the invention

[0003] Based on the above situation of the prior art, the purpose of the present invention is to provide a menu modeling and configuration method and device for a relay protection embedded device, to solve how to model the menu, and to quickly complete the human-machine configuration and generate configuration files through tools, thereby improving the efficiency of human-machine configuration and reducing the chance of errors.

[0004] A first aspect of the present invention provides a menu modeling and configuration method for a relay protection embedded device, comprising the following steps:

[0005] Model the menu module to form a menu template file;

[0006] Establish corresponding menu configuration according to the modeled menu template file and generate menu configuration file;

[0007] In menu configuration, create the required menu, assign values ​​to the corresponding menu parameters, and generate a menu configuration file for the relay protection embedded device;

[0008] The menu configuration file of the relay protection embedded device is loaded into the relay protection embedded device, the device parses the configuration file, and performs menu configuration and interface generation according to the file content.

[0009] Furthermore, the step of modeling the menu module to form a menu template file includes:

[0010] Construct menu name, api function, menu source file;

[0011] The API function includes whether to print, data set name, immediate value, event type and / or CPU number.

[0012] Furthermore, the step of establishing a corresponding menu configuration according to the modeled menu template file and generating a menu configuration file comprises:

[0013] Establishing menus, files and / or menu parameters, wherein the menus, files and / or menu parameters include function modules of creating, deleting, moving up and moving down;

[0014] After the menu is configured, save the file, and the background will form a menu configuration file based on the menu template file and the menu established by the interface.

[0015] Furthermore, the menu parameters correspond to API functions.

[0016] Furthermore, the relay protection embedded device menu configuration file includes an lcdconfig.txt file and an .elf file.

[0017] Furthermore, 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 the file content include:

[0018] After downloading the .elf file to the relay protection embedded device, the device parses the lcdconfig.txt generated by the menu configuration tool and performs menu configuration and interface generation according to the content of the txt file.

[0019] A second aspect of the present invention provides a menu modeling and configuration device for a relay protection embedded device, which is used to execute the aforementioned method, and includes a menu configuration tool and a menu configuration tool;

[0020] The menu configuration tool interface includes menus, files and menu parameters, so as to establish corresponding menu configuration according to the modeled menu template file and generate a menu configuration file;

[0021] The menu configuration tool is used to establish the required menu in the menu configuration, assign values ​​to the corresponding menu parameters, and generate a menu configuration file for the relay protection embedded device to establish the menu configuration.

[0022] In summary, the present invention provides a method and device for modeling and configuring a menu of a relay protection embedded device, the method comprising modeling a menu module to form a menu template file; establishing a corresponding menu configuration according to the modeled menu template file to generate a menu configuration file; in the menu configuration, establishing a required menu, assigning values ​​to corresponding menu parameters, and generating a menu configuration file for a relay protection embedded device; loading the menu configuration file for 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 the file content. The present invention improves the efficiency of human-machine configuration and reduces the probability of error by modeling the menu, using tools to quickly complete human-machine configuration and generate configuration files, avoiding platform modification. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 The present invention is a schematic diagram of the menu modeling and configuration method of the relay protection embedded device in the embodiment of the present invention.

[0024] Figure 2 Schematic diagram of a menu template file in an embodiment of the present invention.

[0025] Figure 3 Schematic diagram of parameter types in an embodiment of the present invention.

[0026] Figure 4 A schematic diagram of menu establishment in an embodiment of the present invention.

[0027] Figure 5 Schematic diagram of a menu configuration file in an embodiment of the present invention.

[0028] Figure 6 Schematic diagram of a new menu in an embodiment of the present invention.

[0029] Figure 7 Schematic diagram of a complete menu in an embodiment of the present invention.

[0030] Figure 8 Schematic diagram of a new submenu in an embodiment of the present invention.

[0031] Fig. 9 Schematic diagram of a configuration file for a relay protection device in an embodiment of the present invention.

[0032] Fig.10 Schematic diagram of the lcdconfig.txt file in an embodiment of the present invention. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. In addition, in the following description, the description of well-known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.

[0034] The first aspect of the present invention provides a menu modeling and configuration method for a relay protection embedded device, such as Figure 1 As shown, the following steps are included:

[0035] Step S100, modeling the menu module to form a menu template file;

[0036] Step S200, establishing corresponding menu configuration according to the modeled menu template file, and generating a menu configuration file;

[0037] Step S300, in menu configuration, establish the required menu, assign values ​​to corresponding menu parameters, and generate a menu configuration file for the relay protection embedded device;

[0038] Step S400, loading the menu configuration file of the relay protection embedded device into the relay protection embedded device, the device parses the configuration file, and performs menu configuration and interface generation according to the file content.

[0039] Furthermore, the step of modeling the menu module to form a menu template file includes:

[0040] Construct menu name, api function, menu source file;

[0041] The API function includes whether to print, data set name, immediate value, event type and / or CPU number.

[0042] Furthermore, the step of establishing a corresponding menu configuration according to the modeled menu template file and generating a menu configuration file comprises:

[0043] Establishing menus, files and / or menu parameters, wherein the menus, files and / or menu parameters include function modules of creating, deleting, moving up and moving down;

[0044] After the menu is configured, save the file, and the background will form a menu configuration file based on the menu template file and the menu established by the interface.

[0045] Furthermore, the menu parameters correspond to API functions.

[0046] Furthermore, the relay protection embedded device menu configuration file includes an lcdconfig.txt file and an .elf file.

[0047] Furthermore, 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 the file content include:

[0048] After downloading the .elf file to the relay protection embedded device, the device parses the lcdconfig.txt generated by the menu configuration tool and performs menu configuration and interface generation according to the content of the txt file.

[0049] like Figure 2-8 , the present invention is further illustrated in a specific embodiment.

[0050] In order to quickly complete the human-machine configuration through the tool and improve the configuration efficiency of the human-machine, the menu module is first modeled and designed. Since the menu consists of menu name, api function name, menu source file, etc. The API function parameters are abstracted in this patent as: whether it can be printed, data set name, immediate number, event type, CPU number and other types. Among them, the data set is a data set selected from the variable symbol table, and a data set is composed of a combination of several data. The data browsed and printed by the menu in the device is the data in the data set selected for this menu item. Therefore, when designing, the menu series of parameters are first modeled. Since the api parameter is a key item of a menu, a menu must have an api parameter. Therefore, the api parameter is bound to the menu itself as a required item of the menu. The same is true for the menu name, and a menu must also have its own name. Whether it can be printed, the data set keyword, the immediate number and other parameters are parameters of the api, and the parameters owned by different apis are also different. For example, some apis do not need parameters such as whether it can be printed, and some apis do not need parameters such as data sets. And because the five simple parameters such as whether it can be printed, the data set parameter, the immediate number, and the CPU number have the same structure, they all contain simple data formats such as name and value, but the types are different. So we integrate these five parameters. They are all attributed to the menu parameter. A field is used to distinguish the type of parameter. Since the file does not belong to the API and is essentially different from other parameters, and contains parameters such as address information, it is an independent attribute, and the menu is modeled on this basis. So far, a simple structural modeling of the menu is formed. Based on this modeling, a menu template configuration file is formed, such as Figure 2 As shown. So far, the menu modeling is completed.

[0051] On the basis of this menu modeling, in order to facilitate designers to design menus based on menu templates, a menu configuration tool is designed. Since the menu parameters in menu modeling are divided into two major items: files and menu parameters. Therefore, when designing the menu configuration tool, the overall interface is divided into three parts: menu, file, and menu parameters. The following is a detailed description.

[0052] In the menu section, users can create, delete, move up, and move down menus. Clicking on different menus will refresh the interface of the second part (file) and the third part (parameter) according to the files and menu parameters of the menu. The overall order of the menus will be used in the second tool.

[0053] The file part is also divided into several functions: create, delete, move up, and move down. When creating a new file, the menu to which the new file belongs is the menu selected in the left menu part.

[0054] The third part (menu parameters) is also divided into several functions: create, delete, move up, and move down. When creating a new parameter, the menu to which the new parameter belongs is the menu selected in the menu interface on the left (if there is no menu selected in the left interface, the new parameter fails). The order of the parameters from top to bottom is the order of the parameters of the api keyword (platform callback function) (detailed description in the second tool). The type of the parameter can be created or changed according to the type field, such as Figure 3 shown.

[0055] In order to facilitate the configuration of the second tool (menu configuration tool), first create some menus, such as Figure 4 shown.

[0056] After the menu configuration is completed, when you save the file, the background will form a menu configuration file based on the menu template file and the menu established on the interface. Figure 5 As shown in the figure, the menuType node is the created menu, the menuParm node is all the created parameters, and the owner field in the parameter node determines which menu the parameter belongs to. So far, the design of the first tool (menu configuration tool) is completed.

[0057] After the menu configuration tool saves the file, you can start the menu configuration function. In the menu configuration tool, we use the menu configuration established above as the basis, create menus in the menu configuration, assign specific values ​​to the menu parameters, and then compile the menu to generate the configuration file. The following is a detailed description of the configuration process.

[0058] Open the menu configuration tool and create a menu in the menu configuration. You only need to enter the English name of the menu and select a menu. Figure 6 , taking alarm and user event browsing and printing as an example. Figure 4 The tool will automatically generate a menu in memory. This menu contains all the parameters of the selected template menu and displays the parameters on the interface. At this time, you only need to select the corresponding value for the menu parameter. After selecting the value, a simple menu is created. The complete menu is as follows: Figure 7The process of creating a submenu is similar to creating a new menu, except that you click the Add Submenu button. The rest of the process is the same as creating a new menu. Figure 7 On this basis, create a new alarm and user event browsing and printing submenu, the effect is as follows Figure 8 shown.

[0059] After all menus required for the corresponding device are created and the menu parameters are assigned, the device configuration file can be generated. Fig. 9 After the menu is created and the menu parameters are assigned, the configuration interface of the tool generates and configures the configured menu to form lcdconfig.txt and .elf files. The contents of lcdconfig.txt are as follows: Fig.10 After .elf is downloaded to the device, the device parses the lcdconfig.txt generated by the menu configuration tool, and performs menu configuration and interface generation according to the content of the txt file.

[0060] A second aspect of the present invention provides a menu modeling and configuration device for a relay protection embedded device, which is used to execute the aforementioned method, and includes a menu configuration tool and a menu configuration tool;

[0061] The menu configuration tool interface includes menus, files and menu parameters, so as to establish corresponding menu configuration according to the modeled menu template file and generate a menu configuration file;

[0062] The menu configuration tool is used to establish the required menu in the menu configuration, assign values ​​to the corresponding menu parameters, and generate a menu configuration file for the relay protection embedded device to establish the menu configuration.

[0063] In summary, the present invention provides a method and device for modeling and configuring a menu of a relay protection embedded device, the method comprising modeling a menu module to form a menu template file; establishing a corresponding menu configuration according to the modeled menu template file to generate a menu configuration file; in the menu configuration, establishing a required menu, assigning values ​​to corresponding menu parameters, and generating a menu configuration file for a relay protection embedded device; loading the menu configuration file for 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 the file content. The present invention improves the efficiency of human-machine configuration and reduces the probability of error by modeling the menu, using tools to quickly complete human-machine configuration and generate configuration files, avoiding platform modification.

[0064] It should be understood that the above specific embodiments of the present invention are only used to illustrate or explain the principles of the present invention, and do not constitute a limitation of the present invention. Therefore, any modifications, equivalent substitutions, improvements, etc. made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. In addition, the appended claims of the present invention are intended to cover all changes and modifications that fall within the scope and boundaries of the appended claims, or the equivalent forms of such scope and boundaries.

Claims

1. A menu modeling and configuration method for a relay protection embedded device, characterized in that: The steps include: Model the menu module to form a menu template file; Establish corresponding menu configuration according to the modeled menu template file and generate menu configuration file; In menu configuration, create the required menu, assign values ​​to the corresponding menu parameters, and generate a menu configuration file for the relay protection embedded device; Loading the relay protection embedded device menu configuration file into the relay protection embedded device, having the device parse the configuration file, and performing menu configuration and interface generation according to the file content; The menu configuration file of the relay protection embedded device includes an lcdconfig.txt file and an .elf file; 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 the file content include: After downloading the .elf file to the relay protection embedded device, the device parses the lcdconfig.txt generated by the menu configuration tool, and performs menu configuration and interface generation according to the content of the txt file; The steps of modeling the menu module and forming a menu template file include: Construct menu name, api function, menu source file; The API function includes whether to print, data set name, immediate value, event type and / or CPU number; The steps of establishing corresponding menu configuration according to the modeled menu template file and generating the menu configuration file include: Establishing menus, files and / or menu parameters, wherein the menus, files and / or menu parameters include function modules of creating, deleting, moving up and moving down; After the menu is configured, save the file, and the background will form a menu configuration file based on the menu template file and the menu established by the interface.

2. The menu modeling and configuration method for a relay protection embedded device according to claim 1, characterized in that: The menu parameters correspond to API functions.

3. A menu modeling and configuration device for a relay protection embedded device, characterized in that: The device is used to perform the method according to claim 1 or 2; The device includes a menu configuration tool and a menu configuration tool; The menu configuration tool interface includes menus, files and menu parameters, so as to establish corresponding menu configuration according to the modeled menu template file and generate a menu configuration file; The menu configuration tool is used to establish the required menu in the menu configuration, assign values ​​to the corresponding menu parameters, and generate a menu configuration file for the relay protection embedded device to establish the menu configuration.

Citation Information

Patent Citations

  • Human-computer interface configuration design method and device

    CN110119272A