CN111737255A - Method and system for storing interlocking monitoring data - Google Patents

Method and system for storing interlocking monitoring data Download PDF

Info

Publication number
CN111737255A
CN111737255A CN202010491553.7A CN202010491553A CN111737255A CN 111737255 A CN111737255 A CN 111737255A CN 202010491553 A CN202010491553 A CN 202010491553A CN 111737255 A CN111737255 A CN 111737255A
Authority
CN
China
Prior art keywords
stored
data
data packet
cyclic redundancy
storing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010491553.7A
Other languages
Chinese (zh)
Inventor
丁利
宿秀元
侯金川
霍天翔
王�锋
冯维佳
韩冰倩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CRSC Urban Rail Transit Technology Co Ltd
Original Assignee
CRSC Urban Rail Transit Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CRSC Urban Rail Transit Technology Co Ltd filed Critical CRSC Urban Rail Transit Technology Co Ltd
Priority to CN202010491553.7A priority Critical patent/CN111737255A/en
Publication of CN111737255A publication Critical patent/CN111737255A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2291User-Defined Types; Storage management thereof

Abstract

The embodiment of the invention provides a method and a system for storing interlocking monitoring data. The method comprises the following steps: recording the data length of a first data packet to be stored, and writing a first index number into a registry; calculating a cyclic redundancy check value corresponding to a first data packet to be stored, and recording the cyclic redundancy check value as a cyclic redundancy check variable; storing the first data packet to be stored and the associated data information as a binary file; receiving a second data packet to be stored according to a preset period interval; and respectively checking the length of the stored data and the cyclic redundancy check value before storage, and storing a second data packet to be stored if the data packet to be checked passes the check. The embodiment of the invention adopts the interlocking monitoring data storage method based on the data double check and the index registration mechanism, so that the stored data are correct and effective data, the accidentally modified error data cannot be stored, the absolute time sequence is realized in the time sequence, and the stored data cannot be out of order or disordered due to the error of a clock or time correction.

Description

Method and system for storing interlocking monitoring data
Technical Field
The invention relates to the technical field of rail transit data, in particular to a storage method and a storage system of interlocking monitoring data.
Background
At present, in the design of an interlocking monitoring machine of a rail transit interlocking system, two processing modes are generally adopted for storage processing after real-time reception of a large amount of periodic interlocking system data, one mode is a storage mode based on a database, a commonly used database is SQL Server or MySQL, and the data is stored in a database system; the other is a local storage mode based on a text format or a binary format, and the data is directly stored in a local hard disk space.
In practical field application, due to history reasons, communication is carried out between the interlocking monitoring machine and the interlocking monitoring machine through the Arcnet communication network card, the Arcnet communication card can only run on a Win XP system and a Win 2000 system due to driving reasons, so that the software and hardware configuration of an industrial personal computer of the interlocking monitoring machine is generally low, a large amount of interlocking data needs to be received and stored in real time in early peak and late peak periods every day, and for analyzing problems and faults occurring on the field, corresponding interlocking product maintenance personnel carry out off-line analysis on a company under most conditions.
Therefore, for the first storage method, in the process of storing the interlocking data into the database in real time, the processing time of the database is too long, sometimes a compression processing process is added to save space, more memory resources are consumed, and a part of the real-time data is lost; for the second storage mode, due to abnormal power failure of the industrial personal computer or software restart caused by unprocessed exception of the program, the record of the interlocking data may be overlapped and dislocated, and the data cannot be normally played back during playback; and the old and new data are based on the time of storage, and under the condition of time correction, the data time sequence may be disordered, thereby influencing the analysis of the fault problem.
Disclosure of Invention
Embodiments of the present invention provide a method and a system for storing interlocking monitoring data, so as to solve the technical problems in the prior art or at least partially solve the technical problems.
In a first aspect, an embodiment of the present invention provides a method for storing interlocking monitoring data, including:
starting a program to be stored, and receiving a first data packet to be stored;
recording the data length of the first data packet to be stored, and writing a first index number corresponding to the first data packet to be stored into a registry;
calculating a cyclic redundancy check value corresponding to the first data packet to be stored, and recording the cyclic redundancy check value as a cyclic redundancy check variable;
storing the first data packet to be stored and the associated data information of the first data packet to be stored as a binary file;
receiving a second data packet to be stored according to a preset period interval;
and before the second data packet to be stored is stored, checking the length of the stored data and the cyclic redundancy check value respectively, and storing the second data packet to be stored if the data packet to be stored passes the check.
Further, the method further comprises:
and when the storage program is restarted, reading and referencing the index number in the registry.
Further, the storing the first data packet to be stored and the associated data information of the first data packet to be stored as a binary file specifically includes:
storing the first data packet to be stored, the first time information, the first index number and the first data frame tail information in a temporary array;
and storing the temporary array as the binary file.
Further, before storing the second data packet to be stored, the length of the stored data and the cyclic redundancy check value are respectively checked, and if the data packet to be stored passes the check, the second data packet to be stored is stored, which specifically includes:
setting the data length of the first data packet to be stored as a preset data length;
if the length of the stored data is judged to be integral multiple of the length of the preset data, checking the cyclic redundancy check value of the stored data;
and otherwise, deleting tail data of the stored data in the previous period, wherein the length of the tail data is a remainder value of the length of the stored data and the length of the preset data.
Further, before storing the second to-be-stored data packet, the length of the stored data and the cyclic redundancy check value are respectively checked, and if the to-be-stored data passes the check, the second to-be-stored data packet is stored, further comprising:
calculating the cyclic redundancy check variable after the cyclic redundancy check value of the stored data is correspondingly updated;
if the updated cyclic redundancy check variable is judged to be consistent with the cyclic redundancy check variable, storing the second data packet to be stored, and updating the binary file;
otherwise, deleting tail data of the stored data in the previous period, wherein the length of the tail data is the preset data length.
Further, the binary file is stored in a local hard disk of the interlock monitoring machine.
In a second aspect, an embodiment of the present invention provides a storage system for interlocking monitoring data, including:
the first receiving module is used for starting the program to be stored and receiving a first data packet to be stored;
the recording module is used for recording the data length of the first data packet to be stored and writing a first index number corresponding to the first data packet to be stored into a registry;
the calculation module is used for calculating a cyclic redundancy check value corresponding to the first data packet to be stored and recording the cyclic redundancy check value as a cyclic redundancy check variable;
the storage module is used for storing the first data packet to be stored and the associated data information of the first data packet to be stored as a binary file;
the second receiving module is used for receiving a second data packet to be stored according to a preset periodic interval;
and the checking module is used for checking the length of the stored data and the cyclic redundancy check value respectively before the second data packet to be stored is stored, and storing the second data packet to be stored if the data packet to be stored passes the check.
Further, the system further comprises:
and the restarting module is used for reading and referencing the index number in the registry when the storage program is restarted.
In a third aspect, an embodiment of the present invention provides an electronic device, including:
the interlocking monitoring data storage system comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the steps of any one of the interlocking monitoring data storage methods when executing the program.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any one of the interlock monitoring data storage methods.
According to the storage method and system of the interlocking monitoring data, the interlocking monitoring data storage method based on the data double check and the index registration mechanism is adopted, so that the stored data are correct and effective data, the error data which are modified accidentally can not be stored, the absolute time sequence is realized in the time sequence, and the stored data can not be out of order or disordered due to the clock error or time correction.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is an overall architecture diagram of an interlock monitoring machine in an interlock system according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for storing interlocking monitoring data according to an embodiment of the present invention;
FIG. 3 is a block diagram of a storage system for interlocking monitoring data according to an embodiment of the present invention;
fig. 4 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first" and "second" in the embodiments of the present application are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, the terms "comprise" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a system, product or apparatus that comprises a list of elements or components is not limited to only those elements or components but may alternatively include other elements or components not expressly listed or inherent to such product or apparatus. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Aiming at the defects of two existing data storage methods in the prior art, the embodiment of the invention provides an interlocking data monitoring and storing method based on a data double-check and index registration mechanism, which is applied to an interlocking monitoring machine and ensures the accuracy and the time sequence of data in the real-time storage process of interlocking data so as to facilitate interlocking product maintenance personnel to analyze the playback of historical phenomena in the later stage of failure.
In the rail transit interlocking system, as the interlocking software runs in the lower computer security computer Dos system, the running memory is very small; the upper computer interlocking control and display machine needs to process a large amount of uplink and downlink data, so that an interlocking system is generally provided with a set of interlocking monitoring machines, operates on a single machine and is responsible for real-time recording, storage, display and real-time alarm processing of interlocking data. Therefore, when the interlocking system has a fault, the historical operating conditions can be played back through the interlocking monitoring machine, so that the interlocking product personnel can analyze the fault problem conveniently. Therefore, the storage and recording function for the interlocking data requires the accuracy and the time sequence of the storage and the preservation of the data.
The interlocking monitoring machine program provided by the embodiment of the invention comprises a data receiving and storing process and a real-time display process, wherein a data receiving part mainly receives original logic operation data of an interlocking system through an Arcnet communication card, and then the data receiving part is divided into two paths, one path of data is stored in a local hard disk in a binary format in real time, and the other path of data is transmitted to the real-time display process for display processing in a shared memory mode of inter-process communication, the whole architecture of the interlocking monitoring machine program is shown in figure 1, the problem of data storage error caused by various software abnormalities due to the fact that data is not checked in the process is mainly solved; and the data index has some dislocation because of timing, which brings obstacle to the analysis of fault problem.
Fig. 2 is a flowchart of a method for storing interlocking monitoring data according to an embodiment of the present invention, as shown in fig. 2, including:
s1, starting the program to be stored, and receiving a first data packet to be stored;
s2, recording the data length of the first data packet to be stored, and writing a first index number corresponding to the first data packet to be stored into a registry;
s3, calculating a cyclic redundancy check value corresponding to the first data packet to be stored, and recording the cyclic redundancy check value as a cyclic redundancy check variable;
s4, storing the first data packet to be stored and the associated data information of the first data packet to be stored as binary files;
s5, receiving a second data packet to be stored according to a preset period interval;
and S6, before the second data packet to be stored is stored, the length of the stored data and the cyclic redundancy check value are respectively checked, and the second data packet to be stored is stored if the length of the stored data and the cyclic redundancy check value pass the check.
Specifically, when the storage program is started for the first time, that is, the storage program starts to receive the interlock logic data periodically, when receiving a first packet of data, a Cyclic Redundancy Check (CRC) calculation is performed on the received data once, the data length of the data packet and a corresponding CRC Value variable Value are temporarily recorded, the first packet of data is stored in a local hard disk in a binary form in real time, and the Index number of the data is recorded as Index and written into a system registry.
Starting to receive second packet data, reading the total length of a data packet stored in a local hard disk before storing, performing CRC value check if the total length of the data packet is consistent with the total length of the data packet, otherwise, clearing the tail data of the stored data according to a certain length, writing the binary format of the second data packet, recording the Index number of a mark corresponding to the Index number as Index +1 and writing the Index number into a system registry; and if the CRC Value is inconsistent with the updated CRC Value variable Value in the CRC Value checking process, writing the second packet data into a local hard disk for storage, updating the binary file, and if the updated CRC Value variable Value is inconsistent with the updated CRC Value variable Value, deleting the data stored in the previous period according to the preset data length.
The embodiment of the invention adopts the interlocking monitoring data storage method based on the data double check and the index registration mechanism, so that the stored data are correct and effective data, the accidentally modified error data cannot be stored, the absolute time sequence is realized in the time sequence, and the stored data cannot be out of order or disordered due to the error of a clock or time correction.
Based on the above embodiment, the method further comprises:
and when the storage program is restarted, reading and referencing the index number in the registry.
Specifically, in the process of storing and verifying data, the index numbers corresponding to the data packets are written into the registry, and when the system is restarted each time, including manual restart or restart caused by program accidents, the index values in the registry are read before the stored program starts to run again, so that the data timing sequence is guaranteed not to be disordered even if the clock is disordered or corrected.
Based on any of the above embodiments, step S4 in the method specifically includes:
storing the first data packet to be stored, the first time information, the first index number and the first data frame tail information in a temporary array;
and storing the temporary array as the binary file.
Specifically, in order to conveniently record the relevant information of each data packet to be stored, temporary data is established to store the relevant information, the storage comprises the data packet to be stored, time information, index number and data frame tail information corresponding to the data packet, and the time information, index number and data frame tail information are written into a local hard disk space in a binary format to be stored, so that a binary file is formed.
Based on any of the above embodiments, step S6 in the method specifically includes:
setting the data length of the first data packet to be stored as a preset data length;
if the length of the stored data is judged to be integral multiple of the length of the preset data, checking the cyclic redundancy check value of the stored data;
and otherwise, deleting tail data of the stored data in the previous period, wherein the length of the tail data is a remainder value of the length of the stored data and the length of the preset data.
Wherein, step S6 in the method further includes:
calculating the cyclic redundancy check variable after the cyclic redundancy check value of the stored data is correspondingly updated;
if the updated cyclic redundancy check variable is judged to be consistent with the cyclic redundancy check variable, storing the second data packet to be stored, and updating the binary file;
otherwise, deleting tail data of the stored data in the previous period, wherein the length of the tail data is the preset data length.
Specifically, the data length of the received first packet to be stored is set as a preset data length based on the data length. Firstly, checking the length (offset) of stored data, if the length of the stored data is judged to be integral multiple of the length of the preset data, carrying out next CRC check, if the length of the stored data is judged not to be integral multiple, deleting redundant data, namely deleting tail data of the stored data in the previous period, wherein the length of the deleted tail data is obtained by carrying out remainder operation on the length of the stored data and the length of the preset data.
In the process of performing CRC, firstly, a cyclic redundancy check variable Value after the stored data is updated is obtained through calculation and is compared with a previous cyclic redundancy check variable Value, if the two variables are judged to be consistent, a newly received data packet, namely a second data packet to be stored is locally stored, a binary file is updated, if the two variables are judged to be inconsistent, tail data of the stored data in the previous period is deleted, the deleted tail data length is a preset data length, and the deletion is equivalent to the whole deletion of the previous data packet.
The embodiment of the invention performs double check on the data length and the CRC value based on the identification index number, ensures that the data length is checked before the data is stored, can prevent the data from being partially lost, and simultaneously performs CRC check on the stored data, and prevents the error data after the data is accidentally tampered from being stored.
Taking the urban rail transit signal system DS6-60 interlocking subsystem as an example, the interlocking logic sends 28000 bytes of data to the interlocking monitor in real time at a period of 250 ms. The monitoring machine stores the interlocking data in real time so as to analyze the problems in the playback of historical conditions at a later stage.
Step 1: after a storage program is started for the first time, 28000 bytes of data of a first interlocking period are received, and the length of the recorded data is N; calculating a CRC value corresponding to the 28000 bytes of data, and recording the CRC value to a variable CRCValue;
step 2: recording the Index number of the data at this time as 0, and writing the Index number into a registry;
step 3: storing the 28000 bytes of data, time information (24 bytes), data Index number Index (int type 4 bytes) and data frame end information (4 bytes) into a temporary array tmp _ data [28000+24+4+4] for storage, totaling 28032 bytes of data, and writing the 28000 bytes of data into a local hard disk space in a binary format for storage to form a binary dat file;
step 4: when 28000 bytes of interlocking data of the second period are received, recording the Index number of the data at this time as Index +1 and writing the Index number into a registry;
step 5: before storing data, judging whether the length of the stored data is an integral multiple of N, if so, executing Step 6; otherwise, executing Step 7;
step 6: calculating a CRC value NewCRCValue of the stored data, comparing the CRC value NewCRCValue with the CRCValue value, and if the CRC value NewCRCValue is consistent with the CRCValue value, executing Step 9; otherwise, executing Step 8;
step 7: deleting the data stored in the previous period, and deleting data at the tail part of the data, wherein the length is a remainder value of the total length N of the stored data and the length N of a single period;
step 8: deleting the data stored in the previous period, and deleting the data with the tail length of N bytes;
step 9: writing 28032 bytes of new periodic data into the local hard disk space for storage, and updating the binary dat file;
step 10: cycling from Step4 to Step 9;
step 11: and after the program is restarted accidentally or manually, reading the data Index number in the registry and assigning the data Index number to Index, and then executing Step 4-Step 9 in a circulating manner.
Fig. 3 is a structural diagram of a storage system of interlocking monitoring data according to an embodiment of the present invention, as shown in fig. 3, including: a first receiving module 31, a recording module 32, a calculating module 33, a storing module 34, a second receiving module 35 and a verifying module 36; wherein:
the first receiving module 31 is used for starting a program to be stored and receiving a first data packet to be stored; the recording module 32 is configured to record a data length of the first to-be-stored data packet, and write a first index number corresponding to the first to-be-stored data packet into a registry; the calculating module 33 is configured to calculate a cyclic redundancy check value corresponding to the first to-be-stored data packet, and record the cyclic redundancy check value as a cyclic redundancy check variable; the storage module 34 is configured to store the first to-be-stored data packet and the associated data information of the first to-be-stored data packet as a binary file; the second receiving module 35 is configured to receive a second data packet to be stored at preset periodic intervals; the checking module 36 is configured to check the length of the stored data and the cyclic redundancy check value before storing the second data packet to be stored, and store the second data packet to be stored if the length of the stored data and the cyclic redundancy check value pass the check.
The system provided by the embodiment of the present invention is used for executing the corresponding method, the specific implementation manner of the system is consistent with the implementation manner of the method, and the related algorithm flow is the same as the algorithm flow of the corresponding method, which is not described herein again.
The embodiment of the invention adopts the interlocking monitoring data storage method based on the data double check and the index registration mechanism, so that the stored data are correct and effective data, the accidentally modified error data cannot be stored, the absolute time sequence is realized in the time sequence, and the stored data cannot be out of order or disordered due to the error of a clock or time correction.
Based on the above embodiment, the system further includes a restart module 37, where the restart module 37 is configured to read and reference the index number in the registry when the storage program is restarted.
Fig. 4 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 4: a processor (processor)410, a communication Interface 420, a memory (memory)430 and a communication bus 440, wherein the processor 410, the communication Interface 420 and the memory 430 are communicated with each other via the communication bus 440. The processor 410 may call logic instructions in the memory 430 to perform the following method: starting a program to be stored, and receiving a first data packet to be stored; recording the data length of the first data packet to be stored, and writing a first index number corresponding to the first data packet to be stored into a registry; calculating a cyclic redundancy check value corresponding to the first data packet to be stored, and recording the cyclic redundancy check value as a cyclic redundancy check variable; storing the first data packet to be stored and the associated data information of the first data packet to be stored as a binary file; receiving a second data packet to be stored according to a preset period interval; and before the second data packet to be stored is stored, checking the length of the stored data and the cyclic redundancy check value respectively, and storing the second data packet to be stored if the data packet to be stored passes the check.
In addition, the logic instructions in the memory 430 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the transmission method provided in the foregoing embodiments when executed by a processor, and for example, the method includes: starting a program to be stored, and receiving a first data packet to be stored; recording the data length of the first data packet to be stored, and writing a first index number corresponding to the first data packet to be stored into a registry; calculating a cyclic redundancy check value corresponding to the first data packet to be stored, and recording the cyclic redundancy check value as a cyclic redundancy check variable; storing the first data packet to be stored and the associated data information of the first data packet to be stored as a binary file; receiving a second data packet to be stored according to a preset period interval; and before the second data packet to be stored is stored, checking the length of the stored data and the cyclic redundancy check value respectively, and storing the second data packet to be stored if the data packet to be stored passes the check.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for storing interlocking monitoring data is characterized by comprising the following steps:
starting a program to be stored, and receiving a first data packet to be stored;
recording the data length of the first data packet to be stored, and writing a first index number corresponding to the first data packet to be stored into a registry;
calculating a cyclic redundancy check value corresponding to the first data packet to be stored, and recording the cyclic redundancy check value as a cyclic redundancy check variable;
storing the first data packet to be stored and the associated data information of the first data packet to be stored as a binary file;
receiving a second data packet to be stored according to a preset period interval;
and before the second data packet to be stored is stored, checking the length of the stored data and the cyclic redundancy check value respectively, and storing the second data packet to be stored if the data packet to be stored passes the check.
2. The method of storing interlock monitoring data according to claim 1, further comprising:
and when the storage program is restarted, reading and referencing the index number in the registry.
3. The method for storing interlocking monitoring data according to claim 1 or 2, wherein the storing the first data packet to be stored and the associated data information of the first data packet to be stored as a binary file specifically comprises:
storing the first data packet to be stored, the first time information, the first index number and the first data frame tail information in a temporary array;
and storing the temporary array as the binary file.
4. The method according to claim 1, wherein before storing the second packet to be stored, the length of the stored data and the cyclic redundancy check value are respectively checked, and if the second packet to be stored passes the check, the second packet to be stored is stored, specifically comprising:
setting the data length of the first data packet to be stored as a preset data length;
if the length of the stored data is judged to be integral multiple of the length of the preset data, checking the cyclic redundancy check value of the stored data;
and otherwise, deleting tail data of the stored data in the previous period, wherein the length of the tail data is a remainder value of the length of the stored data and the length of the preset data.
5. The method for storing interlocking monitoring data according to claim 4, wherein before storing the second packet to be stored, the length of the stored data and the cyclic redundancy check value are respectively checked, and if the check is passed, the second packet to be stored is stored, further comprising:
calculating the cyclic redundancy check variable after the cyclic redundancy check value of the stored data is correspondingly updated;
if the updated cyclic redundancy check variable is judged to be consistent with the cyclic redundancy check variable, storing the second data packet to be stored, and updating the binary file;
otherwise, deleting tail data of the stored data in the previous period, wherein the length of the tail data is the preset data length.
6. The method of claim 1, wherein the binary file is stored in a local hard disk of the interlock monitoring machine.
7. A storage system for interlocking monitoring data, comprising:
the first receiving module is used for starting the program to be stored and receiving a first data packet to be stored;
the recording module is used for recording the data length of the first data packet to be stored and writing a first index number corresponding to the first data packet to be stored into a registry;
the calculation module is used for calculating a cyclic redundancy check value corresponding to the first data packet to be stored and recording the cyclic redundancy check value as a cyclic redundancy check variable;
the storage module is used for storing the first data packet to be stored and the associated data information of the first data packet to be stored as a binary file;
the second receiving module is used for receiving a second data packet to be stored according to a preset periodic interval;
and the checking module is used for checking the length of the stored data and the cyclic redundancy check value respectively before the second data packet to be stored is stored, and storing the second data packet to be stored if the data packet to be stored passes the check.
8. The system for storing interlocking monitoring data according to claim 7, further comprising:
and the restarting module is used for reading and referencing the index number in the registry when the storage program is restarted.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the steps of the method of storing interlock monitoring data according to any of claims 1 to 6.
10. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the interlock monitoring data storage method according to any one of claims 1 to 6.
CN202010491553.7A 2020-06-02 2020-06-02 Method and system for storing interlocking monitoring data Pending CN111737255A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010491553.7A CN111737255A (en) 2020-06-02 2020-06-02 Method and system for storing interlocking monitoring data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010491553.7A CN111737255A (en) 2020-06-02 2020-06-02 Method and system for storing interlocking monitoring data

Publications (1)

Publication Number Publication Date
CN111737255A true CN111737255A (en) 2020-10-02

Family

ID=72648267

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010491553.7A Pending CN111737255A (en) 2020-06-02 2020-06-02 Method and system for storing interlocking monitoring data

Country Status (1)

Country Link
CN (1) CN111737255A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113157953A (en) * 2021-02-24 2021-07-23 山东大学 Cross-terminal picture transmission method and system
CN113535461A (en) * 2021-06-09 2021-10-22 卡斯柯信号(成都)有限公司 Configuration file based visual data verification method for interlocking lower computer
CN114513498A (en) * 2021-12-29 2022-05-17 广东电网有限责任公司广州供电局 File transmission checking method and device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6865577B1 (en) * 2000-11-06 2005-03-08 At&T Corp. Method and system for efficiently retrieving information from a database
WO2011144179A2 (en) * 2011-06-08 2011-11-24 华为技术有限公司 Method and apparatus for performing cyclic redundancy check for data packets
CN103500173A (en) * 2013-09-03 2014-01-08 北京泰乐德信息技术有限公司 Method for inquiring rail transit monitoring data
CN107968729A (en) * 2017-12-22 2018-04-27 中国铁道科学研究院通信信号研究所 A kind of railway signal data flow storage management system
CN109947368A (en) * 2019-03-21 2019-06-28 记忆科技(深圳)有限公司 Data reliability detection method, device, computer equipment and storage medium
CN110442473A (en) * 2019-07-30 2019-11-12 深圳市元征科技股份有限公司 A kind of non-volatile data storage method, apparatus, electronic equipment and medium
CN110784419A (en) * 2019-10-22 2020-02-11 中国铁道科学研究院集团有限公司电子计算技术研究所 Method and system for visualizing professional data of railway electric affairs

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6865577B1 (en) * 2000-11-06 2005-03-08 At&T Corp. Method and system for efficiently retrieving information from a database
WO2011144179A2 (en) * 2011-06-08 2011-11-24 华为技术有限公司 Method and apparatus for performing cyclic redundancy check for data packets
CN103500173A (en) * 2013-09-03 2014-01-08 北京泰乐德信息技术有限公司 Method for inquiring rail transit monitoring data
CN107968729A (en) * 2017-12-22 2018-04-27 中国铁道科学研究院通信信号研究所 A kind of railway signal data flow storage management system
CN109947368A (en) * 2019-03-21 2019-06-28 记忆科技(深圳)有限公司 Data reliability detection method, device, computer equipment and storage medium
CN110442473A (en) * 2019-07-30 2019-11-12 深圳市元征科技股份有限公司 A kind of non-volatile data storage method, apparatus, electronic equipment and medium
CN110784419A (en) * 2019-10-22 2020-02-11 中国铁道科学研究院集团有限公司电子计算技术研究所 Method and system for visualizing professional data of railway electric affairs

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高岳;马帅;: "CRC算法在计算机网络通信中的应用研究", 信息记录材料, no. 10 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113157953A (en) * 2021-02-24 2021-07-23 山东大学 Cross-terminal picture transmission method and system
CN113157953B (en) * 2021-02-24 2022-04-29 山东大学 Cross-terminal picture transmission method and system
CN113535461A (en) * 2021-06-09 2021-10-22 卡斯柯信号(成都)有限公司 Configuration file based visual data verification method for interlocking lower computer
CN113535461B (en) * 2021-06-09 2023-10-24 卡斯柯信号(成都)有限公司 Visual verification method for interlocking lower computer data based on configuration file
CN114513498A (en) * 2021-12-29 2022-05-17 广东电网有限责任公司广州供电局 File transmission checking method and device, computer equipment and storage medium
CN114513498B (en) * 2021-12-29 2024-04-02 广东电网有限责任公司广州供电局 File transmission verification method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111737255A (en) Method and system for storing interlocking monitoring data
CN109739727B (en) Service monitoring method and device in micro-service architecture
US8176552B2 (en) Computer system, computer program product and method for assessing a profile of a computer system
CN110046029A (en) Data processing method and device applied to multi-level buffer in cluster
CN113946499A (en) Micro-service link tracking and performance analysis method, system, equipment and application
CN108958965B (en) Method, device and equipment for monitoring recoverable ECC errors by BMC
CN113259166A (en) Log alarm processing method and device
CN111104238B (en) CE-based memory diagnosis method, device and medium
US8037359B2 (en) Operation management system having a process execution apparatus, information management apparatus, and process analyzing apparatus, process analyzing apparatus, recording medium in which process analysis program is recorded, and process analysis method
CN111737385A (en) Electronic map data error detection method and device
CN116957764A (en) Account data processing method and device, electronic equipment and storage medium
CN114037539A (en) Method and device for detecting single-link failure of insurance
CN115237656A (en) Error reporting processing method, device, equipment and storage medium of server
CN113221151A (en) Data processing method and device based on block chain and storage medium
CN114416420A (en) Equipment problem feedback method and system
CN110689429B (en) Method, device and system for storing certificate transaction data
CN110348244B (en) Arbitration-based multi-checksum verification method, system, device and storage medium
CN113301147A (en) Partial discharge data processing system based on data transmission
CN112230949A (en) Terminal software upgrading method and device, electronic equipment and storage medium
CN116719663B (en) Data processing method, device, equipment and readable storage medium
CN114826884B (en) Method, device, equipment and readable medium for positioning communication faults of cross-equipment protocol
CN116088456B (en) MES-based intelligent factory product quality monitoring method and system
CN116991710B (en) Automatic test method and system, electronic equipment and storage medium thereof
CN117331491A (en) Nand Flash chip data storage method and device
CN117351855A (en) LED display screen operation monitoring and early warning system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination