Data Consistency Control Method Applied to Railway Signal Centralized Monitoring System

By generating and comparing data consistency marks in the centralized railway signal monitoring system, the data inconsistency problem between the center and stations is solved, the usability and credibility of the system are improved, and data interaction and transmission are optimized.

CN114253987BActive Publication Date: 2025-07-29CASCO SIGNAL LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111581012.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-22
Publication Date
2025-07-29
Estimated Expiration
2041-12-22

AI Technical Summary

Technical Problem

In the centralized railway signal monitoring system, data inconsistency between the center and the station leads to a reduced system credibility and availability.

Method used

All data within the local target period is obtained at the center of the railway signal centralized monitoring system, a first data consistency identifier is generated, and a detection command is sent to the station. The station generates a second data consistency identifier. The center compares the consistency between the two and performs data synchronization operations.

Benefits of technology

It realizes consistent control of center and station data, improves the overall availability of the system, optimizes the number of data interactions and network transmission overhead, and has a flexible data interaction mechanism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114253987B_ABST
    Figure CN114253987B_ABST
Patent Text Reader

Abstract

The present invention discloses a data consistency control method applied to a railway signal centralized monitoring system. The method includes: the center of the railway signal centralized monitoring system obtains all data within a local target time period; the center encodes all the obtained data according to the type of the data to generate a first data consistency identifier; the center sends a data consistency detection command to the station. After receiving the command, the station queries all data within the local target time period of the station and encodes them to generate a second data consistency identifier, and returns the second data consistency identifier to the center; the center compares the first data consistency identifier with the second data consistency identifier, and ends the data consistency control when the two are compared and consistent. The present invention can improve the credibility and overall availability of the railway signal centralized monitoring 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 data synchronization, and particularly to a data consistency control method applied to a railway signal centralized monitoring system. Background Art

[0002] The center / station distributed structure of the railway signal centralized monitoring system requires the center to be able to review and view the information of each station. In the early stage of the signal centralized monitoring system, except for a small part of the data directly retrieved at the center, most of the data was directly retrieved from the remote stations when viewed. With the development of the signal centralized monitoring system, there are more and more requirements for cross-station and cross-system comprehensive viewing and comprehensive analysis, and it is necessary to converge the main data of each station to the center for unified storage and use. Due to the autonomy of the operation of the center and station systems, there may be a situation where the station and the center are not online and used at the same time, resulting in inconsistent data between the center and the station; in addition, if the on-site network is unstable, it will also cause the station data not to be completely sent to the center. The inconsistent data between the center and the station will seriously reduce the credibility of the system and affect the overall availability of the system. Summary of the Invention

[0003] The present invention aims to solve at least one of the technical problems in the related art to some extent. For this reason, an object of the present invention is to provide a data consistency control method applied to a railway signal centralized monitoring system to improve the credibility and overall availability of the railway signal centralized monitoring system.

[0004] To achieve the above object, the present invention is realized through the following technical solutions:

[0005] A data consistency control method applied to a railway signal centralized monitoring system includes: the center of the railway signal centralized monitoring system obtains all data within a local target time period; the center encodes all the obtained data according to the type of the data to generate a first data consistency identifier; the center sends a data consistency detection command to the station, and after receiving the command, the station queries all the data within the local target time period of the station and encodes it to generate a second data consistency identifier, and returns the second data consistency identifier to the center; the center compares the first data consistency identifier and the second data consistency identifier, and ends the data consistency control when the two are compared and are consistent.

[0006] Optionally, the types of the data include at least one of continuous acquisition data, discrete acquisition data, alarm data, statistical data, and report data.

[0007] Optionally, the manner in which the center encodes all the acquired data according to the type of data includes: a single - data consistency identification encoding manner and an overall data consistency identification encoding manner based on time periods; wherein, the single - data consistency identification encoding manner is a manner of encoding based on the key fields of the data, and the key fields include a uniqueness identification field and an index information field.

[0008] Optionally, the single - data consistency identification has a two - way conversion feature, and by decoding the single - data consistency identification, the key fields can be obtained.

[0009] Optionally, different types of data use different key fields when encoded using the single - data consistency identification encoding manner.

[0010] Optionally, the overall data consistency identification encoding manner is a two - level encoding manner. For data of the same type, the two - level encoding manner includes: generating an MD5 code with a fixed length from the single - data consistency identifications of all or part of the data within the target time period; obtaining the data time - period information, data type, and data quantity of the data to be encoded, and combining and encoding the data time - period information, the data type, and the data quantity with the MD5 code to generate the overall data consistency identification within the target time period.

[0011] Optionally, when the data volume of the data to be encoded is greater than a first preset value, generate an MD5 code with a fixed length from the single - data consistency identifications of part of the data within the target time period; when the data volume of the data to be encoded is less than a second preset value, or when the importance level of the data to be encoded is greater than a preset level, generate an MD5 code with a fixed length from the single - data consistency identifications of all the data within the target time period.

[0012] Optionally, both the first data consistency identification and the second data consistency identification are the overall data consistency identifications within the target time period.

[0013] Optionally, when the center encodes all the acquired data according to the type of data, it also generates a third data consistency identification, and the third data consistency identification is the single - data consistency identification of all the data acquired by the center within the target time period.

[0014] Optionally, the center compares the first data consistency identifier and the second data consistency identifier. When the two are inconsistent, the method further includes: the center sends a fourth data consistency identifier request command to the station to obtain the fourth data consistency identifier, where the fourth data consistency identifier is a single data consistency identifier generated by the station by encoding all data within the local target period of the station; the center compares the third data consistency identifier and the fourth data consistency identifier to obtain a fifth data consistency identifier, where the fifth data consistency identifier is a data consistency identifier with differences between the third data consistency identifier and the fourth data consistency identifier; the center initiates a data synchronization operation to the station according to the fifth data consistency identifier.

[0015] Optionally, the center initiates a data synchronization operation to the station according to the fifth data consistency identifier, including: the center sends the fifth data consistency identifier to the station; the station decodes the fifth data consistency identifier to obtain data key fields, and retrieves corresponding differential data from the local station according to the data key fields; the center locally stores the differential data, and returns to the step of obtaining all data within the local target period, and re-performs data consistency detection until the data comparison is consistent.

[0016] Optionally, the method further includes: obtaining the service characteristics of various types of data, and establishing a data call mechanism between the center and the station according to the service characteristics; where, when calling data, the corresponding data call mechanism is determined according to the service characteristics of the data, and the data call mechanism includes: a data subscription / publishing mechanism and a data access mechanism.

[0017] Optionally, the data subscription / publishing mechanism is that the center sends a subscription command to the station, and after receiving the subscription command, when processing data, the station uploads the data that meets the subscription command to the center; the data access mechanism is that the center sends an access command to the station, and after receiving the access command, the station directly queries the data that meets the access command from the local and uploads it to the center.

[0018] Optionally, when the data types called by the center are continuous acquisition data, discrete acquisition data, and alarm data, the data subscription / publishing mechanism is adopted; when the data types called by the center are statistical data and report data, the data access mechanism is adopted.

[0019] Optionally, when the data types called by the center are continuous acquisition data and discrete acquisition data, the subscription command includes the data type and station identification information; when the data type called by the center is alarm data, the subscription command includes the alarm data type, alarm device type and station identification information; when the data types called by the center are statistical data and report data, the retrieval command includes the time period and data type information.

[0020] Optionally, if the station does not receive the subscription command within a preset time, it stops sending data to the center.

[0021] Optionally, data consistency automatic detection and synchronization operations are performed every preset period.

[0022] Optionally, data consistency comparison detection and synchronization operations are performed in batches according to the data type.

[0023] Optionally, after performing data consistency comparison detection and synchronization operations on all data within the target time period, the target time period information is recorded and saved.

[0024] The present invention has at least the following technical effects:

[0025] (1) The present invention can automatically ensure data consistency between distributed nodes of the railway signal centralized monitoring system and improve the overall availability of the system;

[0026] (2) The present invention determines two coding rules for data consistency identification for the data characteristics of the railway signal centralized monitoring system. The corresponding data consistency identifications respectively include single - data consistency identification and overall data consistency identification. Through the optimized two - level data identification detection and differential data synchronization method, the present invention achieves the goal of data consistency control between the center and the station without significantly increasing the quantity of data interaction and network transmission overhead;

[0027] (3) The present invention determines the data subscription / publishing mechanism between the center and the station for the data service characteristics of the railway signal centralized monitoring system, which has good flexibility, can conveniently control the granularity of data interaction between the center and the station, and reduce redundant data transmission.

[0028] The additional aspects and advantages of the present invention will be partially given in the following description, partially become obvious from the following description, or be understood through the practice of the present invention. Description of the Drawings

[0029] Figure 1 It is a flowchart of a data consistency control method applied to a railway signal centralized monitoring system provided by an embodiment of the present invention;

[0030] Figure 2Schematic diagram of single - data consistency identification coding provided by an embodiment of the present invention;

[0031] Figure 3 Schematic diagram of overall data consistency identification coding provided by an embodiment of the present invention;

[0032] Figure 4 Flowchart of the data consistency control method applied to the railway signal centralized monitoring system provided by an embodiment of the present invention;

[0033] Figure 5 Flowchart of the data subscription mechanism between the center and the station provided by an embodiment of the present invention. Detailed implementation manners

[0034] The following details this embodiment. The examples of the embodiment are shown in the drawings, where the same or similar reference numerals represent the same or similar elements or elements with the same or similar functions from beginning to end. The embodiments described below with reference to the drawings are exemplary and are intended to explain the present invention, and should not be construed as limiting the present invention.

[0035] The following describes the data consistency control method applied to the railway signal centralized monitoring system of this embodiment with reference to the drawings.

[0036] Figure 1 Flowchart of the data consistency control method applied to the railway signal centralized monitoring system provided by an embodiment of the present invention. As Figure 1 shown, the method includes:

[0037] Step S1: The center of the railway signal centralized monitoring system acquires all the data within the local target time period.

[0038] Among them, the types of data in step S1 include at least one of continuous acquisition data, discrete acquisition data, alarm data, statistical data, and report data.

[0039] Specifically, the railway signal centralized monitoring system has a distributed structure. One center manages all the stations on one or more lines. The center needs to converge the main data of the managed stations, including: continuous acquisition data, discrete acquisition data, alarm data generated by independent analysis, statistical data, and report data. Thus, when data consistency detection is required, the center can set a target time period and obtain all the data within the target time period from the center's local area for comparison and detection. Among them, all the acquired data may include, but are not limited to, the above - mentioned data types.

[0040] Step S2: The center encodes all the acquired data according to the type of data to generate a first data consistency identifier.

[0041] Among them, the ways for the center to encode all the acquired data according to the data type include: single - data consistency identification encoding method and overall data consistency identification encoding method with a time period as the unit; among them, the single - data consistency identification encoding method is a method of encoding based on the key fields of the data, and the key fields include a uniqueness identification field and an index information field.

[0042] In an embodiment of the present invention, the single - data consistency identification has a two - way conversion feature. Decoding the single - data consistency identification can obtain the key fields.

[0043] Specifically, according to the characteristics of various types of data in the railway signal centralized monitoring system, the encoding rules of the data consistency identification can be designed, which can specifically include the encoding rules of the single - data consistency identification and the encoding rules of the overall data consistency identification with a time period as the unit. Among them, the single - data consistency identification is encoded based on the uniqueness identification field and the index information field of the data, and this encoding rule supports two - way conversion, that is, the uniqueness identification field and the index information field can be decoded according to the generated single - data consistency identification. Among them, the uniqueness identification field may include but is not limited to the alarm UUID (Universally Unique Identifier); the index information field may include but is not limited to the data source identification code.

[0044] It should be noted that when different types of data are encoded using the single - data consistency identification encoding method, different key fields are applied.

[0045] Such as Figure 2As shown, for continuous acquisition data, including digital quantity, analog quantity and other data, the keyword fields required or applied for the single - data consistency identification code include: data type code, data source identification code, data timestamp, and data time backtracking identification. Among them, the data time backtracking identification is used to distinguish data in repeated time periods when there is a clock jump. At the same time, the data type code, data source identification code, data timestamp, and data time backtracking identification can be decoded according to the single - data consistency identification; for discrete acquisition data, the keyword fields required for the single - data consistency identification code include: data type code, data source identification code, and data timestamp. At the same time, the data type code, data source identification code, and data timestamp can be decoded according to the single - data consistency identification; for alarm data, the keyword fields required for the single - data consistency identification code include: alarm UUID, alarm time, and alarm type code. At the same time, the alarm UUID, alarm time, and alarm type code can be decoded according to the single - data consistency identification; for statistical data, the keyword fields required for the single - data consistency identification code include: statistical data type and statistical time period information. At the same time, the statistical data type and statistical time period information can be decoded according to the single - data consistency identification; for report data, the keyword fields required for the single - data consistency identification code include: report data type and report time period information. At the same time, the report data type and report time period information can be decoded according to the single - data consistency identification.

[0046] Thus, the single - data consistency identification code can be encoded based on the corresponding keyword fields according to the data type to obtain the corresponding single - data consistency identification.

[0047] In an embodiment of the present invention, the overall data consistency identification coding method is a two - level coding method. For data of the same type, this two - level coding method includes:

[0048] Select the single - data consistency identifications of all data or part of the data in the target time period to generate an MD5 (Message - Digest Algorithm) code with a fixed length; obtain the data time period information, data type, and data quantity of the data to be encoded, and combine and encode the data time period information, data type, and data quantity with the MD5 code to generate the overall data consistency identification in the target time period.

[0049] Among them, when the data quantity of the data to be encoded is greater than the first preset value, select the single - data consistency identifications of part of the data in the target time period to generate an MD5 code with a fixed length; when the data quantity of the data to be encoded is less than the second preset value, or the importance level of the data to be encoded is greater than the preset level, select the single - data consistency identifications of all data in the target time period to generate an MD5 code with a fixed length.

[0050] Specifically, the overall data consistency identification coding method in this embodiment is a two-level coding method, that is, first obtain the single data consistency identification of all data or part of the data within the target time period, and then generate the overall data consistency identification of the target time period through the single data consistency identification.

[0051] When performing overall data consistency identification coding, all data or part of the data within the target time period can be selected for coding according to the type of data.

[0052] As an example, as Figure 3 shown, for continuous acquisition data, due to the large amount of data, considering performance factors, the single data consistency identification of part of the data within the target time period can be selected according to fixed rules to generate an MD5 code, and then the data time period information, data type (continuous acquisition data), and data quantity (number of data items) where these data are located are combined and coded with the MD5 code to generate the overall data consistency identification of the target time period; for alarm data, due to the high importance of the data, the single data consistency identification of all data within the target time period can be selected, spliced into a complete data packet to generate an MD5 code, and then further generate the overall data consistency identification; for discrete acquisition data, statistical data, and report data, since the data volume is not large, the strategy for generating the MD5 code is the same as that for alarm data.

[0053] Thus, the single data consistency identification can be coded based on the corresponding keyword fields according to the type of data to obtain the corresponding single data consistency identification, and then all data or part of the data can be selected according to the type of data for secondary coding to generate the overall data consistency identification.

[0054] Step S3: The center sends a data consistency detection command to the station. After receiving the command, the station queries all the data within the local target time period of the station and performs coding to generate a second data consistency identification, and returns the second data consistency identification to the center.

[0055] It should be noted that both the first data consistency identification and the second data consistency identification are the overall data consistency identifications within the target time period. Moreover, when the center codes all the obtained data according to the type of data, a third data consistency identification is also generated, and the third data consistency identification is the single data consistency identification of all the data obtained by the center within the target time period.

[0056] It can be understood that when the center generates the first data consistency identification, it correspondingly generates the single data consistency identification of all the data, that is, the third data consistency identification, in advance, so as to generate the first data consistency identification through secondary coding based on the third data consistency identification.

[0057] Step S4: The center compares the first data consistency identifier and the second data consistency identifier, and ends the data consistency control when the two are compared to be consistent.

[0058] In this embodiment, the center can initiate the data consistency comparison and detection operation between the center and the station according to the data type in units of time periods.

[0059] Specifically, as Figure 4 shown, the center queries the key fields required for the consistency identifier encoding of all data in the target time period from the local, and generates a single data consistency identifier and an overall data consistency identifier according to the two-level encoding rule, that is, generates the third data consistency identifier and the first data consistency identifier respectively. The center sends a data consistency detection command to the station. After receiving the command, the station queries the key fields required for the consistency identifier encoding of all data in the target time period, generates an overall data consistency identifier according to the encoding rule, that is, the second data consistency identifier, and sends the second data consistency identifier back to the center. Further, the center compares the overall data consistency identifiers of the local and the station to determine whether there are differences in the data between the center and the station. If there are no differences, the data consistency comparison and detection of the data category to be detected in the target time period are completed, and no subsequent synchronization operation is required. If there are differences, the processing of the subsequent steps is performed.

[0060] It should be noted that in this embodiment, the data consistency comparison and detection and the synchronization operation can be performed in batches according to the data type, which can ensure that the processing times of different types of data are staggered, so as to ensure the smoothness of the software performance and the network load.

[0061] In an embodiment of the present invention, when the center compares the first data consistency identifier and the second data consistency identifier and the two are not compared to be consistent, the method further includes:

[0062] The center sends a fourth data consistency identifier request command to the station to obtain a fourth data consistency identifier, where the fourth data consistency identifier is a single data consistency identifier generated by the station encoding all data in the local target time period of the station; the center compares the third data consistency identifier and the fourth data consistency identifier to obtain a fifth data consistency identifier, where the fifth data consistency identifier is the data consistency identifier with differences between the third data consistency identifier and the fourth data consistency identifier; the center initiates a data synchronization operation to the station according to the fifth data consistency identifier.

[0063] Specifically, if there are data differences when the center and the station perform a comparison of the overall data consistency identification, the data identification of the different parts is obtained, and then a data synchronization operation between the center and the station is initiated based on the information of the different data identification. The center retrieves the different data from the station and performs the data consistency detection again until the center data and the station data in the target time period are consistent.

[0064] As an example, when the comparison between the center and the station is inconsistent, the center sends a single data consistency identification request command to the station, that is, the fourth data consistency identification request command mentioned above. After receiving the command, the station queries the key fields required for the consistency identification codes of all data in the target time period, generates the single data consistency identification of all data according to the coding rules, and sends back the single data consistency identification of all data to the center.

[0065] The center compares the single data consistency identification of the data to be detected of the local cache, that is, the third data consistency identification, with the single data consistency identification of the data to be detected sent by the station, that is, the fourth data consistency identification, to obtain the data consistency identification of the different parts, that is, the fifth data consistency identification.

[0066] In an embodiment of the present invention, the center initiates a data synchronization operation to the station according to the fifth data consistency identification, including: the center sends the fifth data consistency identification to the station; the station decodes the fifth data consistency identification to obtain the data key fields, and retrieves the corresponding different data from the local of the station according to the data key fields; the center locally stores the different data and returns to the step of obtaining all data in the local target time period, and performs the data consistency detection again until the data comparison is consistent.

[0067] Specifically, the center sends a synchronization operation command to the station. After receiving the command, the station decodes the data consistency identification of the different part in the command, that is, the fifth data consistency identification, to obtain the corresponding key field information, and retrieves the different data from the station according to the key field information, and then sends it back to the center. After the center receives and stores the different data, it continues to perform the consistency comparison detection and synchronization until the data is consistent.

[0068] In an embodiment of the present invention, the method further includes: obtaining the service characteristics of various types of data, and establishing a data call mechanism between the center and the station according to the service characteristics; wherein, when calling data, the corresponding data call mechanism is determined according to the service characteristics of the data, and the data call mechanism includes: a data subscription / publishing mechanism and a data access mechanism.

[0069] Specifically, a data subscription / publishing and data access mechanism between the center and the stations can be designed according to the business characteristics of various types of data, and various types of data at the stations can be transmitted to the center in real time based on this mechanism. After receiving the data sent by the stations, the center stores it as local data at the center.

[0070] Among them, the business characteristic can be the level of real-time requirement of the data. As an example, when the real-time requirement of the data is high, a data subscription / publishing mechanism can be adopted; when the real-time requirement of the data is low, a data access mechanism can be adopted. Therefore, when the data types called by the center are continuous acquisition data, discrete acquisition data, and alarm data, that is, when the real-time requirement of the data is high, a data subscription / publishing mechanism is adopted; when the data types called by the center are statistical data and report data, that is, when the real-time requirement of the data is low, a data access mechanism is adopted.

[0071] In an embodiment of the present invention, as Figure 5 shown, the data subscription / publishing mechanism is that the center sends a subscription command to the station. After receiving the subscription command, when processing the data, the station uploads the data that meets the subscription command to the center; the data access mechanism is that the center sends an access command to the station. After receiving the access command, the station directly queries the data that meets the access command from the local and uploads it to the center.

[0072] Among them, when the data types called by the center are continuous acquisition data and discrete acquisition data, the subscription command includes the data type and station identification information; when the data type called by the center is alarm data, the subscription command includes the alarm data type, alarm device type, and station identification information; when the data types called by the center are statistical data and report data, the access command includes the time period and data type information. It should be noted that if the station does not receive the subscription command within the preset time, it will stop sending data to the center.

[0073] Specifically, for continuous acquisition data and discrete acquisition data, the center regularly sends a subscription command to the station according to information such as the acquisition data type to be retrieved and the station identification. After receiving the subscription command, when the station processes the acquisition data subsequently, it actively uploads the acquisition data that meets the requirements of the subscription command to the center in real time; if the station does not receive the acquisition data subscription command for a long time, it will stop actively uploading the acquisition data. For alarm data, the center regularly sends a subscription command to the station according to information such as the alarm data type, alarm device type, and station identification to be retrieved. After receiving the subscription command, when the station generates alarm data subsequently, it actively uploads the alarm data that meets the requirements of the subscription command to the center in real time; if the station does not receive the alarm subscription command for a long time, it will stop actively uploading the alarm data.

[0074] The data subscription / publishing mechanism in this embodiment has good flexibility, which can conveniently control the granularity of data interaction between the control center and the station and reduce redundant data transmission.

[0075] In one embodiment of the present invention, data consistency automatic detection and synchronization operations are performed every preset period, and after performing data consistency comparison detection and synchronization operations on all data within the target time period, the target time period information is recorded and saved.

[0076] Specifically, the above data consistency comparison detection and synchronization operations can be automatically initiated every preset period, such as a target time period, to ensure that the data in each time period can be detected and synchronized. Of course, after the data consistency comparison detection and synchronization operations for the target time period are completed, the target time period information can be recorded to avoid repeated operations on the target time period after the system restarts.

[0077] In summary, the present invention has determined two coding rules for data consistency identification of the data characteristics of the railway signal centralized monitoring system. Through the optimized two-level data identification detection and differential data synchronization method, without significantly increasing the quantity of data interaction and network transmission overhead, the goal of data consistency control between the center and the station is achieved, and the data consistency between the distributed nodes of the railway signal centralized monitoring system can be automatically ensured, improving the overall availability of the system; in addition, the present invention has also determined the data subscription / publishing mechanism between the center and the station for the data service characteristics of the railway signal centralized monitoring system, which has good flexibility, can conveniently control the granularity of data interaction between the control center and the station, and reduce redundant data transmission.

[0078] It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising a..." does not exclude the existence of additional identical elements in the process, method, article or device comprising the element.

[0079] Although the content of the present invention has been described in detail through the above preferred embodiments, it should be recognized that the above description should not be considered as a limitation of the present invention. After those skilled in the art have read the above content, various modifications and substitutions to the present invention will be obvious. Therefore, the protection scope of the present invention should be defined by the appended claims.

Claims

1. A data consistency control method applied to a railway signal centralized monitoring system, characterized in that Including: The center of the railway signal centralized monitoring system acquires all data within the local target time period; The center encodes all the acquired data according to the type of the data to generate a first data consistency identifier; the types of the data include at least one of continuous acquisition data, discrete acquisition data, alarm data, statistical data, and report data; the way the center encodes all the acquired data according to the type of the data includes a single - data consistency identifier encoding method, and the single - data consistency identifier encoding method is a method of encoding based on the key fields of the data, the key fields include a uniqueness identifier field and an index information field, and the single - data consistency identifier has a two - way conversion feature, and decoding the single - data consistency identifier can obtain the key fields; different types of data use different key fields when encoded by the single - data consistency identifier encoding method; The center sends a data consistency detection command to the station. After receiving the command, the station queries all the data within the local target time period of the station and encodes it to generate a second data consistency identifier, and returns the second data consistency identifier to the center; The center compares the first data consistency identifier and the second data consistency identifier, and when the two are compared and consistent, ends the data consistency control.

2. The data consistency control method applied to the railway signal centralized monitoring system according to claim 1, characterized in that The way the center encodes all the acquired data according to the type of the data also includes an overall data consistency identifier encoding method in units of time periods.

3. The data consistency control method applied to the railway signal centralized monitoring system according to claim 2, characterized in that, The overall data consistency identifier encoding method is a two - level encoding method. For the same type of data, the two - level encoding method includes: Select the single - data consistency identifiers of all or part of the data within the target time period to generate an MD5 code with a fixed length; Obtain the data time period information, data type, and data quantity of the data to be encoded, and combine and encode the data time period information, the data type, and the data quantity with the MD5 code to generate the overall data consistency identifier within the target time period.

4. The data consistency control method applied to the railway signal centralized monitoring system according to claim 3, characterized in that, When the data volume of the data to be encoded is greater than a first preset value, select the single - data consistency identifiers of part of the data within the target time period to generate an MD5 code with a fixed length; When the data volume of the data to be encoded is less than a second preset value, or the importance level of the data to be encoded is greater than a preset level, select the single - data consistency identifiers of all the data within the target time period to generate an MD5 code with a fixed length.

5. The data consistency control method applied to the railway signal centralized monitoring system according to claim 1, wherein Both the first data consistency identifier and the second data consistency identifier are the overall data consistency identifiers within the target time period.

6. The data consistency control method applied to the railway signal centralized monitoring system according to claim 1, characterized in that, When the center encodes all the acquired data according to the type of the data, it also generates a third data consistency identifier, and the third data consistency identifier is the single - data consistency identifier of all the data acquired by the center within the target time period.

7. The data consistency control method applied to the railway signal centralized monitoring system according to claim 6, characterized in that, When the center compares the first data consistency identifier and the second data consistency identifier and they are not consistent, the method further includes: The center sends a fourth data consistency identification request command to the station to obtain the fourth data consistency identification, which is a single data consistency identification generated by the station by encoding all data within the local target time period of the station; The center compares the third data consistency identification with the fourth data consistency identification to obtain a fifth data consistency identification, which is a data consistency identification where the third data consistency identification and the fourth data consistency identification are different; The center initiates a data synchronization operation to the station according to the fifth data consistency identification.

8. The data consistency control method applied to the railway signal centralized monitoring system according to claim 7, characterized in that, The center initiating a data synchronization operation to the station according to the fifth data consistency identification includes: The center sends the fifth data consistency identification to the station; The station decodes the fifth data consistency identification to obtain data key fields, and retrieves corresponding differential data from the local station according to the data key fields; The center locally stores the differential data, and returns to the step of obtaining all data within the local target time period, and re-performs data consistency detection until the data comparison is consistent.

9. The data consistency control method applied to the railway signal centralized monitoring system according to claim 1, characterized in that It also includes: Obtain the service characteristics of various types of data, and establish a data call mechanism between the center and the station according to the service characteristics; wherein, when calling data, determine the corresponding data call mechanism according to the service characteristics of the data, and the data call mechanism includes: a data subscription / publishing mechanism and a data access mechanism.

10. The data consistency control method applied to the railway signal centralized monitoring system according to claim 9, characterized in that, The data subscription / publishing mechanism is that the center sends a subscription command to the station, and after the station receives the subscription command, when processing data, uploads the data that meets the subscription command to the center; the data access mechanism is that the center sends an access command to the station, and after the station receives the access command, directly queries the data that meets the access command from the local and uploads it to the center.

11. The data consistency control method applied to the railway signal centralized monitoring system according to claim 10, characterized in that, When the data types called by the center are continuous acquisition data, discrete acquisition data, and alarm data, the data subscription / publishing mechanism is adopted; when the data types called by the center are statistical data and report data, the data access mechanism is adopted.

12. The data consistency control method applied to the railway signal centralized monitoring system according to claim 11, wherein When the data types called by the center are continuous acquisition data and discrete acquisition data, the subscription command includes the data type and station identification information; when the data type called by the center is alarm data, the subscription command includes the alarm data type, alarm device type, and station identification information; when the data types called by the center are statistical data and report data, the access command includes the time period and data type information.

13. The data consistency control method applied to the railway signal centralized monitoring system according to claim 12, characterized in that, If the station does not receive the subscription command within the preset time, it stops sending data to the center.

14. The data consistency control method applied to the railway signal centralized monitoring system according to claim 1, wherein, Perform data consistency automatic detection and synchronization operations at preset intervals.

15. The data consistency control method applied to the railway signal centralized monitoring system according to claim 1, characterized in that, Perform data consistency comparison detection and synchronization operations in batches according to data types.

16. The data consistency control method applied to the railway signal centralized monitoring system according to any one of claims 1-15, characterized in that, After performing data consistency comparison detection and synchronization operations on all data within the target time period, record and save the target time period information.

Citation Information

Patent Citations

  • Railway signal monitoring method and system

    CN101917237A

  • Method for transmitting rail transit alarm data of balanced load

    CN103029722A

  • Data consistency detection method and device, storage medium and server

    CN111177255A