CN104461619A - Method capable of configuring embedded software function - Google Patents
Method capable of configuring embedded software function Download PDFInfo
- Publication number
- CN104461619A CN104461619A CN201410693031.XA CN201410693031A CN104461619A CN 104461619 A CN104461619 A CN 104461619A CN 201410693031 A CN201410693031 A CN 201410693031A CN 104461619 A CN104461619 A CN 104461619A
- Authority
- CN
- China
- Prior art keywords
- software
- function
- configurable
- file
- configuration 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.)
- Granted
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention relates to a method capable of configuring the embedded software function. The method comprises the following steps that (1) an interface of on-line software and a configuration file is appointed; (2) the configurable software function is described by an XML file, and an XML configuration file is generated; (3) off-line software enables the XML configuration file to generate a binary file capable of being used by the on-line software; (4) the on-line software reads the binary file; (5) the on-line software achieves soft function calculation according to the logic of the binary file. Compared with the prior art, the method has the advantages that development and maintenance are easy, configuration is flexible, and the application range is wide.
Description
Technical field
The present invention relates to a kind of configurable method of software function, especially relate to a kind of configurable method of embedded software function.
Background technology
An embedded software product can be applied in multiple project, and the requirement of each project is substantially identical, but also has some differences, in order to meet the requirement of each project, can software be revised, safeguarding multiple branch simultaneously, but shortcoming is that development& testing workload is large, and maintenance difficulties is high.
Summary of the invention
Object of the present invention be exactly in order to overcome above-mentioned prior art exist defect and provide a kind of be easy to develop and maintenance, flexible configuration, wide accommodation the configurable method of embedded software function.
Object of the present invention can be achieved through the following technical solutions:
A kind of configurable method of embedded software function, is characterized in that, comprise the following steps:
1) interface of online software and configuration file is arranged;
2) configurable software function XML file is described, generate XML configuration file;
3) XML configuration file is generated the binary file that can supply online software application by off-line software;
4) online software reads binary file;
5) online software is according to binary file logic wherein, completes the calculating of software function.
The interface of the online software of described agreement and configuration file comprises fixed function point and the configurable functionality point of needs, and wherein the logic of configurable functionality point is write in configuration file.
Described XML configuration file is specially:
Fixed function point is expressed as input variable, configurable functionality point is expressed as output variable, wherein output variable is the logic operation result of constant or variable, described logical operation be with or, the Boolean calculation of non-generic, get maximal value, get minimum value, numerical operation that scale amplifying reduces, or message establishing and resolve computing.
Described configuration file comprises multiple output variable, and the quantity of this variable depends on the interface that online software and configuration file are arranged.
In described binary file, configurable function point is represented as function or constant.
Described online software reads binary file and is specially:
On embedded platform, online software, when startup, according to the data structure of agreement, reads binary profile file.
The calculating of described software function is specially:
On embedded platform, when online software normally runs, each cycle is according to the interface of online software and configuration file, calculate the variable of fixed function point, read the function of configurable functionality point, according to the parameter of CWinInetConnection type function reading, perform specific function, calculate the variable of configurable functionality point, complete software allomeric function.
Compared with prior art, the present invention has and is easy to exploitation and maintenances, flexible configuration, wide accommodation, an embedded software can be made to meet the different requirements of multiple project, utilize calculated off-line result to reduce on-line operation amount simultaneously, raising execution efficiency.
Accompanying drawing explanation
Fig. 1 is structural representation of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
Embodiment
As shown in Figure 1, the present invention is a kind of configurable method of embedded software function, an embedded software can be made to meet the different requirements of multiple project according to the method, utilizes calculated off-line result to reduce on-line operation amount simultaneously, improves execution efficiency.
The concrete steps of this method are as follows:
(1) interface of online software and configuration file is arranged
Function point in software is divided into fixed function point and configurable functionality point.The logic of configurable functionality point will be write in configuration file.Select the fixed function point of needs, these fixed function points and configurable functionality point, constitute the interface between online software and configuration file.
(2) configurable software function XML file is described
In XML configuration file, configurable function point is expressed as output variable.And input variable representative is fixing function point in software.Output variable is the logic operation result of constant or its dependent variable.
Here the logical operation of indication, can be with or, the Boolean calculation of non-generic, also can get maximal value, get minimum value, numerical operation that scale amplifying reduces, can also be the computing such as message establishing and parsing.These operational symbols can customize according to the requirement of software, and key is that online software and off-line software all will support these operational symbols, is consistent to the explanation of these operational symbols.
In a configuration file, can there is multiple output variable, this depends on the interface that online software and configuration file are arranged, and namely which software function point is configurable.
Operable variable in operation expression, comprises output variable, input variable and intermediate variable.Intermediate variable is not a function point, and it is conveniently expressed and creates out, and the configuration file of two parts can use different intermediate variables to reach identical function.
(3) off-line Software Create binary file
The treatment scheme of off-line software and the good configuration file of online software convention, if by the online processing XML file of embedded software, so efficiency can be too low, the execution time by unacceptable, so convert XML file to binary file by off-line software at host platform.In binary file, configurable function point is represented as function or constant, these function each cycle Exactly-onces, middle not circulation or recurrence.The parameter of these functions is other functions or variable.
(4) online software reads binary file
On embedded platform, online software, when startup, according to the data structure of agreement, reads binary profile file.
(5) online software completes the calculating of software function
On embedded platform, when online software normally runs, each cycle is according to the interface of online software and configuration file, calculate the variable of fixed function point, read the function of configurable functionality point, according to CWinInetConnection type, the parameter of function reading, perform specific function, calculate the variable of configurable functionality point, complete software allomeric function.Notice that fixed function point can intersect with the execution sequence of configurable functionality point to perform, for embedded software, this order will according to being used for determining.
Claims (7)
1. the configurable method of embedded software function, is characterized in that, comprise the following steps:
1) interface of online software and configuration file is arranged;
2) configurable software function XML file is described, generate XML configuration file;
3) XML configuration file is generated the binary file that can supply online software application by off-line software;
4) online software reads binary file;
5) online software is according to binary file logic wherein, completes the calculating of software function.
2. the configurable method of a kind of embedded software function according to claim 1, it is characterized in that, the interface of the online software of described agreement and configuration file comprises fixed function point and the configurable functionality point of needs, and wherein the logic of configurable functionality point is write in configuration file.
3. the configurable method of a kind of embedded software function according to claim 2, it is characterized in that, described XML configuration file is specially:
Fixed function point is expressed as input variable, configurable functionality point is expressed as output variable, wherein output variable is the logic operation result of constant or variable, described logical operation be with or, the Boolean calculation of non-generic, get maximal value, get minimum value, numerical operation that scale amplifying reduces, or message establishing and resolve computing.
4. the configurable method of a kind of embedded software function according to claim 3, it is characterized in that, described configuration file comprises multiple output variable, and the quantity of this variable depends on the interface that online software and configuration file are arranged.
5. the configurable method of a kind of embedded software function according to claim 3, it is characterized in that, in described binary file, configurable function point is represented as function or constant.
6. the configurable method of a kind of embedded software function according to claim 3, is characterized in that, described online software reads binary file and is specially:
On embedded platform, online software, when startup, according to the data structure of agreement, reads binary profile file.
7. the configurable method of a kind of embedded software function according to claim 3, it is characterized in that, the calculating of described software function is specially:
On embedded platform, when online software normally runs, each cycle is according to the interface of online software and configuration file, calculate the variable of fixed function point, read the function of configurable functionality point, according to the parameter of CWinInetConnection type function reading, perform specific function, calculate the variable of configurable functionality point, complete software allomeric function.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410693031.XA CN104461619B (en) | 2014-11-26 | 2014-11-26 | A kind of embedded software function can configure method |
HK15107603.7A HK1207177A1 (en) | 2014-11-26 | 2015-08-06 | An embedded software function configurable method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410693031.XA CN104461619B (en) | 2014-11-26 | 2014-11-26 | A kind of embedded software function can configure method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104461619A true CN104461619A (en) | 2015-03-25 |
CN104461619B CN104461619B (en) | 2017-10-27 |
Family
ID=52907724
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410693031.XA Active CN104461619B (en) | 2014-11-26 | 2014-11-26 | A kind of embedded software function can configure method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104461619B (en) |
HK (1) | HK1207177A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111045748A (en) * | 2019-12-04 | 2020-04-21 | 方正株式(武汉)科技开发有限公司 | Method and system for rapidly reading configuration file, server and medium |
CN111679867A (en) * | 2020-05-29 | 2020-09-18 | 中国航空工业集团公司西安航空计算技术研究所 | Embedded system configuration data generation method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101533345A (en) * | 2008-03-13 | 2009-09-16 | 中兴通讯股份有限公司 | Device for configuring information based on extensible markup language (XML) and method thereof. |
CN101833498A (en) * | 2009-07-31 | 2010-09-15 | 北京伟晨豪嘉科技有限责任公司 | Automatic detection system of embedded type system based on testing script technique |
CN102622259A (en) * | 2012-02-17 | 2012-08-01 | 南京南瑞继保电气有限公司 | Functional block function modeling method for visual programming |
-
2014
- 2014-11-26 CN CN201410693031.XA patent/CN104461619B/en active Active
-
2015
- 2015-08-06 HK HK15107603.7A patent/HK1207177A1/en unknown
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101533345A (en) * | 2008-03-13 | 2009-09-16 | 中兴通讯股份有限公司 | Device for configuring information based on extensible markup language (XML) and method thereof. |
CN101833498A (en) * | 2009-07-31 | 2010-09-15 | 北京伟晨豪嘉科技有限责任公司 | Automatic detection system of embedded type system based on testing script technique |
CN102622259A (en) * | 2012-02-17 | 2012-08-01 | 南京南瑞继保电气有限公司 | Functional block function modeling method for visual programming |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111045748A (en) * | 2019-12-04 | 2020-04-21 | 方正株式(武汉)科技开发有限公司 | Method and system for rapidly reading configuration file, server and medium |
CN111679867A (en) * | 2020-05-29 | 2020-09-18 | 中国航空工业集团公司西安航空计算技术研究所 | Embedded system configuration data generation method |
CN111679867B (en) * | 2020-05-29 | 2024-02-27 | 中国航空工业集团公司西安航空计算技术研究所 | Method for generating configuration data of embedded system |
Also Published As
Publication number | Publication date |
---|---|
CN104461619B (en) | 2017-10-27 |
HK1207177A1 (en) | 2016-01-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3588285A1 (en) | Sequence optimizations in a high-performance computing environment | |
CN109241026B (en) | Data management method, device and system | |
US20140215096A1 (en) | Method and system for a configurable hardware module | |
CN105242597A (en) | Automatic generation method of embedded controller debugging interface | |
CN104331315A (en) | Analysis and generation method and system of json object of any level | |
CN105405002A (en) | Formula data configuration method and system based on SAP platform | |
CN105644369B (en) | Electric machine controller and its reset processing method and device | |
CN103605526A (en) | Template componentized code generating method based on chain-of-responsibility pattern | |
CN104461619A (en) | Method capable of configuring embedded software function | |
CN103677841A (en) | IETM code generation method and device based on element-level template | |
CN102156789B (en) | System and method for automatically generating constraint file of field programmable gate array (FPGA) | |
CN102306109A (en) | Method for realizing logic programming in communication management machine | |
CN105068793A (en) | Method and apparatus for generating business logic relation diagram and realizing business application | |
Shi et al. | Transformation between BPMN and BPEL based on graph grammar | |
CN114817124A (en) | Inter-multi-core microcontroller mapping method, device and computer-readable storage medium | |
US8495033B2 (en) | Data processing | |
Kwon et al. | Risk Evaluation of Failure Cause for FMEA under a Weibull Time Delay Model | |
US9748954B2 (en) | Calculation device and calculation method | |
CN104461905A (en) | Method and system for debugging intelligent card virtual machine, API bank and upper layer application at same time | |
CN104657139A (en) | Visual command stream generation system and visual command stream generation method for fault injection | |
Wei et al. | Research and implementation of plc editor system | |
WO2014121817A1 (en) | Software diversity for industrial control systems | |
CN117521569B (en) | Chip function simulation method and device, electronic equipment and storage medium | |
US9280441B2 (en) | Detection and correction of race conditions in workflows | |
CN117807938B (en) | Method for generating FPGA chip configuration bits from logic primitive parameters |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 1207177 Country of ref document: HK |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: GR Ref document number: 1207177 Country of ref document: HK |