A method for generating an application data configuration file, a medium and an electronic device
By configuring scripts to automatically generate interlocking safety host application data configuration files, the problems of complex manual configuration and high error rate are solved, achieving efficient and accurate configuration file generation and ensuring stable equipment operation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CASCO SIGNAL LTD
- Filing Date
- 2023-12-22
- Publication Date
- 2026-06-30
AI Technical Summary
The existing process of generating data configuration files for interlocking safety host applications is complex, inefficient, and has a high error rate, mainly due to difficulties in manual configuration and lack of experience.
By automatically generating configuration files through configuration scripts, and relying on the correctness of the configuration scripts, human error is reduced, thus achieving automated configuration.
It improves the correctness of configuration files, reduces configuration errors, avoids the risk of device instability and downtime, and improves configuration efficiency.
Smart Images

Figure CN117785317B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of rail transit signaling technology, specifically to a method for automatically generating application data configuration files for interlocking safety hosts, as well as a computer-readable storage medium and electronic device thereof. Background Technology
[0002] During system initialization, the interlocking safety host needs to read the application data configuration file (CONFIG file) and initialize the maximum transmission volume of different data types in each cycle and the transmission rules for monitoring messages and alarm messages of different communication nodes based on the data in the application data configuration file. During runtime, the interlocking safety host sends messages from each node to external devices according to the application data configuration file.
[0003] However, currently, application data configuration files are all manually configured by designers, which has the following drawbacks:
[0004] First, the configuration is difficult. Calculating the maximum amount of data to be sent per cycle for different types of data is very complex, involving multiple configurations such as the system main cycle, the number of communication nodes, the length of application messages, and the amount of synchronized data. Manual calculation is very difficult and requires very strong personal skills to complete the relevant work.
[0005] Second, the configuration efficiency is low. There are many types and numbers of device nodes that communicate with the interlocking safety host, and the message sending rules of different nodes are often different. Designers have to manually configure these nodes individually, which is time-consuming and laborious.
[0006] Third, the error rate is high. The actual peripherals corresponding to the sub-nodes of different types of devices are quite complex. Due to the lack of experience of the programmers, it is easy to make mistakes in writing the configuration files. Incorrect configuration files may cause the devices to be unstable or even crash.
[0007] Therefore, the existing configuration file generation method needs to be improved.
[0008] It is understood that the above statements only provide background information related to the present invention and do not necessarily constitute prior art. Summary of the Invention
[0009] Based on the aforementioned technical problems, the purpose of this invention is to provide an automatic generation method for application data configuration files of interlocking safety hosts, as well as its computer-readable storage medium and electronic device. This method sets the message sending rules for different types of nodes through configuration scripts. The correctness of the generated configuration file depends only on the correctness of the configuration script, reducing configuration errors caused by human error and other factors, and helping to avoid configuration failures caused by human error.
[0010] To achieve the above objectives, the present invention is implemented through the following technical solution:
[0011] A method for generating an interlocking security host application data configuration file, comprising:
[0012] Read the configuration script and check its integrity;
[0013] Read the configuration data input file of the interlocking safety host application to be configured;
[0014] The input file is parsed to verify its integrity. The maximum amount of data sent per cycle and the maximum amount of security messages sent per cycle are calculated in conjunction with the configuration script. The maximum allowable amount of security data sent per cycle and the maximum allowable amount of maintenance data sent per cycle are obtained according to the configuration ratio.
[0015] Compare the maximum allowed amount of security data to be sent per cycle with the maximum amount of security messages to be sent per cycle. If the maximum allowed amount of security data to be sent per cycle is greater than the maximum amount of security messages to be sent per cycle, write the maximum allowed amount of security data to be sent per cycle into the configuration file.
[0016] The input file is parsed, and the maximum amount of maintenance data to be sent per cycle is calculated using the configuration script.
[0017] Compare the maximum allowed amount of maintenance data to be sent per cycle with the maximum amount of maintenance data to be sent per cycle. When the maximum allowed amount of maintenance data to be sent per cycle is greater than the maximum amount of maintenance data to be sent per cycle, write the monitoring message configuration and alarm message configuration of the corresponding node in the input file into the configuration file.
[0018] By completing the configuration of all configuration items in the input file based on the above steps, the configuration of the entire configuration file can be completed. Then, keep the configured configuration file and output the configuration result of each line and the log file.
[0019] Optionally, the configuration script includes script 1 and script 2. Script 1 contains a function to calculate the maximum amount of data to be sent per cycle, and script 2 contains a function to configure monitoring messages and alarm messages for different nodes.
[0020] Optionally, checking the integrity of the configuration script includes:
[0021] Check if the formula in script 1 for calculating the maximum amount of data sent per cycle is complete;
[0022] Check whether the configuration rules for monitoring messages and alarm messages of each node in script 2 are complete.
[0023] Optionally, the input file contains:
[0024] The following files are required: RSSPI files for target controllers, axle counting devices, train control devices, temporary station interlocking devices, and LEU devices; RSSPII files for operation display devices and wireless block devices; VSL files for onboard communication devices and ground communication devices; SCM files for onboard SACEM devices; VTL files for station interlocking codes; and TAB files for input file directories.
[0025] Optionally, the calculation of the maximum number of security messages sent per cycle specifically includes:
[0026] The RSSPI, RSSPII, VSL, and SCM files in the input files are parsed one by one. Based on the corresponding interface type, Boolean configuration, and calculation rules in script 1, the output message length of each interface is calculated. The lengths of all output messages are summed and multiplied by the multiplier in script 1 to obtain the maximum number of security messages sent per cycle.
[0027] Optionally, the calculation of the maximum amount of maintenance data to be sent per cycle specifically includes:
[0028] The interface type and interface number in the RSSPI file, RSSPII file, VSL file and SCM file in the input file are parsed one by one. The monitoring message configuration of the corresponding interface type is found in script 2, and the maximum periodic transmission volume of the relevant monitoring message is calculated.
[0029] The interface type and interface number in the RSSPI file, RSSPII file, VSL file and SCM file in the input file are parsed one by one. The alarm message configuration of the corresponding interface type is found in script 2, and the maximum periodic sending volume of the relevant alarm message is calculated.
[0030] The maximum number of monitoring messages sent per period and the maximum number of alarm messages sent per period are added together to obtain the maximum number of maintenance data sent per period.
[0031] Optionally, the maximum amount of data sent per cycle is the sum of the maximum allowed amount of security data sent per cycle and the maximum allowed amount of maintenance data sent per cycle;
[0032] Maximum allowed amount of security data to be sent per cycle = Maximum allowed amount of maintenance data to be sent per cycle * 2.
[0033] Optionally, when comparing the maximum allowed amount of security data to be sent per cycle and the maximum amount of security messages to be sent per cycle, if the maximum amount of security messages to be sent per cycle is greater than or equal to the maximum allowed amount of security data to be sent per cycle, then stop generating the configuration file and print the reason for the failure to generate the configuration file.
[0034] When comparing the maximum allowed amount of maintenance data to be sent per cycle with the maximum amount of maintenance data to be sent per cycle, if the maximum amount of maintenance data to be sent per cycle is greater than or equal to the maximum allowed amount of maintenance data to be sent per cycle, then stop generating the configuration file and print the reason for the failure.
[0035] Optionally, a computer-readable storage medium,
[0036] It stores a computer program, which, when executed by a processor, can implement the aforementioned method for generating the interlocking security host application data configuration file.
[0037] Optionally, an electronic device includes:
[0038] The processor and memory, wherein the memory stores a calculator program, which, when executed by the processor, enables the aforementioned method for generating the interlocking security host application data configuration file.
[0039] Compared with the prior art, the present invention has the following advantages:
[0040] In the present invention, an automatic generation method for application data configuration files of interlocking safety host, and its computer-readable storage medium and electronic device, the method sets the message sending rules for different types of nodes through configuration scripts. The correctness of the generated configuration file depends only on the correctness of the configuration script, reducing configuration errors caused by human error and other factors, and helping to avoid configuration failures caused by human error. Attached Figure Description
[0041] Figure 1 This is a schematic diagram of an automatic generation method for interlocking safety host application data configuration files according to the present invention;
[0042] Figure 2 This is a schematic diagram illustrating the calculation process for the maximum number of security messages sent per cycle according to the present invention. Detailed Implementation
[0043] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0044] like Figure 1 The diagram illustrates an automatic generation method for an interlocking security host application data configuration file according to the present invention. The method includes:
[0045] Step S1: Read the configuration script. In this embodiment, the configuration script includes script 1 and script 2. Script 1 contains a script for calculating the maximum amount of data sent per cycle, and script 2 contains a script for configuring monitoring messages and alarm messages for different nodes.
[0046] Furthermore, the method also includes: parsing and checking the integrity of the configuration script. In this embodiment, checking the integrity of the configuration script specifically includes: step S2, checking whether the formula for calculating the maximum amount of data sent per cycle in script 1 is complete; step S3, checking whether the configuration rules for monitoring messages and alarm messages of each node in script 2 are complete.
[0047] Furthermore, the method also includes: step S4, reading the interlocking safety host application configuration data input file to be configured. For example... Figure 1 As shown, in this embodiment, the input file includes: RSSPI files corresponding to the target controller, axle counting device, train control device, temporary station interlocking device and LEU device; RSSPII files corresponding to the operation display device and radio block device; VSL files corresponding to the onboard communication device and ground communication device; SCM files corresponding to the onboard SACEM device; VTL files corresponding to the station interlocking code position; and TAB files corresponding to the input file directory.
[0048] Furthermore, the method also includes: parsing the input file, verifying the integrity of the input file, and calculating the maximum amount of data sent per cycle and the maximum amount of security messages sent per cycle based on the parsed configuration script, and obtaining the maximum allowed amount of security data sent per cycle and the maximum allowed amount of maintenance data sent per cycle according to the configuration ratio. Specifically, it includes:
[0049] Step S5: Parse the TAB file in the input file to confirm the integrity of the interlocking safety host application configuration data input file, that is, to ensure that the input files of each peripheral device of the device have been fully loaded.
[0050] Step S6: Parse the TAB file in the input file, confirm the main working cycle of the system and the calculation rules in script 1, calculate the maximum amount of data sent per cycle, and obtain the maximum allowable amount of security data sent per cycle and the maximum allowable amount of maintenance data sent per cycle according to the configuration ratio.
[0051] The configuration ratio is an empirical value, which is usually fixed. Specifically, the maximum amount of data sent per cycle is the sum of the maximum allowed amount of security data sent per cycle and the maximum allowed amount of maintenance data sent per cycle. The maximum allowed amount of security data sent per cycle = the maximum allowed amount of maintenance data sent per cycle * 2.
[0052] Step S7, calculate the maximum number of security messages sent per cycle, such as... Figure 2As shown, it specifically includes: parsing the RSSPI file, RSSPII file, VSL file and SCM file in the input file one by one; calculating the output message length of each interface according to the corresponding interface type, Boolean configuration and calculation rules in script 1; summing up all output message lengths and multiplying them by the multiplier in script 1 to obtain the maximum number of security messages sent per cycle.
[0053] For example, in one embodiment, the calculation rule in script 1 includes: Total amount of safety data (in bytes), i.e., maximum amount of safety messages sent = Boolean synchronization data + drive acquisition synchronization data + MMI synchronization data + SACEM synchronization data + 8. The formula for calculating the total amount of Boolean synchronization data (in bytes) is: 8 + number of time variables (Boolean) / 8 + number of time variables (Boolean) * 4 + number of self-locking variables (Boolean) / 8 + 4. Note: If the number of time variables (Boolean) / 8 is not 0, an additional 1 needs to be added; if the number of self-locking variables (Boolean) / 8 is not 0, an additional 1 needs to be added. The formula for calculating the total amount of synchronization data of the drive acquisition alarm module (in bytes), i.e., the total amount of drive acquisition synchronization data, is: 16 + number of drive acquisition nodes * 10 + (9 * number of all drive acquisition code groups + 5 * number of all front and rear contact acquisition code groups + 5 * number of all turnout acquisition code groups) + 4. Note: The drive acquisition code, front and rear contact code, and turnout acquisition code are all configured in the drive acquisition alarm configuration file. MMI synchronization data length (in bytes): 17968+4. SACEM synchronization data length (in bytes): 6663+4.
[0054] Furthermore, the method also includes: step S8, comparing the maximum allowed amount of security data to be sent per cycle with the maximum amount of security messages to be sent per cycle; if the maximum allowed amount of security data to be sent per cycle is greater than the maximum amount of security messages to be sent per cycle, proceed to step S9; step S9, writing the maximum allowed amount of security data to be sent per cycle into a configuration file for use in flow control. This method ensures that the security data generated in each cycle is sent out in a timely manner during system operation.
[0055] On the other hand, when comparing the maximum allowed amount of security data to be sent per cycle with the maximum amount of security messages to be sent per cycle, if the maximum amount of security messages to be sent per cycle is greater than or equal to the maximum allowed amount of security data to be sent per cycle, it means that the security messages generated in the current cycle may not be able to be sent in the current cycle. In this case, the generation of the configuration file will be stopped, an alarm will be automatically triggered, and the reason for the generation failure will be printed.
[0056] Furthermore, the method also includes: parsing the input file and calculating the maximum amount of maintenance data to be sent per cycle in conjunction with the configuration script. Specifically, the calculation of the maximum amount of maintenance data to be sent per cycle includes:
[0057] Step S10: Analyze the interface type and interface number in the RSSPI file, RSSPII file, VSL file and SCM file in the input file one by one, find the monitoring message configuration of the corresponding interface type from script 2, and calculate the maximum periodic transmission volume of the relevant monitoring message.
[0058] Step S11: Analyze the interface type and interface number in the RSSPI file, RSSPII file, VSL file and SCM file in the input file one by one, find the alarm message configuration of the corresponding interface type from script 2, and calculate the maximum periodic transmission volume of the relevant alarm messages.
[0059] Step S12: Add the maximum number of monitoring messages sent per period and the maximum number of alarm messages sent per period to obtain the maximum number of maintenance data sent per period.
[0060] Furthermore, the method also includes: step S13, comparing the maximum allowed amount of maintenance data to be sent per cycle with the maximum amount of maintenance data to be sent per cycle; if the maximum allowed amount of maintenance data to be sent per cycle is greater than the maximum amount of maintenance data to be sent per cycle, proceed to step S14; step S14, writing the monitoring message configuration and alarm message configuration of the corresponding node in the input file into the configuration file so that it can be used for flow control. This method can ensure that the maintenance data generated in each cycle can be sent out in a timely manner during system operation.
[0061] On the other hand, when comparing the maximum allowed amount of maintenance data to be sent per cycle with the maximum amount of maintenance data to be sent per cycle, if the maximum amount of maintenance data to be sent per cycle is greater than or equal to the maximum allowed amount of maintenance data to be sent per cycle, it means that the maintenance message generated in the current cycle may not be able to be sent in the current cycle. In this case, the generation of the configuration file will be stopped, an alarm will be automatically triggered, and the reason for the failure to generate the configuration file will be printed.
[0062] Furthermore, the method also includes: step S15, completing the configuration of all configuration items in the input file based on the above steps, thus completing the configuration of the entire configuration file, i.e., the CONFIG file, and then keeping the configured configuration file, outputting the configuration result of each line and the log file.
[0063] As described above, in the method for generating an interlocking safety host application data configuration file according to the present invention, the configuration of each line in the CONFIG file is implemented according to the configuration rules in the configuration script. This method processes the data in the input file through operations such as calculation, comparison, and extraction to obtain the required configuration data, which is then output to a specified location in the CONFIG file. Furthermore, the configuration script used in this method is written by experienced signal personnel and improved based on project implementation experience. Generating specific configurations through the aforementioned configuration script avoids configuration errors caused by insufficient personnel experience. It should be noted that the configuration script is universal; for different stations, this method can directly output a configured CONFIG file by reading, parsing, and executing the configuration script, thereby achieving automated configuration of the CONFIG file.
[0064] Based on the same inventive concept, the present invention also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it can implement the aforementioned method for generating interlocking safety host application data configuration files, thereby completing the automatic configuration of interlocking safety host application configuration data.
[0065] Based on the same inventive concept, the present invention also provides an electronic device, the electronic device comprising: a processor and a memory, wherein the memory stores a calculator program, and when the calculator program is executed by the processor, it can implement the aforementioned method for generating interlocking safety host application data configuration files, so as to complete the automatic configuration of interlocking safety host application configuration data.
[0066] In summary, the present invention provides an automatic generation method for application data configuration files of interlocking safety hosts, as well as its computer-readable storage medium and electronic device. This method sets the message sending rules for different types of nodes through configuration scripts. The correctness of the generated configuration file depends only on the correctness of the configuration scripts, reducing configuration errors caused by human error and other factors, and helping to avoid configuration failures caused by human error.
[0067] Furthermore, this method automatically calculates the maximum amount of data to be sent per cycle for different types of data based on the input file and configuration script. When there are too many nodes or too much data in the input file, an alarm is automatically triggered to prevent the device from becoming unstable or even crashing due to configuration errors.
[0068] Furthermore, the CONFIG file generated by this method can be directly used on the equipment without manual modification by signal staff, thereby greatly reducing the error rate.
[0069] Although the present invention has been described in detail through the preferred embodiments above, it should be understood that the above description should not be considered as a limitation of the present invention. Various modifications and substitutions to the present invention will be apparent to those skilled in the art after reading the above description. Therefore, the scope of protection of the present invention should be defined by the appended claims.
Claims
1. A method for generating an interlocked safety host application data configuration file, characterized by, Include: Read the configuration script and check its integrity; Read the configuration data input file of the interlocking safety host application to be configured; The input file is parsed to verify its integrity. The maximum amount of data sent per cycle and the maximum amount of security messages sent per cycle are calculated in conjunction with the configuration script. The maximum allowable amount of security data sent per cycle and the maximum allowable amount of maintenance data sent per cycle are obtained according to the configuration ratio. Compare the maximum allowed amount of security data to be sent per cycle with the maximum amount of security messages to be sent per cycle. If the maximum allowed amount of security data to be sent per cycle is greater than the maximum amount of security messages to be sent per cycle, write the maximum allowed amount of security data to be sent per cycle into the configuration file. The input file is parsed, and the maximum amount of maintenance data to be sent per cycle is calculated using the configuration script. Compare the maximum allowed amount of maintenance data to be sent per cycle with the maximum amount of maintenance data to be sent per cycle. When the maximum allowed amount of maintenance data to be sent per cycle is greater than the maximum amount of maintenance data to be sent per cycle, write the monitoring message configuration and alarm message configuration of the corresponding node in the input file into the configuration file. By completing the configuration of all configuration items in the input file based on the above steps, the entire configuration file can be configured. Then, keep the configured configuration file and output the configuration result of each line and the log file.
2. The method for generating the interlocking safety host application data configuration file as described in claim 1, characterized in that, The configuration script includes script 1 and script 2. Script 1 contains a function to calculate the maximum amount of data to be sent per cycle, and script 2 contains a function to configure the monitoring messages and alarm messages for different nodes.
3. The method for generating the interlocking safety host application data configuration file as described in claim 2, characterized in that, Checking the integrity of the configuration script includes: Check if the formula in script 1 for calculating the maximum amount of data sent per cycle is complete; Check whether the configuration rules for monitoring messages and alarm messages of each node in script 2 are complete.
4. The method for generating the interlocking safety host application data configuration file as described in claim 2, characterized in that, The input file contains: The following files are required: RSSPI files for target controllers, axle counting devices, train control devices, temporary station interlocking devices, and LEU devices; RSSPII files for operation display devices and wireless block devices; VSL files for onboard communication devices and ground communication devices; SCM files for onboard SACEM devices; VTL files for station interlocking codes; and TAB files for input file directories.
5. The method for generating the interlocking safety host application data configuration file as described in claim 4, characterized in that, The calculation of the maximum number of security messages sent per cycle specifically includes: The RSSPI, RSSPII, VSL, and SCM files in the input files are parsed one by one. Based on the corresponding interface type, Boolean configuration, and calculation rules in script 1, the output message length of each interface is calculated. The lengths of all output messages are summed and multiplied by the multiplier in script 1 to obtain the maximum number of security messages sent per cycle.
6. The method for generating the interlocking safety host application data configuration file as described in claim 4, characterized in that, The calculation of the maximum amount of maintenance data to be sent per cycle specifically includes: The interface type and interface number in the RSSPI file, RSSPII file, VSL file and SCM file in the input file are parsed one by one. The monitoring message configuration of the corresponding interface type is found in script 2, and the maximum periodic transmission volume of the relevant monitoring message is calculated. The interface type and interface number in the RSSPI file, RSSPII file, VSL file and SCM file in the input file are parsed one by one. The alarm message configuration of the corresponding interface type is found in script 2, and the maximum periodic sending volume of the relevant alarm message is calculated. The maximum number of monitoring messages sent per period and the maximum number of alarm messages sent per period are added together to obtain the maximum number of maintenance data sent per period.
7. The method for generating the interlocking safety host application data configuration file as described in claim 1, characterized in that, The maximum amount of data to be sent per cycle is the sum of the maximum allowable amount of security data to be sent per cycle and the maximum allowable amount of maintenance data to be sent per cycle; Maximum allowed amount of security data to be sent per cycle = Maximum allowed amount of maintenance data to be sent per cycle * 2.
8. The method for generating the interlocking safety host application data configuration file as described in claim 1, characterized in that, When comparing the maximum allowed amount of security data to be sent per cycle with the maximum amount of security messages to be sent per cycle, if the maximum amount of security messages to be sent per cycle is greater than or equal to the maximum allowed amount of security data to be sent per cycle, then stop generating the configuration file, automatically alarm, and print the reason for the failure to generate the configuration file. When comparing the maximum allowed amount of maintenance data to be sent per cycle with the maximum amount of maintenance data to be sent per cycle, if the maximum amount of maintenance data to be sent per cycle is greater than or equal to the maximum allowed amount of maintenance data to be sent per cycle, the generation of the configuration file will be stopped, an alarm will be automatically triggered, and the reason for the failure to generate the configuration file will be printed.
9. A computer-readable storage medium, characterized in that, It stores a computer program, which, when executed by a processor, can implement the method for generating the interlocking security host application data configuration file as described in any one of claims 1 to 8.
10. An electronic device, characterized in that, include: The processor and memory, wherein the memory stores a calculator program, which, when executed by the processor, enables the generation method of the interlocking security host application data configuration file as described in any one of claims 1 to 8.