Automatic generation method, device and readable storage medium of ZC configuration file

The automated generation of ZC configuration files addresses the inefficiencies and accuracy issues in manual data conversion by importing and converting equipment data, ensuring compliance with system requirements and improving data configuration efficiency and accuracy.

CN111897592BActive Publication Date: 2025-01-03CRSC URBAN RAIL TRANSIT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010610288.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-29
Publication Date
2025-01-03
Estimated Expiration
2040-06-29

AI Technical Summary

Technical Problem

The existing CBTC2.0 system for train control requires manual data conversion in Excel spreadsheets, consuming time and energy while compromising data accuracy, which is inadequate for short engineering cycles and high accuracy demands.

Method used

An automated method and device for generating ZC configuration files by importing original equipment data into an initial database, performing logical conversions, and generating ZC configuration data that meets system requirements, including mapping relationships and numbering rules.

Benefits of technology

This approach significantly reduces the time and energy required for data configuration, enhances accuracy, and improves efficiency by minimizing human intervention in the logic conversion process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111897592B_ABST
    Figure CN111897592B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method, device and readable storage medium for automatically generating a ZC configuration file. In the embodiment of the method of the present invention, the original device data is imported, and the original device data is logically converted to generate ZC configuration data, wherein the ZC configuration data meets the configuration format requirements of the ZC system for the configuration data, and the corresponding ZC configuration file is generated based on the ZC configuration data in the ZC configuration database. By automatically performing logical conversion on the original device data to generate ZC configuration data that meets the configuration format requirements of the ZC system, and then automatically generating the corresponding ZC configuration file based on the configuration data, the process of manually implementing the logical conversion is avoided, which not only greatly saves the time and energy of the data configuration personnel and improves the efficiency of the ZC data configuration work, but also reduces human participation and improves the accuracy of the data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automatic data generation, and in particular to a method, device and readable storage medium for automatically generating a ZC configuration file. Background Art

[0002] The CBTC2.0 (Communication Based Train Control) system is an interconnected train automatic control system used to command and control train operation and ensure driving safety. ZC (zone controller) is an important part of the CBTC2.0 system. Its data is huge and the relationships are complex. The normal operation of ZC requires the import of corresponding configuration data. The accuracy of configuration data is an important guarantee for the safe operation of trains.

[0003] The existing CBTC2.0 system ZC data configuration is usually done by data configuration personnel entering the configuration data into an Excel spreadsheet, and the configuration tool completely converts the entered data into the required file format. This data generation method has all logical conversion functions that are completely implemented manually, which not only consumes a lot of time and energy of data configuration personnel, but also makes it difficult to ensure the accuracy of the data, which cannot meet the current background of shorter and shorter engineering project cycles and higher and higher data accuracy requirements. Summary of the invention

[0004] The embodiments of the present invention provide a method, device and readable storage medium for automatically generating a ZC configuration file, so as to solve the problem that the prior art consumes a lot of time and energy of data configuration personnel and the accuracy of data is difficult to ensure.

[0005] In a first aspect, an embodiment of the present invention provides a method for automatically generating a ZC configuration file, comprising:

[0006] Import the original equipment data and store it in the initial database;

[0007] The original device data in the initial database is converted into ZC configuration data through logic conversion, and stored in the ZC configuration database; wherein the ZC configuration data complies with the configuration format requirements of the ZC system for configuration data;

[0008] Based on the ZC configuration data in the ZC configuration database, a corresponding ZC configuration file is generated.

[0009] Optionally, according to the method for automatically generating a ZC configuration file in one embodiment of the present invention, the step of generating ZC configuration data by logically converting the original device data in the initial database includes:

[0010] A mapping relationship between various types of equipment and a mapping relationship between various devices and their numbers are generated according to the original equipment data, and ZC configuration data is obtained according to the above mapping relationships. The ZC configuration data includes various types of equipment data tables.

[0011] Optionally, according to the method for automatically generating a ZC configuration file in one embodiment of the present invention, the step of generating a mapping relationship between various types of devices and a mapping relationship between each device and its serial number according to the original device data includes:

[0012] In the original device data stored in the form of a list, the corresponding relationship between devices is obtained by searching the device information including the device name, and a device-device mapping table is established.

[0013] Optionally, according to the method for automatically generating a ZC configuration file in one embodiment of the present invention, the step of generating a mapping relationship between various types of devices and a mapping relationship between each device and its serial number according to the original device data includes:

[0014] The devices are numbered according to the internal numbering rule, and a corresponding device-number mapping table is generated. The internal numbering rule is "ZCID+CIID+device type+device number".

[0015] Optionally, according to the automatic generation method of the ZC configuration file according to an embodiment of the present invention, the mapping relationship between the various types of equipment includes but is not limited to any one of the following or a combination thereof: mapping of logical sections and axle counting sections, mapping of track units and axle counting sections, mapping of each axle counter and the included turnouts, mapping of protection sections and signals, mapping of block link relationships, and mapping of blocks and attributes.

[0016] Optionally, according to the automatic generation method of the ZC configuration file according to an embodiment of the present invention, the mapping relationship between the devices and their numbers includes but is not limited to any one of the following or a combination thereof: axle counter and number mapping, logical section and number mapping, block and number mapping, protection section and number mapping, signal machine and number mapping.

[0017] In a second aspect, an embodiment of the present invention further provides a device for automatically generating a ZC configuration file, comprising:

[0018] Data import module, used to import original equipment data and store it in the initial database;

[0019] A logic conversion module, used to generate ZC configuration data by logic conversion of the original device data in the initial database, and store the data in the ZC configuration database; wherein the ZC configuration data complies with the configuration format requirements of the ZC system for configuration data;

[0020] The configuration file generation module is used to generate a corresponding ZC configuration file based on the ZC configuration data in the ZC configuration database.

[0021] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method for automatically generating a ZC configuration file provided in the first aspect above are implemented.

[0022] In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for automatically generating a ZC configuration file as provided in the first aspect above.

[0023] An automatic generation method, device and readable storage medium of a ZC configuration file provided in an embodiment of the present invention automatically performs logical conversion on original device data to generate ZC configuration data that meets the configuration format requirements of the ZC system, and then automatically generates a corresponding ZC configuration file based on the configuration data, thereby avoiding the process of manually implementing logical conversion. This not only greatly saves the time and energy of data configuration personnel and improves the efficiency of ZC data configuration work, but also improves the accuracy of data due to reduced human participation. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 It is a flowchart of a method for automatically generating a ZC configuration file provided by an embodiment of the present invention;

[0026] Figure 2 It is a structural schematic diagram of an automatic generation device of a ZC configuration file provided by an embodiment of the present invention;

[0027] Figure 3 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0029] In the prior art ZC configuration data generation method, all logic conversion functions are completely implemented manually, which not only consumes a lot of time and energy of data configuration personnel, but also makes it difficult to ensure the accuracy of the data.

[0030] In this regard, an embodiment of the present invention provides a method for automatically generating a ZC configuration file. Figure 1 A schematic diagram of a flow chart of a method for automatically generating a ZC configuration file provided by an embodiment of the present invention, such as Figure 1 As shown, the method includes:

[0031] Step 110, importing the original device data and storing it in the initial database.

[0032] Specifically, the original equipment data is a standard integrated data table in Excel format. The data configuration personnel import the data table into the ZC configuration software through the corresponding visual operation interface, and the software stores the data table into the initial database.

[0033] The data tables include an engineering data comparison table, an interlocking table, an IP address planning table, a calibration parameter table, a ZC parameter table, and an equipment number table.

[0034] The engineering data comparison table includes: general table, track section table, signal table, turnout table, reversing area table, ESB (emergency close button) table, PSD (platform door) table, vehicle block table, ZC boundary point table, unmanned reversing button table, unmanned reversing light table, and flood prevention door table.

[0035] The data in the general table include: the line number of the ZC, ATS (Automatic Train Supervision), the Chinese name of the central station, whether the direction described in the table is consistent with the electronic map, Figure 1 To the taking over ZC and direction of this ZC;

[0036] The data in the track section table include: plan view equipment name (i.e. axle counting), turnout direction description, track section length, equipment number, uplink track section, downlink track section, no-turn logical section, section length, whether it is a handover overlap area, takeover ZC concentration area name, concentration area number, whether it is a ZC line entrance, whether it is idle and CTC (Centralized Traffic Control, railway dispatching centralized system) occupation is judged as axle counting occupation, whether ARB (Always Report Blocking, axle counting fault system) is judged as UT, whether it is an uplink conversion track, whether it is a downlink conversion track, return section direction, whether it is an uplink vehicle block, whether it is a downlink vehicle block;

[0037] The data in the signal table include: signal equipment name, equipment number, external track, whether the protection section, signal direction, section in the protection section, turnout in the protection section, and concentration section number;

[0038] The data in the turnout table include: turnout equipment name, equipment number, turnout tip direction, and concentration area number;

[0039] The data in the reversing area table include: the reversing area name, the equipment number, the corresponding track section, whether it is an up-going reversing end-changing area, whether it is a down-going reversing end-changing area, and the concentration area number;

[0040] The data in the ESB table includes: ESB name, equipment number, corresponding track segment, associated track segment, and centralized area number;

[0041] The data in the PSD table include: PSD name, equipment number, operation direction (left, right), corresponding track section, associated track section, whether it is an uplink / downlink PSD, corresponding track section, and centralized area number;

[0042] The data in the vehicle stop table include: vehicle stop name, equipment number, corresponding track section, and centralized area number;

[0043] The data in the ZC boundary point table includes: boundary point name, equipment number, and centralized area number;

[0044] The data in the unmanned return button table include: the name of the unmanned return button and the corresponding track section;

[0045] The data in the unmanned return light table include: the name of the unmanned return light and the corresponding track section;

[0046] The data in the flood control door table include: the name of the flood control door, the logical section where the flood control door is located, the offset of the logical section where the flood control door is located, and the right flood control door.

[0047] The data in the interlocking table include: route name and switches included in the route.

[0048] The data in the IP address planning table include: train name, and IP addresses corresponding to the ZC trains.

[0049] The data in the verification parameter table includes: the keys of each channel for ZC to communicate with external devices via RSSPI protocol.

[0050] The data in the ZC parameter table include: the maximum number of each device such as turnout logical section, track section, axle counter, ESB, PSD, the maximum number of devices included in the communication interface between ZC and CI (computer interlocking, computer interlocking system) / ATS, as well as communication cycle, check code and other data;

[0051] The data in the equipment number table include: ZC, CI, ATS and the name and equipment number of the train.

[0052] Step 120, the original device data in the initial database is converted into ZC configuration data through logic conversion, and stored in the ZC configuration database; wherein the ZC configuration data complies with the configuration format requirements of the ZC system for configuration data.

[0053] Specifically, the ZC configuration software reads the data table in the initial database, obtains the data recorded in the data table, and performs logical conversion on the data according to preset logical conversion rules, generates configuration data that meets the ZC system configuration format requirements, and stores it in the ZC configuration database.

[0054] Step 130: Generate a corresponding ZC configuration file based on the ZC configuration data in the ZC configuration database.

[0055] Specifically, the ZC configuration software reorganizes the data in the configuration database according to the ZC data configuration specification of CBTC2.0, and finally generates the required data configuration file for data configuration of ZC.

[0056] The method provided by the embodiment of the present invention automatically performs logic conversion on original device data through ZC configuration software to generate ZC configuration data that meets the configuration format requirements of the ZC system, and then automatically generates a corresponding ZC configuration file based on the configuration data, thereby avoiding the process of manually implementing logic conversion. This not only greatly saves the time and energy of data configuration personnel and improves the efficiency of ZC data configuration work, but also improves the accuracy of data due to reduced human participation.

[0057] Based on the above embodiment, in step 120, the original device data in the initial database is logically converted to generate ZC configuration data, including:

[0058] A mapping relationship between various types of equipment and a mapping relationship between various devices and their numbers are generated according to the original equipment data, and ZC configuration data is obtained according to the above mapping relationships. The ZC configuration data includes various types of equipment data tables.

[0059] Specifically, the ZC configuration software can obtain the names of various equipment and the corresponding relationship between the equipment based on the original equipment data in the data table. For example, the corresponding relationship between the axle counter and the logical segment can be obtained based on the three columns of data recorded in the track segment table: axle counter, logical segment, and turnout direction, that is, which logical segments a certain axle counter contains. The mapping relationship between the equipment and its number is obtained based on the preset internal numbering rules. The software combines the above mapping relationship and the relevant equipment data in the data table to obtain the ZC configuration data including the data tables of various equipment.

[0060] The equipment data table specifically includes: axle counting data table without switches, axle counting data table of switches, data table of block without switches, data table of switch blocks, data table of switch data, data table of logical sections without switches, data table of logical sections of switches, data table of protection sections scheme, data table of reversing area, data table of platform doors, data table of emergency closing button, data table of unmanned reversing button, data table of unmanned reversing lights, data table of signal machines, data table of approaches, data table of line entrances, data table of transfer rails, data table of linkage switch groups, data table of fixed block areas, data table of vehicle-to-ground logical sections numbering, data table of flood prevention doors, data table of flood prevention door protection areas, data table of signal machines that allow passage with lights on, data table of axle counting judged as UT by ARB, data table of axle counting judged as occupied by logical sections changed from idle to occupied by CTC, data table of adjacent ZC overlapping areas, data table of current ZC overlapping areas, etc.

[0061] In the method provided by the embodiment of the present invention, the ZC configuration software automatically generates the mapping relationship between various types of equipment and the mapping relationship between each device and its number according to the original equipment data, and obtains the ZC configuration data according to the above mapping relationship and the relevant equipment data in the original equipment data table, which greatly saves the time and energy of the data configuration personnel, improves the efficiency of the ZC data configuration work, and improves the accuracy of the data due to the reduction of human participation.

[0062] Based on the above embodiment, the mapping relationship between various types of devices and the mapping relationship between each device and its number are generated according to the original device data, including:

[0063] In the original device data stored in the form of a list, the corresponding relationship between devices is obtained by searching the device information including the device name, and a device-device mapping table is established.

[0064] Specifically, the header in the original device data table includes device information such as the device name. The software can obtain the device information corresponding to the header by searching the header content, and then obtain the correspondence between devices, and establish a device-device mapping table based on the correspondence between devices. The device-device mapping table is stored in the form of a program dictionary, which contains keys and values. The keys and values ​​correspond to the corresponding device names. For example, in the logical segment-axle counter mapping table, the key stores the logical segment name, and the value stores the axle counter name, and one key corresponds to one value.

[0065] According to the method provided by the embodiment of the present invention, the software obtains the corresponding relationship between devices by searching the device information including the device name, and automatically establishes a device-device mapping table for generating configuration data, which greatly saves the time and energy of data configuration personnel, improves the efficiency of ZC data configuration work, and improves the accuracy of data due to the reduction of human participation.

[0066] Based on the above embodiment, the generation of mapping relationships between various types of devices and mapping relationships between various devices and their numbers according to the original device data further includes:

[0067] The devices are numbered according to the internal numbering rule, and a corresponding device-number mapping table is generated. The internal numbering rule is "ZCID+CIID+device type+device number".

[0068] Specifically, the software numbers the equipment according to the internal numbering rules. The equipment to be numbered includes: non-switch block, switch block, reversing area, protection section plan, linkage switch, switch axle counting section, non-switch axle counting section, switch logic section, non-switch logic section, approach, signal, switch, platform door, emergency close button, unmanned reversing light, unmanned reversing button, track section type, car stop, fixed block area, bulb line turning point, etc.

[0069] ZCID and CIID are obtained through the line number in the general table, and the equipment type is specified according to user needs. The encoding is based on the following rules:

[0070] The device codes are all 32-bit unsigned long integers, with the upper 16 bits being the ZCID and CIID numbers: ZCID (8 bits) + CIID (8 bits), and the lower 16 bits being the device type and device number: device type (5 bits) + device number (11 bits). For example: this ZC is associated with an interlocking area, and the ZC area number and interlocking area number are both 0x0e. Assuming that there is only one adjacent ZC and it is also associated with only one interlocking area, the ZC area number and interlocking area number are 0x0f. If the device is the platform door of this ZC, the number is 0x0e0eDXXXU. If the device is a platform in the overlapping area of ​​an adjacent ZC, the code is 0x0f0fDXXXU.

[0071] In the method provided by the embodiment of the present invention, the software automatically numbers the devices according to the internal numbering rules and generates a corresponding device-number mapping table for generating configuration data, which greatly saves the time and energy of data configuration personnel, improves the efficiency of ZC data configuration work, and improves the accuracy of data due to reduced human participation.

[0072] Based on the above embodiments, the mapping relationship between the various types of equipment includes but is not limited to any one of the following or a combination thereof: mapping between logical sections and axle counting sections, mapping between track units and axle counting sections, mapping between each axle counter and the included switches, mapping between protection sections and signals, mapping between block link relationships, and mapping between blocks and attributes.

[0073] Specifically, the software obtains the mapping between logical section and axle counting section, the mapping between track unit and axle counting section, the mapping between logical section (no switch, switch) and axle counting, the mapping between block (no switch, switch) and axle counting, and the mapping between block (no switch, switch) and logical section according to the description of axle counting, logical section and switch direction in the track section table;

[0074] Generate the mapping between protected section and signal machine according to the signal machine equipment name and whether the protected section exists in the signal machine table;

[0075] Generate block (no switch, switch) link relationship mapping through block (no switch, switch) and block in axle counting mapping table according to uplink and downlink link relationship in track section table;

[0076] Through the block (no switch, turnout) and the block in the axle counting mapping table, and according to the corresponding track sections in the ESB table, PSD table, vehicle block table, unmanned return button table, unmanned return light table, and flood prevention door table, it is determined whether the block has the corresponding attributes to generate a block and attribute mapping.

[0077] In the method provided by the embodiment of the present invention, the software automatically obtains the mapping between various types of devices according to the original device data table for the generation of configuration data, which greatly saves the time and energy of data configuration personnel, improves the efficiency of ZC data configuration work, and improves the accuracy of data due to the reduction of human participation.

[0078] Based on the above embodiment, the mapping relationship between the devices and their numbers includes but is not limited to any one of the following or a combination thereof: axle counter and number mapping, logical section and number mapping, block and number mapping, protection section and number mapping, and signal machine and number mapping.

[0079] Specifically, the mapping between axle counting (no turnout, turnout) and number, the mapping between logical section (no turnout, turnout) and number, and the mapping between block (no turnout, turnout) and number are all done by numbering the axle counting, logical section, and turnout direction in the track unit table in the engineering data table and generating corresponding mapping tables according to the internal numbering rules;

[0080] The protection zone and number mapping is performed through the protection zone in the signal table, and the corresponding mapping table is generated according to the coding rules;

[0081] The signal and number mapping is done through the signal name in the signal table, and the corresponding mapping table is generated according to the coding rules;

[0082] The route and number mapping is done through the route name in the interlocking table, and the corresponding mapping table is generated according to the coding rules;

[0083] The mapping of flood prevention doors and numbers, flood prevention door protection areas and numbers, turnaround areas and numbers, platform doors and numbers, emergency close buttons and numbers, unmanned turnaround lights and numbers, unmanned turnaround buttons and numbers is generated through the corresponding names in the turnaround area table, ESB table, PSD table, vehicle block table, unmanned turnaround button table, unmanned turnaround light table, and flood prevention door table imported into the engineering data table to generate corresponding mapping tables according to coding rules.

[0084] In the method provided by the embodiment of the present invention, the software automatically obtains the mapping of the device and its number according to the original device data table for the generation of configuration data, which greatly saves the time and energy of the data configuration personnel, improves the efficiency of the ZC data configuration work, and improves the accuracy of the data due to the reduction of human participation.

[0085] Based on any of the above embodiments, Figure 2 A schematic diagram of the structure of the automatic generation device of the ZC configuration file provided by the embodiment of the present invention, such as Figure 2 As shown, the automatic generation device of the ZC configuration file includes: a data import module 210, a logic conversion module 220 and a configuration file generation module 230.

[0086] The data import module 210 is used to import the original device data and store it in the initial database;

[0087] Specifically, the original equipment data is a standard integrated data table in Excel format. The data configuration personnel import the data table into the ZC configuration software through the visual operation interface of the data import module 210, and the data import module 210 stores the data table into the initial database.

[0088] The logic conversion module 220 is used to generate ZC configuration data by logic conversion of the original device data in the initial database, and store it in the ZC configuration database; wherein the ZC configuration data complies with the configuration format requirements of the ZC system for configuration data;

[0089] Specifically, the logic conversion module 220 reads the data table in the initial database, obtains the data recorded in the data table, and performs logic conversion on the data according to preset logic conversion rules, generates configuration data that meets the ZC system configuration format requirements, and stores it in the ZC configuration database.

[0090] The configuration file generating module 230 is used to generate a corresponding ZC configuration file based on the ZC configuration data in the ZC configuration database.

[0091] Specifically, the configuration file generation module 230 reorganizes the data in the configuration database according to the ZC data configuration specification of CBTC2.0, and finally generates the required data configuration file for data configuration of ZC.

[0092] The automatic generation device of the ZC configuration file provided in the embodiment of the present invention automatically performs logic conversion on the original device data imported by the data import module 210 through the logic conversion module 220 to generate ZC configuration data that meets the ZC system configuration format requirements. The configuration file generation module 230 automatically generates the corresponding ZC configuration file based on the configuration data, avoiding the process of manually implementing the logic conversion, which not only greatly saves the time and energy of the data configuration personnel and improves the efficiency of the ZC data configuration work, but also improves the accuracy of the data due to the reduction of human participation.

[0093] Based on the above embodiment, the logic conversion module 220 is specifically used for:

[0094] A mapping relationship between various types of equipment and a mapping relationship between various devices and their numbers are generated according to the original equipment data, and ZC configuration data is obtained according to the above mapping relationships. The ZC configuration data includes various types of equipment data tables.

[0095] Specifically, the logic conversion module 220 can obtain the names of various equipment and the corresponding relationship between the equipment according to the original equipment data in the data table. For example, according to the three columns of data of axle counter, logical section, and turnout direction recorded in the track section table, the corresponding relationship between axle counter and logical section can be obtained, that is, which logical sections a certain axle counter contains. The mapping relationship between the equipment and its number is obtained according to the preset internal numbering rules. The logic conversion module 220 combines the above mapping relationship and the relevant equipment data in the data table to obtain the ZC configuration data including the data tables of various equipment.

[0096] The automatic generation device of the ZC configuration file provided by the embodiment of the present invention, the logic conversion module 220 automatically generates the mapping relationship between various types of equipment and the mapping relationship between each device and its number according to the original equipment data, and obtains the ZC configuration data according to the above mapping relationship and the relevant equipment data in the original equipment data table, which greatly saves the time and energy of the data configuration personnel, improves the efficiency of the ZC data configuration work, and improves the accuracy of the data due to the reduction of human participation.

[0097] Based on the above embodiment, the logic conversion module 220 further includes: a device-device mapping table establishing unit, which is used to:

[0098] In the original device data stored in the form of a list, the corresponding relationship between devices is obtained by searching the device information including the device name, and a device-device mapping table is established.

[0099] Specifically, the header in the original device data table includes device information such as the device name. The device-device mapping table establishment unit can obtain the device information corresponding to the header by searching the header content, and then obtain the correspondence between the devices, and establish a device-device mapping table based on the correspondence between the devices. The device-device mapping table is stored in the form of a program dictionary, and the dictionary contains keys and values, and the keys and values ​​correspond to the corresponding device names respectively. For example, in the logical segment-axle counter mapping table, the key stores the logical segment name, and the value stores the axle counter name, and one key corresponds to one value.

[0100] In the automatic generation device of the ZC configuration file provided by the embodiment of the present invention, the device-device mapping table establishment unit obtains the correspondence between devices by searching the device information including the device name, and automatically establishes the device-device mapping table for the generation of configuration data, which greatly saves the time and energy of the data configuration personnel, improves the efficiency of the ZC data configuration work, and improves the accuracy of the data due to the reduction of human participation.

[0101] Based on the above embodiment, the logic conversion module 220 further includes: a device-number mapping table establishing unit, which is used to:

[0102] The devices are numbered according to the internal numbering rule, and a corresponding device-number mapping table is generated. The internal numbering rule is "ZCID+CIID+device type+device number".

[0103] Specifically, the device-number mapping table establishment unit numbers the devices according to the internal numbering rules. The ZCID and CIID are obtained through the line number in the general table, and the device type is specified according to user needs.

[0104] In the automatic generation device of the ZC configuration file provided by the embodiment of the present invention, the device-number mapping table establishment unit automatically numbers the devices according to the internal numbering rules and generates the corresponding device-number mapping table for generating configuration data, which greatly saves the time and energy of the data configuration personnel, improves the efficiency of the ZC data configuration work, and improves the accuracy of the data due to the reduction of human participation.

[0105] Based on the above embodiments, the mapping relationship between the various types of equipment includes but is not limited to any one of the following or a combination thereof: mapping between logical sections and axle counting sections, mapping between track units and axle counting sections, mapping between each axle counter and the included switches, mapping between protection sections and signals, mapping between block link relationships, and mapping between blocks and attributes.

[0106] Specifically, the device-device mapping table establishing unit obtains the mapping between the logical section and the axle counting section, the mapping between the track unit and the axle counting section, the mapping between the logical section (no switch, switch) and the axle counting, the mapping between the block (no switch, switch) and the axle counting, and the mapping between the block (no switch, switch) and the logical section according to the description of the axle counting, logical section, and switch direction in the track section table;

[0107] Generate the mapping between protected section and signal machine according to the signal machine equipment name and whether the protected section exists in the signal machine table;

[0108] Generate block (no switch, switch) link relationship mapping through block (no switch, switch) and block in axle counting mapping table according to uplink and downlink link relationship in track section table;

[0109] Through the block (no switch, turnout) and the block in the axle counting mapping table, and according to the corresponding track sections in the ESB table, PSD table, vehicle block table, unmanned return button table, unmanned return light table, and flood prevention door table, it is determined whether the block has the corresponding attributes to generate a block and attribute mapping.

[0110] The automatic generation device of the ZC configuration file provided by the embodiment of the present invention, the device-device mapping table establishment unit automatically obtains the mapping between various types of devices according to the original device data table for the generation of configuration data, which greatly saves the time and energy of the data configuration personnel, improves the efficiency of the ZC data configuration work, and improves the accuracy of the data due to the reduction of human participation.

[0111] Based on the above embodiment, the mapping relationship between the devices and their numbers includes but is not limited to any one of the following or a combination thereof: axle counter and number mapping, logical section and number mapping, block and number mapping, protection section and number mapping, and signal machine and number mapping.

[0112] Specifically, the mapping between axle counting (no switch, turnout) and number, the mapping between logical section (no switch, turnout) and number, and the mapping between block (no switch, turnout) and number are generated by the equipment-number mapping table establishment unit through the description of axle counting, logical section, and turnout direction in the track unit table in the engineering data table and the axle counting, logical section, and block according to the internal numbering rules to generate the corresponding mapping table;

[0113] The protection section and number mapping is mapped by the equipment-number mapping table establishment unit through the protection section in the signal table, and generates a corresponding mapping table according to the coding rules;

[0114] The signal and number mapping is mapped by the equipment-number mapping table establishment unit through the signal names in the signal table and generates a corresponding mapping table according to the coding rules;

[0115] The route and number mapping is mapped by the equipment-number mapping table establishment unit through the route name in the interlocking table and generates a corresponding mapping table according to the coding rules;

[0116] The anti-flooding door and number mapping, the anti-flooding door protection area and number, the turnaround area and number, the platform door and number, the emergency close button and number, the unmanned turnaround light and number, and the unmanned turnaround button and number are mapped by the equipment-number mapping table establishment unit through the corresponding turnaround area table, ESB table, PSD table, vehicle block table, unmanned turnaround button table, unmanned turnaround light table, and anti-flooding door table in the engineering data table. The corresponding names generate a corresponding mapping table according to the coding rules.

[0117] In the automatic generation device of the ZC configuration file provided by the embodiment of the present invention, the device-number mapping table establishment unit automatically obtains the mapping of the device and its number according to the original device data table for the generation of configuration data, which greatly saves the time and energy of the data configuration personnel, improves the efficiency of the ZC data configuration work, and improves the accuracy of the data due to the reduction of human participation.

[0118] The automatic generation device of the ZC configuration file in the embodiment of the present invention can be used to implement the technical solutions of the above-mentioned method embodiments. Its implementation principle and technical effects are similar and will not be repeated here.

[0119] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3As shown, the electronic device may include: a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the step flow provided in the above method embodiment.

[0120] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0121] On the other hand, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the step flow provided in the above method embodiment.

[0122] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0123] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0124] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for automatically generating a ZC configuration file, characterized in that: include: Import the original equipment data and store it in the initial database; Generate mapping relationships between various types of devices and mapping relationships between various devices and their numbers according to the original device data, and obtain ZC configuration data according to the above mapping relationships, wherein the ZC configuration data includes various types of device data tables; wherein the ZC configuration data complies with the configuration format requirements of the ZC system for configuration data; the ZC is a zone controller; Based on the ZC configuration data in the ZC configuration database, a corresponding ZC configuration file is generated.

2. The method for automatically generating a ZC configuration file according to claim 1, characterized in that: The generating of mapping relationships between various types of devices and mapping relationships between various devices and their numbers according to the original device data includes: In the original device data stored in the form of a list, the corresponding relationship between devices is obtained by searching the device information including the device name, and a device-device mapping table is established.

3. The method for automatically generating a ZC configuration file according to claim 1, characterized in that: The generating of mapping relationships between various types of devices and mapping relationships between various devices and their numbers according to the original device data includes: The devices are numbered according to the internal numbering rule to generate a corresponding device-number mapping table, wherein the internal numbering rule is "ZCID+CIID+device type+device number".

4. The method for automatically generating a ZC configuration file according to claim 2, characterized in that: The mapping relationship between the various types of equipment includes but is not limited to any one of the following or a combination thereof: mapping between logical sections and axle counting sections, mapping between track units and axle counting sections, mapping between each axle counter and the included turnouts, mapping between protection sections and signals, mapping between block link relationships, and mapping between blocks and attributes.

5. The method for automatically generating a ZC configuration file according to claim 3, characterized in that: The mapping relationship between the devices and their numbers includes but is not limited to any one of the following or a combination thereof: axle counter and number mapping, logical section and number mapping, block and number mapping, protection section and number mapping, signal machine and number mapping.

6. An automatic generation device for a ZC configuration file, characterized in that: include: Data import module, used to import original equipment data and store it in the initial database; A logic conversion module is used to generate mapping relationships between various types of devices and mapping relationships between various devices and their numbers according to the original device data, and obtain ZC configuration data according to the above mapping relationships, wherein the ZC configuration data includes various types of device data tables; wherein the ZC configuration data complies with the configuration format requirements of the ZC system for configuration data; ZC is a zone controller; The configuration file generation module is used to generate a corresponding ZC configuration file based on the ZC configuration data in the ZC configuration database.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method for automatically generating a ZC configuration file according to any one of claims 1 to 5 are implemented.

8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for automatically generating a ZC configuration file according to any one of claims 1 to 5 are implemented.