CN110851171A - Embedded platform function configuration method, configuration tool and system - Google Patents
Embedded platform function configuration method, configuration tool and system Download PDFInfo
- Publication number
- CN110851171A CN110851171A CN201911091046.8A CN201911091046A CN110851171A CN 110851171 A CN110851171 A CN 110851171A CN 201911091046 A CN201911091046 A CN 201911091046A CN 110851171 A CN110851171 A CN 110851171A
- Authority
- CN
- China
- Prior art keywords
- variable
- embedded platform
- value
- file
- configuration
- 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.)
- Granted
Links
Images
Classifications
-
- 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
-
- 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/73—Program documentation
-
- 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
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal 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)
- Library & Information Science (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to a function configuration method, a configuration tool and a system of an embedded platform. The configuration method comprises the following steps: loading a target file of the embedded platform by the configuration tool; searching according to the name of the variable, acquiring a memory address of the variable, extracting a value of the variable from the memory address, and outputting an operation page which displays the value of the variable and a modification window of the value of the variable; waiting for the operator to complete modification of the value of the variable; saving the modification result as a binary file, and transmitting the binary file to the embedded platform; and the embedded platform receives the binary file and loads the binary file to complete the function configuration. The method directly searches the variable to be modified in the target file, modifies the value of the variable, saves the modification result as a binary file, directly fills the value of the variable when loading the binary file, enables or closes some functions according to the value, reduces the process of analyzing the file, reduces the file operation instruction, and improves the efficiency of function configuration.
Description
Technical Field
The invention relates to a function configuration method, a configuration tool and a system of an embedded platform, and belongs to the technical field of engineering.
Background
With the development of artificial intelligence, embedded devices are ubiquitous, and functions are different from one another, so that the embedded device platform not only needs to meet functional requirements, but also needs to meet performance requirements. In the face of various requirements, the embedded platform needs to provide large and complete services, and generally needs to be matched with a corresponding function selection configuration file to realize function selection, cutting and the like, otherwise, equipment resources are seriously wasted, and the product competitiveness is reduced. The existing popular embedded file system needs to analyze the text file when processing a large file or a plurality of small configuration files, and the configuration efficiency is low because some characteristics of the text file require a plurality of parameter calls or instruction calls during analysis.
Disclosure of Invention
The invention aims to provide an embedded platform function configuration method, which is used for solving the problem of low efficiency of the existing configuration method; meanwhile, an embedded platform function configuration tool is also provided to solve the problem of low efficiency of the existing configuration method; meanwhile, an embedded platform function configuration system is also provided to solve the problem of low efficiency of the existing configuration system.
In order to achieve the above object, the present invention provides a method for configuring functions of an embedded platform, comprising the following steps:
loading a target file of the embedded platform by the configuration tool;
the configuration tool searches in the target file according to the name of the variable, acquires the memory address of the variable, extracts the value of the variable from the memory address, and outputs an operation page, wherein the operation page displays the value of the variable and a modification window of the value of the variable;
the configuration tool waits for the operator to complete the modification of the value of the variable; saving the modification result as a binary file, and transmitting the binary file to the embedded platform;
and the embedded platform receives the binary file and loads the binary file to complete the function configuration.
The beneficial effects are that: according to the method, the target file is loaded, the variable to be modified is directly searched in the target file, the value of the variable is modified, the modified result is stored as a binary file, when the binary file is loaded by the embedded platform, the value of the variable is directly filled, certain functions are enabled or closed according to the value, the process of analyzing the file is reduced, file operation instructions are reduced, and the efficiency of function configuration is improved.
Further, in order to ensure loading reliability, the configuration tool loads the target file of the embedded platform through a UDP protocol.
Further, after the configuration is modified, in general, when the embedded platform is started, the loading is performed to complete the function configuration.
In addition, the present invention also provides an embedded platform function configuration tool, for communicating with an embedded platform, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following method when executing the computer program:
loading a target file of the embedded platform;
searching in the target file according to the name of the variable, acquiring a memory address of the variable, extracting a value of the variable from the memory address, and outputting an operation page, wherein the operation page displays the value of the variable and a modification window of the value of the variable;
waiting for an operator to complete modification of the value of the variable; and saving the modification result as a binary file, transmitting the binary file to the embedded platform, and receiving and loading the binary file by the embedded platform to complete the function configuration.
Has the advantages that: the configuration tool directly searches the variable to be modified in the target file by loading the target file, modifies the value of the variable, saves the modification result as a binary file, so that when the embedded platform loads the binary file, the value of the variable is directly filled, and certain functions are enabled or closed according to the value, thereby reducing the process of analyzing the file, reducing file operation instructions and improving the efficiency of function configuration.
Further, in order to ensure loading reliability, the configuration tool loads the target file of the embedded platform through a UDP protocol.
In addition, the present invention also provides an embedded platform function configuration system, which includes a configuration tool and an embedded platform, the configuration tool includes a processor, a memory and a computer program stored in the memory and capable of running on the processor, and the processor implements the following method when executing the computer program:
loading a target file of the embedded platform;
searching in the target file according to the name of the variable, acquiring a memory address of the variable, extracting a value of the variable from the memory address, and outputting an operation page, wherein the operation page displays the value of the variable and a modification window of the value of the variable;
waiting for an operator to complete modification of the value of the variable; saving the modification result as a binary file, and transmitting the binary file to the embedded platform;
and the embedded platform is used for receiving the binary file and loading to complete function configuration.
The beneficial effects are that: the configuration tool in the system directly searches the variable to be modified in the target file by loading the target file, modifies the value of the variable, saves the modification result as a binary file, directly fills the value of the variable when the embedded platform loads the binary file, enables or closes some functions according to the value, reduces the process of analyzing the file, reduces the file operation instruction and improves the efficiency of function configuration.
Further, in order to ensure loading reliability, the configuration tool loads the target file of the embedded platform through a UDP protocol.
Further, after the configuration is modified, in general, when the embedded platform is started, the loading is performed to complete the function configuration.
Drawings
FIG. 1 is a schematic structural diagram of an embedded platform function configuration system according to the present invention;
FIG. 2 is a schematic view of a browse and modify operator interface of the present invention;
FIG. 3 is a diagram of a variable binary file according to the present invention.
Detailed Description
The embedded platform function configuration system embodiment:
the embedded platform function configuration system provided in this embodiment, as shown in fig. 1, includes a configuration tool and an embedded platform, where the configuration tool and the embedded platform are in communication connection through a UDP protocol. Although the invention is not limited as to the manner of communication. The configuration tool is a terminal device commonly used in the power system. The embedded platform is an embedded system which needs to be configured with functions.
In particular, the configuration tool comprises a processor, a memory and a computer program stored in the memory and executable on the processor, the processor implementing the following method when executing the computer program:
for example, in order to configure functions, when a member (denoted as variable a) in a structure needs to be modified accordingly;
the configuration tool is connected with the embedded platform through a communication interface and loads a target file of the embedded platform;
obtaining a memory address of the variable A by performing online lookup through an RPC (remote procedure call) function in a target file according to the name of the variable A, extracting the value of the variable A from the memory address, and providing a browsing and modifying operation interface (namely, an output operation page, and a modification window for displaying the value of the variable and the value of the variable) of the value of the variable A shown in FIG. 2;
waiting for the operator to complete modification of the value of the variable a, generating a binary file corresponding to the variable a shown in fig. 3 (in this embodiment, the binary file is a small end, and is aligned by 4 bytes) according to a large-small end mode (multi-byte data has an influence) corresponding to the platform, a structural body alignment rule, and the like, and storing the modified result;
and transmitting the binary file to the embedded platform.
The embedded platform receives the binary file, loads the binary file through the loading module when the embedded platform is started, and quickly fills the value of the variable by utilizing the characteristic that the content of the binary file is consistent with the memory of the variable A, so as to complete the functional configuration of the embedded platform. As other embodiments, the binary file may also be loaded when the embedded platform is powered off, and the present invention does not limit the time for loading the binary file, as long as the value of the padding variable can be loaded.
The embedded platform enables or closes certain functions according to the value of the variable, and the configuration and the rapid customization of the functions of the embedded platform are realized through the mutual cooperation of the embedded equipment platform and the configuration tool (the configuration method of the cooperation of the embedded equipment platform and the configuration tool is the configuration method of the functions of the embedded platform). And because the operation object (target file) of the configuration tool is directly obtained online from the target program of the embedded platform, the configuration tool used by a user does not need to be upgraded even if the embedded platform is upgraded, and the configuration tool has good universality.
The embodiment of the embedded platform function configuration method comprises the following steps:
the method for configuring the functions of the embedded platform provided by the embodiment comprises the following steps:
loading a target file of the embedded platform by the configuration tool;
the configuration tool searches in the target file according to the name of the variable, acquires the memory address of the variable, extracts the value of the variable from the memory address, and outputs an operation page, wherein the operation page displays the value of the variable and a modification window of the value of the variable;
the configuration tool waits for the operator to complete the modification of the value of the variable; saving the modification result as a binary file, and transmitting the binary file to the embedded platform;
and the embedded platform receives the binary file and loads the binary file to complete the function configuration.
The specific implementation process of the embedded platform function configuration method is already introduced in the embedded platform function configuration system, and will not be described in detail here.
The embedded platform function configuration tool embodiment:
the embedded platform function configuration tool in this embodiment, referred to as a configuration tool in other embodiments for short, is essentially a terminal device, configured to communicate with an embedded platform, and includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the following method when executing the computer program:
loading a target file of the embedded platform;
searching in the target file according to the name of the variable, acquiring a memory address of the variable, extracting a value of the variable from the memory address, and outputting an operation page, wherein the operation page displays the value of the variable and a modification window of the value of the variable;
waiting for an operator to complete modification of the value of the variable; and saving the modification result as a binary file, transmitting the binary file to the embedded platform, and receiving and loading the binary file by the embedded platform to complete the function configuration.
The specific working process of the configuration tool is already introduced in the embedded platform function configuration system, and will not be described in detail here.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.
Claims (8)
1. A method for configuring functions of an embedded platform is characterized by comprising the following steps:
loading a target file of the embedded platform by the configuration tool;
the configuration tool searches in the target file according to the name of the variable, acquires the memory address of the variable, extracts the value of the variable from the memory address, and outputs an operation page, wherein the operation page displays the value of the variable and a modification window of the value of the variable;
the configuration tool waits for the operator to complete the modification of the value of the variable; saving the modification result as a binary file, and transmitting the binary file to the embedded platform;
and the embedded platform receives the binary file and loads the binary file to complete the function configuration.
2. The method according to claim 1, wherein the configuration tool loads the target file of the embedded platform via UDP protocol.
3. The method according to claim 1 or 2, wherein the loading is performed to complete the function configuration when the embedded platform is started.
4. An embedded platform functionality configuration tool for communicating with an embedded platform, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the following method when executing the computer program:
loading a target file of the embedded platform;
searching in the target file according to the name of the variable, acquiring a memory address of the variable, extracting a value of the variable from the memory address, and outputting an operation page, wherein the operation page displays the value of the variable and a modification window of the value of the variable;
waiting for an operator to complete modification of the value of the variable; and saving the modification result as a binary file, transmitting the binary file to the embedded platform, and receiving and loading the binary file by the embedded platform to complete the function configuration.
5. The embedded platform functionality configuration tool according to claim 4, wherein the configuration tool loads the target file of the embedded platform via UDP protocol.
6. An embedded platform function configuration system comprises a configuration tool and an embedded platform, and is characterized in that,
a configuration tool comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, the processor implementing the following method when executing the computer program:
loading a target file of the embedded platform;
searching in the target file according to the name of the variable, acquiring a memory address of the variable, extracting a value of the variable from the memory address, and outputting an operation page, wherein the operation page displays the value of the variable and a modification window of the value of the variable;
waiting for an operator to complete modification of the value of the variable; saving the modification result as a binary file, and transmitting the binary file to the embedded platform;
and the embedded platform is used for receiving the binary file and loading to complete function configuration.
7. The embedded platform functional configuration system of claim 6, wherein the configuration tool loads the target file of the embedded platform via UDP protocol.
8. The embedded platform functional configuration system of claim 6 or 7, wherein the loading is performed to complete functional configuration at embedded platform startup.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911091046.8A CN110851171B (en) | 2019-11-09 | 2019-11-09 | Function configuration method, tool and system for embedded platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911091046.8A CN110851171B (en) | 2019-11-09 | 2019-11-09 | Function configuration method, tool and system for embedded platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110851171A true CN110851171A (en) | 2020-02-28 |
CN110851171B CN110851171B (en) | 2023-08-11 |
Family
ID=69600933
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911091046.8A Active CN110851171B (en) | 2019-11-09 | 2019-11-09 | Function configuration method, tool and system for embedded platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110851171B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1627254A (en) * | 2003-12-10 | 2005-06-15 | 华为技术有限公司 | Method for debuging embedded system and equipment |
KR100628771B1 (en) * | 2005-06-21 | 2006-10-02 | 엘지전자 주식회사 | Method of install preload application for mobile station using brew platform |
CN102624545A (en) * | 2012-02-22 | 2012-08-01 | 中兴通讯股份有限公司 | Data backup method, data backup device, data recovery method and data recovery device of network management system |
CN103617060A (en) * | 2013-12-05 | 2014-03-05 | 积成电子股份有限公司 | Method for accelerating starting procedure of embedded software by using super state storage |
US20140244713A1 (en) * | 2013-02-22 | 2014-08-28 | Adobe Systems Incorporated | Online content management system with undo and redo operations |
CN107766304A (en) * | 2017-10-23 | 2018-03-06 | 国电南瑞科技股份有限公司 | A kind of binary profile file generation method based on XML |
CN107861751A (en) * | 2017-11-22 | 2018-03-30 | 出门问问信息科技有限公司 | The amending method and device of configuration file |
-
2019
- 2019-11-09 CN CN201911091046.8A patent/CN110851171B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1627254A (en) * | 2003-12-10 | 2005-06-15 | 华为技术有限公司 | Method for debuging embedded system and equipment |
KR100628771B1 (en) * | 2005-06-21 | 2006-10-02 | 엘지전자 주식회사 | Method of install preload application for mobile station using brew platform |
CN102624545A (en) * | 2012-02-22 | 2012-08-01 | 中兴通讯股份有限公司 | Data backup method, data backup device, data recovery method and data recovery device of network management system |
US20140244713A1 (en) * | 2013-02-22 | 2014-08-28 | Adobe Systems Incorporated | Online content management system with undo and redo operations |
CN103617060A (en) * | 2013-12-05 | 2014-03-05 | 积成电子股份有限公司 | Method for accelerating starting procedure of embedded software by using super state storage |
CN107766304A (en) * | 2017-10-23 | 2018-03-06 | 国电南瑞科技股份有限公司 | A kind of binary profile file generation method based on XML |
CN107861751A (en) * | 2017-11-22 | 2018-03-30 | 出门问问信息科技有限公司 | The amending method and device of configuration file |
Non-Patent Citations (7)
Title |
---|
WEIXIN_33966095: "嵌入式linux软件数据参数保存的三种方式", Retrieved from the Internet <URL:《https://blog.csdn.net/weixin_33966095/article/details/92314590》> * |
Y.OKADA等: "A New Delta Compression Algorithm Suitable for Program Updating in Embedded Systems", 《DATA COMPRESSION CONFERENCE, 2003. PROCEEDINGS. DCC 2003》 * |
张元亮: "《Android开发应用从入门到精通》", 28 February 2011, 中国铁道出版社, pages: 38 - 41 * |
张晓勇等: "《嵌入式通信系统》", 31 March 2017, 中国铁道出版社, pages: 13 - 16 * |
李永: "基于龙芯的嵌入式智能家居系统的研究", 《中国优秀硕士学位论文全文数据库 (工程科技Ⅱ辑)》, no. 04, pages 140 - 338 * |
杨光: "基于ARM的嵌入式系统软件平台的研究", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》, no. 09, pages 138 - 493 * |
毛春兰: "基于嵌入式平台的可配置界面系统设计与实现", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》, no. 08, pages 138 - 179 * |
Also Published As
Publication number | Publication date |
---|---|
CN110851171B (en) | 2023-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111984356B (en) | Page jump method, device, computer equipment and storage medium | |
EP3961381B1 (en) | Method and apparatus for node selection | |
US9565148B2 (en) | Method and apparatus for processing micro web log messages | |
EP4099736B1 (en) | Data transmission method and electronic device | |
CN108536452B (en) | Embedded device, system software upgrading method, system and terminal thereof | |
CN112506584B (en) | Resource file loading method, device, equipment, storage medium and product | |
CN109582377A (en) | BIOS option amending method, device, equipment and storage medium | |
CN107291427B (en) | Method, device and system for optimizing game engine | |
CN113946602A (en) | Data searching method, device, equipment and medium | |
CN111159265B (en) | ETL data migration method and system | |
CN107844363B (en) | Business transaction processing method, device, storage medium and equipment | |
CN109697189A (en) | A kind of processing method of data file, device, storage medium and electronic equipment | |
CN110851171B (en) | Function configuration method, tool and system for embedded platform | |
CN107291460A (en) | Television terminal and compiler server code control method and storage medium | |
CN111045747A (en) | H5 mobile application rapid loading method, system, terminal and storage medium | |
EP3573306A1 (en) | Data processing method and device utilized in client terminal | |
CN112783724B (en) | Log grabbing and debugging method, system, intelligent device and storage medium | |
WO2021203343A1 (en) | Web request processing method and apparatus | |
CN114253441A (en) | Target function starting method and device, storage medium and electronic device | |
CN114265866A (en) | Streaming data processing method, rule plug-in, streaming data processing module and system | |
CN104424198A (en) | Method and device for acquiring page display speed | |
CN112905270A (en) | Workflow implementation method, device, platform, electronic equipment and storage medium | |
CN112612531A (en) | Application program starting method and device, electronic equipment and storage medium | |
CN111459588A (en) | Big data model setting method, terminal device and computer readable storage medium | |
CN112965757A (en) | Embedded equipment platform function configuration control method and control system |
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 |