CN110851171B - Function configuration method, tool and system for embedded platform - Google Patents
Function configuration method, tool and system for embedded platform Download PDFInfo
- Publication number
- CN110851171B CN110851171B CN201911091046.8A CN201911091046A CN110851171B CN 110851171 B CN110851171 B CN 110851171B CN 201911091046 A CN201911091046 A CN 201911091046A CN 110851171 B CN110851171 B CN 110851171B
- Authority
- CN
- China
- Prior art keywords
- variable
- embedded platform
- value
- file
- binary file
- 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
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 application relates to an embedded platform function configuration method, a configuration tool and a system. The configuration method comprises the following steps: the configuration tool loads a target file of the embedded platform; searching according to the name of the variable, obtaining the memory address of the variable, extracting the value of the variable from the memory address, outputting an operation page, and displaying the value of the variable and a modification window of the value of the variable by the operation page; waiting for an operator to complete modification of the value of the variable; storing the modification result as a binary file and transmitting the binary file to an embedded platform; 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, and stores the modification result as a binary file so as to directly fill the value of the variable when the binary file is loaded, and enable or close certain functions according to the value, thereby reducing the process of analyzing the file, reducing the file operation instruction and improving the efficiency of function configuration.
Description
Technical Field
The application relates to an embedded platform function configuration method, a configuration tool and a system, and belongs to the technical field of engineering.
Background
Along with the development of artificial intelligence, embedded equipment is ubiquitous, and functions are quite different, so that the embedded equipment platform not only meets functional requirements, but also meets performance requirements. In order to meet various requirements, the embedded platform needs to provide large and complete services, and generally needs to cooperate with corresponding function selection configuration files to realize function selection, cutting and the like, otherwise, equipment resources are seriously wasted, and product competitiveness is reduced. The current popular embedded file system needs to parse a text file when processing a large file or a relatively large small configuration file, and because of some characteristics of the text file, many parameter movements or instruction calls are needed when parsing, the configuration efficiency is low.
Disclosure of Invention
The application 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 provided, so that the problem of low efficiency of the existing preparation method is solved; meanwhile, the embedded platform function configuration system is also provided for solving the problem of low efficiency of the existing configuration system.
In order to achieve the above object, the present application provides a method for configuring functions of an embedded platform, comprising the following steps:
the configuration tool loads a target file of the embedded platform;
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; storing the modification result as a binary file and transmitting the binary file to an embedded platform;
and the embedded platform receives the binary file and loads the binary file to complete functional 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 modification result is stored as the binary file, when the binary file is loaded by the embedded platform, the value of the variable is directly filled, and certain functions are enabled or closed according to the value, so that the process of analyzing the file is reduced, the file operation instruction is reduced, and the efficiency of function configuration is improved.
Furthermore, in order to ensure the reliability of loading, the configuration tool loads the target file of the embedded platform through a UDP protocol.
Further, after configuration modification, the loading is typically performed to complete functional configuration when the embedded platform is started.
In addition, the application also provides an embedded platform function configuration tool, which is used for communicating with an embedded platform and comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes 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, obtaining the memory address of the variable, extracting the 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 storing the modification result as a binary file, transmitting the binary file to the embedded platform for the embedded platform to receive and load to complete the function configuration.
The beneficial effects are 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, and stores 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 the file operation instruction and improving the efficiency of function configuration.
Furthermore, in order to ensure the reliability of loading, the configuration tool loads the target file of the embedded platform through a UDP protocol.
In addition, the application also provides an embedded platform function configuration system, which comprises a configuration tool and an embedded platform, wherein the configuration tool comprises a processor, a memory and a computer program which is stored in the memory and can run on the processor, and the processor realizes 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, obtaining the memory address of the variable, extracting the 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; storing the modification result as a binary file and transmitting the binary file to an embedded platform;
the embedded platform is used for receiving the binary file and loading the binary file to complete the 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, stores 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 certain functions according to the value, reduces the process of analyzing the file, reduces the file operation instruction, and improves the efficiency of function configuration.
Furthermore, in order to ensure the reliability of loading, the configuration tool loads the target file of the embedded platform through a UDP protocol.
Further, after configuration modification, the loading is typically performed to complete functional configuration when the embedded platform is started.
Drawings
FIG. 1 is a schematic diagram of an embedded platform function configuration system according to the present application;
FIG. 2 is a schematic diagram of a browsing and modification operation interface according to the present application;
FIG. 3 is a schematic diagram of a variable binary file according to the present application.
Detailed Description
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 is connected with the embedded platform through UDP protocol communication. Of course, the application is not limited in the manner of communication. The configuration tool is a terminal device commonly used in power systems. The embedded platform is an embedded system which needs to be subjected to function configuration.
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 methods when executing the computer program:
for example, when a member (denoted as variable a) in a structure needs to be modified accordingly for functional configuration;
the configuration tool is connected with the embedded platform through a communication interface and loads a target file of the embedded platform;
searching in the target file on line through an RPC (remote procedure call) function according to the name of the variable A, obtaining the memory address of the variable A, extracting the value of the variable A from the memory address, and providing a browsing and modifying operation interface (namely, outputting an operation page which displays the value of the variable and a modifying window of the value of the variable) of the value of the variable A shown in figure 2;
waiting for an operator to finish modifying the value of the variable A, generating a binary file corresponding to the variable A shown in FIG. 3 according to a size end mode (multi-byte data has an influence), a structure alignment rule and the like corresponding to the platform (in the embodiment, the binary file is small-end and 4 bytes are aligned) and storing the modification result;
and transmitting the binary file to the embedded platform.
The embedded platform receives the binary file, and loads the binary file through a loading module when the embedded platform is started, and the value of the variable is rapidly filled by utilizing the characteristic that the content of the binary file is consistent with the memory of the variable A, so that the function configuration of the embedded platform is completed. As other embodiments, the binary file can be loaded when the embedded platform is powered off, and the application does not limit the time for loading the binary file, so long as the value of the filling variable can be loaded.
The embedded platform enables or closes certain functions according to the variable values, and the configuration and quick 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 an embedded platform function configuration method), and the configuration method can be used under the condition of being sensitive to the file operation speed of the embedded platform. And because the operation object (target file) of the configuration tool is directly obtained on line from the target program of the embedded platform, even if the embedded platform is upgraded, the configuration tool used by a user is not upgraded, and the configuration tool has good universality.
An embodiment of an embedded platform function configuration method:
the embedded platform function configuration method provided by the embodiment comprises the following steps:
the configuration tool loads a target file of the embedded platform;
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; storing the modification result as a binary file and transmitting the binary file to an embedded platform;
and the embedded platform receives the binary file and loads the binary file to complete functional configuration.
The specific implementation process of the embedded platform function configuration method is described in the above embedded platform function configuration system, and will not be repeated here.
Embedded platform functionality configuration tool embodiment:
the embedded platform function configuration tool in this embodiment, in other embodiments, is simply referred to as a configuration tool, which is essentially a terminal device, and is configured to communicate with an embedded platform, and includes a memory, a processor, and a computer program stored in the memory and capable of running 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, obtaining the memory address of the variable, extracting the 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 storing the modification result as a binary file, transmitting the binary file to the embedded platform for the embedded platform to receive and load to complete the function configuration.
The specific working process of the configuration tool is described in the above-mentioned embedded platform function configuration system, and will not be repeated here.
It will be appreciated by those skilled in the art that 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 aspects of the present application and not for limiting the same, and although the present application has been described in detail with reference to the above embodiments, it should be understood by those of ordinary skill in the art that: modifications and equivalents may be made to the specific embodiments of the application without departing from the spirit and scope of the application, which is intended to be covered by the claims.
Claims (8)
1. The embedded platform function configuration method is characterized by comprising the following steps of:
the configuration tool loads a target file of the embedded platform;
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; storing the modification result as a binary file and transmitting the binary file to an embedded platform;
and the embedded platform receives the binary file and loads the binary file to complete functional configuration.
2. The embedded platform function configuration method according to claim 1, wherein a configuration tool loads the object file of the embedded platform through a UDP protocol.
3. The embedded platform function configuration method according to claim 1 or 2, wherein the loading is performed to complete the function configuration at the time of the start-up of the embedded platform.
4. An embedded platform function 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, characterized in that the processor, when executing the computer program, implements the method of:
loading a target file of the embedded platform;
searching in the target file according to the name of the variable, obtaining the memory address of the variable, extracting the 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 storing the modification result as a binary file, transmitting the binary file to the embedded platform for the embedded platform to receive and load to complete the function configuration.
5. The embedded platform function configuration tool of claim 4, wherein the configuration tool loads the object 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, obtaining the memory address of the variable, extracting the 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; storing the modification result as a binary file and transmitting the binary file to an embedded platform;
the embedded platform is used for receiving the binary file and loading the binary file to complete the function configuration.
7. The embedded platform function configuration system of claim 6, wherein the configuration tool loads the object file of the embedded platform via UDP protocol.
8. An embedded platform function configuration system according to claim 6 or 7, wherein the loading is performed to complete the function configuration at the start-up of the embedded platform.
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 CN110851171A (en) | 2020-02-28 |
CN110851171B true 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) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112965757A (en) * | 2021-02-26 | 2021-06-15 | 许昌许继软件技术有限公司 | Embedded equipment platform function configuration control method and control system |
Citations (6)
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 |
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9336234B2 (en) * | 2013-02-22 | 2016-05-10 | Adobe Systems Incorporated | Online content management system with undo and redo operations |
-
2019
- 2019-11-09 CN CN201911091046.8A patent/CN110851171B/en active Active
Patent Citations (6)
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 |
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 (1)
Title |
---|
基于ARM的嵌入式***软件平台的研究;杨光;《中国优秀硕士学位论文全文数据库 (信息科技辑)》(第09期);I138-493 * |
Also Published As
Publication number | Publication date |
---|---|
CN110851171A (en) | 2020-02-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111984356B (en) | Page jump method, device, computer equipment and storage medium | |
CN106547527B (en) | JavaScript file construction method and device | |
CN105786549B (en) | Smart machine and its upgrade method | |
CN112506584B (en) | Resource file loading method, device, equipment, storage medium and product | |
KR101427561B1 (en) | Method for adaptively executing an android application on tizen platform by automatically transforming the android application into tizen-installable package, and computer-readable recording medium for the same | |
CN113050940A (en) | Method for previewing small program, related device and computer program product | |
CN110851171B (en) | Function configuration method, tool and system for embedded platform | |
CN113946602A (en) | Data searching method, device, equipment and medium | |
CN111159265B (en) | ETL data migration method and system | |
KR101117165B1 (en) | Web platform unit for mobile terminal connectioned web-application program in heterogeneous operating system | |
CN109766123B (en) | Application program packaging method and device | |
CN110362317B (en) | Code conversion method, device and storage medium | |
CN111782218B (en) | Applet processing method, device, equipment and storage medium | |
CN106775879B (en) | VR application installation-free method and system based on android system client | |
CN110825373B (en) | Mobile terminal dynamic method and device | |
CN111930455A (en) | Page updating method, device, terminal and storage medium | |
EP3573306A1 (en) | Data processing method and device utilized in client terminal | |
CN114253441B (en) | Method and device for enabling target function, storage medium and electronic device | |
CN112783724B (en) | Log grabbing and debugging method, system, intelligent device and storage medium | |
CN111045747A (en) | H5 mobile application rapid loading method, system, terminal and storage medium | |
CN109842644B (en) | Parameter expansion method and system, cloud computing management platform assembly and user terminal | |
CN113434154B (en) | Android application program packaging method and device, storage medium and electronic device | |
CN116414494A (en) | Service processing method, device, equipment and storage medium | |
CN108089900B (en) | Character string processing method and device | |
CN112612531A (en) | Application program starting method and device, electronic equipment and storage medium |
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 |