CN109344129A - A kind of signal system configuration file generation system and method for high reliability - Google Patents

A kind of signal system configuration file generation system and method for high reliability Download PDF

Info

Publication number
CN109344129A
CN109344129A CN201810933293.7A CN201810933293A CN109344129A CN 109344129 A CN109344129 A CN 109344129A CN 201810933293 A CN201810933293 A CN 201810933293A CN 109344129 A CN109344129 A CN 109344129A
Authority
CN
China
Prior art keywords
file
configuration
tool
configuration file
verification
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.)
Pending
Application number
CN201810933293.7A
Other languages
Chinese (zh)
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.)
Zhejiang Zhonghe Technology Co Ltd
Unittec Co Ltd
Original Assignee
Zhejiang Zhonghe Technology 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 Zhejiang Zhonghe Technology Co Ltd filed Critical Zhejiang Zhonghe Technology Co Ltd
Priority to CN201810933293.7A priority Critical patent/CN109344129A/en
Publication of CN109344129A publication Critical patent/CN109344129A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of signal system configuration files of high reliability to generate system and method, is originally inputted text configuration file and generates the binary profile file before verification by configuration conversion tool;Then it is divided into two paths, the first paths binary profile file is deserialized as text configuration file by configuring the unserializing function of calibration tool, and tool is compared compared with urtext configuration file is by third party;Second paths binary profile file verifies by formally generating last binary profile file afterwards all data progress correctness verification in configuration by configuring the verifying function of calibration tool.Safety and reliability of the present invention is high, easy-to-use.

Description

A kind of signal system configuration file generation system and method for high reliability
Technical field
The present invention relates to technology of track traffic, and in particular to rail traffic signal system.
Background technique
Signal system configuration file generation method in the prior art carries out configuration encryption using simple one layer of CRC, generates Process is simple;Each file module one configuration, it is simple to stack, it needs to parse and read configuration file item by item when using configuration.
The prior art has following defects that
(1) safety is poor.
Product process is simple, lacks logical interlock inspection, only one layer of CRC encryption, safety coefficient is lower, and signal is not achieved The security requirement of system.
(2) easily expenditure is low.
Need to read entire configuration file by code analysis, process is complicated, and efficiency is lower, as long as configuration file format is sent out Changing, it is necessary to regular to the code module for reading configuration to modify.Configuration file lacks modular concept, Suo Youpei It sets and mixes, modification process is complicated.
Summary of the invention
It is generated the technical problem to be solved by the invention is to provide a kind of signal system configuration file of high reliability and is System and method improve safety and reliability, easy-to-use.
In order to solve the above technical problems, the present invention adopts the following technical scheme: a kind of signal system of high reliability configures Document generating method is originally inputted text configuration file and generates the binary profile file before verification by configuration conversion tool; Then it is divided into two paths, the first paths binary profile file is by configuring the unserializing function antitone sequence of calibration tool Text configuration file is turned to, and tool is compared compared with urtext configuration file is by third party;Second paths two System configuration file verifies all data progress correctness verification in configuration by configuring the verifying function of calibration tool Pass through the binary profile file that rear formal generation is last.
Preferably, the binary profile file ultimately produced is by the way of file packet header+listed files.
Preferably, the file packet header includes version information and file index information.
Preferably, the structural body in listed files in the format and code of file corresponds, and is arrived using direct sequence Mode in structural body memory is read.
Preferably, the text configuration file that the first step is originally inputted generates the binary system before verification by configuration conversion tool When configuration file, will do it the data validation verification of first time, guarantee all data all and be according to expected legal range into Row is filled in, and after verification passes through, and adds first layer CRC;Binary profile file is by configuring the verification function of calibration tool Second can be carried out to the data that the first step generates to verify, and add second layer CRC.
The present invention also provides a kind of signal system configuration files of high reliability to generate system, comprising:
Configuration conversion tool: it is originally inputted text configuration file and is matched by the binary system that configuration conversion tool generates before verification Set file;
Configure calibration tool: binary profile file is deserialized as text by configuring the unserializing function of calibration tool This configuration file;By configuring the verifying function of calibration tool, correctness verification is carried out to all data in configuration, verification is logical Later last binary profile file is formally generated;
Third party compares tool;Text configuration file and urtext configuration file after unserializing pass through third party's ratio It is compared compared with tool, and tool output comparison result is compared by third party.
The present invention by adopting the above technical scheme, has the following beneficial effects:
(1) good reliability.
When first step file configuration file generates the binary profile file before verification by configuration conversion tool, it will do it The data validation of first time verifies, and guaranteeing all data all is to be filled according to expected legal range, and verifying By rear, addition first layer crc.
After unserializing function progress unserializing of the second step by configuring calibration tool, tool is compared by third party It carries out text and compares guarantee, improve the reliability of configuration file.On the other hand right by configuring the verifying function of calibration tool The data that the first step generates carry out second and verify, and add the crc of the second layer.
(2) ease for use is high.
The binary system configuration of generation is designed by the way of file packet header+listed files.File packet header contains version The security-related parameters such as this information record, guarantees version consistency and file index information, records the head of each file module Address and deflected length, and by way of being made into array indexing, allow configuration file to support multiple file modules, and And there is no sequence requirement between file module, independent mutually without relevance requirement, modification does not interfere with other texts when configuring The data of part module constitute and arrangement.Structural body in the format and code of file module corresponds, using direct sequence It is read to the mode in structural body memory, is not necessarily to detailed parsing configuration file.
The specific technical solution of the present invention and its advantages will in the following detailed description in conjunction with attached drawing into Row detailed description.
Detailed description of the invention
Present invention will be further described below with reference to the accompanying drawings and specific embodiments:
Fig. 1 is the signal system configuration file generation method flow chart of high reliability of the present invention;
Fig. 2 is configuration file conceptual schematic drawing of the present invention.
Specific embodiment
The present invention proposes a kind of signal of high reliability to solve the defect that prior art safety is poor, easy expenditure is low System configuration file generates system and method.
Embodiment one, with reference to Fig. 1, a kind of signal system configuration file generation method of high reliability is originally inputted text Configuration file generates the binary profile file before verification by configuration conversion tool;Then it is divided into two paths, first road Diameter binary profile file is deserialized as text configuration file by configuring the unserializing function of calibration tool, and with it is original Text configuration file compares tool by third party and is compared;Second paths binary profile file is by configuring verification work The verifying function of tool carries out correctness verification to all data in configuration, and verification by formally generating last binary system afterwards Configuration file.
Wherein, the text configuration file that the first step is originally inputted is matched by the binary system that configuration conversion tool generates before verification When setting file, the data validation verification of first time will do it, guaranteeing all data all is carried out according to expected legal range It fills in, and after verification passes through, adds first layer CRC;Binary profile file is by configuring the verifying function of calibration tool Second is carried out to the data that the first step generates to verify, and adds second layer CRC.Therefore, pass through first number of tool itself According to legitimacy verifies, unserializing third party's text compares tool and compares, second of data equality verification of tool itself etc. three The mode that re-graduation is tested guarantees the high reliability of configuration file.
Refering to what is shown in Fig. 2, the binary profile file ultimately produced is by the way of file packet header+listed files.File Packet header contains the security-related parameters such as version information record, guarantees version consistency and file index information, and record is each The first address and deflected length of file module, and by way of being made into array indexing, configuration file is supported more A file module, and there is no sequence requirement between file module, it is independent mutually without relevance requirement, when modification configures not Influence whether that the data of alternative document module are constituted and arranged.
Structural body in listed files in the format and code of file corresponds, using in direct sequence to structural body Mode in depositing is read.Since each file module is corresponding with structural body, the mode of reading is serialized, ensure that the Gao Yi of tool The property used.
Embodiment two, a kind of signal system configuration file generation system of high reliability, comprising:
Configuration conversion tool: it is originally inputted text configuration file and is matched by the binary system that configuration conversion tool generates before verification Set file;
Configure calibration tool: binary profile file is deserialized as text by configuring the unserializing function of calibration tool This configuration file;By configuring the verifying function of calibration tool, correctness verification is carried out to all data in configuration, verification is logical Later last binary profile file is formally generated;
Third party compares tool;Text configuration file and urtext configuration file after unserializing pass through third party's ratio It is compared compared with tool, and tool output comparison result is compared by third party.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, is familiar with The those skilled in the art should be understood that the present invention includes but is not limited to content described in specific embodiment above.It is any Modification without departing from function and structure principle of the invention is intended to be included in the range of claims.

Claims (6)

1. a kind of signal system configuration file generation method of high reliability, it is characterised in that: be originally inputted text configuration file The binary profile file before verification is generated by configuration conversion tool;Then it is divided into two paths, the first paths binary system Configuration file is deserialized as text configuration file by configuring the unserializing function of calibration tool, and configures with urtext File compares tool by third party and is compared;Second paths binary profile file is by configuring the verification of calibration tool Function carries out correctness verification to all data in configuration, and verification by formally generating last binary profile file afterwards.
2. a kind of signal system configuration file generation method of high reliability according to claim 1, it is characterised in that: most The binary profile file generated afterwards is by the way of file packet header+listed files.
3. a kind of signal system configuration file generation method of high reliability according to claim 2, it is characterised in that: institute Stating file packet header includes version information and file index information.
4. a kind of signal system configuration file generation method of high reliability according to claim 2, it is characterised in that: text Structural body in part list in the format and code of file corresponds, in such a way that direct sequence is into structural body memory It reads.
5. a kind of signal system configuration file generation method of high reliability according to any one of claims 1 to 4, Be characterized in that: the text configuration file that the first step is originally inputted is generated the binary system before verification by configuration conversion tool and configures text When part, the data validation verification of first time will do it, guaranteeing all data all is filled according to expected legal range, And after verification passes through, first layer CRC is added;Binary profile file is by configuring the verifying function of calibration tool to first The data that step generates carry out second and verify, and add second layer CRC.
6. a kind of signal system configuration file of high reliability generates system, characterized by comprising:
Configuration conversion tool: it is originally inputted text configuration file and generates the binary system configuration text before verification by configuration conversion tool Part;
Configuration calibration tool: binary profile file is deserialized as text by configuring the unserializing function of calibration tool and matches Set file;By configuring the verifying function of calibration tool, correctness verification is carried out to all data in configuration, after verification passes through Formally generate last binary profile file;
Third party compares tool;Work compared with text configuration file after unserializing passes through third party with urtext configuration file Tool is compared, and compares tool output comparison result by third party.
CN201810933293.7A 2018-08-16 2018-08-16 A kind of signal system configuration file generation system and method for high reliability Pending CN109344129A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810933293.7A CN109344129A (en) 2018-08-16 2018-08-16 A kind of signal system configuration file generation system and method for high reliability

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810933293.7A CN109344129A (en) 2018-08-16 2018-08-16 A kind of signal system configuration file generation system and method for high reliability

Publications (1)

Publication Number Publication Date
CN109344129A true CN109344129A (en) 2019-02-15

Family

ID=65296750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810933293.7A Pending CN109344129A (en) 2018-08-16 2018-08-16 A kind of signal system configuration file generation system and method for high reliability

Country Status (1)

Country Link
CN (1) CN109344129A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902732A (en) * 2012-09-11 2013-01-30 南车株洲电力机车研究所有限公司 Check adding method into extensive makeup language (XML) configuration file
CN103617168A (en) * 2013-10-22 2014-03-05 芜湖大学科技园发展有限公司 Universal metadata verifying and exporting method
CN103927494A (en) * 2014-03-24 2014-07-16 浙江浙大网新集团有限公司 Method and system for managing security configuration files
CN106020963A (en) * 2016-06-07 2016-10-12 中国建设银行股份有限公司 Cross-system internal service calling method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902732A (en) * 2012-09-11 2013-01-30 南车株洲电力机车研究所有限公司 Check adding method into extensive makeup language (XML) configuration file
CN103617168A (en) * 2013-10-22 2014-03-05 芜湖大学科技园发展有限公司 Universal metadata verifying and exporting method
CN103927494A (en) * 2014-03-24 2014-07-16 浙江浙大网新集团有限公司 Method and system for managing security configuration files
CN106020963A (en) * 2016-06-07 2016-10-12 中国建设银行股份有限公司 Cross-system internal service calling method and device

Cited By (1)

* Cited by examiner, † Cited by third party
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

Similar Documents

Publication Publication Date Title
WO2016197768A1 (en) Chip verification method, device, and system
CN108829647A (en) A kind of data transfer device and device
CN102402430B (en) One utilizes script to generate random test example method and system
CN109829296A (en) The sandbox implementation method of intelligent contract based on alliance's chain
CN107247697A (en) A kind of method that Excel file is converted to automotive networking DBC files
CN103853650A (en) Test case generating method and device for fuzz testing
CN105704083A (en) Generation method, generation device and simulation system of Ethernet excitation message
KR20080010528A (en) Method of testing usb apparatus and system thereof
CN109743301A (en) A kind of data receiving-transmitting system and method based on Modbus agreement
TW201003665A (en) Efficient in-band reliability with separate cyclic redundancy code frames
CN102981882B (en) Analytic method and device
CN103516462B (en) A kind of non-standard Canopen is from the Frame sending method of node and device
CN102508779A (en) Automatic performance test script generating system based on web crawler logs and automatic performance test script generating method based on same
CN110502363A (en) A kind of method of calibration of business rule, equipment and readable medium
CN104346407B (en) Form and the method and its device of XML file data interaction in data reporting system
CN104935936A (en) Entropy decoder authentication method based on UVM and device
CN109344129A (en) A kind of signal system configuration file generation system and method for high reliability
CN115576768A (en) Universal verification platform architecture automatic generation method based on UVM
CN101087175A (en) System and method for testing channel transmission performance with the practical channel and computer simulation
CN104516759B (en) A kind of integrated mirror image document generating method, test method and device
Brown et al. Easy parameterized verification of biphase mark and 8N1 protocols
CN102957553A (en) Method and device for automatic generation of excitation codes
CN116956801A (en) Chip verification method, device, computer equipment and storage medium
JP2008535107A (en) Combined command and data code
CN103870468B (en) A kind of processing method and system for importing data

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
CB03 Change of inventor or designer information

Inventor after: Yang Neng

Inventor after: Ling Zhujun

Inventor after: Shi Xiuxia

Inventor before: Yang Neng

CB03 Change of inventor or designer information
RJ01 Rejection of invention patent application after publication

Application publication date: 20190215

RJ01 Rejection of invention patent application after publication