Ground ATP system software upgrade method and device

By adding newly added data blocks to the extensible array of data configuration files of the ground ATP system and parsing and saving, the problem of manual modification and testing of the software upgrade of the ground ATP system is solved, and automatic adaptation and decoupling are achieved, improving Upgrade efficiency and scalability.

CN112099824BActive Publication Date: 2024-12-27CRSC URBAN RAIL TRANSIT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010900622.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-31
Publication Date
2024-12-27
Estimated Expiration
2040-08-31

AI Technical Summary

Technical Problem

The software upgrade of the ground ATP system requires manual modification and testing of the configuration data of each centralized station, which is huge and time-consuming.

Method used

Automatic adaptation and decoupling are achieved by adding newly added data blocks to the extensible array of data configuration files of the ground ATP system, parsing and saving them into global variables inside the software, and realizing automatic adaptation and decoupling, reducing manual modification and Test workload.

Benefits of technology

It improves the efficiency of software upgrade of ground ATP system, reduces costs, and enhances the scalability and adaptability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112099824B_ABST
    Figure CN112099824B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method and device for upgrading the software of a ground ATP system, the method comprising: adding a data block of a new function of the software in the ground ATP system used by a rail transit centralized station to an expandable array of a data configuration file of the ground ATP system; parsing the data block of the new function in the expandable array, and saving the parsed data block of the new function to a global variable inside the software, so that the business logic of the new function in the software can perform logical operations according to the data block of the new function in the global variable to realize the new function. The embodiment of the present invention realizes automatic adaptation, parsing and application of the configuration data of each centralized station, so that the ground ATP system software upgrade realizes the new function and improves the scalability of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of ground ATP system, and in particular to a ground ATP system software upgrade method and device. Background Art

[0002] With the rapid development of urban rail transit, ground ATP (Automatic Train Protection) systems are widely used in urban rail signal systems. The urban rail signal ground ATP system includes ground ATP system software and ground configuration data, and a line is often divided into multiple centralized areas and managed by the ground ATP system in sections. At present, urban rail signal systems mostly use the method of managing and publishing system software and configuration data separately for product integration. After the system software is released, it is put into operation on multiple urban rail lines. The specific process is as follows: Figure 1 shown.

[0003] After the ground ATP system software product is put into operation, there are two main reasons why the software needs to be modified, namely, bugs found during operation and new user needs. When the above two situations occur at the same time, it is necessary not only to fix the software bugs, but also to modify the software to implement new functions according to new user needs. In order to meet the new needs of users, the ground ATP software often needs to add some data structures to implement its new functions according to the new needs. For example, when the subway operating line was opened, there was no automated vehicle depot function and anti-flood door function. After a period of stable operation, the above functions need to be added according to the owner's requirements. The ground ATP software is modified, new functions are added, and it is re-released for online use after passing testing, confirmation and safety certification. The software schematics before and after the modification are shown in the figure. Figure 2 shown.

[0004] The system software before modification, that is, the software in online operation, has security issues, so each centralized station on the line needs to use the modified system software for operation upgrade and maintenance. At this time, the software configuration data of each centralized station running stably on the line also needs to be modified and upgraded. For example, the static line configuration data of each centralized station needs to add the automated vehicle depot configuration data table and the anti-flooding door static data configuration table to assist the software in realizing new functions.

[0005] Since each line is divided into multiple centralized stations for management, each centralized station has corresponding data configuration. During the ground ATP system software upgrade process, the configuration data of each centralized station needs to be manually modified and tested, which is a huge workload and time-consuming and labor-intensive. Summary of the invention

[0006] The embodiment of the present invention provides a ground ATP system software upgrade method and device, which are used to solve the defects in the prior art that the ground ATP system software upgrade requires manual modification and testing of the configuration data of each centralized station, which is time-consuming and labor-intensive, and realizes automatic adaptation, parsing and application of the configuration data of each centralized station, so that the ground ATP system software upgrade can realize new functions and improve the scalability of the system.

[0007] An embodiment of the present invention provides a method for upgrading ground ATP system software, comprising:

[0008] Adding data blocks of newly added functions of software in the ground ATP system used by the rail transit centralized station to the expandable array of data configuration files of the ground ATP system;

[0009] The data blocks of the newly added functions in the expandable array are parsed, and the parsed data blocks of the newly added functions are saved in the global variables inside the software, so that the business logic of the newly added functions in the software can perform logical operations according to the data blocks of the newly added functions in the global variables to implement the newly added functions.

[0010] The method for upgrading ground ATP system software according to an embodiment of the present invention further includes:

[0011] The configuration options in the data structure of the expandable array in the software are updated, and the definition and attributes of the data block of the newly added function are added to the data structure of the expandable array, and the modified data structure is obtained so that the software can perform logical operations on the data block according to the modified data structure to implement the newly added function.

[0012] According to a ground ATP system software upgrade method of an embodiment of the present invention, the configuration options include a CRC checksum, size, number of data blocks, data version, and version descriptor of the expandable array;

[0013] The definition of the data block includes a CRC checksum and a size of the data block;

[0014] The attributes of the data block include the name, type and offset of the data block.

[0015] According to a method for upgrading ground ATP system software according to an embodiment of the present invention, the step of parsing the data block of the newly added function in the expandable array specifically includes:

[0016] Performing CRC check on the expandable array using the CRC check code of the expandable array;

[0017] If the expandable array passes the check, performing a CRC check on the data block of the newly added function using the CRC check code of the data block of the newly added function;

[0018] If the data block of the newly added function passes the CRC check, the data block of the newly added function in the expandable array is parsed.

[0019] According to an embodiment of the present invention, the method for upgrading the ground ATP system software further includes, after the step of adding the data block of the newly added function of the software in the ground ATP system to the expandable array of the data configuration file of the ground ATP system:

[0020] If it is detected that the rail transit centralized station does not have equipment to implement the newly added function, the value of the data block of the newly added function in the expandable array is set to a default value; wherein, the business logic of the new function in the software does not perform logical operations when the value of the data block of the new function is the default value.

[0021] The embodiment of the present invention also provides a ground ATP system software upgrade device, including:

[0022] An adding module, used to add a data block of a newly added function of the software in the ground ATP system used by the rail transit centralized station to an expandable array of data configuration files of the ground ATP system;

[0023] The parsing module is used to parse the data blocks of the new functions in the expandable array, and save the parsed data blocks of the new functions into the global variables inside the software, so that the business logic of the new functions in the software can perform logical operations according to the data blocks of the new functions in the global variables to realize the new functions.

[0024] The ground ATP system software upgrade device according to an embodiment of the present invention further includes a data expansion module for:

[0025] The configuration options in the data structure of the expandable array in the software are updated, and the definition and attributes of the data block of the newly added function are added to the data structure of the expandable array, and the modified data structure is obtained so that the software can perform logical operations on the data block according to the modified data structure to implement the newly added function.

[0026] According to a ground ATP system software upgrade device of an embodiment of the present invention, the configuration options include a CRC checksum, size, number of data blocks, data version, and version descriptor of the expandable array;

[0027] The definition of the data block includes a CRC checksum and a size of the data block;

[0028] The attributes of the data block include the name, type and offset of the data block.

[0029] An embodiment of the present invention also provides an electronic device, including 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 any of the above-mentioned ground ATP system software upgrade methods are implemented.

[0030] An embodiment of the present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the ground ATP system software upgrade method as described in any one of the above-mentioned methods are implemented.

[0031] An embodiment of the present invention provides a method and device for upgrading ground ATP system software. The method, on the one hand, adds data blocks of new functions of software in the ground ATP system to an expandable array of a data configuration file of the ground ATP system, automatically modifies the data configuration file, and then adapts the ground ATP system software with the new functions, thereby reducing workload, improving the efficiency of ATP system software upgrade, and reducing costs; on the other hand, parses the data blocks of the new functions in the expandable array, and saves the parsed data blocks of the new functions into global variables inside the software, thereby realizing decoupling and separation of the system software and the data blocks of the new functions in the expandable array, thereby improving the scalability of data configuration and the adaptability of software. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] 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.

[0033] Figure 1 It is a flow chart of ground ATP system software and configuration data publishing integration in the prior art;

[0034] Figure 2 It is a flowchart of the software upgrade of the ground ATP system in the prior art;

[0035] Figure 3 It is a flowchart of a method for upgrading ground ATP system software provided by an embodiment of the present invention;

[0036] Figure 4 It is a data structure diagram of an expandable array in a ground ATP system software upgrade method provided by an embodiment of the present invention;

[0037] Figure 5It is a schematic diagram of the data structure of a data block in an expandable array in a ground ATP system software upgrade method provided by an embodiment of the present invention;

[0038] Figure 6 It is a complete flow chart of a ground ATP system software upgrade method provided by an embodiment of the present invention;

[0039] Figure 7 It is a structural diagram of a ground ATP system software upgrade device provided by an embodiment of the present invention;

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

[0041] 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.

[0042] Combine the following Figure 3 The method for upgrading the ground ATP system software according to an embodiment of the present invention is described, comprising: S301, adding a data block of a newly added function of the software in the ground ATP system used by a rail transit centralized station to an expandable array of a data configuration file of the ground ATP system;

[0043] Among them, the rail transit in this embodiment can be subway, light rail and tram, etc. In order to ensure the safety of train operation and punctual arrival at the station, a train control system is required to control the running direction and speed of the train. The train control system includes ATP (Automatic Train Protection) system, ATS (Automatic Train Supervision) system and computer interlocking subsystem. Among them, the ATP system is a key equipment to ensure the safe operation of the train and realize overspeed protection.

[0044] Each line in rail transit contains multiple centralized stations, which are managed in sections through the ATP system. The ATP system needs to be updated according to the actual needs of each centralized station. When a centralized station adds new functions, the ATP system needs to be updated synchronously. Among them, the ATP system contains ground ATP system software and data configuration files. In order to enable the ground ATP system software to implement new functions, it is necessary to add data blocks of new functions to the expandable array of the data configuration file of the ground ATP system. For example, when the subway operation line was opened, there was no automated vehicle depot function and anti-flooding door function. After a period of stable operation, the above functions need to be added according to the owner's requirements. In order to realize the new requirements of automated vehicle depot function and anti-flooding door function, the business logic for implementing the new functions is added to the ground ATP system software, and the bugs in the software can also be handled. At the same time, it is necessary to add two data blocks of new functions to the expandable array of the data configuration file to adapt to the ground ATP system software with new functions, and assist the ATP system software to realize new functions.

[0045] In this embodiment, the data configuration file of the ground ATP system adopts an expandable array. When new functional requirements are added, the data blocks of the new functions are directly added to the expandable array. There is no need to re-set a new configuration file to adapt the ground ATP system software to the new functions, which effectively reduces the workload.

[0046] S302, parsing the data blocks of the new functions in the expandable array, and saving the parsed data blocks of the new functions into global variables within the software, so that the business logic of the new functions in the software can perform logical operations according to the data blocks of the new functions in the global variables to implement the new functions.

[0047] When a customer has a new function requirement, the data information of each new function is stored in the corresponding data block. The data block of the new function is inserted into the expandable array, and then the new data block in the expandable array is parsed, and the parsed new function related information is stored in the global variables inside the ATP software, so as to realize the decoupling and separation of the system software and the configuration data, and improve the scalability of the data configuration and the adaptability of the system software. Among them, the global variable is a variable defined according to all the data blocks in the expandable array. The data block of the new function parsed in the global variable is used as the input of the business logic of the new function, and the business logic of the new function is used to perform logical operations on the data block of the new function to realize the new function.

[0048] This embodiment, on the one hand, adds the data blocks of the new functions of the software in the ground ATP system to the expandable array of the data configuration file of the ground ATP system, automatically modifies the data configuration file, and then adapts the ground ATP system software with the new functions, thereby reducing the workload, improving the efficiency of ATP system software upgrades, and reducing costs; on the other hand, the data blocks of the new functions in the expandable array are parsed, and the parsed data blocks of the new functions are saved in the global variables inside the software, thereby realizing the decoupling and separation of the system software and the data blocks of the new functions in the expandable array, thereby improving the scalability of data configuration and the adaptability of software.

[0049] Based on the above embodiment, this embodiment also includes: updating the configuration options in the data structure of the expandable array in the software, and adding the definition and attributes of the data block of the new function to the data structure of the expandable array, obtaining the modified data structure, so that the software can perform logical operations on the data block according to the modified data structure to implement the new function.

[0050] The data structure of the expandable array defined in the ground ATP system software includes the definition and attributes of each data block in the expandable array. When there is a need for a new function, not only is the new function data block added to the expandable array, but in order to make the ATP system software adapt to the new function data block, the definition and attributes of the new function data block also need to be added to the expandable array data structure in the ATP system software.

[0051] After modifying the data structure in the ATP system software, the ATP system software performs logical operations based on the data blocks in the modified data structure to implement the corresponding functions. Since the modified data structure contains the definition and attributes of the data blocks of the newly added functions, the business logic of the newly added functions in the ATP system software performs logical operations based on the definition and attributes of the data blocks of the newly added functions in the modified data structure to implement the newly added functions.

[0052] Based on the above embodiments, the configuration options in this embodiment include the CRC check code, size, number of data blocks, data version and version descriptor of the expandable array; the definition of the data block includes the CRC check code and size of the data block; the attributes of the data block include the name, type and offset of the data block.

[0053] Among them, CRC (Cyclic Redundancy Check) is a channel coding technology that generates a short, fixed-bit check code based on data such as network packets or computer files. It is mainly used to detect or check errors that may occur after data transmission or storage. The offset is the distance between the actual address of the storage unit and the segment address of the segment where it is located.

[0054] When there is a demand for new functions, data blocks of the new functions will be added to the extensible array. If the new functions need to be used, the data version and version descriptor of the extensible array in the extensible array data structure of the ATP system software need to be defined as the version and version descriptor of the extensible array to which the new function data blocks are added. Each time a data block of a new function is added to the extensible array in the data configuration file, a corresponding data version and version descriptor will be generated. In order to use the extensible array with the new function data blocks added, the ATP system software also needs to be modified accordingly, that is, the definition and attributes of the new function data blocks and the business logic of the new functions are added to the extensible array data structure of the ATP system software, and the bugs existing in the ATP system software are modified. Therefore, the extensible array of each data version is adapted to the corresponding version of the ATP system software. The data version and version descriptor in the extensible array data structure of the ATP system software are defined according to the data version of the extensible array used by the ATP system software. The data structure diagram of the extensible array in the ATP system software is shown as follows. Figure 4 As shown, the structural diagram of the data block is as follows Figure 5 shown.

[0055] On the basis of the above-mentioned embodiment, the step of parsing the data block of the newly added function in the expandable array in this embodiment specifically includes: using the CRC check code of the expandable array to perform CRC check on the expandable array; if the expandable array passes the check, using the CRC check code of the data block of the newly added function to perform CRC check on the data block of the newly added function; if the data block of the newly added function passes the CRC check, parsing the data block of the newly added function in the expandable array.

[0056] Specifically, during the data transmission process, it is easy for one or more frames transmitted on the data link to be destroyed due to noise or unsatisfactory transmission characteristics, so that the receiving end receives erroneous data, such as a bit code in the data sequence changes from 0 to 1 during the transmission process. In order to ensure the security of the expandable array, the expandable array is subjected to CRC verification before the data block of the newly added function is parsed. When the CRC verification is passed, the data block of the newly added function in the expandable array is further subjected to CRC verification to ensure the security of the data block of the newly added function. If the verification is passed, the data block of the newly added function in the expandable array is parsed. In addition to the CRC verification of the data block of the newly added function, the CRC verification can also be performed on each data block in the expandable array. When all data blocks pass the verification, each data block is re-parsed, and the data structure of the expandable array in the ATP system software is redefined according to the re-parsed data blocks, thereby ensuring the security of each data block.

[0057] This embodiment parses the data block of the newly added function in the expandable array only when both CRC checks are passed, realizes the newly added function, and ensures the security and reliability of the data. In addition, the CRC error detection capability is extremely strong, and the detection cost is low, which can ensure the correctness and transmission efficiency of the transmitted data while spending a small detection cost.

[0058] On the basis of the above-mentioned embodiment, after the step of adding the data block of the new function of the software in the ground ATP system to the expandable array of the data configuration file of the ground ATP system, the present embodiment also includes: if it is detected that there is no equipment to implement the new function in the rail transit centralized station, the value of the data block of the new function in the expandable array is set to a default value; wherein, the business logic of the new function in the software does not perform logical operations when the value of the data block of the new function is the default value.

[0059] Specifically, each line in rail transit contains multiple centralized stations, and different management modes are set for each centralized station according to actual needs. For example, some centralized stations have added automated vehicle sections and anti-flooding door equipment according to user needs, but other centralized stations do not have anti-flooding doors and automated vehicle section equipment. In order to make the upgraded ground ATP system software adapt to the user needs of different centralized stations, it is also necessary to consider the situation where there is no equipment to implement the newly added functions in the rail transit centralized station. When this embodiment detects that there is no equipment to implement the newly added function in the rail transit centralized station, in order to adapt to the ATP system software with the newly added function, the value of the data block of the newly added function in the expandable array is set to the default value. When the value of the data block of the newly added function is not the default value, the business logic of the newly added function in the ATP system software performs logical operations according to the data block of the newly added function. When the value of the data block of the newly added function is the default value, the business logic of the newly added function does not perform logical operations, does not introduce security risks, and improves security.

[0060] When the ground ATP system software of the rail transit line is upgraded, the data configuration file of the ground ATP system can be automatically modified and tested according to the actual situation and needs of the centralized station to realize new functions. For centralized stations without new functions, the upgraded software can also be used by setting the values ​​of the data blocks of the newly added functions to the default values. The upgraded software overcomes the bugs existing in the previous software. It not only saves the labor cost caused by manual modification of data configuration, but also improves the adaptability of the software and reduces the security risks caused by manual modification of configuration data.

[0061] The complete flow chart of the ground ATP system software upgrade method is as follows: Figure 6 As shown, the specific steps are:

[0062] Step 1: define the data structure of the expandable array in the ground ATP system software. The data structure includes the CRC checksum of the entire expandable array, array length, number of data blocks, data version, data version description and data block definition, etc.;

[0063] Step 2, defining a global variable for storing all data blocks in the expandable array in the ground ATP system software;

[0064] Step 3: Define an expandable array in the data configuration file and increase the data configuration of the data block according to the new requirements;

[0065] Step 4: Perform power-on initialization in the first cycle of software startup to initialize the global variables of all data blocks to safe side values ​​or default invalid values;

[0066] Step 5: After initialization, read the expandable array in the static configuration data;

[0067] Step 6, performing CRC check on the expandable array in the static configuration data. If the check passes, performing CRC check and data analysis on each data block in the expandable array according to the actual number of data blocks and data block type. If the CRC check fails, an alarm is issued and security side processing is taken;

[0068] Step 7, save the parsed data block data into the global variables inside the software;

[0069] Step 8, end of reading the expandable array;

[0070] Step 9, perform logical operations based on the data block information stored in the global variables within the software to implement related functions.

[0071] The following is a description of a ground ATP system software upgrade device provided in an embodiment of the present invention. The ground ATP system software upgrade device described below and the ground ATP system software upgrade method described above can be referenced to each other.

[0072] like Figure 7 As shown, the ground ATP system software upgrade device provided in this embodiment includes an adding module 701 and a parsing module 702;

[0073] The adding module 701 is used to add the data block of the newly added function of the software in the ground ATP system used by the rail transit centralized station to the expandable array of the data configuration file of the ground ATP system;

[0074] Each line in rail transit contains multiple centralized stations, which are managed in sections through the ATP system. The ATP system needs to be updated according to the actual needs of each centralized station. When a centralized station adds new functions, the ATP system needs to be updated synchronously. Among them, the ATP system contains ground ATP system software and data configuration files. In order to enable the ground ATP system software to implement new functions, it is necessary to add data blocks of new functions to the expandable array of the data configuration file of the ground ATP system. In order to realize the new requirements of automated vehicle depot functions and flood prevention door functions, business logic for implementing new functions is added to the ground ATP system software, and bugs in the software can also be handled. At the same time, it is necessary to add two data blocks of new functions to the expandable array of the data configuration file to adapt to the ground ATP system software with new functions, and assist the ATP system software to realize new functions.

[0075] In this embodiment, the data configuration file of the ground ATP system adopts an expandable array. When new functional requirements are added, the data blocks of the new functions are directly added to the expandable array. There is no need to re-set a new configuration file to adapt the ground ATP system software to the new functions, which effectively reduces the workload.

[0076] The parsing module 702 is used to parse the data blocks of the new functions in the expandable array, and save the parsed data blocks of the new functions into global variables inside the software, so that the business logic of the new functions in the software can perform logical operations based on the data blocks of the new functions in the global variables to implement the new functions.

[0077] When a customer has a new function requirement, the data information of each new function is stored in the corresponding data block. The data block of the new function is inserted into the expandable array, and then the new data block in the expandable array is parsed, and the parsed new function related information is stored in the global variables inside the ATP software, so as to realize the decoupling and separation of the system software and the configuration data, and improve the scalability of the data configuration and the adaptability of the system software. Among them, the global variable is a variable defined according to all the data blocks in the expandable array. The data block of the new function parsed in the global variable is used as the input of the business logic of the new function, and the business logic of the new function is used to perform logical operations on the data block of the new function to realize the new function.

[0078] This embodiment, on the one hand, adds the data blocks of the new functions of the software in the ground ATP system to the expandable array of the data configuration file of the ground ATP system, automatically modifies the data configuration file, and then adapts the ground ATP system software with the new functions, thereby reducing the workload, improving the efficiency of ATP system software upgrades, and reducing costs; on the other hand, the data blocks of the new functions in the expandable array are parsed, and the parsed data blocks of the new functions are saved in the global variables inside the software, thereby realizing the decoupling and separation of the system software and the data blocks of the new functions in the expandable array, thereby improving the scalability of data configuration and the adaptability of software.

[0079] Based on the above embodiment, this embodiment also includes a data expansion module, which is used to: update the configuration options in the data structure of the expandable array in the software, and add the definition and attributes of the data block of the new function to the data structure of the expandable array, and obtain the modified data structure so that the software can perform logical operations on the data block according to the modified data structure to implement the new function.

[0080] Based on the above embodiments, the configuration options in this embodiment include the CRC check code, size, number of data blocks, data version and version descriptor of the expandable array; the definition of the data block includes the CRC check code and size of the data block; the attributes of the data block include the name, type and offset of the data block.

[0081] On the basis of the above-mentioned embodiment, the parsing module in this embodiment is specifically used for: using the CRC check code of the expandable array to perform CRC check on the expandable array; if the expandable array passes the check, using the CRC check code of the data block of the newly added function to perform CRC check on the data block of the newly added function; if the data block of the newly added function passes the CRC check, parsing the data block of the newly added function in the expandable array.

[0082] On the basis of the above embodiment, the present embodiment also includes a setting module, which is used to set the value of the data block of the new function in the expandable array to a default value if it is detected that there is no equipment to implement the new function in the rail transit centralized station; wherein, the business logic of the new function in the software does not perform logical operations when the value of the data block of the new function is the default value.

[0083] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8As shown, the electronic device may include: a processor 801, a communications interface 802, a memory 803 and a communication bus 804, wherein the processor 801, the communications interface 802 and the memory 803 communicate with each other through the communication bus 804. The processor 801 may call the logic instructions in the memory 803 to execute the ground ATP system software upgrade method, which includes: adding the data blocks of the new functions of the software in the ground ATP system used by the rail transit centralized station to the expandable array of the data configuration file of the ground ATP system; parsing the data blocks of the new functions in the expandable array, and saving the parsed data blocks of the new functions to the global variables inside the software, so that the business logic of the new functions in the software performs logical operations according to the data blocks of the new functions in the global variables to realize the new functions.

[0084] In addition, the logic instructions in the above-mentioned memory 803 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is 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, and the computer software product is stored in a storage medium, including 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: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0085] On the other hand, an embodiment of the present invention further provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the ground ATP system software upgrade method provided by the above-mentioned method embodiments, and the method includes: adding a data block of a new function of the software in the ground ATP system used by a rail transit centralized station to an expandable array of a data configuration file of the ground ATP system; parsing the data block of the new function in the expandable array, and saving the parsed data block of the new function to the global variables inside the software, so that the business logic of the new function in the software can perform logical operations according to the data block of the new function in the global variables to realize the new function.

[0086] 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. When the computer program is executed by a processor, it is implemented to execute the ground ATP system software upgrade method provided in the above-mentioned embodiments, the method comprising: adding a data block of a new function of the software in the ground ATP system used by a rail transit centralized station to an expandable array of a data configuration file of the ground ATP system; parsing the data block of the new function in the expandable array, and saving the parsed data block of the new function to a global variable inside the software, so that the business logic of the new function in the software can perform logical operations according to the data block of the new function in the global variable to implement the new function.

[0087] 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.

[0088] 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.

[0089] 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 upgrading ground ATP system software, characterized in that: include: Adding data blocks of newly added functions of software in the ground ATP system used by the rail transit centralized station to the expandable array of data configuration files of the ground ATP system; Parsing the data blocks of the newly added functions in the expandable array, and saving the parsed data blocks of the newly added functions into global variables within the software, so that the business logic of the newly added functions in the software can perform logical operations according to the data blocks of the newly added functions in the global variables to implement the newly added functions; The method further comprises: The configuration options in the data structure of the expandable array in the software are updated, and the definition and attributes of the data block of the newly added function are added to the data structure of the expandable array, and the modified data structure is obtained, so that the software can perform logical operations on the data block according to the modified data structure to implement the newly added function; Wherein, the configuration options include the CRC checksum, size, number of data blocks, data version and version descriptor of the expandable array; The definition of the data block includes a CRC checksum and a size of the data block; The attributes of the data block include the name, type and offset of the data block.

2. The method for upgrading the ground ATP system software according to claim 1, characterized in that: The step of parsing the data block of the newly added function in the expandable array specifically includes: Performing CRC check on the expandable array using the CRC check code of the expandable array; If the expandable array passes the check, performing a CRC check on the data block of the newly added function using the CRC check code of the data block of the newly added function; If the data block of the newly added function passes the CRC check, the data block of the newly added function in the expandable array is parsed.

3. The method for upgrading the ground ATP system software according to any one of claims 1-2, characterized in that: After the step of adding the data block of the newly added function of the software in the ground ATP system to the expandable array of the data configuration file of the ground ATP system, the method further includes: If it is detected that the rail transit centralized station does not have equipment to implement the newly added function, the value of the data block of the newly added function in the expandable array is set to a default value; wherein, the business logic of the new function in the software does not perform logical operations when the value of the data block of the new function is the default value.

4. A ground ATP system software upgrade device, characterized in that: include: An adding module, used to add a data block of a newly added function of the software in the ground ATP system used by the rail transit centralized station to an expandable array of data configuration files of the ground ATP system; A parsing module, used for parsing the data block of the new function in the expandable array, and saving the parsed data block of the new function to the global variable inside the software, so that the business logic of the new function in the software can perform logical operations according to the data block of the new function in the global variable to realize the new function; The device also includes a data expansion module, which is used to: The configuration options in the data structure of the expandable array in the software are updated, and the definition and attributes of the data block of the newly added function are added to the data structure of the expandable array, and the modified data structure is obtained, so that the software can perform logical operations on the data block according to the modified data structure to implement the newly added function; Wherein, the configuration options include the CRC checksum, size, number of data blocks, data version and version descriptor of the expandable array; The definition of the data block includes a CRC checksum and a size of the data block; The attributes of the data block include the name, type and offset of the data block.

5. 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 ground ATP system software upgrade method as described in any one of claims 1 to 3 are implemented.

6. 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 ground ATP system software upgrade method as described in any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Method and device for updating configuration files of application programs

    CN106843842A

  • Software function extension method and device, computer equipment and storage medium

    CN108762809A