Train time synchronization method and device based on time difference and storage medium
By calculating the signal transmission error duration and synchronizing the train time, the problem of network connection fluctuations in traditional methods affecting the accuracy of train time is solved, and more stable and accurate train time synchronization is achieved.
Patent Information
- Application Number
- CN202510320057.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-18
- Publication Date
- 2025-06-17
AI Technical Summary
Traditional train time synchronization methods are susceptible to the network connection status, resulting in low time accuracy.
By obtaining the signal transmission and reception time of communication between the train and the rail-side equipment, combining the position data of the beacon point and the operation information of the train, the error duration of the signal transmission is calculated, and the on-board time is synchronized after the train passes through the beacon point.
This method can synchronize train time through rail-side equipment, reduce the impact of error on train time accuracy, and improve the stability and accuracy of time synchronization.
Smart Images

Figure CN120156573A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of rail transit, and particularly to a train time synchronization method, device and storage medium based on time difference. Background Art
[0002] The traditional train time is usually synchronized through an NTP server, but it is easily affected by the network connection status. Summary of the Invention
[0003] To achieve the above object, the present invention provides a train time synchronization method, device and storage medium based on time difference, which can synchronize the train time through trackside equipment and reduce the influence of errors on the accuracy of train time.
[0004] A train time synchronization method based on time difference proposed in an embodiment of the present invention includes: obtaining sampling time data: obtaining the signal transmission time and signal reception time when the train communicates with trackside equipment at at least one sampling point before the train arrives at a beacon point; determining sampling distance data: after the train passes the beacon point, based on the position data of the beacon point stored in advance, the running time of the train from the at least one sampling point to the beacon point, and the running speed of the train, determining the position data of the at least one sampling point; determining the signal transmission distance: based on the position data of the sampling point, the position data of the beacon point, the position data of the trackside equipment stored in advance, and the included angle between the connection line from the beacon point to the trackside equipment and the track with corresponding position data stored in advance, determining the distance from the trackside equipment to each sampling point; determining the error duration: based on the distance from the trackside equipment to each sampling point, the signal transmission time and the signal reception time, determining the error duration of signal transmission; synchronizing the train time: after the train passes the beacon point, synchronizing the on-vehicle time of the train based on the error duration and the current signal transmission time of the trackside equipment. It can synchronize the train time through trackside equipment and reduce the influence of errors on the accuracy of train time.
[0005] A train time synchronization device based on time difference proposed in an embodiment of the present invention includes: a sampling time data acquisition module configured to acquire the signal transmission time and signal reception time when the train communicates with trackside equipment at at least one sampling point before the train arrives at a beacon point; a sampling distance data determination module configured to, after the train passes the beacon point, determine the position data of the at least one sampling point based on the pre-stored position data of the beacon point, the running time of the train from the at least one sampling point to the beacon point, and the running speed of the train; a signal transmission distance determination module configured to determine the distance from the trackside equipment to each sampling point based on the position data of the sampling point, the position data of the beacon point, the pre-stored position data of the trackside equipment, and the included angle between the connection line from the beacon point to the trackside equipment and the track with the corresponding pre-stored position data; an error duration determination module configured to determine the error duration of signal transmission based on the distance from the trackside equipment to each sampling point, the signal transmission time, and the signal reception time; a synchronous train time synchronization module configured to, after the train passes the beacon point, synchronize the on-vehicle time of the train based on the error duration and the current signal transmission time of the trackside equipment. It can synchronize the train time through the trackside equipment and reduce the influence of errors on the accuracy of train time.
[0006] An electronic device proposed in an embodiment of the present invention includes: at least one processor; and a memory coupled to the at least one processor, where the memory is used to store instructions, and when the instructions are executed by the at least one processor, the processor executes the method as described above.
[0007] A computer-readable storage medium proposed in an embodiment of the present invention has computer instructions stored thereon, and the computer instructions execute the method as described in any of the above embodiments when running.
[0008] A computer program product proposed in an embodiment of the present invention includes a computer program, and when the computer program is executed by a processor, it implements the method as described in any of the above embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The following drawings are only intended to illustrate and explain the present invention schematically and do not limit the scope of the present invention. Among them,
[0010] Figure 1 is a flowchart of a train time synchronization method 100 based on time difference according to an embodiment of the present invention.
[0011] Figure 2 is a structural diagram of a train time synchronization device 200 based on time difference according to an embodiment of the present invention.
[0012] Figure 3 It is a schematic diagram of an electronic device 300 according to an embodiment of the present invention.
[0013] Figure 4 It is a schematic diagram of the positional relationship between a train and trackside equipment according to an embodiment of the present invention.
[0014] The description of the reference numerals is as follows:
[0015]
[0016] Detailed implementation manners
[0017] For a clearer understanding of the technical features, objectives, and effects of the present invention, the detailed implementation manners of the present invention will now be described with reference to the accompanying drawings.
[0018] Many specific details are set forth in the following description in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways different from those described herein, and thus the present invention is not limited by the specific embodiments disclosed below.
[0019] As shown in this application and the claims, unless the context clearly indicates otherwise, the words "a", "an", "one", and / or "the" are not specifically singular and may also include the plural. Generally speaking, the terms "including" and "comprising" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list, and the method or device may also include other steps or elements.
[0020] The NTP service synchronizes the time to the trackside equipment and the train respectively, because fluctuations in the network connection can lead to low time accuracy.
[0021] Therefore, an embodiment of the present invention proposes a more effective train time synchronization method, device, and storage medium based on time difference.
[0022] Figure 1 It is a flowchart of a train time synchronization method 100 based on time difference in an embodiment of the present invention. As Figure 1 and 4 shown, the method 100 may include:
[0023] Step S101, when the train arrives at at least one sampling point before the beacon point, obtain the signal transmission time and signal reception time of the communication between the train and the trackside equipment.
[0024] Specifically, at multiple sampling points P1, P2,..., P n The train and the trackside equipment communicate with each other with signal transmission time T s={t s1 ,t s2 ,…,t sn} and the signal reception time T r ={t r1 ,t r2 ,…,t rn}.
[0025] Specifically, for a certain sampling point, t f1 =t r1 +Δt - t s1 , that is to say, there is a certain time difference between the time when the signal is sent from the wayside equipment and the time when the train receives it, mainly including the error Δt and the flight time t f1 .
[0026] In this embodiment, when the train is at the sampling point, the signal reception time is the sum of the signal transmission time, the error duration, and the flight duration of the signal from the wayside equipment to the sampling point.
[0027] In this embodiment, based on the distance from the wayside equipment to each sampling point and the wireless signal transmission speed, the flight duration corresponding to each sampling point is determined.
[0028] Step S102, after the train passes the beacon point, based on the pre - stored position data of the beacon point, the running time of the train from the at least one sampling point to the beacon point, and the running speed of the train, determine the position data of the at least one sampling point.
[0029] Specifically, by using the running speed and time of the train from the sampling points P1, P2, …, P n to the beacon point B, the distance d i (i = 1, 2, …, n) between each sampling point and the beacon point can be calculated.
[0030] Step S103, based on the position data of the sampling point, the position data of the beacon point, the pre - stored position data of the wayside equipment, and the included angle between the connection line from the beacon point to the wayside equipment and the track with the pre - stored corresponding position data, determine the distance from the wayside equipment to each sampling point.
[0031] In this embodiment, based on the position data of the sampling points and the position data of the beacon points, the distances from each beacon point to each sampling point are determined. Based on the position data of the beacon points and the position data of the trackside equipment, the distances from the trackside equipment to the beacon points are determined. Based on the pre-stored position data of the track and the position data of the trackside equipment and the beacon points, the included angle between the line connecting the trackside equipment to the beacon point and the track is determined. Based on the included angle, the distance from the trackside equipment to the beacon point, and the distance from the beacon point to the sampling point, the distances from the trackside equipment to each sampling point are determined.
[0032] Specifically, the position data of point B where the beacon point is located and the data of position O where the trackside equipment is located are pre-stored and known, and the position data of the track is also known. Then, the distance l between OB and the included angle θ between OB and the track can be determined.
[0033] Specifically, through the included angle and the already determined distance, by the cosine theorem l 2 +d i 2 -2ld i cos∠θ = l i 2 The distances from the trackside equipment to each sampling point l i .
[0034] Step S104, based on the distances from the trackside equipment to each sampling point, the signal transmission time, and the signal reception time, determine the error duration of signal transmission.
[0035] Specifically, through c(t ri +Δt + t si ) = l i The relationship between time and distance can be clarified.
[0036] Specifically, by solving the simultaneous matrix equation to obtain the error duration Δt.
[0037] Step S105, after the train passes the beacon point, synchronize the on-vehicle time of the train based on the error duration and the current signal transmission time of the trackside equipment.
[0038] Figure 2 It is a schematic structural diagram of a train time synchronization device 200 based on time difference in an embodiment of the present invention. As Figure 2 shown, the device 200 may include:
[0039] A sampling time data acquisition module 201, configured to: acquire the signal transmission time and the signal reception time when the train communicates with the trackside equipment when the train reaches at least one sampling point before the beacon point;
[0040] The sampling distance data determination module 202 is configured to: after the train passes the beacon point, determine the position data of the at least one sampling point based on the pre-stored position data of the beacon point, the running time of the train from the at least one sampling point to the beacon point, and the running speed of the train.
[0041] The signal transmission distance determination module 203 is configured to: based on the position data of the sampling point, the position data of the beacon point, the pre-stored position data of the trackside equipment, and the included angle between the connection line from the beacon point to the trackside equipment and the track with the corresponding pre-stored position data, determine the distance from the trackside equipment to each sampling point.
[0042] The error duration determination module 204 is configured to: based on the distance from the trackside equipment to each sampling point, the signal transmission time, and the signal reception time, determine the error duration of signal transmission.
[0043] The synchronous train time synchronization module 205 is configured to: after the train passes the beacon point, synchronize the on-vehicle time of the train based on the error duration and the current signal transmission time of the trackside equipment.
[0044] The present invention also provides an electronic device 300. Figure 3 It is a schematic diagram of an electronic device 300 according to an embodiment of the present invention. As Figure 3 shown, the electronic device 300 includes a processor 310 and a memory 320. Instructions are stored in the memory 320, and when the instructions are executed by the processor 310, the method 100 described above is implemented.
[0045] The present invention also provides a computer-readable storage medium, on which computer instructions are stored, and when the computer instructions are run, the method described above is executed.
[0046] The present invention also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method described above is implemented.
[0047] Some aspects of the methods and apparatuses of the present invention may be executed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above-mentioned hardware or software may all be referred to as "blocks", "modules", "engines", "units", "components" or "systems". The processor may be one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DAPDs), programmable logic devices (PLCs), field programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, or combinations thereof. In addition, aspects of the present invention may be embodied as a computer product located on one or more computer-readable media, which includes computer-readable program code. For example, the computer-readable media may include, but is not limited to, magnetic storage devices (such as hard disks, floppy disks, magnetic tapes, etc.), optical discs (such as compact discs (CDs), digital versatile discs (DVDs), etc.), smart cards, and flash memory devices (such as cards, sticks, key drives, etc.).
[0048] Flowcharts are used herein to illustrate the operations performed by the methods according to the embodiments of the present application. It should be understood that the foregoing operations are not necessarily performed precisely in order. Instead, various steps may be processed in reverse order or simultaneously. Also, one or more other operations may be added to these processes, or one or more steps may be removed from these processes.
[0049] It should be understood that although this specification is described according to various embodiments, not every embodiment only contains an independent technical solution. This narrative manner of the specification is only for clarity. Those skilled in the art should regard the specification as a whole, and the technical solutions in each embodiment may also be appropriately combined to form other embodiments that can be understood by those skilled in the art.
[0050] The foregoing are only illustrative specific embodiments of the present invention and are not intended to limit the scope of the present invention. Any equivalent changes, modifications, and combinations made by those skilled in the art without departing from the concept and principles of the present invention shall fall within the scope of protection of the present invention.
Claims
1. A train time synchronization method (100) based on time difference, characterized in that: The method comprises: Acquiring sampling time data (S101): acquiring a signal sending time and a signal receiving time of communication between the train and the trackside equipment at least one sampling point before the train arrives at the beacon point; Determining sampling distance data (S102): after the train passes the beacon point, determining the position data of the at least one sampling point based on the pre-stored position data of the beacon point and the running time of the train from the at least one sampling point to the beacon point and the running speed of the train; Determining the signal transmission distance (S103): Based on the position data of the sampling point, the position data of the beacon point, the pre-stored position data of the trackside equipment, and the angle between the line from the beacon point to the trackside equipment and the track for which the corresponding position data is pre-stored, determining the distance from the trackside equipment to each of the sampling points; Determining the error duration (S104): determining the error duration of signal transmission based on the distance from the trackside equipment to each of the sampling points, the signal sending time, and the signal receiving time; Synchronizing train time (S105): After the train passes the beacon point, the onboard time of the train is synchronized based on the error duration and the current signal sending time of the trackside equipment.
2. The method according to claim 1, characterized in that When the train is at the sampling point, the signal receiving time is the sum of the signal sending time, the error duration, and the flight time of the signal transmitted from the trackside equipment to the sampling point.
3. The method according to claim 2, characterized in that The flight time corresponding to each sampling point is determined based on the distance from the trackside equipment to each sampling point and the wireless signal transmission speed.
4. The method according to claim 1, characterized in that: The determining of the signal transmission distance (S103) further comprises: Determine the distance from the beacon point to each of the sampling points based on the position data of the sampling point and the position data of the beacon point; Determine the distance from the trackside equipment to the beacon point based on the position data of the beacon point and the position data of the trackside equipment; Based on the pre-stored track position data and the trackside equipment and beacon point position data, determine the angle between the track and the line connecting the trackside equipment to the beacon point; Based on the angle, the distance from the trackside equipment to the beacon point, and the distance from the beacon point to the sampling point, the distance from the trackside equipment to each of the sampling points is determined.
5. A train time synchronization device (200) based on time difference, characterized in that: The device comprises: A sampling time data acquisition module (201) is configured to: acquire a signal sending time and a signal receiving time of communication between the train and the trackside equipment at at least one sampling point before the train arrives at the beacon point; The sampling distance data determination module (202) is configured to: after the train passes the beacon point, determine the position data of the at least one sampling point based on the pre-stored position data of the beacon point and the running time of the train from the at least one sampling point to the beacon point and the running speed of the train; The signal transmission distance determination module (203) is configured to: determine the distance from the trackside device to each of the sampling points based on the position data of the sampling points, the position data of the beacon points, the pre-stored position data of the trackside device, and the angle between the line connecting the beacon point to the trackside device and the track for which the corresponding position data is pre-stored; An error duration determination module (204) is configured to: determine the error duration of signal transmission based on the distance from the trackside equipment to each sampling point, the signal sending time and the signal receiving time; The synchronous train time synchronization module (205) is configured to: after the train passes the beacon point, synchronize the on-board time of the train based on the error duration and the signal sending time of the signal currently sent by the trackside equipment.
6. An electronic device (300), comprising: at least one processor (310); as well as A memory (320) coupled to the at least one processor (310), the memory (320) being used to store instructions, which, when executed by the at least one processor (310), causes the processor (310) to perform the method according to any one of claims 1 to 4.
7. A computer-readable storage medium having computer instructions stored thereon, wherein the computer instructions, when executed, execute the method according to any one of claims 1 to 4.
8. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 4.