CN102760062B - Parameter setting method for embedded software based on rail transit - Google Patents

Parameter setting method for embedded software based on rail transit Download PDF

Info

Publication number
CN102760062B
CN102760062B CN201210202097.5A CN201210202097A CN102760062B CN 102760062 B CN102760062 B CN 102760062B CN 201210202097 A CN201210202097 A CN 201210202097A CN 102760062 B CN102760062 B CN 102760062B
Authority
CN
China
Prior art keywords
parameter
data type
file
embedded software
interface
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
Application number
CN201210202097.5A
Other languages
Chinese (zh)
Other versions
CN102760062A (en
Inventor
周志飞
雷丽萍
何见坤
杨献
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuzhou CRRC Times Electric Co Ltd
Hunan CRRC Times Signal and Communication Co Ltd
Original Assignee
Zhuzhou CSR Times Electric Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhuzhou CSR Times Electric Co Ltd filed Critical Zhuzhou CSR Times Electric Co Ltd
Priority to CN201210202097.5A priority Critical patent/CN102760062B/en
Publication of CN102760062A publication Critical patent/CN102760062A/en
Application granted granted Critical
Publication of CN102760062B publication Critical patent/CN102760062B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

A parameter setting method for embedded software based on a rail transit comprises the steps as follows: (1) a file to be input is set, that is, a data type file is used for describing data types of parameters needed by embedded software; a control condition file is used for describing parameter information that needs to be set by embedded software; an interface configuration file is used for describing interface layout condition of parameter setting software; and (2) a parameter setting module is utilized to perform the parameter settings of embedded software in the field of the rail transit, and the output of the parameter setting module is an output parameter value file, and the output parameter value file forms the input of embedded software. The parameter setting method has the advantages of simple principle, good universality, good expansibility and the like, and is simple and convenient to operate.

Description

Based on the parameter setting method of track traffic embedded software
Technical field
The present invention is mainly concerned with the application of track traffic embedded software, refers in particular to a kind of parameter setting method being applicable to track traffic embedded software.
Background technology
In prior art, technical staff usually need for concrete embedded software requirement developing corresponding optimum configurations software, it is in fixing software development environment, by Code Edit human-computer interaction interface, configuration desired parameters and type thereof, the optimum configurations software that this technological development goes out often does not possess versatility and autgmentability.The more important thing is, the differences such as the content of parameter needed for embedded software, the compiler used, interface typesetting demand, so each optimum configurations software cannot be unified general, even same set of optimum configurations software, once parameter requirements changes, parameter type changes, and all needs Software for Design personnel to remodify optimum configurations software code, recompilate and run, waste time and energy.
In above-mentioned existing mode, the description etc. of the generation at interface, desired parameters and type thereof adopts the mode of static loading in a program, therefore, when configuration surroundings, parameter requirements etc. change, technical staff is all needed to remodify optimum configurations software program code, very inconvenient, do not possess versatility and autgmentability.
Summary of the invention
The technical problem to be solved in the present invention is just: the technical problem existed for prior art, the invention provides that a kind of easy and simple to handle, principle is simple, the parameter setting method based on track traffic embedded software of versatility and favorable expandability.
For solving the problems of the technologies described above, the present invention by the following technical solutions:
Based on a parameter setting method for track traffic embedded software, the steps include:
1. file to be entered composition is set:
Data type files, is used for describing the data type of embedded software desired parameters;
Controlled condition file, is used for describing the required parameter information arranged of embedded software;
Interface configuration file, being used for characterising parameter arranges the interface layout condition of software;
2. carried out the optimum configurations of field of track traffic embedded software by parameter setting module, the output of described parameter setting module is output parameter value file, and output parameter value file constitutes the input of embedded software; The execution flow process of described parameter setting module is:
(S1) resolution data type configuration file: main according to data type configuration protocol, extracts effective data type and key message thereof;
(S2) by data type stored in chained list: by resolve data type information stored in internal memory chained list;
(S3) resolve controlled condition file: according to controlled condition configuration protocol, automatically extract the required content of parameter information arranged of embedded software;
(S4) parameter memory distributes: for embedded software parametric distribution memory headroom is used for stored parameter value; Data type belonging to the title of parameter and parameter is obtained from step (S3), this step is then according to the data type chained list that step (S2) generates, find corresponding data type, obtain the length information of corresponding data type, distribute corresponding memory headroom according to this data type;
(S5) resolution interface configuration file: interface configuration file is resolved, and with chain sheet form stored in internal memory;
(S6) generate human-computer interaction interface: the interface configurations of resolving according to step (S5), automatically generate respective type control, setup of attribute is carried out to this control, the parameter that record control is corresponding, the membership of each page is shown with tree structure;
(S7) customer parameter setting command is responded, stored parameter value: while generation human-computer interaction interface, have recorded the parameter that this control is corresponding, the optimum configurations order of response user, and by newly-installed for user parameter value stored in the corresponding core position of this parameter;
(S8) output parameter value file: after user completes optimum configurations, parameter value is exported in the form of a file.
As a further improvement on the present invention:
Data type in described data type files comprises length, whether has symbolic information.
Parameter information in described controlled condition file comprises data type, the parameter name of parameter.
Interface layout condition in described interface configuration file is used for describing interface file and forms by several pages, by several grouping in every page, has the control of which type and the parameter of correspondence thereof under each grouping.
Compared with prior art, the invention has the advantages that: the parameter setting method based on track traffic embedded software of the present invention, easy and simple to handle, principle is simple, the definition of data type, the definition of embedded software desired parameters, interface formats definition are opened out, become the configuration file of executable program code, when program is run, the above-mentioned file of dynamic load; Meanwhile, the control of the developing instruments such as BCB is encapsulated, expanded, the control demand of multiple embedded software parameter can be met.Therefore, the secondary development that the present invention is embedded software provides a good human-computer interaction interface, reduces the difficulty of secondary development, and avoid agreement open directly to user, resist technology is secret, strengthens the Universal and scalability of embedded software optimum configurations.
Accompanying drawing explanation
Fig. 1 is main flow schematic diagram of the present invention.
Fig. 2 is the composition schematic diagram of data type files in the present invention.
Fig. 3 is the composition schematic diagram of controlled condition file in the present invention.
Fig. 4 is the composition schematic diagram of median surface of the present invention configuration file.
Fig. 5 is the execution schematic flow sheet of parameter setting module in the present invention.
Fig. 6 is the schematic diagram of the man-machine interface automatically generated in embody rule example.
Detailed description of the invention
Below with reference to Figure of description and specific embodiment, the present invention is described in further details.
The present invention is based on the parameter setting method of track traffic embedded software, the steps include:
1. file to be entered composition is set: see Fig. 1, data type files 1, controlled condition file 2, interface configuration file 3 constitute input file of the present invention jointly, and namely input parameter arranges the input file of module 4.
Data type files 1, essentially describes the data type of embedded software desired parameters, comprises length, whether has the information such as symbol.Shown in Figure 2, in the present embodiment, " data type A " represents the type of parameter, as UNWORD, INT8 etc.; " byte number " represents the byte number shared by data type A; " symbol " represents that the type is signed or unsigned type.
Controlled condition file 2, essentially describes the required parameter information arranged of embedded software, comprises the data type of parameter, parameter name etc.Shown in Figure 3, in the present embodiment, represent that this embedded software needs parameters 1, parameter 2, wherein the data type of parameter 1 is " data type A ", and the data type of parameter 2 is " parameter type B " (" parameter type A ", " parameter type B " are in data type files in fig. 2 and define).
Interface configuration file 3, main characterising parameter arranges the interface layout condition of software, by interface with form performances such as the page, subpage frame, grouping, combo box, choice box, edit box, forms.Also need in file to describe and form by several pages, by several grouping in every page, under each grouping, have the control of which type and the parameter of correspondence thereof.Shown in Figure 4, in the present embodiment, top level page has two: the page 1 and the page 2, top level page has two subpage frames for 1 time: subpage frame 11, subpage frame 12, top level page also has two subpage frames for 2 times: subpage frame 21, subpage frame 22, therefore the membership of the page is presented at the right side at main interface by the present invention automatically with tree list, and when user's mouse clicks certain page, then the content of parameter of this page shows.
2. the optimum configurations of field of track traffic embedded software is carried out by parameter setting module 4, the output of parameter setting module 4 is output parameter value file 5, output parameter value file 5 constitutes the input of embedded software, and as shown in Figure 5, the execution flow process of parameter setting module 4 is:
(S1) resolution data type configuration file: main according to data type configuration protocol, extracts effective data type and key message thereof.
(S2) by data type stored in chained list: by resolve data type information stored in internal memory chained list.Definition data structure, this data structure comprises data type name, data type lengths, symbol etc., stores the data type information parsed from data type files, and this data structure forms the node of chained list.
(S3) resolve controlled condition file: main according to controlled condition configuration protocol, automatically extract the required content of parameter information arranged of embedded software.Definition data structure, describe the essential information of relevant parameter, this data structure comprises the title of parameter, the data type etc. of parameter.
(S4) parameter memory distributes: be embedded software parametric distribution memory headroom, main stored parameter value.Data type belonging to the title of parameter and parameter is obtained from step (S3), this step is then according to the data type chained list that step (S2) generates, find corresponding data type, obtain the information such as the length of corresponding data type, thus distribute corresponding memory headroom according to this data type.
(S5) resolution interface configuration file: interface configuration file is resolved, and with chain sheet form stored in internal memory.
(S6) human-computer interaction interface is generated: main to BCB(borland c++ builder development environment, a kind of SDK) control under development environment encapsulates, it is several that the control encapsulated comprises TreeView, Edit, Combobox, Checkbox, Grid, Label etc., as required control is expanded in addition, Checkbox such as with Label, the controls such as form embedded Checkbox, Combobox, realize self-definedization of control.According to the interface configurations that step (S5) is resolved, automatic generation respective type control, and automatically setup of attribute is carried out to this control, the parameter that record control is corresponding, the membership of each page is presented at the left side at main interface with tree structure, make user very clear to whole optimum configurations interface, when user selects certain page, then parametric contol all for this page is shown on the right side of main interface, user is facilitated to carry out optimum configurations targetedly, the mode of this kind of paging, can solve parameter amount brings greatly parameter typesetting mixed and disorderly, the problem that inconvenient user is arranged.See Fig. 6, it is an example of the man-machine interface automatically generated in an embody rule example.
(S7) customer parameter setting command is responded, stored parameter value: while generation human-computer interaction interface, have recorded the parameter that this control is corresponding, therefore respond the optimum configurations order of user, and by newly-installed for user parameter value stored in the corresponding core position of this parameter.
(S8) output parameter value file: after user completes optimum configurations, exported in the form of a file by parameter value, facilitates embedded software to use.
As from the foregoing, main different of the present invention and prior art are just: the definition of data type, embedded software desired parameters are defined, interface formats define open out, become the configuration file of executable program code, operationally, only need the above-mentioned file of dynamic load.Parameter setting module 4 can be by compile program code after can executive software, it adopts dynamic mode to load and resolution data type file, controlled condition file, each configuration file such as interface configuration file, therefore content of parameter is worked as, the compiler of software, when interface typesetting demand changes, technical staff only need use text editor to revise above-mentioned three configuration files accordingly, and without the need to revising executable program code, without the need to recompilating, the demand after change can be met, achieve a set of executable program code and be applicable to different embedded software optimum configurations demands, enhance its versatility and flexibility, substantially increase the convenience of operation.
Below be only the preferred embodiment of the present invention, protection scope of the present invention be not only confined to above-described embodiment, all technical schemes belonged under thinking of the present invention all belong to protection scope of the present invention.It should be pointed out that for those skilled in the art, some improvements and modifications without departing from the principles of the present invention, should be considered as protection scope of the present invention.

Claims (4)

1. based on a parameter setting method for track traffic embedded software, it is characterized in that, step is:
file to be entered composition is set:
Data type files (1), is used for describing the data type of embedded software desired parameters;
Controlled condition file (2), is used for describing the required parameter information arranged of embedded software;
Interface configuration file (3), being used for characterising parameter arranges the interface layout condition of software;
carried out the optimum configurations of field of track traffic embedded software by parameter setting module (4), the output of described parameter setting module (4) is output parameter value file (5), and output parameter value file (5) constitutes the input of embedded software; The execution flow process of described parameter setting module (4) is:
(S1) resolution data type file: according to data type configuration protocol, extracts effective data type and key message thereof;
(S2) by data type stored in chained list: by resolve data type information stored in internal memory chained list;
(S3) resolve controlled condition file: according to controlled condition configuration protocol, automatically extract the required content of parameter information arranged of embedded software;
(S4) parameter memory distributes: for embedded software parametric distribution memory headroom is used for stored parameter value; Data type belonging to the title of parameter and parameter is obtained from step (S3), this step is then according to the data type chained list that step (S2) generates, find corresponding data type, obtain the length information of corresponding data type, distribute corresponding memory headroom according to this data type;
(S5) resolution interface configuration file: interface configuration file is resolved, and with chain sheet form stored in internal memory;
(S6) generate human-computer interaction interface: the interface configurations of resolving according to step (S5), automatically generate respective type control, setup of attribute is carried out to this control, the parameter that record control is corresponding, the membership of each page is shown with tree structure;
(S7) customer parameter setting command is responded, stored parameter value: while generation human-computer interaction interface, have recorded the parameter that this control is corresponding, the optimum configurations order of response user, and by newly-installed for user parameter value stored in the corresponding core position of this parameter;
(S8) output parameter value file: after user completes optimum configurations, parameter value is exported in the form of a file.
2. the parameter setting method based on track traffic embedded software according to claim 1, is characterized in that, the data type in described data type files (1) comprises length, whether has symbolic information.
3. the parameter setting method based on track traffic embedded software according to claim 1, is characterized in that, the parameter information in described controlled condition file (2) comprises data type, parameter name, the parameter marshalling of parameter.
4. the parameter setting method based on track traffic embedded software according to claim 1, it is characterized in that, interface layout condition in described interface configuration file (3) is used for describing interface file and forms by several pages, by several grouping in every page, under each grouping, there are the control of which type and the parameter of correspondence thereof.
CN201210202097.5A 2012-06-19 2012-06-19 Parameter setting method for embedded software based on rail transit Active CN102760062B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210202097.5A CN102760062B (en) 2012-06-19 2012-06-19 Parameter setting method for embedded software based on rail transit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210202097.5A CN102760062B (en) 2012-06-19 2012-06-19 Parameter setting method for embedded software based on rail transit

Publications (2)

Publication Number Publication Date
CN102760062A CN102760062A (en) 2012-10-31
CN102760062B true CN102760062B (en) 2015-03-25

Family

ID=47054529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210202097.5A Active CN102760062B (en) 2012-06-19 2012-06-19 Parameter setting method for embedded software based on rail transit

Country Status (1)

Country Link
CN (1) CN102760062B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324486A (en) * 2013-07-03 2013-09-25 中国船舶重工集团公司第七二四研究所 Method for realizing software version adaptive configuration by utilizing loose-coupling architecture
CN105511843A (en) * 2014-09-22 2016-04-20 普天信息技术有限公司 Application program interface generation method and device
CN105760148A (en) * 2014-12-17 2016-07-13 北京北方微电子基地设备工艺研究中心有限责任公司 Interface control attribute configuration method and device
CN105846973B (en) * 2016-04-25 2019-05-28 北京智能综电信息技术有限责任公司 A kind of protocol testing method and device of embedded software
CN107402778A (en) * 2016-05-20 2017-11-28 北京迪文科技有限公司 A kind of text formatting configures systems approach
CN106909331B (en) * 2017-01-18 2023-04-18 保力新能源科技股份有限公司 BMS parameter extension and display system
CN109002390B (en) * 2018-06-25 2021-07-27 天维讯达(北京)科技有限公司 Test case parameter dynamic configuration method and device
CN111090432A (en) * 2018-10-23 2020-05-01 鸿合科技股份有限公司 Interface processing method and device and electronic equipment
CN109753305A (en) * 2019-01-21 2019-05-14 上海微小卫星工程中心 Satellite Software system and Satellite Software ' In System Reconfiguration Method
CN111209054A (en) * 2019-12-30 2020-05-29 深圳移航通信技术有限公司 Configuration method of terminal equipment, terminal management equipment and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7822589B2 (en) * 2003-07-15 2010-10-26 Agere Systems Inc. Method and apparatus for automatic generation of multiple integrated circuit simulation configuration
US20060235760A1 (en) * 2005-04-19 2006-10-19 International Business Machines Corporation Properties file that will allow configuration input based on experience
CN101364175B (en) * 2008-07-02 2013-11-20 深圳国人通信有限公司 Configuration method and device for embedded system
CN101673199A (en) * 2009-08-10 2010-03-17 厦门敏讯信息技术股份有限公司 Terminal parameter configuration server and automatic generating method of software interface thereof

Also Published As

Publication number Publication date
CN102760062A (en) 2012-10-31

Similar Documents

Publication Publication Date Title
CN102760062B (en) Parameter setting method for embedded software based on rail transit
CN104360859B (en) A kind of visual service development method and system
US9959098B1 (en) Data processing systems and methods
CN102968306A (en) Method and system for automatically generating code based on data model drive
KR101397380B1 (en) System for integrating meta-modeling
CN104216952A (en) Universal report generation method and universal report generation system based on XML (extensive markup language) technology
García-Sánchez et al. Service oriented evolutionary algorithms
CN102184107A (en) Method and system for combining user interface services
CN103226472A (en) Method for realizing service management software development
WO2019019473A1 (en) Method for online real-time inter-conversion of flowchart and code
CN103838711A (en) Definable typed semantic parsing system and method based on rules
CN102520963A (en) Method and system for realizing service logic processing based on strongly-typed relation mapping
CN109740138A (en) A kind of editable method of picture file in realization mind map software
CN113655996A (en) Enterprise-level system generation method based on demand model
CN102141917A (en) Method for realizing multi-service linkage based on IronPython script language
CN102411498A (en) Method for realizing data model and graphical designer
CN107391136A (en) A kind of programing system and method based on streaming
Normantas et al. An overview of the knowledge discovery meta-model
Rademacher et al. Towards an extensible approach for generative microservice development and deployment using lemma
Ehrig et al. Formal integration of inheritance with typed attributed graph transformation for efficient VL definition and model manipulation
CN111291444B (en) Modeling method, device, equipment and storage medium for aircraft assembly
JP2010049439A (en) System construction method using software model and modeling device
Martin et al. Integration of a template system into model-based user interface development workflows
CN202584128U (en) Modifying and managing system of knowledge base of IT (Information Technology) operation and maintenance system
Bulut et al. The paperless factory: From document driven factories to model driven factories

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 412001 Hunan Province, Zhuzhou Shifeng District Tian Xin era Road No. 169

Patentee after: ZHUZHOU CRRC TIMES ELECTRIC Co.,Ltd.

Address before: 412001 Hunan Province, Zhuzhou Shifeng District Tian Xin era Road No. 169

Patentee before: ZHUZHOU CSR TIMES ELECTRIC Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170619

Address after: 21, building 7, building 189, No. 410100, Renmin East Road, Changsha economic and Technological Development Zone, Hunan, Changsha

Patentee after: HUNAN CRRC TIMES SIGNAL & COMMUNICATION Co.,Ltd.

Address before: 412001 Hunan Province, Zhuzhou Shifeng District Tian Xin era Road No. 169

Patentee before: ZHUZHOU CRRC TIMES ELECTRIC Co.,Ltd.