Subsystem Data Synchronization Method and Apparatus Based on Sampling Sequence

By generating sampling sequences and parsing data packet sequences, the problems of large errors in mileage information synthesis and resource waste in detection equipment were solved, and efficient synchronization and accurate display of detection equipment data were achieved.

CN122087007APending Publication Date: 2026-05-26CHINA ACADEMY OF RAILWAY SCI CORP LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CHINA ACADEMY OF RAILWAY SCI CORP LTD
Filing Date
2026-01-15
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

In existing technologies, the testing equipment of railway infrastructure testing vehicles such as high-speed comprehensive inspection trains suffers from hardware differences, resulting in large errors in mileage information synthesis and wasted resources, and cannot effectively synchronize data from multiple sets of testing equipment.

Method used

By collecting encoder pulse signals, a data packet sequence for the integrated mileage system and subsystems is generated. The sampled sequence is then used for sequence number parsing and mileage information correction to achieve data synchronization and avoid resource waste.

Benefits of technology

It improves the accuracy of data synchronization in subsystems of the testing equipment, reduces resource waste, and ensures unified data display and correlation analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122087007A_ABST
    Figure CN122087007A_ABST
Patent Text Reader

Abstract

This invention discloses a subsystem data synchronization method and apparatus based on sampling sequences. The method includes: acquiring encoder pulse signals output by a pulse encoder installed in a testing vehicle; sampling the encoder pulse signals to generate a comprehensive mileage system data packet sequence and a subsystem data packet sequence; parsing the comprehensive mileage system data packet sequence for serial number, correcting the sampling time, and correcting the mileage information to generate a comprehensive mileage sequence; sampling the data output by sensors installed in the subsystem to generate sampled data; generating a subsystem data sequence based on the sampled data and a second serial number obtained from serial number parsing; and adding corrected first mileage information and corrected sampling time information to the subsystem data sequence based on the first and second serial numbers to achieve subsystem data synchronization. This invention can improve the accuracy of subsystem data synchronization in testing equipment and avoid resource waste.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of rail transit technology, and in particular to a method and apparatus for synchronizing subsystem data based on sampling sequences. Background Technology

[0002] Currently operating high-speed comprehensive inspection trains, comprehensive inspection vehicles, and overhead contact line inspection vehicles all contain multiple sets of inspection equipment with different functions to inspect railway infrastructure and equipment along the line. The inspection data from multiple sets of equipment need to be synchronized and aligned before comprehensive comparison and analysis.

[0003] The detection data output by the detection equipment uses mileage information as an index mark, is displayed in a unified coordinate system and is analyzed in correlation. The mileage information is formed based on the accumulation of encoder pulses. The encoder pulses represent the distance the train travels. Each detection equipment divides the encoder pulses according to its required data acquisition interval, accumulates the divided pulses, and converts them into actual mileage.

[0004] The above data synchronization scheme has several problems: First, each detection device independently receives encoder pulses and performs frequency division and accumulation counting on its own. Due to differences in hardware and software among the detection devices, there are certain errors in the receiving and accumulation processes, resulting in significant differences in the mileage synthesized by each set of detection devices. Furthermore, the repeated execution of pulse frequency division, accumulation, and mileage conversion operations by each detection device is a waste of hardware and software resources. Summary of the Invention

[0005] This invention provides a subsystem data synchronization method based on sampling sequences to improve the accuracy of subsystem data synchronization in detection equipment and avoid resource waste. The method includes: The system collects encoder pulse signals output from the pulse encoder installed in the testing vehicle; the testing vehicle is equipped with testing equipment. Based on the sampling interval requirements of the integrated odometer system and the subsystem, the encoder pulse signal is sampled to generate integrated odometer system data packet sequence and subsystem data packet sequence; the subsystem is installed in the detection equipment; the sequence number corresponding to each data packet in the integrated odometer system data packet sequence and the subsystem data packet sequence represents the sampling interval. The integrated mileage system is invoked, and the sequence number, sampling time correction, and mileage information correction of the integrated mileage system data packet sequence are performed to generate an integrated mileage sequence. The integrated mileage sequence includes a first sequence number, corrected first mileage information, and corrected sampling time information. The subsystem is invoked to sample the data output by the sensors installed in the subsystem, generate sampled data, parse the sequence number of the subsystem data packet sequence, and generate the subsystem data sequence based on the sampled data and the second sequence number obtained from the sequence number parsing. Based on the first sequence number and the second sequence number, the corrected first mileage information and the corrected sampling time information are added to the subsystem data sequence to achieve data synchronization of the subsystem.

[0006] Another aspect of the present invention provides a subsystem data synchronization device based on sampling sequences to improve the accuracy of subsystem data synchronization in detection equipment and avoid resource waste. The device includes: The acquisition module is used to acquire the encoder pulse signal output by the pulse encoder installed in the testing vehicle; the testing vehicle is equipped with testing equipment. The sampling module is used to sample the encoder pulse signal according to the sampling interval requirements of the integrated mileage system and the subsystem, respectively, to generate integrated mileage system data packet sequences and subsystem data packet sequences; the subsystem is installed in the detection equipment; the sequence number corresponding to each data packet in the integrated mileage system data packet sequence and the subsystem data packet sequence represents the sampling interval; The integrated mileage sequence generation module is used to call the integrated mileage system, perform sequence number parsing, sampling time correction, and mileage information correction on the integrated mileage system data packet sequence, and generate an integrated mileage sequence; the integrated mileage sequence includes a first sequence number, corrected first mileage information, and corrected sampling time information; The subsystem data sequence generation module is used to call the subsystem, sample the data output by the sensors installed in the subsystem, generate sampled data, parse the sequence number of the subsystem data packet sequence, and generate the subsystem data sequence based on the sampled data and the second sequence number obtained by the sequence number parsing. The data synchronization module is used to add the corrected first mileage information and the corrected sampling time information to the subsystem data sequence according to the first sequence number and the second sequence number, so as to realize the data synchronization of the subsystem.

[0007] This invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the above-described subsystem data synchronization method based on sampling sequences.

[0008] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described subsystem data synchronization method based on sampling sequences.

[0009] This invention also provides a computer program product, which includes a computer program that, when executed by a processor, implements the above-described subsystem data synchronization method based on sampling sequences.

[0010] Compared with existing data synchronization technologies, this invention, through the acquisition of encoder pulse signals output by a pulse encoder installed in a testing vehicle, and the testing vehicle equipped with testing equipment, samples the encoder pulse signals according to the sampling interval requirements of the integrated mileage system and the subsystem, generating integrated mileage system data packet sequences and subsystem data packet sequences. The subsystem is installed in the testing equipment. The sequence number corresponding to each data packet in the integrated mileage system data packet sequence and the subsystem data packet sequence represents the sampling interval. The integrated mileage system is invoked to perform sequence number parsing, sampling time correction, and mileage information correction on the integrated mileage system data packet sequence, generating an integrated mileage sequence. The integrated mileage sequence includes a first sequence number, corrected first mileage information, and corrected sampling time information. The subsystem is invoked to sample the data output by sensors installed in the subsystem, generating sampled data. The subsystem data packet sequence is parsed to generate a subsystem data sequence based on the sampled data and the second sequence number obtained from the sequence number parsing. Based on the first and second sequence numbers, the corrected first mileage information and corrected sampling time information are added to the subsystem data sequence, achieving data synchronization of the subsystem. This improves the accuracy of subsystem data synchronization in the testing equipment and avoids resource waste. Attached Figure Description

[0011] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. In the drawings: Figure 1 This is a flowchart illustrating the data alignment process for existing detection equipment. Figure 2 This is a flowchart of a subsystem data synchronization method based on sampling sequences in an embodiment of the present invention; Figure 3 This is a schematic diagram of the subsystem data synchronization method based on sampling sequence in an embodiment of the present invention; Figure 4 This is a schematic diagram illustrating the principle of subsystem data packet sequence generation in an embodiment of the present invention; Figure 5 This is a schematic diagram illustrating the principle of generating integrated mileage sequences in an embodiment of the present invention; Figure 6This is a schematic diagram illustrating the principle of subsystem data sequence generation in an embodiment of the present invention; Figure 7 This is a schematic diagram illustrating the data synchronization principle in an embodiment of the present invention. Figure 8 This is a schematic diagram of the subsystem data synchronization device based on sampling sequence in an embodiment of the present invention; Figure 9 This is a schematic diagram of a computer device in an embodiment of the present invention. Detailed Implementation

[0012] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0013] Figure 1 A flowchart illustrating the data alignment process for existing detection equipment, such as... Figure 1 As shown, devices 1, 2, and 3 perform pulse acquisition, frequency division, pulse accumulation, and mileage conversion on the pulses output by the pulse encoder, respectively, and output mileage information 1, mileage information 2, and mileage information 3. The detection data is synchronized and aligned based on the mileage information.

[0014] The reason why the detection equipment adopts the above alignment scheme is that the encoder pulse serves as a marker of the vehicle's running distance and is strongly correlated with the positioning requirements of the detection data. At the same time, its standard is generally a 5V or 12V TTL signal, which can achieve long-distance low-latency transmission after being equipped with corresponding relay equipment. Detection equipment installed at different locations on the vehicle can receive the pulse signal accurately with low latency.

[0015] However, the above data alignment methods suffer from large alignment errors, low accuracy, and waste of hardware and software resources.

[0016] To address the aforementioned problems, embodiments of the present invention provide a subsystem data synchronization method based on sampling sequences. Figure 2 This is a flowchart of a subsystem data synchronization method based on sampling sequences in an embodiment of the present invention, such as... Figure 2 As shown, the method includes: Step 201: Acquire the encoder pulse signal output by the pulse encoder installed in the test vehicle; the test vehicle is equipped with test equipment. Step 202: Based on the sampling interval requirements of the integrated mileage system and the subsystem, the encoder pulse signal is sampled to generate the integrated mileage system data packet sequence and the subsystem data packet sequence; the subsystem is installed in the detection equipment; the sequence number corresponding to each data packet in the integrated mileage system data packet sequence and the subsystem data packet sequence represents the sampling interval; Step 203: Invoke the integrated mileage system, perform sequence number parsing, sampling time correction, and mileage information correction on the integrated mileage system data packet sequence, and generate an integrated mileage sequence; the integrated mileage sequence includes the first sequence number, the corrected first mileage information, and the corrected sampling time information; Step 204: Call the subsystem, sample the data output by the sensors installed in the subsystem, generate sampled data, parse the sequence number of the subsystem data packet sequence, and generate the subsystem data sequence based on the sampled data and the second sequence number obtained from the sequence number parsing. Step 205: Based on the first sequence number and the second sequence number, add the corrected first mileage information and the corrected sampling time information to the subsystem data sequence to achieve data synchronization of the subsystem.

[0017] Compared with existing data synchronization technologies, the above steps in this invention can improve the accuracy of data synchronization in subsystems of the detection equipment and avoid resource waste.

[0018] Figure 3 This is a schematic diagram of the subsystem data synchronization method based on sampling sequences in an embodiment of the present invention, as shown below. Figure 3 As shown, taking three subsystems as an example, the data synchronization principle of this embodiment of the invention is as follows: The original encoder pulses are uniformly converted by the sampling sequence generation device according to the equidistant sampling accuracy requirements of each subsystem and the integrated mileage system, generating an integrated mileage system data packet sequence and data packet sequences for each subsystem (subsystem data packet sequence 1 to subsystem data packet sequence 3). After receiving the integrated mileage system data packet sequence, the integrated mileage system forms an integrated mileage sequence with mileage information and mileage correction information. Each subsystem receives its own sensor data and mileage correction information and synthesizes its own subsystem data sequence (subsystem data sequence 1 to subsystem data sequence 3) based on the subsystem data packet sequence. The data sequences of each subsystem and the integrated mileage sequence are synchronized based on the unified sequence information they carry, and then uniformly displayed using a matching and display device.

[0019] In one embodiment, sampling the encoder pulse signal according to the sampling interval requirements of the integrated mileage system and the subsystem, respectively, to generate an integrated mileage system data packet sequence and a subsystem data packet sequence, may include: sampling the encoder pulse signal according to the sampling interval requirements of the integrated mileage system to generate a first sampling sequence; numbering each data packet in the first sampling sequence according to the sampling interval requirements of the integrated mileage system to determine the sequence number of the corresponding data packet in the integrated mileage system data packet sequence; determining the numbered first sampling sequence as the integrated mileage system data packet sequence; sampling the encoder pulse signal according to the sampling interval requirements of the subsystem to generate a second sampling sequence; numbering each data packet in the second sampling sequence according to the sampling interval requirements of the subsystem to determine the sequence number of the corresponding data packet in the subsystem data packet sequence; determining the numbered second sampling sequence as the subsystem data packet sequence.

[0020] Figure 4 This is a schematic diagram of the subsystem data packet sequence generation principle in an embodiment of the present invention, such as... Figure 4 As shown, the raw pulse is input to the sampling sequence generation device. Based on the interval requirements of equidistant sampling in each subsystem and the integrated odometer system, a unified distance calculation is performed (the number of each data packet represents the interval distance), and the sampling sequence is counted to generate the corresponding data packets, such as... Figure 4 As shown, assuming that the sampling sequence interval settings 1 through 3 of subsystems 1 increase by a factor of 1 (the sampling interval of the detection system is usually 4 or 8 points per meter, both even numbers), the number of data packets of systems 1 through 3 (which can be subsystems or integrated mileage systems) decreases by a factor of 1 within the same sampling time period: the counts and data packet generation obtained by sampling according to sampling sequence interval setting 1 are: 0.25m (sampling interval) - 1 (sequence number), 0.50m - 2, 0.75m - 3, 1.00m - 4, ..., 2.00m - 8; the counts and data packet generation obtained by sampling according to sampling sequence interval setting 2 are: 0.50m - 2, 1.00m - 4, 1.50m - 6, 2.00m - 8; and the counts and data packet generation obtained by sampling according to sampling sequence interval setting 3 are: 1.00m - 4, 2.00m - 8. The system generates counts and data packets based on sampling interval settings 1, 2, and 3, and transmits them in real time. Data packets with the same sequence number are transmitted synchronously across systems, ensuring temporal and spatial synchronization of the sampling sequences.

[0021] In one embodiment, before invoking the integrated mileage system to parse the sequence number, correct the sampling time, and correct the mileage information of the integrated mileage system data packet sequence to generate the integrated mileage sequence, the method may further include: sending the integrated mileage system data packet sequence to the integrated mileage system; invoking the integrated mileage system to determine the reception time of each data packet in the integrated mileage system data packet sequence, and determining the reception time as the sampling time of each data packet in the integrated mileage system data packet sequence; invoking the integrated mileage system to parse the sequence number, correct the sampling time, and correct the mileage information of the integrated mileage system data packet sequence to generate the integrated mileage sequence, including: invoking an external clock source to perform real-time correction on the sampling time of each data packet in the integrated mileage system data packet sequence, and determining the corrected sampling time information.

[0022] In this embodiment, after the integrated mileage system data packet sequence is input into the integrated mileage system, the integrated mileage system will generate corresponding timing interrupt and device response interrupt at the time of receiving each data packet. It is necessary to obtain the time from an external clock source in real time, and perform real-time correction on the sampling time of each data packet in the integrated mileage system data packet sequence to determine the corrected sampling time information (absolute time of the sampling time).

[0023] In one embodiment, invoking the integrated mileage system to parse the sequence number, correct the sampling time, and correct the mileage information of the integrated mileage system data packet sequence to generate an integrated mileage sequence may include: invoking the integrated mileage system to parse the sequence number of the integrated mileage system data packet sequence to generate a first sequence number corresponding to each data packet in the integrated mileage system data packet sequence; determining the first mileage information corresponding to each data packet in the integrated mileage system data packet sequence based on the sampling interval represented by the first sequence number; correcting the first mileage information in real time based on pre-configured tag correction information to determine the corrected first mileage information; and generating an integrated mileage sequence based on the corrected sampling time information, the first sequence number, and the corrected first mileage information.

[0024] Figure 5 This is a schematic diagram illustrating the principle of generating integrated mileage sequences in an embodiment of the present invention, such as... Figure 5As shown, in this embodiment, the sequence number generation interrupt causes the integrated mileage system to parse each sequence packet in the received integrated mileage system data packet sequence, obtain the corresponding sequence number, and superimpose it with the corresponding absolute time to obtain the sequence number and time data. Since the serial number represents distance information, it can be accumulated, specifically including: Serial number 1 - 0.25m - August 6, 2025, 17:05.5m, Serial number 2 - 0.50m - August 6, 2025, 17:05.10m, Serial number 3 - 0.75m - August 6, 2025, 17:05.15m, Serial number 4 - 2.00m (normally it should be 1.00m, but after real-time correction using external tag correction information (jump information: tag correction - jump: 2m), it becomes 2.00m) - August 6, 2025, 17:05.20m, thus obtaining the mileage sequence. The external tag correction information (jump information: tag correction - jump: 2m) will correct the mileage sequence in real time, and at the same time generate mileage correction information and send it to each subsystem.

[0025] In one embodiment, invoking a subsystem to sample data output from sensors installed on the subsystem, generating sampled data, parsing the subsystem data packet sequence for serial numbers, and generating a subsystem data sequence based on the sampled data and the second serial number obtained from the serial number parsing can include: invoking the subsystem to generate sampling pulses based on the subsystem data packet sequence; sampling data output from sensors based on the sampling pulses to generate sampled data; parsing the subsystem data packet sequence for serial numbers to generate a second serial number corresponding to each data packet in the subsystem data packet sequence; and generating a subsystem data sequence based on the sampled data and the second serial number.

[0026] In this embodiment, since the unified mileage is used as the standard when multiple subsystems are displayed together, it means that when a user needs data from multiple subsystems to be displayed together, the subsystem data sequence does not need to include the second mileage information. That is, there are two types of subsystem data sequences: one that does not include the second mileage information and one that does include the second mileage information. This embodiment is the first type.

[0027] In one embodiment, invoking a comprehensive mileage system to parse the sequence number, correct the sampling time, and correct the mileage information of the comprehensive mileage system data packet sequence to generate a comprehensive mileage sequence may include: performing real-time correction on the first mileage information based on pre-configured tag correction information to generate mileage correction information; invoking a subsystem to sample the data output by sensors installed in the subsystem to generate sampled data, parsing the sequence number of the subsystem data packet sequence, and generating a subsystem data sequence based on the sampled data and the second sequence number obtained from the sequence number parsing; this may include: determining the second mileage information corresponding to each data packet in the subsystem data packet sequence based on the sampling interval represented by the second sequence number; performing real-time correction on the second mileage information based on the mileage correction information to determine the corrected second mileage information; and generating a subsystem data sequence based on the second sequence number, the sampled data, and the corrected second mileage information.

[0028] In this embodiment, there are two types of subsystem data sequences: one that does not include the second mileage information and the other that includes the second mileage information. This embodiment is the second type, which is used to display the subsystem data separately.

[0029] Figure 6 This is a schematic diagram of the subsystem data sequence generation principle in an embodiment of the present invention, such as... Figure 6 As shown, after the subsystem data packet sequence is input into the corresponding subsystem, a corresponding pulse interrupt is generated at the moment of receiving each data packet. Its function is to generate sampling pulses, producing trigger data for trigger-type sensors and isochronous data for isochronous sensors. Simultaneously, the sampling interrupt causes the subsystem to perform sampling operations, acquiring data information sent by trigger-type and isochronous sensors in real time. The sequence number generation interrupt causes the subsystem to parse the sequence number. At this point, the sampled data is superimposed with the sequence number to generate raw data with a sequence number. Since the sequence number represents distance information, mileage information can be formed after accumulation. Simultaneously, external mileage correction information can be input in real time to correct the mileage accumulation result, ultimately forming raw data with sequence numbers and mileage information (the mileage information at this point is used for individual subsystem data display; when multiple systems are displayed together, the unified mileage is used). The algorithm synthesis module generates synthesized data (subsystem data sequence) and sends it to the centralized matching device.

[0030] In one embodiment, data packets with the same sampling interval have the same sequence number. Based on the first sequence number and the second sequence number, the corrected first mileage information and the corrected sampling time information are added to the subsystem data sequence to achieve subsystem data synchronization. This can include: matching elements in the integrated mileage sequence with elements in the subsystem data sequence based on the first sequence number and the second sequence number; elements with the same first sequence number and second sequence number are successfully matched; and adding the corrected first mileage information and the corrected sampling time information from the elements in the integrated mileage sequence to the elements in the subsystem data sequence that are successfully matched.

[0031] In this embodiment, after receiving the comprehensive mileage sequence and subsystem data sequence, the matching and display device matches the relevant data according to the unified sequence number information, and finally generates a composite data sequence of each subsystem, which includes data, mileage and time information. The data of each subsystem are superimposed with the unified mileage and time information, which facilitates the synchronous display and correlation analysis of data.

[0032] Figure 7 This is a data synchronization principle diagram in an embodiment of the present invention, such as... Figure 7As shown, the integrated mileage sequence includes the following elements: Serial Number 1, Mileage Information 1, Time Information 1; Serial Number 2, Mileage Information 2, Time Information 2; Serial Number 3, Mileage Information 3, Time Information 3; Serial Number 4, Mileage Information 4, Time Information 4; Serial Number 5, Mileage Information 5, Time Information 5; Serial Number 6, Mileage Information 6, Time Information 6; Serial Number 7, Mileage Information 7, Time Information 7; Serial Number 8, Mileage Information 8, Time Information 8. Among these, serial numbers 1-8 in the integrated mileage sequence are the first sequence numbers, mileage information 1-mileage information 8 are the corrected first mileage information, and time information 1-time information 8 are the corrected sampling time information. Subsystem data sequence 1 includes the following elements: Serial Number 1, Data 1; Serial Number 2, Data 2; Serial Number 3, Data 3; Serial Number 4, Data 4; Serial Number 5, Data 5; Serial Number 6, Data 6; Serial Number 7, Data 7; Serial Number 8, Data 8. Subsystem data sequence 2 includes the following elements: sequence number 2, data 1; sequence number 4, data 2; sequence number 6, data 3; sequence number 8, data 4. Subsystem data sequence 3 includes the following elements: sequence number 4, data 1; sequence number 8, data 2. In the subsystem data sequences, sequences 1-8 are the second sequence numbers, and data 1-data 8 are the sampled data. Based on the first and second sequence numbers, the elements in the integrated mileage sequence are matched with the elements in the subsystem data sequences. The corrected first mileage information and corrected sampling time information from the elements in the integrated mileage sequence are added to the elements in the subsystem data sequences that successfully match the elements. The resulting subsystem data sequence 1 (which can be referred to as the subsystem 1 composite data sequence) includes the following: Data 1, Mileage Information 1, Time Information 1; Data 2, Mileage Information 2, Time Information 2; Data 3, Mileage Information 3, Time Information 3; Data 4, Mileage Information 4, Time Information 4; Data 5, Mileage Information 5, Time Information 5; Data 6, Mileage Information 6, Time Information 6; Data 7, Mileage Information 7, Time Information 7; Data 8, Mileage Information 8, Time Information 8. The resulting subsystem data sequence 2 (which can be referred to as the subsystem 2 composite data sequence) includes the following: Data 1, Mileage Information 2, Time Information 2; Data 2, Mileage Information 4, Time Information 4; Data 3, Mileage Information 6, Time Information 6; Data 4, Mileage Information 8, Time Information 8. The resulting subsystem data sequence 3 (which can be referred to as the subsystem 3 composite data sequence) includes: data 1, mileage information 4, time information 4; data 2, mileage information 8, time information 8.

[0033] In one embodiment, the subsystem data synchronization method based on the sampling sequence may further include: receiving display dimension information input by the user; the display dimension information includes displaying the target subsystem data sequence individually and / or displaying multiple subsystems jointly; when the display dimension information is displaying the target subsystem data sequence individually, displaying the target subsystem data sequence generated based on the second sequence number, the sampled data, and the corrected second mileage information individually; when the display dimension information is displaying multiple subsystems jointly, displaying the subsystem data sequences corresponding to the multiple subsystems with the corrected first mileage information and the corrected sampling time information added.

[0034] In this embodiment, the corrected second mileage information is only used for the individual display of subsystem data. When multiple systems are displayed together, the comprehensive unified mileage, i.e., the corrected first mileage information, shall prevail.

[0035] This invention also provides a subsystem data synchronization device based on a sampling sequence, as described in the following embodiments. Since the principle by which this device solves the problem is similar to that of the subsystem data synchronization method based on a sampling sequence, the implementation of this device can refer to the implementation of the subsystem data synchronization method based on a sampling sequence; repeated details will not be elaborated further.

[0036] Figure 8 This is a schematic diagram of the subsystem data synchronization device based on sampling sequences in an embodiment of the present invention, as shown below. Figure 8 As shown, the device includes: The acquisition module 801 is used to acquire the encoder pulse signal output by the pulse encoder installed in the inspection vehicle; the inspection vehicle is equipped with inspection equipment. The sampling module 802 is used to sample the encoder pulse signal according to the sampling interval requirements of the integrated mileage system and the subsystem, respectively, to generate the integrated mileage system data packet sequence and the subsystem data packet sequence; the subsystem is installed in the detection equipment; the sequence number corresponding to each data packet in the integrated mileage system data packet sequence and the subsystem data packet sequence represents the sampling interval; The integrated mileage sequence generation module 803 is used to call the integrated mileage system, perform sequence number parsing, sampling time correction, and mileage information correction on the integrated mileage system data packet sequence, and generate an integrated mileage sequence; the integrated mileage sequence includes a first sequence number, corrected first mileage information, and corrected sampling time information; The subsystem data sequence generation module 804 is used to call the subsystem, sample the data output by the sensors installed in the subsystem, generate sampled data, parse the sequence number of the subsystem data packet sequence, and generate the subsystem data sequence based on the sampled data and the second sequence number obtained by the sequence number parsing. The data synchronization module 805 is used to add the corrected first mileage information and the corrected sampling time information to the subsystem data sequence according to the first sequence number and the second sequence number, so as to realize the data synchronization of the subsystem.

[0037] In one embodiment, the sampling module 802 is specifically used for: Based on the sampling interval requirements of the integrated odometer system, the encoder pulse signal is sampled to generate the first sampling sequence; Based on the sampling interval requirements of the integrated mileage system, each data packet in the first sampling sequence is numbered to determine the sequence number of the corresponding data packet in the integrated mileage system data packet sequence; The first sampling sequence after the number is determined as the integrated mileage system data packet sequence; According to the sampling interval requirements of the subsystem, the encoder pulse signal is sampled to generate a second sampling sequence; Based on the sampling interval requirements of the subsystem, each data packet in the second sampling sequence is numbered to determine the sequence number of the corresponding data packet in the subsystem data packet sequence; The second sampled sequence after the number is determined as the subsystem data packet sequence.

[0038] In one embodiment, the subsystem data synchronization device based on the sampling sequence further includes: a sampling time determination module, used for: Send the integrated mileage system data packet sequence to the integrated mileage system; Call the integrated mileage system, determine the reception time of each data packet in the integrated mileage system data packet sequence, and use the reception time as the sampling time of each data packet in the integrated mileage system data packet sequence; The integrated mileage sequence generation module 803 is specifically used for: An external clock source is invoked to perform real-time correction on the sampling time of each data packet in the integrated mileage system data packet sequence, thereby determining the corrected sampling time information.

[0039] In one embodiment, the comprehensive mileage sequence generation module 803 is specifically used for: Call the integrated mileage system, parse the sequence number of the integrated mileage system data packet sequence, and generate the first sequence number corresponding to each data packet in the integrated mileage system data packet sequence; Based on the sampling interval represented by the first sequence number, determine the first mileage information corresponding to each data packet in the integrated mileage system data packet sequence; Based on the pre-configured tag correction information, the first mileage information is corrected in real time to determine the corrected first mileage information; A comprehensive mileage sequence is generated based on the corrected sampling time information, the first sequence number, and the corrected first mileage information.

[0040] In one embodiment, the subsystem data sequence generation module 804 is specifically used for: Call the subsystem to generate sampling pulses based on the subsystem's data packet sequence; The sensor samples the data output based on the sampling pulse to generate sampled data. Sequence number parsing is performed on the subsystem data packet sequence to generate a second sequence number corresponding to each data packet in the subsystem data packet sequence; Based on the sampled data and the second sequence number, a subsystem data sequence is generated.

[0041] In one embodiment, the comprehensive mileage sequence generation module 803 is used for: Based on the pre-configured tag correction information, the first mileage information is corrected in real time to generate mileage correction information; Subsystem data sequence generation module 804 is specifically used for: Based on the sampling interval represented by the second sequence number, determine the second mileage information corresponding to each data packet in the subsystem data packet sequence; Based on the mileage correction information, the second mileage information is corrected in real time to determine the corrected second mileage information; Based on the second sequence number, the sampled data, and the corrected second mileage information, a subsystem data sequence is generated.

[0042] In one embodiment, data packets with the same sampling interval have the same sequence number; Data synchronization module 805 is used for: Based on the first and second sequence numbers, the elements in the integrated mileage sequence are matched with the elements in the subsystem data sequence; elements with the same first and second sequence numbers are successfully matched. The corrected first mileage information and corrected sampling time information from the elements in the integrated mileage sequence are added to the elements in the subsystem data sequence that successfully match the elements.

[0043] In one embodiment, the subsystem data synchronization device based on the sampling sequence further includes: a display module, used for: Receive user-inputted display dimension information; the display dimension information includes individual display of target subsystem data sequences and / or joint display of multiple subsystems; When the dimension information is displayed as a separate target subsystem data sequence, the target subsystem data sequence generated based on the second sequence number, the sampled data, and the corrected second mileage information is displayed separately. When the displayed dimensional information is a joint display of multiple subsystems, the data sequences of the subsystems corresponding to the multiple subsystems are jointly displayed with the first mileage information and the sampling time information corrected.

[0044] Figure 9 This is a schematic diagram of a computer device in an embodiment of the present invention. Based on the foregoing inventive concept, as follows... Figure 9 As shown, the present invention also proposes a computer device 900, including a memory 901, a processor 902, and a computer program 903 stored in the memory 901 and executable on the processor 902. When the processor 902 executes the computer program 903, it implements the aforementioned subsystem data synchronization method based on sampling sequence.

[0045] Based on the aforementioned inventive concept, the present invention proposes a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the aforementioned subsystem data synchronization method based on sampling sequences.

[0046] Based on the aforementioned inventive concept, the present invention proposes a computer program product, which includes a computer program that, when executed by a processor, implements a subsystem data synchronization method based on a sampling sequence.

[0047] Compared with existing data synchronization technologies, this invention, through the acquisition of encoder pulse signals output by a pulse encoder installed in a testing vehicle, and the testing vehicle equipped with testing equipment, samples the encoder pulse signals according to the sampling interval requirements of the integrated mileage system and the subsystem, generating integrated mileage system data packet sequences and subsystem data packet sequences. The subsystem is installed in the testing equipment. The sequence number corresponding to each data packet in the integrated mileage system data packet sequence and the subsystem data packet sequence represents the sampling interval. The integrated mileage system is invoked to perform sequence number parsing, sampling time correction, and mileage information correction on the integrated mileage system data packet sequence, generating an integrated mileage sequence. The integrated mileage sequence includes a first sequence number, corrected first mileage information, and corrected sampling time information. The subsystem is invoked to sample the data output by sensors installed in the subsystem, generating sampled data. The subsystem data packet sequence is parsed to generate a subsystem data sequence based on the sampled data and the second sequence number obtained from the sequence number parsing. Based on the first and second sequence numbers, the corrected first mileage information and corrected sampling time information are added to the subsystem data sequence, achieving data synchronization of the subsystem. This improves the accuracy of subsystem data synchronization in the testing equipment and avoids resource waste.

[0048] The key technical point of this invention lies in the invention of a method for data synchronization using sampling sequences. It also explains the generation principles of sampling sequences, integrated mileage sequences, and subsystem data sequences, and elucidates the synchronization principle between the mileage sequences and subsystem data sequences. The protection point is: (1) Data synchronization principle; (2) Principle of sampling sequence generation; (3) The principle of comprehensive mileage sequence generation; (4) Principle of subsystem data sequence generation; (5) Data synchronization principle.

[0049] It can realize data synchronization of subsystems, improve the accuracy of data synchronization of subsystems in detection equipment, and avoid waste of resources.

[0050] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0051] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0052] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0053] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0054] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A subsystem data synchronization method based on a sampling sequence, characterized in that, include: Collect encoder pulse signals output from the pulse encoder installed in the testing vehicle; The testing vehicle is equipped with testing equipment; Based on the sampling interval requirements of the integrated mileage system and the subsystem, the encoder pulse signal is sampled to generate integrated mileage system data packet sequence and subsystem data packet sequence; the subsystem is installed in the detection equipment; the sequence number corresponding to each data packet in the integrated mileage system data packet sequence and the subsystem data packet sequence represents the sampling interval. The integrated mileage system is invoked to parse the sequence number, correct the sampling time, and correct the mileage information of the integrated mileage system data packet sequence, thereby generating an integrated mileage sequence; the integrated mileage sequence includes a first sequence number, corrected first mileage information, and corrected sampling time information; The subsystem is invoked to sample the data output by the sensors installed in the subsystem, generate sampled data, parse the sequence number of the data packet sequence of the subsystem, and generate the subsystem data sequence based on the sampled data and the second sequence number obtained by the sequence number parsing. Based on the first sequence number and the second sequence number, the corrected first mileage information and the corrected sampling time information are added to the subsystem data sequence to achieve data synchronization of the subsystem.

2. The method as described in claim 1, characterized in that, Based on the sampling interval requirements of the integrated odometer system and the subsystem, the encoder pulse signals are sampled respectively to generate integrated odometer system data packet sequences and subsystem data packet sequences, including: According to the sampling interval requirements of the integrated mileage system, the encoder pulse signal is sampled to generate a first sampling sequence; According to the sampling interval requirements of the integrated mileage system, each data packet in the first sampling sequence is numbered to determine the sequence number of the corresponding data packet in the integrated mileage system data packet sequence; The first sampling sequence after the number is determined as the integrated mileage system data packet sequence; According to the sampling interval requirements of the subsystem, the encoder pulse signal is sampled to generate a second sampling sequence; According to the sampling interval requirements of the subsystem, each data packet in the second sampling sequence is numbered to determine the sequence number of the corresponding data packet in the subsystem data packet sequence; The second sampled sequence after the number is determined as the subsystem data packet sequence.

3. The method as described in claim 1, characterized in that, Before invoking the integrated mileage system, performing sequence number parsing, sampling time correction, and mileage information correction on the integrated mileage system data packet sequence, and generating the integrated mileage sequence, the process also includes: Send the integrated mileage system data packet sequence to the integrated mileage system; The integrated mileage system is invoked to determine the reception time of each data packet in the integrated mileage system data packet sequence, and the reception time is determined as the sampling time of each data packet in the integrated mileage system data packet sequence; The integrated mileage system is invoked to perform sequence number parsing, sampling time correction, and mileage information correction on the integrated mileage system data packet sequence, generating an integrated mileage sequence, including: An external clock source is invoked to perform real-time correction on the sampling time of each data packet in the integrated mileage system data packet sequence, thereby determining the corrected sampling time information.

4. The method as described in claim 1, characterized in that, The integrated mileage system is invoked to perform sequence number parsing, sampling time correction, and mileage information correction on the integrated mileage system data packet sequence, generating an integrated mileage sequence, including: The integrated mileage system is invoked, and the sequence number of the integrated mileage system data packet sequence is parsed to generate the first sequence number corresponding to each data packet in the integrated mileage system data packet sequence. Based on the sampling interval represented by the first sequence number, determine the first mileage information corresponding to each data packet in the integrated mileage system data packet sequence; Based on the pre-configured tag correction information, the first mileage information is corrected in real time to determine the corrected first mileage information; A comprehensive mileage sequence is generated based on the corrected sampling time information, the first sequence number, and the corrected first mileage information.

5. The method as described in claim 1, characterized in that, The subsystem is invoked to sample data output from sensors installed on the subsystem, generate sampled data, parse the sequence number of the subsystem data packet sequence, and generate a subsystem data sequence based on the sampled data and the second sequence number obtained from the sequence number parsing, including: The subsystem is invoked to generate a sampling pulse based on the data packet sequence of the subsystem. The sensor samples the data output by the sampling pulse to generate sampled data; The sequence number of the data packets in the subsystem is parsed to generate a second sequence number for each data packet in the subsystem data packet sequence; Based on the sampled data and the second sequence number, a subsystem data sequence is generated.

6. The method as described in claim 5, characterized in that, The integrated mileage system is invoked to perform sequence number parsing, sampling time correction, and mileage information correction on the integrated mileage system data packet sequence, generating an integrated mileage sequence, including: Based on the pre-configured tag correction information, the first mileage information is corrected in real time to generate mileage correction information; The subsystem is invoked to sample data output from sensors installed on the subsystem, generate sampled data, parse the sequence number of the subsystem data packet sequence, and generate a subsystem data sequence based on the sampled data and the second sequence number obtained from the sequence number parsing, including: Based on the sampling interval represented by the second sequence number, determine the second mileage information corresponding to each data packet in the subsystem data packet sequence; Based on the mileage correction information, the second mileage information is corrected in real time to determine the corrected second mileage information; A subsystem data sequence is generated based on the second sequence number, the sampled data, and the corrected second mileage information.

7. The method as described in claim 6, characterized in that, Data packets with the same sampling interval have the same sequence number; Based on the first sequence number and the second sequence number, the corrected first mileage information and the corrected sampling time information are added to the subsystem data sequence to achieve data synchronization of the subsystem, including: Based on the first sequence number and the second sequence number, the elements in the integrated mileage sequence are matched with the elements in the subsystem data sequence; elements with the same first sequence number and second sequence number are successfully matched; The corrected first mileage information and corrected sampling time information from the elements in the integrated mileage sequence are added to the elements in the subsystem data sequence that successfully match the elements.

8. The method as described in claim 6, characterized in that, Also includes: Receive display dimension information input by the user; the display dimension information includes individual display of target subsystem data sequences and / or joint display of multiple subsystems; When the displayed dimension information is a target subsystem data sequence displayed separately, the target subsystem data sequence generated based on the second sequence number, the sampled data, and the corrected second mileage information is displayed separately. When the displayed dimension information is a joint display of multiple subsystems, the data sequences of the subsystems corresponding to the multiple subsystems are jointly displayed by adding the corrected first mileage information and the corrected sampling time information.

9. A subsystem data synchronization device based on a sampling sequence, characterized in that, include: The acquisition module is used to acquire the encoder pulse signal output by the pulse encoder installed in the testing vehicle; The testing vehicle is equipped with testing equipment; The sampling module is used to sample the encoder pulse signal according to the sampling interval requirements of the integrated mileage system and the subsystem, respectively, to generate the integrated mileage system data packet sequence and the subsystem data packet sequence; the subsystem is installed in the detection device; the sequence number corresponding to each data packet in the integrated mileage system data packet sequence and the subsystem data packet sequence represents the sampling interval; The integrated mileage sequence generation module is used to call the integrated mileage system, perform sequence number parsing, sampling time correction, and mileage information correction on the integrated mileage system data packet sequence, and generate an integrated mileage sequence; the integrated mileage sequence includes a first sequence number, corrected first mileage information, and corrected sampling time information; The subsystem data sequence generation module is used to call the subsystem, sample the data output by the sensors installed in the subsystem, generate sampled data, parse the sequence number of the subsystem data packet sequence, and generate the subsystem data sequence based on the sampled data and the second sequence number obtained by the sequence number parsing. The data synchronization module is used to add the corrected first mileage information and the corrected sampling time information to the subsystem data sequence according to the first sequence number and the second sequence number, so as to realize the data synchronization of the subsystem.

10. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method of any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method of any one of claims 1 to 8.

12. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the method of any one of claims 1 to 8.