CN113641717A - Method and device for searching change of train operation diagram, electronic equipment and storage medium - Google Patents

Method and device for searching change of train operation diagram, electronic equipment and storage medium Download PDF

Info

Publication number
CN113641717A
CN113641717A CN202110860069.1A CN202110860069A CN113641717A CN 113641717 A CN113641717 A CN 113641717A CN 202110860069 A CN202110860069 A CN 202110860069A CN 113641717 A CN113641717 A CN 113641717A
Authority
CN
China
Prior art keywords
change data
data packet
file
time
target file
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
CN202110860069.1A
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 CN202110860069.1A priority Critical patent/CN113641717A/en
Publication of CN113641717A publication Critical patent/CN113641717A/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/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • 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/24Querying
    • G06F16/248Presentation of query results
    • 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/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification
    • G06F16/287Visualization; Browsing

Abstract

The invention provides a method, a device, electronic equipment and a storage medium for searching changes of a train working diagram, wherein the method comprises the following steps: determining a time range to be searched; determining a target file from each file based on the time range and the record starting and stopping time in the file header of each file stored in advance, wherein the files store a plurality of operation diagram change data packets according to the receiving sequence, and the record starting and stopping time is determined based on the time of receiving the operation diagram change data packets at the first and the latest in the corresponding files; the method and the device have the advantages that the change data packets of the operation diagrams in the target file are analyzed, the data content of the change data packets of the operation diagrams in the target file is obtained and displayed, the defect that time and labor are consumed in the conventional scheme for positioning the historical change data of the train operation diagrams is overcome, the relevant information of the train can be clearly and visually obtained, and the problem searching efficiency is improved.

Description

Method and device for searching change of train operation diagram, electronic equipment and storage medium
Technical Field
The invention relates to the field of urban rail transit operation, in particular to a method and a device for searching changes of a train operation diagram, electronic equipment and a storage medium.
Background
The train operation diagram is a technical file for representing the operation of a train in a railway section and the arrival and departure or passing time of the train in a station, and is the basis for organizing the operation of the train on the whole road. The train operation diagram represents the operation process of a train by using a coordinate principle, and the specific representation method is divided into two types, wherein the first type is that a horizontal axis is used as a time axis, and a vertical axis is used as a distance axis; the second is that the horizontal axis is taken as a distance axis and the vertical axis is taken as a time axis. The train operation diagram is widely applied to the scenes of train scheduling, troubleshooting, class dispatching and the like.
In the scenes of troubleshooting, train diagram adjustment and the like, developers need to use historical change data of the train diagram to perform problem location and analysis, for example, to search fault points through log files of software, but the method needs to rely on a large amount of practical experience, which not only consumes a large amount of time, but also causes low efficiency of problem search, and affects safe driving of trains.
Disclosure of Invention
The invention provides a method and a device for searching for changes of a train running chart, electronic equipment and a storage medium, which are used for solving the defects that time and labor are consumed for searching problems through historical change data of the train running chart in the prior art.
The invention provides a method for searching changes of a train working diagram, which comprises the following steps:
determining a time range to be searched;
determining a target file from each file based on the time range and the record starting and stopping time in the file header of each file stored in advance, wherein the files store a plurality of operation diagram change data packets according to the receiving sequence, and the record starting and stopping time is determined based on the time of receiving the operation diagram change data packets at the first and the latest in the corresponding files;
and analyzing each operation diagram change data packet in the target file to obtain and display the data content of each operation diagram change data packet in the target file.
According to the train diagram change searching method provided by the invention, the step of obtaining and displaying the data content of each diagram change data packet in the target file comprises the following steps:
if the current display mode is a speed-multiplying mode, determining the display data volume in unit time based on the playback speed in the speed-multiplying mode and the data packet number of the operation diagram change data packets contained in the target file;
and sequentially displaying the data content of each operation graph change data packet in the target file based on the display data volume in the unit time.
According to the train operation diagram change searching method provided by the invention, the analysis of each operation diagram change data packet in the target file is carried out to obtain and display the data content of each operation diagram change data packet in the target file, and the method comprises the following steps:
and if the current display mode is the single-step mode, analyzing a running chart change data packet from the target file every time a single-step playback command is received, and obtaining the data content of the running chart change data packet for displaying.
According to the train diagram change searching method provided by the invention, the analysis of each diagram change data packet in the target file comprises the following steps:
analyzing each operation diagram change data packet in the target file based on an analysis protocol corresponding to each operation diagram change data packet in the target file;
the parsing protocol is determined based on the storage mode of the corresponding runtime graph change data packet.
The method for searching the change of the train working diagram provided by the invention further comprises the following steps:
receiving a running chart change data packet, and determining the data packet length of the received running chart change data packet;
if the sum of the length of the character string of the current character string and the length of the data packet is less than or equal to a preset length threshold value, writing the received running chart change data packet into the tail part of the current character string;
and if not, writing the current character string into a newly-built file for storage, writing the received running chart change data packet into the newly-built character string, and taking the newly-built character string as the current character string.
According to the method for searching the change of the train operation diagram, the step of writing the current character string into the newly-built file storage comprises the following steps:
generating a file header based on the record start-stop time, the number of data packets and the length of the character string of the operation diagram change data packets contained in the current character string;
and writing the file header and the current character string into a newly-built file for storage.
According to the train working diagram change searching method provided by the invention, the determination of the time range to be searched comprises the following steps:
acquiring the occurrence time of a fault to be checked;
and determining the time range to be searched based on the occurrence time.
The invention also provides a device for searching the change of the train working diagram, which comprises:
the time determining unit is used for determining a time range to be searched;
a target determination unit configured to determine a target file from each file based on the time range and a record start/stop time in a file header of each file stored in advance, the file storing a plurality of runtime map variation packets in a reception order, the record start/stop time being determined based on times at which the runtime map variation packets are received first and last in the corresponding file;
and the analysis display unit is used for analyzing each operation diagram change data packet in the target file to obtain and display the data content of each operation diagram change data packet in the target file.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize the steps of the train working diagram change searching method.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the train diagram change lookup method as described in any of the above.
According to the train operation diagram change searching method, the train operation diagram change searching device, the electronic equipment and the storage medium, after the operation diagram change data packets are received, the operation diagram change data packets are stored into the files according to the receiving sequence, and the recording starting and stopping time in the file header of the corresponding file is determined according to the time of receiving the operation diagram change data packets firstly and lastly in each file; in order to determine a target file from each file according to a predetermined time range to be searched and the record starting and stopping time in the file header of each file stored in advance when troubleshooting is performed; the defects that time and labor are consumed for positioning through historical change data of a train operation diagram in the traditional scheme are overcome; and the data content of each operation diagram change data packet in the analyzed target file is displayed, so that the related information of the train can be clearly and visually acquired, and the efficiency of searching the problems is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram of a method for searching for changes in a train diagram according to an embodiment of the present invention;
FIG. 2 is a general flowchart of a method for searching for changes in a train diagram according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a train diagram change searching device provided by the present invention;
fig. 4 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, 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 train operation diagram is a diagram for representing the operation time of a train in each section of a railway and the arrival or passing time of each station by using a coordinate principle, and is the basis of train operation. In the scenes of troubleshooting, train diagram adjustment and the like, the problem is usually located and analyzed by using historical change data of the train diagram, but the method is based on a large amount of actual operation experience, which not only needs a large amount of time, but also cannot clearly display position information, arrival time, departure time, passing time and the like of the train.
In view of the above situation, the present invention provides a method for searching for a change in a train diagram, and fig. 1 is a schematic flow diagram of the method for searching for a change in a train diagram provided in an embodiment of the present invention, as shown in fig. 1, the method includes:
step 110, determining a time range to be searched;
specifically, before searching for a problem through the historical change data of the train operation diagram, a time range of the historical change data of the train operation diagram to be searched, namely a time range to be searched, needs to be determined, and the historical change data of the train operation diagram, namely an operation diagram change data packet. Here, the time range to be searched may be directly sent by the user, or may be determined according to the occurrence time of the fault sent by the user, which is not specifically limited in the embodiment of the present invention.
Step 120, determining a target file from each file based on the time range and the record start and stop time in the file header of each file stored in advance, wherein the files store a plurality of runtime map change data packets according to the receiving sequence, and the record start and stop time is determined based on the time of receiving the runtime map change data packets at the first and the latest in the corresponding files;
in order to solve the problem that the problem of searching for the historical change data through the train operation diagram is time-consuming and labor-consuming in positioning due to the fact that the problem is found based on actual operation experience in the traditional scheme, the received operation diagram change data packets are stored according to the receiving sequence of the operation diagram change data packets, so that the operation diagram change data packets needing to be searched can be directly selected from the prestored operation diagram change data packets according to the time range to be searched when troubleshooting is conducted.
Specifically, after receiving the runtime graph change data packets, storing the runtime graph change data packets to a file according to the receiving sequence of the runtime graph change data packets. The recording start-stop time of each runtime map change data packet is stored in the file header of each file, the recording start-stop time comprises recording start time and recording stop time, the recording start time in the file header of the corresponding file can be determined according to the time of receiving the runtime map change data packet stored in each file firstly, and the recording stop time in the file header of the corresponding file can be determined according to the time of receiving the runtime map change data packet stored in each file latest.
And then, selecting a file matched with the time range to be searched from the files storing the plurality of the operation graph change data packets according to the time range to be searched and the record starting and ending time in the file header of each file stored in advance, and taking the selected file as a target file.
It should be noted that, because the size of the time range to be searched is not fixed, the number of the target files selected according to the time range to be searched is also not fixed, and may be one or multiple, and this is not specifically limited in the embodiment of the present invention.
And step 130, analyzing each operation diagram change data packet in the target file to obtain and display the data content of each operation diagram change data packet in the target file.
When the problem is found in the traditional scheme, the position information, the arrival time, the departure time, the passing time and the like of the train cannot be clearly displayed. Therefore, in the embodiment of the invention, after the target file is determined, the data content of each operation diagram change data packet in the target file can be displayed, so that developers can clearly and intuitively acquire the position information, the arrival time, the departure time, the passing time and the like of the train.
Before displaying the data content of each runtime graph change data packet in the target file, each runtime graph change data packet in the target file needs to be analyzed, for example, the corresponding runtime graph change data packet may be analyzed according to an analysis protocol corresponding to each runtime graph change data packet, and the data content of each runtime graph change data packet is obtained after the analysis is completed.
And then, displaying the data content of each operation graph change data packet in the obtained target file. In consideration of the uncertainty of the number of data packets and the size of the data packets of the runtime graph change data packet contained in the target file, in order to improve the efficiency of problem finding, multiple display modes, such as a single step mode and a double speed mode, may be set during specific display. The display modes and the display speeds under different display modes are different, and the problem searching efficiency is improved by setting different display modes to assist in searching the problems.
According to the train operation diagram change searching method provided by the embodiment of the invention, after the operation diagram change data packets are received, the operation diagram change data packets are stored into the files according to the receiving sequence, and the recording start-stop time in the file header of the corresponding file is determined according to the time of receiving the operation diagram change data packets firstly and lastly in each file; in order to determine a target file from each file according to a predetermined time range to be searched and the record starting and stopping time in the file header of each file stored in advance when troubleshooting is performed; the defects that time and labor are consumed for positioning through historical change data of a train operation diagram in the traditional scheme are overcome; and the data content of each operation diagram change data packet in the analyzed target file is displayed, so that the related information of the train can be clearly and visually acquired, and the efficiency of searching the problems is improved.
Based on the above embodiment, in step 130, obtaining and displaying the data content of each runtime graph change data packet in the target file includes:
if the current display mode is the speed-multiplying mode, determining the display data volume in unit time based on the playback speed in the speed-multiplying mode and the number of the data packets of the operation diagram change data packets contained in the target file;
and sequentially displaying the data content of each operation graph change data packet in the target file based on the display data volume in unit time.
Specifically, in step 130, when the data content of each runtime graph change data packet in the target file obtained by analysis is displayed, different display modes may be selected. Such as a double speed mode and a single step mode. The multiple speed mode corresponds to multiple playback speeds, such as double speed, quadruple speed, double-dot and quintuple speed, and the like. If the currently selected display mode is the double-speed mode, the display data amount to be displayed in unit time can be determined according to the playback speed in the double-speed mode and the number of the data packets of the operation graph change data packets contained in the target file. For example, if the playback speed in the currently selected double speed mode is double speed, the number of packets of the runtime map variation packets included in the target file is 10, the sum of the packet sizes of the 10 runtime map variation packets included in the target file is 10G, and the presentation is required to be completed within 1 hour, the presentation data amount to be presented per second is 2.778 MB/s.
And then sequentially displaying the data content of each operation graph change data packet in the target file according to the determined display data volume in the unit time and the receiving sequence of each operation graph change data packet in the target file.
Based on the above embodiment, in step 130, analyzing each runtime graph change data packet in the target file to obtain and display the data content of each runtime graph change data packet in the target file, including:
if the current display mode is the single-step mode, each time a single-step playback command is received, analyzing a running chart change data packet from the target file to obtain the data content of the running chart change data packet for displaying.
Specifically, when the data content of each runtime diagram change data packet in the target file is displayed in step 130, if the currently selected display mode is the single-step mode, each time a single-step playback instruction is received, one runtime diagram change data packet in each runtime diagram change data packet included in the target file is analyzed to obtain the data content of the analyzed runtime diagram change data packet, and the data content of the parsed runtime diagram change data packet is displayed. The single-step playback instruction may be a click operation of a user, or may also be an analysis instruction sent by the user, which is not specifically limited in this embodiment of the present invention.
It should be noted that, in the single-step playback mode, the runtime map change data packets in the target file are not necessarily analyzed according to the receiving sequence of the runtime map change data packets. For example, the previous single-step playback instruction may instruct the 1 st runtime graph change data packet in the target file to be parsed, and the single-step playback instruction received at the current time may instruct the third runtime graph change data packet in the target file to be parsed.
Based on the above embodiment, in step 130, analyzing each runtime graph change data packet in the target file includes:
analyzing each operation diagram change data packet in the target file based on the analysis protocol corresponding to each operation diagram change data packet in the target file;
the resolution protocol is determined based on the storage mode of the corresponding operation diagram change data packet.
Specifically, after the target file is determined from the pre-stored files through step 120, the runtime graph change data packages in the target file need to be analyzed. Because the data contents contained in different runtime map change data packets are different, when the runtime map change data packets are stored, different storage modes can be adopted for the different runtime map change data packets, and the storage mode of each runtime map change data packet corresponds to the analysis mode thereof. Therefore, before analyzing each runtime graph change data packet in the target file, an analysis protocol corresponding to the runtime graph change data packet needs to be determined according to a storage mode of each runtime graph change data packet in the target file.
Then, the corresponding runtime diagram change data packet can be analyzed according to the analysis protocol of each runtime diagram change data packet in the target file, for example, if the analysis protocol of the 1 st runtime diagram change data packet is the a protocol, the analysis protocol of the 2 nd runtime diagram change data packet is the B protocol, and the analysis protocol of the 3 rd runtime diagram change data packet is the C protocol, the 1 st runtime diagram change data packet can be analyzed according to the a protocol of the 1 st runtime diagram change data packet; analyzing the 2 nd operation chart change data packet according to the protocol B of the 2 nd operation chart change data packet; and analyzing the 3 rd operation chart change data packet according to the protocol C of the 3 rd operation chart change data packet.
Based on the above embodiment, the process of finding a problem by running a graph to change a data packet is described by taking the line 5 of the subway in city a as an example.
Specifically, each of the runtime map change packets is defined to include a reception time of 4 bytes in length, a packet length of 4 bytes in length, and a data content of m bytes in length. Each file storing a plurality of runtime map change data packets is defined to include a file header of 16 bytes and a file body, and the file body corresponds to each runtime map change data packet stored in the file. The 16-byte header of each file contains a recording start time of 4 bytes, a recording end time of 4 bytes, a file length of 4 bytes, and the number of packets of 4 bytes.
The file format of each file is shown in the following table:
Figure BDA0003185501770000101
and during the on-line period of the runtime diagram software, storing the received runtime diagram change data packets into files according to the receiving sequence of the runtime diagram change data packets, storing the record start-stop time of each runtime diagram change data packet in the file header of each file, and determining the record start-stop time in the file header of the corresponding file according to the time of receiving the runtime diagram change data packets firstly and latest in each file.
After the software is switched to a playback mode, clicking a button for selecting a playback file, popping up a file selection frame, and selecting a target file from the files according to a time range to be searched and the pre-stored record starting and ending time in a file header of each file; and selecting a target file from the file selection box and importing the target file. And then, analyzing each operation diagram change data packet in the target file, displaying the receiving time of each operation diagram change data packet after the analysis is finished, clicking a playback starting button, and sequentially sending the operation diagram change data packets to the operation diagram module of the software according to the sequence of the receiving time from small to large by using a cycle timer with the time length of 1 second so that the operation diagram module plays back according to the received operation diagram change data packets.
It should be noted that, during playback, the playback speed can be changed by changing the step length of the progress bar advancing within one second, so as to realize double-speed playing. In addition, during playback, single-step playback can be selected, a single-step playback button is clicked, a cycle timer is paused, the single-step button is clicked once, and the running chart change data packet is analyzed and played back once; and clicking a play stop button, emptying the analyzed operation diagram change data packet in the software, and waiting for the next selection of the target file, the analysis and playback of each operation diagram change data packet in the target file and the like.
According to the train operation diagram change searching method provided by the embodiment of the invention, after the operation diagram change data packets are received, the operation diagram change data packets are stored into the files according to the receiving sequence, and the recording start-stop time in the file header of the corresponding file is determined according to the time of receiving the operation diagram change data packets firstly and lastly in each file; in order to determine a target file from each file according to a predetermined time range to be searched and the record starting and stopping time in the file header of each file stored in advance when troubleshooting is performed; the defects that time and labor are consumed for positioning through historical change data of a train operation diagram in the traditional scheme are overcome; and the data content of each operation diagram change data packet in the analyzed target file is displayed, so that the related information of the train can be clearly and visually acquired, and the efficiency of searching the problems is improved.
Based on the above embodiment, the method further comprises:
receiving a running chart change data packet, and determining the data packet length of the received running chart change data packet;
if the sum of the length of the character string of the current character string and the length of the data packet is less than or equal to a preset length threshold value, writing the received operation graph change data packet into the tail part of the current character string;
otherwise, writing the current character string into a newly-built file for storage, writing the received runtime graph change data packet into the newly-built character string, and taking the newly-built character string as the current character string.
Specifically, before searching for a problem through the history change data of the train operation diagram, that is, the operation diagram change data packet, needs to be acquired, and the operation diagram change data packet is stored in a file.
In view of the fact that the data packets of the runtime map change data packets are different in size, in order to make the runtime map change data packets stored in the files relatively uniform, the size of the file can be fixed when the runtime map change data packets are stored.
Then, judging whether the sum of the data packet length of the running chart variable data packet to be stored and the character string length of the character string of the running chart variable data packet to be stored is greater than a preset length threshold value, wherein the preset length threshold value is a preset length upper limit according to actual requirements, and the character string of the running chart variable data packet to be stored is the current character string; if the sum of the length of the data packet of the operation diagram change data packet and the length of the character string of the current character string is smaller than or equal to the preset length threshold, the sum of the length of the character string of the current character string and the length of the data packet does not exceed the length upper limit, and the operation diagram change data packet can be written into the tail part of the current character string.
Correspondingly, if the sum of the length of the data packet of the running chart change data packet and the length of the character string of the current character string is larger than the preset length threshold, the sum of the length of the character string of the current character string and the length of the data packet exceeds the length upper limit, and the current character string cannot store the running chart change data packet, so that the running chart change data packet is written into a newly-built character string, the current character string is stored into a newly-built file, and the newly-built character string is updated into the current character string.
The train operation diagram change searching method provided by the invention has the advantages that after the operation diagram change data packets are received, when the operation diagram change data packets are stored into the files, a preset length threshold value is set, the operation diagram change data packets are correspondingly stored according to the relation between the sum of the length of the character string of the current character string and the length of the data packet of the operation diagram change data packet and the preset length threshold value, the operation diagram change data packets stored in each file are relatively balanced through fixing the length of the file during data storage, the condition that the single operation diagram change data packet is stored in a split mode is avoided, and the storage process of the operation change data packet is more complete.
Based on the above embodiment, writing the current character string into the newly created file storage includes:
generating a file header based on the record start-stop time, the number of data packets and the length of the character string of the operation diagram change data packets contained in the current character string;
and writing the file header and the current character string into a newly-built file for storage.
Specifically, after the sum of the length of the data packet and the length of the character string of the current character string is determined to be greater than a preset length threshold, a file header needs to be generated before the current character string is written into a newly-built file for storage, and the current character string and the file header are stored into the newly-built file.
The generation process of the file header can be to determine the record start-stop time of the runtime map variable data packet contained in the current character string according to the time of the runtime map variable data packet written first in the current character string and the time of the runtime map variable data packet written latest; determining the length of the character string of the current character string according to the length of the data packet of each operation graph change data packet contained in the current character string; and finally, determining the number of the data packets of the operation diagram change data packets contained in the current character string.
And then, generating a file header comprising the record start-stop time, the number of the data packets and the length of the character string of the current character string according to the record start-stop time, the number of the data packets and the length of the character string of the running chart change data packets contained in the current character string, wherein the length of the character string in the file header is the length of the file, and writing the generated file header and the current character string into a newly-created file for storage.
Based on the above embodiment, step 110 includes:
acquiring the occurrence time of a fault to be checked;
based on the occurrence time, a time range to be searched is determined.
Specifically, before searching for a problem through the historical change data of the train running diagram, the occurrence time of the fault needs to be determined, and since the occurrence time of the fault obtained at this time is not necessarily accurate and needs to be further checked, the occurrence time of the fault obtained at this time is determined as the occurrence time of the fault to be checked, and the occurrence time of the fault to be checked may be sent by a user or preliminarily determined according to the historical change data of the train running diagram, which is not specifically limited in the embodiment of the present invention.
After the occurrence time of the fault to be checked is determined, the time range of the historical change data of the train operation diagram to be searched, namely the time range to be searched, can be determined according to the occurrence time of the fault to be checked.
Based on the above embodiment, fig. 2 is a general flowchart of a train operation diagram change searching method provided by the embodiment of the present invention, and as shown in fig. 2, the method includes:
step 210, receiving a running chart change data packet, and determining the data packet length of the received running chart change data packet;
step 220, judging whether the sum of the length of the character string of the current character string and the length of the data packet is less than or equal to a preset length threshold value, if so, executing step 221; otherwise, go to step 222;
step 221, writing the received operation diagram change data packet into the tail part of the current character string;
step 222, generating a file header based on the record start-stop time, the number of data packets and the length of the character string of the operation diagram change data packets contained in the current character string;
step 223, writing the file header and the current character string into the newly created file for storage;
step 224, writing the received runtime diagram change data packet into the newly created character string, and taking the newly created character string as the current character string;
step 230, acquiring the occurrence time of the fault to be checked;
step 240, determining a time range to be searched based on the occurrence time;
step 250, determining a target file from each file based on the time range and the record starting and stopping time in the file header of each file stored in advance;
step 260, analyzing each operation diagram change data packet in the target file based on the analysis protocol corresponding to each operation diagram change data packet in the target file; the analysis protocol is determined based on the storage mode of the corresponding operation diagram change data packet;
step 261, obtaining and displaying data content of each operation diagram change data packet in the target file, and if the current display mode is a single-step mode, analyzing one operation diagram change data packet from the target file every time a single-step playback command is received, so as to obtain and display data content of one operation diagram change data packet;
step 262, obtaining and displaying the data content of each runtime graph change data packet in the target file, and if the current display mode is the multiple speed mode, determining the display data amount in unit time based on the playback speed in the multiple speed mode and the data packet number of the runtime graph change data packet contained in the target file;
and 263, sequentially displaying the data content of each operation graph change data packet in the target file based on the display data volume in the unit time.
The train operation diagram change searching method provided by the invention comprises the steps of storing each operation diagram change data packet into a file according to a receiving sequence after receiving the operation diagram change data packet, and determining the recording start-stop time in a file header of the corresponding file according to the time of receiving the operation diagram change data packet firstly and latest in each file; in order to determine a target file from each file according to a predetermined time range to be searched and the record starting and stopping time in the file header of each file stored in advance when troubleshooting is performed; the defects that time and labor are consumed for positioning through historical change data of a train operation diagram in the traditional scheme are overcome; and the data content of each operation diagram change data packet in the analyzed target file is displayed, so that the related information of the train can be clearly and visually acquired, and the efficiency of searching the problems is improved.
The following describes the train diagram change searching device provided by the present invention, and the train diagram change searching device described below and the train diagram change searching method described above can be referred to in correspondence with each other.
Fig. 3 is a schematic structural diagram of a train diagram change searching device provided by the present invention, and as shown in fig. 3, the device includes:
a time determining unit 310, configured to determine a time range to be searched;
a target determining unit 320, configured to determine a target file from each file based on the time range and a record start/stop time in a file header of each file stored in advance, where the file stores a plurality of runtime map change data packets in a receiving order, and the record start/stop time is determined based on a time at which the runtime map change data packet is received first and last in a corresponding file;
and the analysis display unit 330 is configured to analyze each runtime diagram change data packet in the target file to obtain and display data content of each runtime diagram change data packet in the target file.
The train operation diagram change searching device provided by the invention receives the operation diagram change data packets, stores the operation diagram change data packets into files according to the receiving sequence, and determines the recording start-stop time in the file header of the corresponding file according to the time of receiving the operation diagram change data packets in each file at the first and the latest; in order to determine a target file from each file according to a predetermined time range to be searched and the record starting and stopping time in the file header of each file stored in advance when troubleshooting is performed; the defects that time and labor are consumed for positioning through historical change data of a train operation diagram in the traditional scheme are overcome; and the data content of each operation diagram change data packet in the analyzed target file is displayed, so that the related information of the train can be clearly and visually acquired, and the efficiency of searching the problems is improved.
Based on the above embodiment, the parsing and presenting unit 330 is configured to:
if the current display mode is a speed-multiplying mode, determining the display data volume in unit time based on the playback speed in the speed-multiplying mode and the data packet number of the operation diagram change data packets contained in the target file;
and sequentially displaying the data content of each operation graph change data packet in the target file based on the display data volume in the unit time.
Based on the above embodiment, the parsing and presenting unit 330 is configured to:
and if the current display mode is the single-step mode, analyzing a running chart change data packet from the target file every time a single-step playback command is received, and obtaining the data content of the running chart change data packet for displaying.
Based on the above embodiment, the parsing and presenting unit 330 is configured to:
analyzing each operation diagram change data packet in the target file based on an analysis protocol corresponding to each operation diagram change data packet in the target file;
the parsing protocol is determined based on the storage mode of the corresponding runtime graph change data packet.
Based on the above embodiment, the apparatus further includes a storage unit configured to:
receiving a running chart change data packet, and determining the data packet length of the received running chart change data packet;
if the sum of the length of the character string of the current character string and the length of the data packet is less than or equal to a preset length threshold value, writing the received running chart change data packet into the tail part of the current character string;
and if not, writing the current character string into a newly-built file for storage, writing the received running chart change data packet into the newly-built character string, and taking the newly-built character string as the current character string.
Based on the above embodiment, the memory cell is configured to:
generating a file header based on the record start-stop time, the number of data packets and the length of the character string of the operation diagram change data packets contained in the current character string;
and writing the file header and the current character string into a newly-built file for storage.
Based on the above embodiment, the time determination unit 310 is configured to:
acquiring the occurrence time of a fault to be checked;
and determining the time range to be searched based on the occurrence time.
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 invoke logic instructions in the memory 430 to perform a train trip diagram change lookup method comprising: determining a time range to be searched; determining a target file from each file based on the time range and the record starting and stopping time in the file header of each file stored in advance, wherein the files store a plurality of operation diagram change data packets according to the receiving sequence, and the record starting and stopping time is determined based on the time of receiving the operation diagram change data packets at the first and the latest in the corresponding files; and analyzing each operation diagram change data packet in the target file to obtain and display the data content of each operation diagram change data packet in the target file.
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, the present invention further provides a computer program product, the computer program product includes a computer program stored on a non-transitory computer readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer, the computer can execute the train diagram change searching method provided by the above methods, the method includes: determining a time range to be searched; determining a target file from each file based on the time range and the record starting and stopping time in the file header of each file stored in advance, wherein the files store a plurality of operation diagram change data packets according to the receiving sequence, and the record starting and stopping time is determined based on the time of receiving the operation diagram change data packets at the first and the latest in the corresponding files; and analyzing each operation diagram change data packet in the target file to obtain and display the data content of each operation diagram change data packet in the target file.
In yet another aspect, the present invention further provides a non-transitory computer readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to execute the above-mentioned train diagram change searching method, the method comprising: determining a time range to be searched; determining a target file from each file based on the time range and the record starting and stopping time in the file header of each file stored in advance, wherein the files store a plurality of operation diagram change data packets according to the receiving sequence, and the record starting and stopping time is determined based on the time of receiving the operation diagram change data packets at the first and the latest in the corresponding files; and analyzing each operation diagram change data packet in the target file to obtain and display the data content of each operation diagram change data packet in the target file.
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 searching for changes of a train operation diagram is characterized by comprising the following steps:
determining a time range to be searched;
determining a target file from each file based on the time range and the record starting and stopping time in the file header of each file stored in advance, wherein the files store a plurality of operation diagram change data packets according to the receiving sequence, and the record starting and stopping time is determined based on the time of receiving the operation diagram change data packets at the first and the latest in the corresponding files;
and analyzing each operation diagram change data packet in the target file to obtain and display the data content of each operation diagram change data packet in the target file.
2. The method for searching for the change of the train working diagram according to claim 1, wherein the obtaining and displaying the data content of each working diagram change data packet in the target file comprises:
if the current display mode is a speed-multiplying mode, determining the display data volume in unit time based on the playback speed in the speed-multiplying mode and the data packet number of the operation diagram change data packets contained in the target file;
and sequentially displaying the data content of each operation graph change data packet in the target file based on the display data volume in the unit time.
3. The method for searching for train diagram changes according to claim 1, wherein the analyzing each diagram change data packet in the target file to obtain and display the data content of each diagram change data packet in the target file comprises:
and if the current display mode is the single-step mode, analyzing a running chart change data packet from the target file every time a single-step playback command is received, and obtaining the data content of the running chart change data packet for displaying.
4. The method for searching for the change of the train working diagram according to any one of claims 1 to 3, wherein the analyzing each working diagram change data packet in the target file comprises:
analyzing each operation diagram change data packet in the target file based on an analysis protocol corresponding to each operation diagram change data packet in the target file;
the parsing protocol is determined based on the storage mode of the corresponding runtime graph change data packet.
5. The method for searching for changes in a train working diagram according to any one of claims 1 to 3, further comprising:
receiving a running chart change data packet, and determining the data packet length of the received running chart change data packet;
if the sum of the length of the character string of the current character string and the length of the data packet is less than or equal to a preset length threshold value, writing the received running chart change data packet into the tail part of the current character string;
and if not, writing the current character string into a newly-built file for storage, writing the received running chart change data packet into the newly-built character string, and taking the newly-built character string as the current character string.
6. The method for finding changes in train diagrams according to claim 5, wherein writing the current character string into a newly created file storage comprises:
generating a file header based on the record start-stop time, the number of data packets and the length of the character string of the operation diagram change data packets contained in the current character string;
and writing the file header and the current character string into a newly-built file for storage.
7. The method for searching for the change of the train working diagram according to any one of claims 1 to 3, wherein the determining the time range to be searched comprises:
acquiring the occurrence time of a fault to be checked;
and determining the time range to be searched based on the occurrence time.
8. A device for searching for changes in train diagrams is characterized by comprising:
the time determining unit is used for determining a time range to be searched;
a target determination unit configured to determine a target file from each file based on the time range and a record start/stop time in a file header of each file stored in advance, the file storing a plurality of runtime map variation packets in a reception order, the record start/stop time being determined based on times at which the runtime map variation packets are received first and last in the corresponding file;
and the analysis display unit is used for analyzing each operation diagram change data packet in the target file to obtain and display the data content of each operation diagram change data packet in the target file.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and operable on the processor, wherein the processor when executing the program implements the steps of the train diagram change lookup method according to any one of claims 1 to 7.
10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of the train diagram change lookup method according to any one of claims 1 to 7.
CN202110860069.1A 2021-07-28 2021-07-28 Method and device for searching change of train operation diagram, electronic equipment and storage medium Pending CN113641717A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110860069.1A CN113641717A (en) 2021-07-28 2021-07-28 Method and device for searching change of train operation diagram, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110860069.1A CN113641717A (en) 2021-07-28 2021-07-28 Method and device for searching change of train operation diagram, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113641717A true CN113641717A (en) 2021-11-12

Family

ID=78418774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110860069.1A Pending CN113641717A (en) 2021-07-28 2021-07-28 Method and device for searching change of train operation diagram, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113641717A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114872768A (en) * 2022-04-07 2022-08-09 交控科技股份有限公司 Train testing method and system based on ATS (automatic train maintenance) running chart

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729667A (en) * 2009-10-09 2010-06-09 厦门敏讯信息技术股份有限公司 Method for managing terminal recording information
US20160092452A1 (en) * 2014-09-25 2016-03-31 Mengjiao Wang Large-scale processing and querying for real-time surveillance
CN109189992A (en) * 2018-09-27 2019-01-11 北京邮电大学 A kind of video time search method in cloud monitoring system
CN112632007A (en) * 2020-12-23 2021-04-09 平安银行股份有限公司 Log storage and extraction method, device, equipment and storage medium
CN113177029A (en) * 2021-04-21 2021-07-27 中国电力科学研究院有限公司 Dynamic generation method, system, equipment and storage medium of power grid wave recording file

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729667A (en) * 2009-10-09 2010-06-09 厦门敏讯信息技术股份有限公司 Method for managing terminal recording information
US20160092452A1 (en) * 2014-09-25 2016-03-31 Mengjiao Wang Large-scale processing and querying for real-time surveillance
CN109189992A (en) * 2018-09-27 2019-01-11 北京邮电大学 A kind of video time search method in cloud monitoring system
CN112632007A (en) * 2020-12-23 2021-04-09 平安银行股份有限公司 Log storage and extraction method, device, equipment and storage medium
CN113177029A (en) * 2021-04-21 2021-07-27 中国电力科学研究院有限公司 Dynamic generation method, system, equipment and storage medium of power grid wave recording file

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114872768A (en) * 2022-04-07 2022-08-09 交控科技股份有限公司 Train testing method and system based on ATS (automatic train maintenance) running chart

Similar Documents

Publication Publication Date Title
CN107516510B (en) Automatic voice testing method and device for intelligent equipment
US10069971B1 (en) Automated conversation feedback
CN107656520A (en) CAN data analysis method and computer-readable recording medium
CN104317839B (en) The method and apparatus for generating report form template
US10900802B2 (en) Map based navigation method, apparatus, storage medium and equipment
CN111104393B (en) Data migration method, device, electronic equipment and storage medium
US20230259712A1 (en) Sound effect adding method and apparatus, storage medium, and electronic device
CN113641717A (en) Method and device for searching change of train operation diagram, electronic equipment and storage medium
CN110188045A (en) A kind of method and apparatus that statistics APP performance indicator is automated based on iOS system
CN107743271A (en) A kind of processing method of barrage, electronic equipment and computer-readable recording medium
CN112445885A (en) Method and device for displaying and replaying train track of off-line map
CN109669654A (en) A kind of combination display methods and device
CN111290951A (en) Test method, terminal, server, system and storage medium
CN113918698A (en) Customer service processing system and device
CN112416775A (en) Software automation testing method and device based on artificial intelligence and electronic equipment
CN107360163B (en) Data playback method of teleoperation system
CN112860264B (en) Method and device for reconstructing abstract syntax tree
CN109298898A (en) Cloud computing resources method of automatic configuration and device
CN115865279B (en) Method and device for decoding airborne record data of airplane, electronic equipment and storage medium
CN108345492A (en) The method, apparatus and processor of a kind of data communication in virtualized environment
CN113689854B (en) Voice conversation method, device, computer equipment and storage medium
CN104601255B (en) The method of testing and device of line card
CN113411517A (en) Video template generation method and device, electronic equipment and storage medium
CN112133309A (en) Audio and text synchronization method, computing device and storage medium
CN105760386B (en) Electronic pictures music score of Chinese operas scrolling method, apparatus and 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