CN109901888B - Design method of automatic configuration file generation tool - Google Patents

Design method of automatic configuration file generation tool Download PDF

Info

Publication number
CN109901888B
CN109901888B CN201910103989.1A CN201910103989A CN109901888B CN 109901888 B CN109901888 B CN 109901888B CN 201910103989 A CN201910103989 A CN 201910103989A CN 109901888 B CN109901888 B CN 109901888B
Authority
CN
China
Prior art keywords
configuration file
tool
configuration
file
information
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
CN201910103989.1A
Other languages
Chinese (zh)
Other versions
CN109901888A (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

Images

Landscapes

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

Abstract

The invention relates to a design method of an automatic configuration file generation tool, which comprises the following steps: step 1, selecting a safety equipment system needing to generate a configuration file; step 2, selecting a related input file required by the initial configuration of the safety equipment, and reading the input file and the related configuration by a tool; step 3, the type and partial configuration parameters of the output configuration file can be edited; step 4, the automatic configuration file generation tool generates a configuration file of the selected safety equipment system according to the relation between the input parameters and the safety equipment; and 5, printing and outputting the generation information and the related prompt information of the configuration file. Compared with the prior art, the invention has the following advantages: 1. the defect that the efficiency of manually reading the original data table is low in the prior art is overcome; 2. the problems of low efficiency and unsafety of manually making the configuration file are solved; 3. and all or single equipment can be selected to generate the system configuration file, so that the flexibility of system configuration is increased.

Description

Design method of automatic configuration file generation tool
Technical Field
The invention relates to the field of railway signal system initialization configuration files, in particular to a design method of an automatic configuration file generation tool.
Background
Along with the rapid development of the socioeconomic performance of China, higher requirements are put forward on the transportation capacity of railways. The improvement of the train running speed is the key point for improving the railway capacity, and the train running control system is an important technical support means for realizing the speed-up goal. The CTCS-2 level train control system is a control system widely applied in China at present, wherein equipment such as a train control center, a temporary speed limit server and the like are used as core ground safety equipment of the CTCS-2 level train control system and play a vital role in efficient and safe operation of trains.
For core ground safety equipment such as a train control center and a temporary speed limit server, system initialization, normal function realization and the like of the core ground safety equipment need support of related configuration files. The configuration files of current security devices are basically configured manually by data producers. When the number of the safety devices is large and the relationship is complex, the inefficiency and the insecurity of the manual configuration method are increased greatly, and the manual configuration method cannot adapt to the increasingly developed industrial requirements.
Disclosure of Invention
The present invention aims to overcome the above-mentioned drawbacks of the prior art and provide a method for designing an automatic configuration file generation tool.
The purpose of the invention can be realized by the following technical scheme:
a design method of an automatic configuration file generation tool comprises the following steps:
step 1, selecting a safety equipment system needing to generate a configuration file;
step 2, selecting related input files required by the initialization configuration of the safety equipment, and reading the input files and the related configuration by a tool;
step 3, the type and partial configuration parameters of the output configuration file can be edited;
step 4, the automatic configuration file generation tool generates a configuration file of the selected safety equipment system according to the relation between the input parameters and the safety equipment;
and 5, printing and outputting the generation information and the related prompt information of the configuration file.
Preferably, the step 2 specifically comprises the following steps:
step 2.1, establishing a data model of the ground equipment, and initializing relevant data including basic equipment information and network connection information;
2.2, reading in and storing information of an XML configuration file of the tool, wherein the file comprises parameters necessary for generating a safety equipment configuration file;
step 2.3, after the input file is selected, the tool reads the input file;
step 2.4, determining data of a ground equipment data model according to the read-in ground equipment information, wherein the data comprises basic information of the ground equipment; determining the connection relation among different devices according to the read IP address allocation table and writing the connection information into a model of the ground device;
and 2.5, if necessary, determining the LEU information in different devices according to the read relationship between the LEU and the transponder.
Preferably, in the step 2.2, before reading the tool configuration file, it is checked whether the tool configuration file exists, if the tool configuration file does not exist, the reading is terminated, the tool configuration file is added to the current directory, and the reading of the tool configuration file is continued.
Preferably, the basic information of the ground device in step 2.4 includes a station number, a large cell number, an ID, and a security verification parameter.
Preferably, in step 2.3, in the process of reading the input file, the tool checks whether the format of the input file is compliant, including the header table name; if not, modifying the header to continue reading; if so, the next step is continued.
Preferably, the step 4 specifically includes the following steps:
step 4.1, judging the current safety equipment type and the selected generated configuration file type to determine the specific configuration file type required to be generated;
step 4.2, the tool generates a hierarchical structure of the folder according to the type of the configuration file, and initializes and generates a relevant intermediate variable of the configuration file;
and 4.3, generating a configuration file of the safety equipment, wherein the configuration file comprises the necessary parameter names and parameter values: the tool determines the name of the parameter according to the selected configuration file, the parameter values of the specific parameter comprise the parameter values of a static parameter and the parameter values of a dynamic parameter, the parameter values of the static parameter are obtained by the configuration file of the tool, and the parameter values of the dynamic parameter are obtained by calculating the read data of the input file;
4.4, generating and organizing configuration files of different equipment types and different equipment according to the selected system and the type of the configuration files and the hierarchical form of the folder;
and 4.5, after the configuration file is generated, selecting whether to display a generated log, wherein the generated log comprises the generated information of the configuration file and the related prompt information generated in the generation process of the configuration file.
Compared with the prior art, the invention has the following advantages:
1. the method has the advantages that the input file is automatically read and checked to obtain related equipment parameters, and the defect that the existing manual meter reading efficiency is low is overcome;
2. the configuration files of the related safety equipment are automatically generated according to the selection of the user, so that the problems of low efficiency and unsafety of manual configuration are solved;
3. relevant prompt and alarm information is output, so that the process of generating the configuration file can be better accepted by users, and the usability is improved;
4. all the device configuration files can be selected to be generated uniformly or a single device can be selected to be generated, so that the flexibility of the system is improved.
Drawings
FIG. 1 is a schematic interface diagram of an automatic profile generation tool according to the present invention;
FIG. 2 is a flow chart of the tool reading input files and related configurations;
fig. 3 is a flow chart of generating a configuration file of a security device system according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, shall fall within the protection scope of the present invention.
Referring to fig. 1-3, the technical solution of the present invention is described, and first, referring to fig. 1, a person skilled in the art can easily understand and use the automatic configuration file generation tool, and on this basis, referring to fig. 2-3, the process method of reading the input file and generating the configuration file according to the present invention is described.
Referring first to fig. 1, the tool usage interface of the present invention is described, when the tool is used for automatic generation of configuration files, the following steps are included:
step 100, a user selects a safety equipment system needing to generate a configuration file;
step 101, a user is required to select a related input file required by the initialization configuration of the safety equipment, and a tool reads the input file and the related configuration;
step 102, the type and part of configuration parameters of the output configuration file can be edited;
103, generating a configuration file of the selected safety equipment system by the automatic configuration file generation tool according to the relation between the input parameters and the safety equipment;
and 104, printing and outputting the generation information and the related prompt information of the configuration file.
Referring first to fig. 2, describing the method of reading input files and tool configuration files of the present invention, it should be noted that before reading a tool configuration file, it is checked whether the tool configuration file exists, and if the tool configuration file does not exist, the reading is terminated. The method for reading the input file mainly comprises the following steps:
step 105, firstly, the user is required to select the security device system with the required configuration file, and the systems of different security devices correspond to different application configuration files.
Step 106, establishing an initialized ground equipment data model, wherein the ground equipment data model comprises basic parameters of ground equipment including a number, a station name, an ID and the like, and also comprises corresponding safety verification parameters and connection information with other external equipment, and the method comprises the following steps: IP address, gateway, port, etc.
Step 107, the tool reads the tool configuration file, including the acquisition of static parameters that generate the security device configuration file. If the configuration file of the tool does not exist, the configuration file of the tool is added to the current directory, and the configuration file is continuously read.
Step 108, after the user selects the input file, the tool reads the input file, and in the process of reading the input file, the tool checks whether the format of the input file is in compliance, including the header table name and the like. If not, the header is modified to continue reading. If the compliance is met, the next process is continued.
Step 109, determining data of the ground equipment data model according to the read-in ground equipment information, including the basic information of the ground equipment: station number, large cell number, ID, security check parameters, etc.; determining the connection relation among different devices according to the read IP address allocation table and writing the connection information into a model of the ground device; if necessary, determining LEU information in different devices according to the read relationship between the LEU and the responder; and respectively storing the information to be called when a configuration file is to be generated.
Referring to fig. 3, a method for generating a required configuration file according to the present invention is described, before a process of generating a configuration file, a user may select a specific device or a specific file according to a requirement to generate, and if no setting is made, all configuration files are generated by default. The method for generating the configuration file mainly comprises the following steps:
at step 110, the user may select the type of profile generation.
Step 111, the tool generates a hierarchical structure of folders according to the type of the configuration file and initializes the relevant intermediate variables that generate the configuration file.
In step 112, the content includes the necessary parameter name and parameter value for the configuration file of the security device. The tool will determine the parameter name from the selected profile. The parameter values of the specific parameters comprise parameter values of static parameters and parameter values of dynamic parameters, the parameter values of the static parameters are obtained by configuration files of the tool, and the parameter values of the dynamic parameters are obtained by calculating the read data of the input files.
In step 113, the tool will cyclically generate all parameters of each configuration file and query or calculate to obtain the parameter values.
And step 114, after the configuration file is generated, the user can select whether to display the generated log, and the generated log comprises the generated information of the configuration file and the related prompt information generated in the generation process of the configuration file.
The tool aims at solving the problems of low efficiency and low safety of manual configuration of the configuration file of the safety equipment, is tried out in the data manufacturing process at present, can greatly reduce the repeated labor of data makers, and enables the data configuration process to be safe and efficient.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (5)

1. A design method of an automatic configuration file generation tool is characterized by comprising the following steps:
step 1, selecting a safety equipment system needing to generate a configuration file;
step 2, selecting related input files required by the initialization configuration of the safety equipment, and reading the input files and the related configuration by a tool;
step 3, the type and partial configuration parameters of the output configuration file can be edited;
step 4, the automatic configuration file generation tool generates a configuration file of the selected safety equipment system according to the relation between the input parameters and the safety equipment;
step 5, printing and outputting the generation information and the related prompt information of the configuration file;
the step 2 specifically comprises the following steps:
step 2.1, establishing a data model of the ground equipment, and initializing relevant data including basic equipment information and network connection information;
2.2, reading in and storing information of an XML configuration file of the tool, wherein the file comprises parameters necessary for generating a safety equipment configuration file;
step 2.3, after the input file is selected, the tool reads the input file;
step 2.4, determining data of a ground equipment data model according to the read-in ground equipment information, wherein the data comprises basic information of the ground equipment; determining the connection relation between different devices according to the read IP address allocation table and writing the connection information into a model of the ground device;
and 2.5, if necessary, determining the LEU information in different devices according to the read relationship between the LEU and the transponder.
2. The method as claimed in claim 1, wherein in step 2.2, before reading the tool configuration file, it is checked whether the tool configuration file exists, if the tool configuration file does not exist, the reading is terminated, the tool configuration file is added to the current directory, and the reading of the tool configuration file is continued.
3. The method as claimed in claim 1, wherein the basic information of the ground device in step 2.4 includes station number, large cell number, ID, and security verification parameters.
4. The method for designing a tool for automatically generating a configuration file according to claim 1, wherein in step 2.3, during the process of reading the input file, the tool checks whether the format of the input file is compliant, including the header name; if not, modifying the header and continuing reading; if the compliance is met, the next process is continued.
5. The method for designing an automatic configuration file generation tool according to claim 1, wherein the step 4 specifically comprises the following steps:
step 4.1, judging the current safety equipment type and the selected generated configuration file type to determine the specific configuration file type required to be generated;
step 4.2, the tool generates a hierarchical structure of the folder according to the type of the configuration file, and initializes and generates a relevant intermediate variable of the configuration file;
and 4.3, generating a configuration file of the safety equipment, wherein the configuration file comprises the necessary parameter names and parameter values: the tool determines the name of the parameter according to the selected configuration file, the parameter values of the specific parameter comprise the parameter values of a static parameter and the parameter values of a dynamic parameter, the parameter values of the static parameter are obtained by the configuration file of the tool, and the parameter values of the dynamic parameter are obtained by calculating the read data of the input file;
4.4, generating and organizing configuration files of different equipment types according to the selected system and the type of the configuration files and the hierarchical form of the folders;
and 4.5, after the configuration file is generated, selecting whether to display a generated log, wherein the generated log comprises the generated information of the configuration file and the related prompt information generated in the generation process of the configuration file.
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 CN109901888A (en) 2019-06-18
CN109901888B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111190802B (en) * 2019-12-22 2022-09-30 卡斯柯信号有限公司 Method for automatically generating performance test configuration
CN111309314B (en) * 2020-01-21 2023-08-18 北京北方华创微电子装备有限公司 Configuration generation method and configuration generation system of cleaning equipment
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
CN113535461B (en) * 2021-06-09 2023-10-24 卡斯柯信号(成都)有限公司 Visual verification method for interlocking lower computer data based on configuration file
CN114237757B (en) * 2021-12-21 2024-04-30 卡斯柯信号有限公司 Automatic configuration file generation method, system, storage medium and electronic equipment

Citations (2)

* 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
CN106775725A (en) * 2016-12-19 2017-05-31 网易(杭州)网络有限公司 A kind of visual configuration edit methods and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102542674B (en) * 2012-01-18 2014-06-04 金徐凯 Fully-automatic food vending machine

Patent Citations (2)

* 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
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
《Semi-automation of Configuration Files Generation for Heterogeneous Multi-tile Systems》;Alexandre Chagoya-Garzon et al.;《2011 IEEE 35th Annual Computer Software and Applications Conference》;20111003;全文 *
《地震信息在指挥大厅LED屏自动显示的设计与实现》;肖健 等;《华北地震科学》;20171231;第35卷(第4期);全文 *

Also Published As

Publication number Publication date
CN109901888A (en) 2019-06-18

Similar Documents

Publication Publication Date Title
CN109901888B (en) Design method of automatic configuration file generation tool
CN110147411B (en) Data synchronization method, device, computer equipment and storage medium
CN105279254B (en) The implementation method of format data streamed file system and its operating device and its operating device
CN104657140A (en) Code generating method and device
CN102611576B (en) Method and device for generating network management configuration model file
CN110147410B (en) Data verification method, system, device and equipment in block chain type account book
CN108509514A (en) A kind of big data analysis method and system based on block chain
CN104301652B (en) Carry out the method and network hard disk video recorder of web camera access configuration
CN105488014B (en) The generation method and device of the interface testing case message of XML format
CN109725617A (en) A kind of construction method of industrial configuration platform, building system and relevant apparatus
CN106547911A (en) A kind of access method and system of mass small documents
CN110390082A (en) A kind of communication matrix control methods and system
CN105488293B (en) A kind of method and system configuring virtual terminator line in SCD
CN104378362B (en) For carrying out the method and device of message interface conversion
CN107888989A (en) A kind of interactive system and method live based on internet
CN103036877A (en) Device and method for code generation of coding and decoding based on threshold limit value (TLV) form protocol
CN114356864A (en) Method and system for importing excel files in batch in domestic environment
CN113010473B (en) Method and equipment for editing YAML file
CN110191447A (en) The filter method and relevant apparatus of Bluetooth broadcast packet in a kind of ESL
CN105302789A (en) Editing method of health information shared document template buffer storage
CN108874492A (en) A kind of method and apparatus of focus frame positioning
CN106293862B (en) A kind of analysis method and device of expandable mark language XML data
CN108629048A (en) A kind of routing parameter transmits optimization method and system
CN107463546A (en) A kind of document structure tree method and system based on index storehouse
CN101990138A (en) Wavelength scheduling method and device

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