Storage management method and system for train control vehicle-mounted electronic map
By performing CRC check on the train electronic map file and double check on the map index file, only the required station map files are updated, solving the problems of long storage time and large space requirements in the existing technology and achieving efficient and stable electronic map management.
Patent Information
- Application Number
- CN202111591125.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-23
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2041-12-23
AI Technical Summary
In the existing technology, trains need to download and store electronic map files of the entire train route, which results in long storage time and large space requirements, and cannot adapt to the development needs of high-speed railways. In addition, when the map file of the preceding station is replaced, the entire route map needs to be re-stored, affecting efficiency and stability.
By reading the electronic map file in the Flash and receiving the map index file on the train, CRC check and two map index file checks are performed to form the map file to be stored, and it is stored in the temporary buffer. Only the required site map file is updated, and the structure and data version of the map index file are used to ensure file integrity and accuracy.
It reduces the number of electronic map downloads, improves the accuracy and completeness of storage management, reduces storage time, ensures the stability and continuous satellite positioning of the train, avoids repeated downloads, and improves the efficiency of storage management.
Smart Images

Figure CN114265911B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of train positioning, and in particular to a storage management method and system for a train control vehicle-mounted electronic map. Background Art
[0002] With the continuous development of satellite positioning technology, which is becoming increasingly accurate and reliable, major train control suppliers both domestically and internationally have launched onboard train control projects that utilize satellite positioning technology. Electronic maps, which serve as the track data carrier for satellite positioning, contain track geographic information and virtual transponder data required by onboard equipment to control train operations. Efficient and secure storage and management of onboard electronic maps is crucial.
[0003] Currently, the electronic map file storage method used for train satellite positioning requires trains to download and store map file data for a train route, including all stations, before satellite positioning can be performed. This method not only reduces the time and efficiency of electronic map storage, but also requires more storage space. Furthermore, when a train needs to change the map file for a station ahead during operation, the map file for the entire route must be re-stored. This design is unscientific and cannot meet the growing needs of high-speed railways. Summary of the Invention
[0004] The present invention aims to at least partially address one of the technical problems in the related art. To this end, a first object of the present invention is to provide a method for storing and managing electronic maps on train control vehicles, which can reduce the number of electronic map downloads and ensure the integrity and accuracy of the electronic map data.
[0005] A second object of the present invention is to provide a storage management system for train control vehicle-mounted electronic maps.
[0006] To achieve the above object, the present invention is implemented through the following technical solutions:
[0007] A method for storing and managing an electronic map on a train control vehicle comprises: reading an electronic map file stored in a Flash memory and receiving a map index file sent by a TSRS; performing a first verification on a map index file in the electronic map file using the map index file, and after the first verification passes, performing a second verification on a map track information file sent by the TSRS using the map index file sent by the TSRS; forming an electronic map file to be stored according to a preset storage format by combining the map track information file that passes the second verification and the map index file sent by the TSRS, and storing the electronic map file to be stored in a temporary buffer.
[0008] Optionally, the step of reading the electronic map file stored in Flash includes: obtaining the storage address and temporary buffer of the electronic map file; reading the electronic map file according to the storage address, and performing CRC check on the electronic map file, and after the check passes, storing the electronic map file in the temporary buffer, and reading the electronic map file from the temporary buffer.
[0009] Optionally, when the first verification fails, the electronic map file in the local Flash is cleared, and the map track information files of each station within the jurisdiction of the TSRS are downloaded again from the TSRS.
[0010] Optionally, when the second verification fails, the station information that failed the second verification is obtained, and the electronic map file of the station is cleared in the local Flash according to the station information, and the map track information file of the station is downloaded from the TSRS, and the downloaded map track information file of the station is verified for the second time through the map index file sent by TSRS.
[0011] Optionally, the step of using the map index file to perform a first verification on the map index file in the electronic map file includes: obtaining the structural version of the map index file sent by TSRS and the structural version of the map index file in the electronic map file; comparing whether the structural versions of the two are consistent; if they are consistent, obtaining the data versions of the two, and comparing whether the data versions of the two and the number and order of the stations described in the two are consistent; if they are consistent, the first verification is passed.
[0012] Optionally, the step of performing a second verification on the map track information file sent by TSRS using the map index file sent by TSRS includes: obtaining the map track information file of the current station and determining the CRC and data version of the map track information file of the current station; obtaining the CRC and data version of the map track information file describing the current station from the map index file sent by TSRS; comparing whether the two are consistent, and if so, verifying the map track information file of the next station under the jurisdiction of the TSRS; if not, the second verification fails.
[0013] Optionally, the method further includes: acquiring a target storage address in the Flash, and storing the electronic map file to be stored in the temporary buffer area in the target storage address.
[0014] To achieve the above-mentioned objectives, the second aspect of the present invention provides a storage management system for a train control vehicle-mounted electronic map, comprising: an acquisition module 10, for reading an electronic map file stored in Flash and receiving a map index file sent by a TSRS; a first verification module 20, connected to the acquisition module 10, the first verification module 20 being used to perform a first verification of the map index file in the electronic map file using the map index file; a second verification module 30, connected to the first verification module 20, the second verification module 30 being used to perform a second verification of the map track information file sent by the TSRS using the map index file sent by the TSRS after the first verification passes; a storage module 40, connected to the second verification module 30, the storage module 40 being used to form an electronic map file to be stored according to a preset storage format using the map track information file that has passed the second verification and the map index file sent by the TSRS, and storing the electronic map file to be stored in a temporary buffer.
[0015] Optionally, when the acquisition module 10 reads the electronic map file stored in the Flash, it is specifically used to: obtain the storage address and temporary buffer of the electronic map file; read the electronic map file according to the storage address, and perform a CRC check on the electronic map file, and after the check passes, store the electronic map file in the temporary buffer, and read the electronic map file from the temporary buffer.
[0016] Optionally, the first verification module 20 is further configured to: when the first verification fails, clear the electronic map file in the local Flash and re-download the map track information files of each station within the jurisdiction of the TSRS from the TSRS.
[0017] Optionally, the second verification module 30 is also used to: when the second verification fails, obtain the station information that fails the second verification, and clear the electronic map file of the station in the local Flash according to the station information, and download the map track information file of the station from the TSRS, and perform a second verification on the downloaded map track information file of the station through the map index file sent by TSRS.
[0018] Optionally, when the first verification module 20 uses the map index file to perform the first verification on the map index file in the electronic map file, it is specifically used to: obtain the structural version of the map index file sent by TSRS and the structural version of the map index file in the electronic map file; compare whether the structural versions of the two are consistent; if they are consistent, obtain the data versions of the two, and compare whether the data versions of the two and the number and order of the stations described in the two are consistent. If they are consistent, the first verification is passed.
[0019] Optionally, when the second verification module 30 uses the map index file sent by TSRS to perform a second verification on the map track information file sent by TSRS, it is specifically used to: obtain the map track information file of the current station, and determine the CRC and data version of the map track information file of the current station; obtain the CRC and data version of the map track information file describing the current station from the map index file sent by TSRS; compare whether the two are consistent, if they are consistent, verify the map track information file of the next station under the jurisdiction of the TSRS; if they are inconsistent, the second verification fails.
[0020] Optionally, the storage module 40 is further configured to: obtain a target storage address in the Flash, and store the electronic map file to be stored in the temporary buffer into the target storage address.
[0021] The present invention has at least the following technical effects:
[0022] (1) The present invention adds a CRC check to the electronic map file, so that when the electronic map file is updated, only the electronic map file of one station needs to be updated and stored, saving the time of storing the electronic map. This can overcome the defect of the prior art that when the electronic map file of a station needs to be updated, all electronic map files within the jurisdiction of the TSRS need to be re-stored.
[0023] (2) The present invention adds the map index number of the jurisdiction of the electronic map file, so that when the train passes through the same TSRS jurisdiction, the electronic map will not be downloaded repeatedly, which effectively reduces the number of times the train downloads the electronic map, ensures the continuous satellite positioning of the train, and improves the stability of the train operation.
[0024] (3) When storing electronic map files, the present invention performs CRC verification, map index file verification, and map track information file verification on the electronic map files, thereby ensuring that the stored on-board electronic maps are not damaged, thereby improving the accuracy and integrity of electronic map file storage management.
[0025] Additional aspects and advantages of the present invention will be set forth in part in the description which follows and, in part, will be obvious from the description which follows, or may be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 A flowchart of a method for storing and managing a train control vehicle-mounted electronic map provided in one embodiment of the present invention;
[0027] Figure 2 A schematic diagram of data flow for reading and writing Flash electronic map files according to an embodiment of the present invention;
[0028] Figure 3 A schematic diagram of a train operation route provided by an embodiment of the present invention;
[0029] Figure 4 A schematic diagram of the electronic map file format in Flash provided by one embodiment of the present invention;
[0030] Figure 5-Figure 8 A flowchart of the electronic map storage and management workflow for various train operation scenarios provided by one embodiment of the present invention;
[0031] Figure 9 This is a structural block diagram of a storage management system for a train control vehicle-mounted electronic map provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0032] The present embodiment is described in detail below. Examples of the embodiment are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to explain the present invention, but are not to be construed as limiting the present invention.
[0033] To provide an efficient and secure method for storing and managing onboard electronic maps, reduce the number of times a train repeatedly downloads electronic maps from a TSRS (Temporary Speed Restriction Server) device, ensure more efficient and real-time updates of electronic maps, and securely manage electronic maps, the present invention proposes a method and system for storing and managing onboard electronic maps for train control.
[0034] The following describes the storage management method and system of the train control vehicle-mounted electronic map of this embodiment with reference to the accompanying drawings.
[0035] Figure 1 This is a flow chart of a method for storing and managing a train control vehicle-mounted electronic map according to an embodiment of the present invention. Figure 1 As shown, the method includes:
[0036] Step S1: Read the electronic map file stored in Flash and receive the map index file sent by TSRS.
[0037] The step of reading the electronic map file stored in Flash includes: obtaining the storage address and temporary buffer of the electronic map file; reading the electronic map file according to the storage address, performing a CRC (Cyclic Redundancy Check) check on the electronic map file, and storing the electronic map file in the temporary buffer after the check passes, and reading the electronic map file from the temporary buffer.
[0038] like Figure 2 As shown, the software used when reading and storing the electronic map file in the Flash includes platform software and application software. Among them, the platform software is responsible for reading the electronic map file from the Flash storage area and storing it in the temporary buffer area. The application software is responsible for reading the electronic map file stored in the temporary buffer area, parsing it, and then storing the parsed electronic map file to be stored in the temporary buffer area. According to the electronic map file storage address informed by the platform software, the electronic map file in the temporary buffer area is written to the platform Flash for storage.
[0039] In this embodiment, when reading an electronic map file stored in Flash, the storage address of the electronic map file stored in the Flash storage area and the temporary buffer for storing the electronic map file can be obtained. Then, the electronic map file is read from the Flash storage area according to the storage address, and a cyclic redundancy CRC check is performed on the read electronic map file. After the check is correct, the file is stored in the temporary buffer.
[0040] Step S2: using the map index file to perform a first check on the map index file in the electronic map file, and after the first check passes, using the map index file sent by TSRS to perform a second check on the map track information file sent by TSRS.
[0041] Specifically, the application software parses the electronic map file in the temporary buffer, including verifying the map index file within the electronic map file. In this embodiment, the ground station TSRS and the train can communicate via a wireless network, and the ground station TSRS can send the electronic map file to the train via the wireless network. The sent electronic map file includes the map index file.
[0042] In one embodiment of the present invention, the step of performing a first verification on the map index file in the read electronic map file using the map index file includes: obtaining the structural version of the map index file sent by the TSRS and the structural version of the map index file in the electronic map file; comparing whether the structural versions of the two are consistent; if they are consistent, obtaining the data versions of the two, and comparing whether the data versions of the two and the number and order of stations described in the two are consistent; if they are consistent, the first verification is passed.
[0043] If the first verification fails, the electronic map file in the local Flash is cleared, and the map track information files of each station under the jurisdiction of TSRS are downloaded again from TSRS.
[0044] It should be noted that before verifying the structure version of the map index file, it is also necessary to verify the file header protocol field TSRS_ID of the map index file. Since the file header protocol field TSRS_ID is different or the same, the subsequent processing method is different, which is related to the actual application scenario. Figure 3 As shown, the jurisdiction of this line can be divided into TSRS-1 jurisdiction and TSRS-2 jurisdiction, wherein the TSRS-1 jurisdiction includes station A and station B, and the TSRS-2 jurisdiction includes station C and station D.
[0045] As an example, when a train departs from station A and the train does not store a map track information file, the file header protocol field TSRS_ID of the map index file sent by TSRS and the map index file read from Flash is different. In this case, it is necessary to request to download all map track information files within the jurisdiction of TSRS-1 and then perform verification.
[0046] As another example, when the train runs to the section between Station A and Station B, and the train has stored the map track information file, the file header protocol field TSRS_ID of the map index file sent by TSRS and the map index file read from Flash are the same, and the first verification step can be directly entered at this time.
[0047] After entering the first verification step, the map index file read from Flash can be verified using the map index file sent by the TSRS. For example, the structure version and data version of each file can be obtained separately, and the structure version can be verified first. If the structure versions are different, the electronic map file in the local Flash is cleared and the map track information files of each station under the TSRS jurisdiction are re-downloaded from the TSRS. If the structure versions are the same, the data versions of the two files are further checked, and the number and sequence information of the stations described in the two files are obtained and compared. If the data versions and the number and sequence information of the stations described in the two files are consistent, the first verification is passed, and the status of the map index file read from Flash is set to valid, and the second verification step is entered.
[0048] Among them, the step of using the map index file sent by TSRS to perform a second verification on the map track information file sent by TSRS includes: obtaining the map track information file of the current station and determining the CRC and data version of the map track information file of the current station; obtaining the CRC and data version of the map track information file describing the current station from the map index file sent by TSRS; comparing whether the two are consistent, if consistent, verifying the map track information file of the next station within the jurisdiction of the TSRS; if inconsistent, the second verification fails.
[0049] When the second verification fails, the station information that failed the second verification is obtained, and the electronic map file of the station is cleared in the local Flash according to the station information, and the map track information file of the station is downloaded from TSRS, and the downloaded map track information file of the station is verified for the second time through the map index file sent by TSRS.
[0050] Specifically, after the first check, a second check may be performed, that is, checking the map track information file. As an example, Figure 3 As shown, when the train departs from station A and the train does not store the map track information file, the file header protocol field TSRS_ID of the map index file sent by TSRS and the map index file read from Flash is different, then it is necessary to request to download all map track information files under the jurisdiction of TSRS-1. At this time, the map track information file of the current station can be obtained, for example, the map track information file of station A is downloaded, and then the CRC (check code) and data version of the map track information file of station A are calculated, and then the CRC and data version of the map track information file describing station A are obtained from the map index file sent by TSRS, and then compared. If they are consistent, the map track information file of the next station, station B, is checked. If they are inconsistent, the map track information file of station A is downloaded again and re-checked.
[0051] As another example, Figure 3 As shown, when the train runs to the section between Station A and Station B, and the train has already stored the map track information file, it can obtain the map track information file of the current station, such as Station B, and calculate the CRC and data version of the map track information file of Station B. Then, the CRC and data version of the map track information file describing Station B are obtained from the map index file sent by TSRS and verified. If they are consistent, the next station is verified. If they are inconsistent, it means that the map file of Station B needs to be updated. At this time, the current station information, that is, the Station B information, can be obtained, and then the electronic map file of Station B can be cleared in the local Flash, and the map track information file of Station B can be downloaded from TSRS. The downloaded map track information file of Station B is verified again through the map index file sent by TSRS until the verification is successful, and the status of the map track information file of the current station is set to valid.
[0052] Step S3: The map track information file that has passed the second verification and the map index file sent by the TSRS are converted into an electronic map file to be stored according to a preset storage format, and the electronic map file to be stored is stored in a temporary buffer.
[0053] Specifically, such as Figure 4As shown, two independent storage spaces can be set up in the temporary buffer, which are used to store all electronic map files to be stored within the jurisdiction of TSRS-1 and TSRS-2 respectively. For example, after the map track information files of all stations within the jurisdiction of TSRS-1 pass the second verification, the number, size, protocol field TSRS_ID and CRC of each map track information file within the jurisdiction of TSRS-1 can be counted according to the protocol field of the file header of the Flash file format, that is, the preset storage format, and the file header of the electronic map file is formed. Then, the valid map index file within the jurisdiction of TSRS-1 and the map track information files of all stations are combined to form the electronic map file to be stored and stored in the temporary buffer. Among them, the map index file includes but is not limited to the file type, the CRC describing each map track information file, the data version and the file size information. The map track information file of the station includes but is not limited to the file type, the CRC of the current station, the data version and the file size information.
[0054] Furthermore, the target storage address in the Flash memory can be obtained, and the electronic map file to be stored in the temporary buffer can be stored in the target storage address. As described above, the application software can write the electronic map file in the temporary buffer to the Flash memory for storage based on the target storage address of the electronic map file provided by the platform software. In this embodiment, Flash memory status information can also be obtained. If the Flash memory status information indicates that the electronic map file to be stored in the temporary buffer can be stored in the target storage address.
[0055] The following is a detailed description of the method for storing and managing the train control vehicle-mounted electronic map in four different train operation scenarios based on the status of the electronic map stored on the train.
[0056] Scenario 1: When the train does not store the map track information file, such as Figure 3 As shown, the train departs from station A and performs storage management of the electronic map. The specific process is as follows Figure 5 As shown, the detailed steps include:
[0057] Step 100: After the train is powered on and self-test is completed, a temporary buffer for storing electronic map files is initialized and the temporary buffer is divided into two independent spaces of 1M each for storing maps of different TSRS jurisdictions.
[0058] Step 101: After establishing communication with the temporary speed limit server TSRS1 (TSRS-1 above), the train receives a map index file sent by TSRS1. By comparing the file header protocol field TSRS_ID of the received map index file with the map index file stored in Flash, it is found that the TSRS_ID of the map index file is different.
[0059] Step 102: Determine the free area of the temporary buffer zone, and the train requests to download all map track information files within the jurisdiction of TSRS1.
[0060] Step 103: The train receives the requested map track information file, calculates the CRC of the map track information file of the current station, and obtains the data version of the map track information file.
[0061] Step 104: Obtain the CRC and data version of the map orbit information file describing the current station in the map index file sent by TSRS1 in step 101, and verify them with the CRC and data version of the map orbit information file of the current station calculated in step 103. If they are consistent, the map orbit information file is considered valid and the file is set to be valid to facilitate satellite positioning; if they are inconsistent, the map orbit information file is considered invalid and the map orbit information file of the station needs to be downloaded again.
[0062] Step 105: Determine whether to continue downloading map track information files of other stations based on the number of map index files. If the number of verified map track information files does not meet the conditions, proceed to step 103 again to continue downloading new map track information files.
[0063] Step 106: After all the map track information files are verified, follow Figure 4 The protocol field of the file header of the Flash file format shown above counts the number, size, and TSRS_ID of the map track information files, and calculates the CRC of all map track information files as the electronic file header stored in Flash, which facilitates reading and management of electronic map files in Flash.
[0064] Step 107: Store the electronic map file header and all downloaded map files into the free area of the temporary buffer Flash_file_buffer.
[0065] Step 108: Determine when to store the electronic map file based on the status of the platform Flash. If the Flash status is available, write the electronic map file in the temporary buffer to the platform Flash based on the target storage address informed by the platform software to the application software.
[0066] Step 109: End the electronic map storage management process.
[0067] Scenario 2: When the train has stored the map track information file and runs to the section between Station A and Station B, the track line switch information of the electronic map of Station B needs to be updated. At this time, the electronic map file of Station B needs to be stored and managed. The specific process is as follows: Figure 6 As shown, the detailed steps include:
[0068] Step 200: When the train runs to the section between Station A and Station B, it receives the map index file sent by TSRS1 and updates the electronic map of Station B through the map index file. This step specifically compares the file header protocol field TSRS_ID of the received map index file with the map index file stored in Flash, and finds that the TSRS_ID of the map index file is the same as the TSRS_ID of the map index file stored in Flash within the jurisdiction of TSRS1.
[0069] Step 201: Check the structural versions of the two map index files. If the requirements are not met, clear the locally stored electronic map file. If the requirements are met, continue to check whether the data versions of the map index files and the number and order of the described stations are consistent.
[0070] Step 202: If the data version of the map index file and the number and order of the described stations are consistent, then compare the data version and CRC of the map track information file of Station B described in the map index file with the data version and CRC of the map track information file of Station B stored in Flash. If it is found that the data version of the map track information file of Station B is inconsistent, then clear the map track information file of Station B and set the status of the map track information file to invalid; the map files of other stations within the jurisdiction of TSRS1 are still retained, which can save time in downloading and storing electronic maps.
[0071] Step 203: The train requests TSRS1 to download the map track information file of station B, and verifies the CRC and data version of the map track information file of station B; if the verification fails, the map track information file of station B needs to be downloaded again.
[0072] Step 204: If the verification of step 203 passes, the offset address of the map track information file of Station B is calculated according to the size of the map track information file of Station B, and the map track information file of Station B is stored in the Flash of the platform.
[0073] Step 205: End the electronic map storage management process.
[0074] Scenario 3: When the train has stored the map track information file and runs to the track section at the exchange boundary between TSRS1 and TSRS2 (TSRS-2 mentioned above), it is necessary to download the electronic map within the jurisdiction of TSRS2 and store and manage it at the same time. The specific process is as follows: Figure 7 As shown, the detailed steps include:
[0075] Step 300: The train runs to the track section at the exchange boundary between TSRS1 and TSRS2, establishes communication with the temporary speed limit server TSRS2, and receives the map index file sent by TSRS2. By comparing the file header protocol field TSRS_ID of the received map index file with the map index file stored in Flash, it is found that the TSRS_ID of the map index file is different from the TSRS_ID in the map index file stored in Flash for the jurisdiction of TSRS1.
[0076] Step 301: Determine the free area of the temporary buffer zone, and the train requests to download all map track information files within the jurisdiction of TSRS2.
[0077] Step 302: Same as steps 104 and 105, verify all map track information files within the jurisdiction of TSRS2.
[0078] Step 303: After the map track information file is verified, similar to step 106, the electronic map file of the area under the jurisdiction of TSRS2 is stored in the platform Flash.
[0079] Step 304: End the electronic map storage management process.
[0080] Scenario 4: When the train has stored the map track information files of TSRS1 and TSRS2, the train departs from station D and goes to station A to perform storage management of the electronic map. The specific process is as follows: Figure 8 As shown, the detailed steps include:
[0081] Step 400: The train departs from station D and reads the electronic map file in the Flash during power-on initialization and stores it in a temporary buffer.
[0082] Step 401: Calculate the CRC of the electronic map file in the temporary buffer and compare it with the CRC of the electronic map file header in the Flash. If they are different, clear the electronic map file in the Flash. If they are the same, retain the electronic map file in the temporary buffer.
[0083] Step 402: After establishing communication with TSRS2, the train receives the map index file sent by TSRS2. By comparing the TSRS_ID field in the file header of the received map index file with the map index file stored in Flash, it is found that the TSRS_ID of the map index files are the same.
[0084] Step 403: Compare the data version, number of stations, station order, and file CRC of the map index file. If they are the same, it means that the train has already stored the electronic map file of the jurisdiction of TSRS2 and there is no need to download the electronic map file again. If they are different, it is necessary to re-download the electronic map file of the jurisdiction of TSRS-2 in the same way as steps 103 and 104 in scenario 1.
[0085] Step 404: End the electronic map storage management process.
[0086] Furthermore, the present invention also provides a storage management system for train control vehicle-mounted electronic maps. Figure 9 As shown, the storage management system 1 of the train control vehicle-mounted electronic map includes: an acquisition module 10 , a first verification module 20 , a second verification module 30 and a storage module 40 .
[0087] Among them, the acquisition module 10 is used to read the electronic map file stored in the Flash and receive the map index file sent by the TSRS; the first verification module 20 is connected to the acquisition module 10, and the first verification module 20 is used to use the map index file to perform a first verification on the map index file in the electronic map file; the second verification module 30 is connected to the first verification module 20, and the second verification module 30 is used to use the map index file sent by the TSRS to perform a second verification on the map track information file sent by the TSRS after the first verification is passed; the storage module 40 is connected to the second verification module (30), and the storage module 40 is used to form the map track information file that passes the second verification and the map index file sent by the TSRS into an electronic map file to be stored according to a preset storage format, and store the electronic map file to be stored in a temporary buffer.
[0088] In one embodiment of the present invention, when the acquisition module 10 reads the electronic map file stored in the Flash, it is specifically used to: obtain the storage address and temporary buffer of the electronic map file; read the electronic map file according to the storage address, and perform a CRC check on the electronic map file; after the check passes, store the electronic map file in the temporary buffer, and read the electronic map file from the temporary buffer.
[0089] The first verification module 20 uses the map index file to perform the first verification on the map index file in the electronic map file, specifically for: obtaining the structural version of the map index file sent by TSRS and the structural version of the map index file in the electronic map file; comparing whether the structural versions of the two are consistent; if they are consistent, obtaining the data versions of the two, and comparing the data versions of the two and the number and order of the stations described in the two to see if they are consistent. If they are consistent, the first verification is passed.
[0090] The first verification module 20 is further configured to clear the electronic map file in the local Flash and re-download the map track information files of each station within the jurisdiction of the TSRS from the TSRS when the first verification fails.
[0091] Furthermore, the second verification module 30 uses the map index file sent by TSRS to perform a second verification on the map track information file sent by TSRS, and is specifically used to: obtain the map track information file of the current station, and determine the CRC and data version of the map track information file of the current station; obtain the CRC and data version of the map track information file describing the current station from the map index file sent by TSRS; compare whether the two are consistent, if consistent, verify the map track information file of the next station under the jurisdiction of TSRS; if inconsistent, the second verification fails.
[0092] The second verification module 30 is also used to obtain the station information that failed the second verification when the second verification fails, and to clear the electronic map file of the station in the local Flash according to the station information, and to download the map track information file of the station from TSRS, and to perform a second verification on the downloaded map track information file of the station through the map index file sent by TSRS.
[0093] In one embodiment of the present invention, the storage module 40 is further configured to: obtain a target storage address in the Flash, and store the electronic map file to be stored in the temporary buffer into the target storage address.
[0094] It should be noted that the specific implementation of the storage management system of the train control vehicle electronic map of this embodiment can refer to the specific implementation of the storage management method of the train control vehicle electronic map mentioned above, and will not be repeated here to avoid redundancy.
[0095] In summary, the present invention adds CRC check to the electronic map file, so that when the electronic map file is updated, only the electronic map file of one station needs to be updated and stored, saving the time of storing the electronic map, thereby overcoming the defect in the prior art that when the electronic map file of a certain station needs to be updated, all electronic map files under the jurisdiction of the TSRS need to be re-stored; the present invention adds the map index number of the jurisdiction of the electronic map file, so that when the train passes through the same TSRS jurisdiction, the electronic map will not be downloaded repeatedly, effectively reducing the number of times the train downloads the electronic map, and ensuring the continuous satellite positioning of the train, thereby improving the stability of the train operation; when storing the electronic map file, the present invention performs CRC check, map index file check and map track information file check on the electronic map file, thereby ensuring that the stored on-board electronic map is not damaged, thereby improving the accuracy and integrity of the electronic map file storage management.
[0096] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.
[0097] Although the present invention has been described in detail through the above preferred embodiments, it should be understood that the above description is not intended to limit the present invention. After reading the above description, various modifications and substitutions of the present invention will become apparent to those skilled in the art. Therefore, the scope of protection of the present invention should be defined by the appended claims.
Claims
1. A method for storing and managing a train control vehicle-mounted electronic map, characterized in that: include: Read the electronic map file stored in Flash and receive the map index file sent by TSRS; Performing a first verification on the map index file in the electronic map file using the map index file, and before performing the first verification, verifying the file header protocol field of the map index file, where different file header protocol fields represent different jurisdictions of the TSRS; After the first verification is passed, the map index file sent by TSRS is also used to perform a second verification on the map track information file sent by TSRS; The map track information file that has passed the second verification and the map index file sent by the TSRS are converted into an electronic map file to be stored according to a preset storage format, and the electronic map file to be stored is stored in a temporary buffer area.
2. The method for storing and managing a train control vehicle-mounted electronic map according to claim 1, wherein: The step of reading the electronic map file stored in Flash includes: Obtaining the storage address and temporary buffer of the electronic map file; The electronic map file is read according to the storage address, and a CRC check is performed on the electronic map file. After the check passes, the electronic map file is stored in the temporary buffer and the electronic map file is read from the temporary buffer.
3. The method for storing and managing a train control vehicle-mounted electronic map according to claim 1, wherein: When the first verification fails, the electronic map file in the local Flash is cleared, and the map track information files of each station within the jurisdiction of the TSRS are downloaded again from the TSRS.
4. The method for storing and managing a train control vehicle-mounted electronic map according to claim 1, wherein: When the second verification fails, the station information that failed the second verification is obtained, and the electronic map file of the station is cleared in the local Flash according to the station information, and the map track information file of the station is downloaded from the TSRS, and the downloaded map track information file of the station is verified for the second time through the map index file sent by the TSRS.
5. The method for storing and managing a train control vehicle-mounted electronic map according to claim 1, wherein: The step of using the map index file to perform a first verification on the map index file in the electronic map file includes: Obtaining the structure version of the map index file sent by TSRS and the structure version of the map index file in the electronic map file; Compare the structural versions of the two to see if they are consistent; if they are consistent, obtain the data versions of the two and compare the data versions of the two and the number and order of the stations described in the two to see if they are consistent. If they are consistent, the first verification passes.
6. The method for storing and managing a train control vehicle-mounted electronic map according to claim 1, wherein: The step of performing a second verification on the map track information file sent by TSRS using the map index file sent by TSRS includes: Get the map track information file of the current station and determine the CRC and data version of the map track information file of the current station; Obtain the CRC and data version of the map track information file describing the current station from the map index file sent by TSRS; Compare the two to see if they are consistent. If they are consistent, verify the map track information file of the next station within the jurisdiction of the TSRS; if they are inconsistent, the second verification fails.
7. The method for storing and managing a train control vehicle-mounted electronic map according to any one of claims 1 to 6, wherein: Also includes: A target storage address in the Flash is obtained, and the electronic map file to be stored in the temporary buffer is stored in the target storage address.
8. A storage management system for train control vehicle-mounted electronic maps, characterized in that: include: An acquisition module (10) is used to read the electronic map file stored in the Flash and receive the map index file sent by the TSRS; a first verification module (20) connected to the acquisition module (10), the first verification module (20) being used to perform a first verification on the map index file in the electronic map file using the map index file, and further being used to verify a file header protocol field of the map index file before performing the first verification, wherein different file header protocol fields represent different jurisdictions of the TSRS; A second verification module (30) is connected to the first verification module (20), and the second verification module (30) is used to use the map index file sent by TSRS to perform a second verification on the map track information file sent by TSRS after the first verification is passed; A storage module (40) is connected to the second verification module (30), and is used to form an electronic map file to be stored according to a preset storage format using the map track information file that has passed the second verification and the map index file sent by the TSRS, and to store the electronic map file to be stored in a temporary buffer.
9. The storage and management system for the train control vehicle-mounted electronic map according to claim 8, characterized in that: When reading an electronic map file stored in Flash, the acquisition module (10) is specifically used to: acquire the storage address and temporary buffer of the electronic map file; read the electronic map file according to the storage address, perform CRC check on the electronic map file, and after the check passes, store the electronic map file in the temporary buffer, and read the electronic map file from the temporary buffer.
10. The storage and management system for the train control vehicle-mounted electronic map according to claim 8, characterized in that: The first verification module (20) is also used for: when the first verification fails, clearing the electronic map file in the local Flash and re-downloading the map track information file of each station within the jurisdiction of the TSRS from the TSRS.
11. The storage management system for train control vehicle-mounted electronic maps according to claim 8, characterized in that: The second verification module (30) is further used for: when the second verification fails, obtaining the station information that fails the second verification, clearing the electronic map file of the station in the local Flash according to the station information, downloading the map track information file of the station from the TSRS, and performing a second verification on the downloaded map track information file of the station through the map index file sent by the TSRS.
12. The storage and management system for the train control vehicle-mounted electronic map according to claim 8, characterized in that: The first verification module (20) is specifically used to perform a first verification on the map index file in the electronic map file using the map index file: Obtaining the structure version of the map index file sent by TSRS and the structure version of the map index file in the electronic map file; Compare the structural versions of the two to see if they are consistent; if they are consistent, obtain the data versions of the two and compare the data versions of the two and the number and order of the stations described in the two to see if they are consistent. If they are consistent, the first verification passes.
13. The storage and management system for train control vehicle-mounted electronic maps according to claim 8, characterized in that: The second verification module (30) uses the map index file sent by TSRS to perform a second verification on the map track information file sent by TSRS, specifically for: Get the map track information file of the current station and determine the CRC and data version of the map track information file of the current station; Obtain the CRC and data version of the map track information file describing the current station from the map index file sent by TSRS; Compare the two to see if they are consistent. If they are consistent, verify the map track information file of the next station within the jurisdiction of the TSRS; if they are inconsistent, the second verification fails.
14. The storage management system for the train control vehicle-mounted electronic map according to any one of claims 8 to 13, characterized in that: The storage module (40) is further used to obtain a target storage address in the Flash and store the electronic map file to be stored in the temporary buffer into the target storage address.
Citation Information
Patent Citations
Electronic map automatic pushing method based on train position
CN112612860A