CN109901888A - A kind of design method of configuration file Auto-Generation Tool - Google Patents

A kind of design method of configuration file Auto-Generation Tool Download PDF

Info

Publication number
CN109901888A
CN109901888A CN201910103989.1A CN201910103989A CN109901888A CN 109901888 A CN109901888 A CN 109901888A CN 201910103989 A CN201910103989 A CN 201910103989A CN 109901888 A CN109901888 A CN 109901888A
Authority
CN
China
Prior art keywords
configuration file
file
tool
configuration
parameter
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
Application number
CN201910103989.1A
Other languages
Chinese (zh)
Other versions
CN109901888B (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.)
Casco Signal Ltd
Original Assignee
Casco Signal 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 Casco Signal Ltd filed Critical Casco Signal Ltd
Priority to CN201910103989.1A priority Critical patent/CN109901888B/en
Publication of CN109901888A publication Critical patent/CN109901888A/en
Application granted granted Critical
Publication of CN109901888B publication Critical patent/CN109901888B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to a kind of design methods of configuration file Auto-Generation Tool, method includes the following steps: step 1, selection need to generate the Secure Equipment System of configuration file;Correlated inputs file required for step 2, selection safety equipment initial configuration, tool read input file and relevant configuration;Step 3, the type of editable output profiles and part configuration parameter;Step 4, configuration file Auto-Generation Tool generate the configuration file of selected Secure Equipment System according to the relationship of input parameter and safety equipment;Step 5, the generation information and related prompt message for printing out configuration file.Compared with prior art, the invention has the following advantages that 1, overcome the defect of existing artificial reading raw data table inefficiency;2. solve the problems, such as manual manufacture configuration file it is inefficient with it is unsafe;3. whole or single equipment can be selected to generate system configuration file, the flexibility of system configuration is increased.

Description

A kind of design method of configuration file Auto-Generation Tool
Technical field
The present invention relates to railway signal system initial configuration file fields, give birth to automatically more particularly, to a kind of configuration file At the design method of tool.
Background technique
With Chinese society rapid development of economy, to the transport capacity of railway, higher requirements are also raised.Improve train The speed of service is to promote the key point of railway transportation capability, and be then the important skill of realization speed-raising target in train operation control system Art support means.CTCS-2 grades of train control systems are current domestic widely applied control systems, wherein train control center, temporary speed limitation Core ground safety equipment of the equipment such as server as CTCS-2 grades of train control systems, to the operation of the highly effective and safe of train play to Close important role.
For train control center, temporary speed limitation server etc. for the safety equipment of cores ground, system initialization and just The realization etc. of Chang Gongneng requires the support of associated profile.The configuration file of present safety equipment is substantially by data system Make personnel and carries out human configuration.When human configuration method is big in safety equipment quantity and relationship is complicated, inefficiencies with it is dangerous Property increase severely, increasingly developed industry requirement can not be adapted to.
Summary of the invention
It is an object of the present invention to overcome the above-mentioned drawbacks of the prior art and provide a kind of configuration file is automatic The design method of Core Generator.
The purpose of the present invention can be achieved through the following technical solutions:
A kind of design method of configuration file Auto-Generation Tool, method includes the following steps:
Step 1, selection need to generate the Secure Equipment System of configuration file;
Correlated inputs file required for step 2, selection safety equipment initial configuration, tool read input file and phase Close configuration;
Step 3, the type of editable output profiles and part configuration parameter;
Step 4, configuration file Auto-Generation Tool generate selected peace according to input parameter and the relationship of safety equipment The configuration file of full device systems;
Step 5, the generation information and related prompt message for printing out configuration file.
Preferably, the step 2 specifically includes the following steps:
Step 2.1, the data model for establishing ground installation, and related data is initialized, including basic equipment information and net Network link information;
Step 2.2, the information of the XML configuration file of reading tool and storage, this document include generating safety equipment configuration Parameter necessary to file;
After step 2.3, selection input file, tool reads input file;
Step 2.4, the data that ground device data model is determined according to the ground installation information of reading, including ground installation Essential information;The connection relationship between distinct device is determined according to the IP address allocation table of reading and link information is written ground In the model of face equipment;
Step 2.5, if it is desired, determining LEU information in distinct device according to the LEU of reading and transponder relationship.
Preferably, in the step 2.2, check whether the tool configuration file is deposited before reading tool configuration file If the configuration file of the tool is not present, reading is being terminated, the configuration file of the tool is added to current mesh Record continues to read configuration file.
Preferably, the essential information of the ground installation of the step 2.4 includes station number, great Qu cell number, ID, safe school Test parameter.
Preferably, in the step 2.3, during reading input file, tool checks the format of input file Whether conjunction is advised, including gauge outfit table name;If irregularity, modifies gauge outfit and continue to read in;If closing rule, continue in next step Processing.
Preferably, the step 4 specifically includes the following steps:
Step 4.1, the configuration file type for judging current safety equipment type and selected generation, it is required raw to determine At concrete configuration file type;
Step 4.2, the tool generate the hierarchical structure of file according to the type of configuration file, and initialize generation configuration The related intermediate variable of file;
The configuration file of step 4.3, the safety equipment generated, including required parameter name and parameter value: tool according to Selected configuration file determines parameter name, and the parameter value of design parameter includes the parameter value and dynamic parameter of static parameter The parameter value of parameter value, static parameter is acquired by the configuration file of tool, and the parameter value of dynamic parameter is by the input read File data is calculated;
Step 4.4, form generation and group according to selected system and configuration file type, according to the level of file Knit the configuration file of distinct device type distinct device;
Step 4.5, configuration file generation finish, and choose whether display and generate log, generating log includes what this was generated Configuration file generates information and the generated related prompt message in configuration file generating process.
Compared with prior art, the invention has the following advantages that
1, it reads automatically and checks that input file obtains relevant device parameter, overcome existing artificial meter reading inefficiency Defect;
2, automatically generate the configuration file of associated safety equipment according to user's selection, solve the inefficient of human configuration with not The problem of safety;
3, the related prompt of output and warning message, keep the process of the configuration file generated more preferable by user of service institute Receive, improves availability;
4, the unified generation of armamentarium configuration file may be selected or selection single equipment is generated, increase system Flexibility.
Detailed description of the invention
Fig. 1 is the interface schematic diagram of configuration file Auto-Generation Tool of the invention;
Fig. 2 is the flow chart that inventive article reads input file and relevant configuration;
Fig. 3 is the flow chart for the configuration file that the present invention generates Secure Equipment System.
Specific embodiment
The technical scheme in the embodiments of the invention will be clearly and completely described below, it is clear that described implementation Example is a part of the embodiments of the present invention, rather than whole embodiments.Based on the embodiments of the present invention, ordinary skill Personnel's every other embodiment obtained without making creative work all should belong to the model that the present invention protects It encloses.
With reference to Fig. 1-3, illustrate technical solution of the present invention, firstly, those skilled in the art are readily appreciated that with reference to Fig. 1 And use the configuration file Auto-Generation Tool, on this basis, with reference to Fig. 2-3, introduce reading input file of the invention and Generate the process approach of configuration file.
Referring initially to Fig. 1, tool of the invention is introduced using interface, in the automatic life for carrying out configuration file using the tool Cheng Shi, comprising the following steps:
Step 100, user's selection is needed to need to generate the Secure Equipment System of configuration file;
Step 101, user is needed to select correlated inputs file required for safety equipment initial configuration, tool reads input File and relevant configuration;
Step 102, the type of editable output profiles and part configuration parameter;
Step 103, configuration file Auto-Generation Tool generates selected according to input parameter and the relationship of safety equipment The configuration file of Secure Equipment System;
Step 104, the generation information and related prompt message of configuration file are printed out.
First refering to fig. 2, the method for reading input file and tool configuration file of the invention is introduced, it should be noted that It can check that the tool configuration file whether there is before reading tool configuration file, if the configuration file of the tool is not present If, then terminate reading.Input file is read to mainly comprise the steps that
Step 105, it is necessary first to the Secure Equipment System of configuration file needed for user selects, the system of different safety equipments Corresponding different application configuration file.
Step 106, creation initialization ground installation data model, the data model of ground installation should include ground installation Basic parameter includes number, station name, ID etc., should also include corresponding safety check parameter and believe with the connection of other external equipments Breath, comprising: the information such as IP address, gateway and port.
Step 107, tool reads the tool configuration file, and the static parameter including generation safety equipment configuration file obtains It takes.If there is no the configuration file of the tool, the configuration file of the tool should be added to current directory, continue to read configuration File.
Step 108, after selecting input file by user, which reads input file, in the process for reading input file In, which can check whether the format of input file closes rule, including gauge outfit table name etc..If irregularity, modify gauge outfit after Resume studies into.If closing rule, continue to handle in next step.
Step 109, the data of ground device data model, including ground installation are determined according to the ground installation information of reading Essential information: station number, great Qu cell number, ID, safety check parameter etc.;It is determined according to the IP address allocation table of reading different Connection relationship between equipment simultaneously will be in the model of link information write-in ground installation;If it is desired, according to the LEU of reading with answer It answers device relationship and determines LEU information in distinct device;Information above is saved respectively to be called when configuration file to be generated.
Referring initially to Fig. 3, the method for configuration file needed for introducing generation of the invention, the process for generating configuration file it Preceding user can select specific equipment or specific file to generate according to demand, default if not doing and being arranged all Configuration file can generate.Configuration file is generated to mainly comprise the steps that
Step 110, the type that configuration file generates may be selected in user.
Step 111, which generates the hierarchical structure of file according to the type of configuration file, and initializes generation configuration The related intermediate variable of file.
Step 112, for for the configuration file of safety equipment, content includes required parameter name and parameter value.Work Tool can determine parameter name according to selected configuration file.The parameter value of design parameter includes the parameter value of static parameter and moves The parameter value of the parameter value of state parameter, static parameter is acquired by the configuration file of tool, and the parameter value of dynamic parameter is by reading The input file data taken are calculated.
Step 113, tool can recycle all parameters for generating each configuration file and inquire or be calculated parameter value.
Step 114, configuration file generation finishes, and user may choose whether that display generates log, and generating log includes this The configuration file of generation generates information and the generated related prompt message in configuration file generating process.
The tool aims to solve the problem that the low problem of safety equipment configuration file human configuration inefficiency, safety, at present It is tried out during data creating, the duplication of labour of data creating personnel can be greatly reduced, become data configuration process It obtains safe and efficient.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection scope subject to.

Claims (6)

1. a kind of design method of configuration file Auto-Generation Tool, which is characterized in that method includes the following steps:
Step 1, selection need to generate the Secure Equipment System of configuration file;
Correlated inputs file required for step 2, selection safety equipment initial configuration, tool reads input file and correlation is matched It sets;
Step 3, the type of editable output profiles and part configuration parameter;
Step 4, configuration file Auto-Generation Tool generate selected safety according to input parameter and the relationship of safety equipment and set The configuration file of standby system;
Step 5, the generation information and related prompt message for printing out configuration file.
2. a kind of design method of configuration file Auto-Generation Tool according to claim 1, which is characterized in that described Step 2 specifically includes the following steps:
Step 2.1, the data model for establishing ground installation, and related data is initialized, including basic equipment information and network connect Connect information;
Step 2.2, the information of the XML configuration file of reading tool and storage, this document include generating safety equipment configuration file Necessary parameter;
After step 2.3, selection input file, tool reads input file;
Step 2.4, the data that ground device data model is determined according to the ground installation information of reading, the base including ground installation This information;The connection relationship between distinct device is determined according to the IP address allocation table of reading and sets link information write-in ground In standby model;
Step 2.5, if it is desired, determining LEU information in distinct device according to the LEU of reading and transponder relationship.
3. a kind of design method of configuration file Auto-Generation Tool according to claim 2, which is characterized in that described In step 2.2, check that the tool configuration file whether there is before reading tool configuration file, if the configuration text of the tool If part is not present, then reading is terminated, the configuration file of the tool is added to current directory, continues to read configuration file.
4. a kind of design method of configuration file Auto-Generation Tool according to claim 2, which is characterized in that the step The essential information of rapid 2.4 ground installation includes station number, great Qu cell number, ID, safety check parameter.
5. a kind of design method of configuration file Auto-Generation Tool according to claim 2, which is characterized in that described In step 2.3, during reading input file, tool checks whether the format of input file closes rule, including gauge outfit table name; If irregularity, modifies gauge outfit and continue to read in;If closing rule, continue to handle in next step.
6. a kind of design method of configuration file Auto-Generation Tool according to claim 1, which is characterized in that described Step 4 specifically includes the following steps:
Step 4.1, the configuration file type for judging current safety equipment type and selected generation, to determine required generation Concrete configuration file type;
Step 4.2, the tool generate the hierarchical structure of file according to the type of configuration file, and initialize generation configuration file Related intermediate variable;
The configuration file of step 4.3, the safety equipment generated, including required parameter name and parameter value: tool is according to selected by Configuration file is selected to determine parameter name, the parameter value of design parameter includes the parameter value of static parameter and the parameter of dynamic parameter Value, the parameter value of static parameter acquires by the configuration file of tool, and the parameter value of dynamic parameter is by the input file that reads Data are calculated;
Step 4.4, according to selected system and configuration file type, generate and organized not according to the form of the level of file With the configuration file of device type distinct device;
Step 4.5, configuration file generation finish, and choose whether display and generate log, and generating log includes the configuration that this is generated File generated information and the generated related prompt message in configuration file generating process.
CN201910103989.1A 2019-02-01 2019-02-01 Design method of automatic configuration file generation tool Active CN109901888B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910103989.1A CN109901888B (en) 2019-02-01 2019-02-01 Design method of automatic configuration file generation tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910103989.1A CN109901888B (en) 2019-02-01 2019-02-01 Design method of automatic configuration file generation tool

Publications (2)

Publication Number Publication Date
CN109901888A true CN109901888A (en) 2019-06-18
CN109901888B CN109901888B (en) 2022-07-15

Family

ID=66944607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910103989.1A Active CN109901888B (en) 2019-02-01 2019-02-01 Design method of automatic configuration file generation tool

Country Status (1)

Country Link
CN (1) CN109901888B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111190802A (en) * 2019-12-22 2020-05-22 卡斯柯信号有限公司 Method for automatically generating performance test configuration
CN111309314A (en) * 2020-01-21 2020-06-19 北京北方华创微电子装备有限公司 Configuration generation method and configuration generation system of cleaning equipment
CN112596813A (en) * 2020-12-23 2021-04-02 卡斯柯信号有限公司 ATP software automatic configuration method based on safety codes
CN112948425A (en) * 2021-04-15 2021-06-11 重庆中源绿蓝环境科技有限公司 Configuration method for intelligent operation and maintenance internet data acquisition end of electromechanical system
CN113535461A (en) * 2021-06-09 2021-10-22 卡斯柯信号(成都)有限公司 Configuration file based visual data verification method for interlocking lower computer
CN114237757A (en) * 2021-12-21 2022-03-25 卡斯柯信号有限公司 Method and system for automatically generating configuration file, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473056A (en) * 2013-09-06 2013-12-25 北京控制工程研究所 Automatic generation method for telemetering configuration files
US20140367402A1 (en) * 2012-01-18 2014-12-18 Xukai Jin Automatic Food and Beverage Vending Machine
CN106775725A (en) * 2016-12-19 2017-05-31 网易(杭州)网络有限公司 A kind of visual configuration edit methods and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140367402A1 (en) * 2012-01-18 2014-12-18 Xukai Jin Automatic Food and Beverage Vending Machine
CN103473056A (en) * 2013-09-06 2013-12-25 北京控制工程研究所 Automatic generation method for telemetering configuration files
CN106775725A (en) * 2016-12-19 2017-05-31 网易(杭州)网络有限公司 A kind of visual configuration edit methods and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ALEXANDRE CHAGOYA-GARZON ET AL.: "《Semi-automation of Configuration Files Generation for Heterogeneous Multi-tile Systems》", 《2011 IEEE 35TH ANNUAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE》 *
肖健 等: "《地震信息在指挥大厅LED屏自动显示的设计与实现》", 《华北地震科学》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111190802A (en) * 2019-12-22 2020-05-22 卡斯柯信号有限公司 Method for automatically generating performance test configuration
CN111190802B (en) * 2019-12-22 2022-09-30 卡斯柯信号有限公司 Method for automatically generating performance test configuration
CN111309314A (en) * 2020-01-21 2020-06-19 北京北方华创微电子装备有限公司 Configuration generation method and configuration generation system of cleaning equipment
CN111309314B (en) * 2020-01-21 2023-08-18 北京北方华创微电子装备有限公司 Configuration generation method and configuration generation system of cleaning equipment
CN112596813A (en) * 2020-12-23 2021-04-02 卡斯柯信号有限公司 ATP software automatic configuration method based on safety codes
CN112596813B (en) * 2020-12-23 2022-09-23 卡斯柯信号有限公司 ATP software automatic configuration method based on safety codes
CN112948425A (en) * 2021-04-15 2021-06-11 重庆中源绿蓝环境科技有限公司 Configuration method for intelligent operation and maintenance internet data acquisition end of electromechanical system
CN113535461A (en) * 2021-06-09 2021-10-22 卡斯柯信号(成都)有限公司 Configuration file based visual data verification method for interlocking lower computer
CN113535461B (en) * 2021-06-09 2023-10-24 卡斯柯信号(成都)有限公司 Visual verification method for interlocking lower computer data based on configuration file
CN114237757A (en) * 2021-12-21 2022-03-25 卡斯柯信号有限公司 Method and system for automatically generating configuration file, storage medium and electronic equipment
CN114237757B (en) * 2021-12-21 2024-04-30 卡斯柯信号有限公司 Automatic configuration file generation method, system, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN109901888B (en) 2022-07-15

Similar Documents

Publication Publication Date Title
CN109901888A (en) A kind of design method of configuration file Auto-Generation Tool
CN102622463B (en) Drawing-model uniformity based method for automatic check of design drawings
CN103714150B (en) Visualization error correction method of power distribution network topology model
CN102043719B (en) Method for testing IEC61850 configuration description file
CN105978147B (en) The long-range fixed value modification system of automatic safety device based on file interaction
CN104361025B (en) A kind of multi-source Spatial Data fusion and integrated method
CN103577207A (en) Loading method and loading device for interface components in custom interface system
CN103955566A (en) Electric transmission line three-dimensional design method based on Google Earth and electric transmission line three-dimensional design system based on Google Earth
CN105630590A (en) Business information processing method and device
CN110443499A (en) A kind of inventory project amount automatic generation method and system
CN103677821A (en) Method and device for publishing software development tool code
CN109088864A (en) Transponder data generates and management system
CN106855882A (en) A kind of urban track traffic electronic map data generates system and method
CN106897920A (en) A kind of automatic measures and procedures for the examination and approval of operation flow and system
CN102231107A (en) Method for automatically generating communication data format of electric control unit based on AUTOSAR (Automotive Open System Architecture)
CN108337256A (en) The method and system of Protocol Instantiation
CN106909386A (en) A kind of cloud platform code continuous integrating method and system
CN109635381A (en) The method and apparatus that pipe gallery pipeline enters corridor management
CN102821149A (en) Method and device for selecting service providing entity
CN105704184A (en) Power grid organization analysis system based on level framework and analysis method
CN104750468B (en) A kind of server-side topological data conversion method and conversion equipment
CN108009289A (en) A kind of grid weather forecast manufacturing system, method and device
Yazar et al. Sustainable urban planning in developed countries: Lessons for Turkey
CN109067587A (en) The determination method and device of key message infrastructure
CN110163574A (en) Engineering construction project report construction method and equipment based on BIM

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