CN112615691A - Method for accurately aligning time among multiple terminals of timing type sports test system - Google Patents

Method for accurately aligning time among multiple terminals of timing type sports test system Download PDF

Info

Publication number
CN112615691A
CN112615691A CN201910946548.8A CN201910946548A CN112615691A CN 112615691 A CN112615691 A CN 112615691A CN 201910946548 A CN201910946548 A CN 201910946548A CN 112615691 A CN112615691 A CN 112615691A
Authority
CN
China
Prior art keywords
time
terminal
slave
terminals
multiple terminals
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
CN201910946548.8A
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.)
Shanghai Danzhu Sports Technology Co ltd
Original Assignee
Shanghai Danzhu Sports 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 Shanghai Danzhu Sports Technology Co ltd filed Critical Shanghai Danzhu Sports Technology Co ltd
Priority to CN201910946548.8A priority Critical patent/CN112615691A/en
Publication of CN112615691A publication Critical patent/CN112615691A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0682Clock or time synchronisation in a network by delay compensation, e.g. by compensation of propagation delay or variations thereof, by ranging

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention provides a method for accurately aligning time among multiple terminals of a timing sports test system. The invention belongs to the field of time alignment among multiple terminals in an information system, and particularly relates to a method for aligning time among terminals with various types of different platforms in a timing type sports test system. The method comprises the following steps: step 1, sending a network delay test request; step 2, sending a network delay test response; step 3, calculating calibration time; step 4, sending a calibration time request; and 5, calibrating time. The invention effectively realizes the method for accurately aligning the time among the multiple terminals in the timing type sports test system, so that the synchronous start, synchronous timing and synchronous score calculation of the project test can be realized among the multiple terminals of the timing type sports test system.

Description

Method for accurately aligning time among multiple terminals of timing type sports test system
Technical Field
The invention belongs to the field of time alignment among multiple terminals in an information system, and particularly relates to a method for aligning time among multiple types and multiple platforms in a timing sports test system.
Background
The main task of accurately aligning time among multiple terminals of the timing type sports test system is to realize the time consistency of the multiple terminals in the timing type sports test, so that the multiple terminals can synchronously start, synchronously time and synchronously calculate the scores of sports test items.
For example, in the intelligent 1000 m sports test system, the system includes a system service background device D1, a video analysis engine device D2, a WEB terminal device D3, an Android tablet terminal device D4, and an iPad terminal device D5. The device D2 is responsible for intelligently analyzing the video and broadcasting the analysis results to D3, D4 and D5 through the device D2. In this embodiment, the device D3 is set as a master device, and controls the start of a 1000-meter test and displays the test status, and the devices D4 and D5 only display the test status. The referee clicks a start button of the D3 device, the D3 automatically synthesizes starting gun sound, a 1000-meter test is started, timing is started on the interface, at the moment, the D4 and the D5 are required to automatically synthesize the starting gun sound at the same time, the 1000-meter test is displayed on the interface, timing is started on the interface, the starting gun sound time of the D3, the D4 and the D5 is required to be the same, the 1000-meter test item timing calculated on the interfaces of the D3, the D4 and the D5 is the same, and the D1 is required to start analyzing videos at the same time of the gun sound. Thus requiring all devices to be time aligned in milliseconds. The physical training system is generally deployed in a local area network, and basically does not configure an NTP server. The invention aims to automatically and accurately align the time between terminals in a local area network environment without an NTP (network time protocol) server and improve the accuracy of test process data and test results in a timing sports test system. The time alignment method of the NTP protocol is that a client initiates a time alignment request to an NTP server, and the NTP server returns time alignment data to the client for the client to align. The method of the invention is to determine a time master terminal (time alignment initiating terminal), and the master terminal initiates and calibrates the time of all other slave terminals in a timing mode.
Disclosure of Invention
The invention aims to solve the problem of inconsistent time among multiple terminals of a timing type sports test system, and uses a method for initiating and calibrating the time of all other slave terminals by a master terminal in a timing manner, so that project test, synchronous timing and synchronous project score calculation among the multiple terminals can be synchronously started in the timing type sports test.
The invention is realized by adopting the following technical scheme.
The invention introduces a mutual communication module between terminals, for each terminal needing synchronization, a main terminal needs to communicate with the terminal in a timing way, the current delay time is recorded, and then the time of a slave terminal is synchronized according to the network delay and the time difference between the main terminal and the slave terminal.
A method for accurately aligning time between multiple terminals of a timing-like sports test system, comprising:
step 1, sending a network delay test request
A time master terminal is determined among a plurality of terminals of the timing type sports test system, and the other terminals are time slave terminals. And the time master terminal regularly calibrates the time of all other slave terminals as the time of the master terminal in a timing task mode.
The master terminal sends network delay test requests to all the slave terminals, and simultaneously records the local time t1 of the master terminal.
Step 2, sending network delay test response
And after receiving the network delay test request sent by the master terminal, the slave terminal immediately sends a network delay test response to the master terminal, and the response data packet contains the local time ts2 of the slave terminal at the time of sending the network delay test response.
Step 3, calculating the calibration time
The master terminal receives the network delay test sent by the slave terminal at time t2, and calculates the unidirectional network and the processing delay between the master terminal and the slave terminal to be (t2-t 1)/2.
Step 4, sending a calibration time request
The master terminal sends a time calibration request to the slave terminal, and the request data packet contains the time required for the slave terminal to calibrate, and the time calibration request comprises the following steps: ad2 = t1-ts2+ (t2-t 1)/2.
Step 5, calibrating time
And after receiving the calibration time request from the terminal, resetting the local time. The reset local time is: adding the current local time to the calibration time: slave terminal setup time = slave terminal current time + ad2
Through the steps, the local time of all the slave terminals of the sports test system is completely consistent with the local time of the master terminal. The master terminal initiates calibration at regular time, and the slave terminal can be timely calibrated once time drifts.
Drawings
Fig. 1 is a flowchart illustrating a method for time synchronization between multiple terminals of a timing-based sports testing system according to an embodiment of the present invention.
Detailed Description
The invention is further illustrated with reference to the following figures and examples.
In this embodiment, taking an intelligent 1000-meter sports testing system and a scene as an example, the system includes a system service background device D1, a video analysis engine device D2, a WEB terminal device D3, an Android tablet terminal device D4, and an iPad terminal device D5. The device D2 is responsible for intelligently analyzing the video and broadcasting the analysis results to D3, D4 and D5 through the device D2. In this embodiment, the device D3 is set as a master device, and controls the start of a 1000-meter test and displays the test status, and the devices D4 and D5 only display the test status. The referee clicks a start button of the D3 device, the D3 automatically synthesizes starting gun sound, a 1000-meter test is started, timing is started on the interface, at the moment, the D4 and the D5 are required to automatically synthesize the starting gun sound at the same time, the 1000-meter test is displayed on the interface, timing is started on the interface, the starting gun sound time of the D3, the D4 and the D5 is required to be the same, the 1000-meter test item timing calculated on the interfaces of the D3, the D4 and the D5 is the same, and the D1 is required to start analyzing videos at the same time of the gun sound. Thus requiring all devices to be time aligned in milliseconds.
In order to achieve the accurate time alignment between the terminals under the 1000 m test, this embodiment discloses a method for accurately aligning time between multiple terminals, please refer to fig. 1, which includes:
step S101, sending a network delay test request
The device D1 time aligns the time of all other terminals to the time of D1 in a timed task fashion.
The device D1 sends a network latency test request to the devices D2, D3, D4, D5, while the device D1 records its local time t1 at that time.
Step S102, sending network delay test response
After receiving the network delay test request sent by the D1, the devices D2, D3, D4, and D5 immediately send a network delay test response to the D1, where the response data packet includes local times ts2, ts3, ts4, and ts5 of the devices D2, D3, D4, and D5 at the time of sending the network delay test response.
Step S103, calculating calibration time
The device D1 receives the network delay tests sent by the devices D2, D3, D4, and D5 at times t2, t3, t4, and t5, respectively, and can calculate that the unidirectional network and the processing delay between the device D1 and the devices D2, D3, D4, and D5 are respectively: (t2-t1)/2, (t3-t1)/2, (t4-t1)/2, (t5-t 1)/2.
Step S104, sending a calibration time request
The device D1 sends a calibration time request to the devices D2, D3, D4, D5, respectively, the request data packet including the time at which the devices D2, D3, D4, D5 are required to calibrate. Respectively as follows:
d2 time to calibrate ad2 = t1-ts2+ (t2-t 1)/2;
d3 time to calibrate ad3 = t1-ts3+ (t3-t 1)/2;
d4 time to calibrate ad4 = t1-ts4+ (t4-t 1)/2;
d5 time to calibrate ad5 = t1-ts5+ (t5-t 1)/2;
step S105, calibrating time
The devices D2, D3, D4, D5 reset the local time after receiving the calibration time request. The reset local time is: the current local time is added with the calibration time.
Device D2 set time = device D2 current time + ad 2;
device D3 set time = device D3 current time + ad 3;
device D4 set time = device D4 current time + ad 4;
device D5 set time = device D5 current time + ad 5;
so far, the local time of all the slave terminals of the sports test system is completely consistent with the local time of the master terminal. The master terminal initiates calibration at regular time, and the slave terminal can be timely calibrated once time drifts.
The present embodiment does not limit the application scenario and the type of the terminal device, and in the case that no special explanation is made, the specific application scenario and the type of the terminal device do not limit the technical solution of the present embodiment, and it should be understood as an example for facilitating the understanding of the technical solution by those skilled in the art.
It should be understood that the above examples are only for clearly illustrating the present invention and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention.

Claims (7)

1. A method for accurately aligning time among multiple terminals of a timing type sports test system is characterized in that: step 1, sending a network delay test request; step 2, sending a network delay test response; step 3, calculating calibration time; step 4, sending a calibration time request; and 5, calibrating time.
2. A method of accurately aligning time between multiple terminals of a time keeping sports testing system according to claim 1, wherein: determining a time master terminal among a plurality of terminals of the timing type sports test system, wherein the other terminals are time slave terminals; and the time master terminal regularly calibrates the time of all other slave terminals as the time of the time master terminal in a timing task mode.
3. A method of accurately aligning time between multiple terminals of a time keeping sports testing system according to claim 1, wherein: the network delay test request is sent by the master terminal to all the slave terminals, and the master terminal records the local time t1 of the master terminal at the moment.
4. A method of accurately aligning time between multiple terminals of a time keeping sports testing system according to claim 1, wherein: the network delay test response is sent by the slave terminal to the master terminal immediately after the slave terminal receives the network delay test request sent by the master terminal, and the response data packet contains the local time ts2 of the slave terminal at the time of sending the network delay test response.
5. A method of accurately aligning time between multiple terminals of a time keeping sports testing system according to claim 1, wherein: the calculation of the calibration time is that the master terminal receives a network delay test response sent by the slave terminal at time t2, and the processing delay of the unidirectional network and the system between the master terminal and the slave terminal is calculated to be (t2-t 1)/2.
6. A method of accurately aligning time between multiple terminals of a time keeping sports testing system according to claim 1, wherein: the sending of the calibration time request is that the master terminal sends a calibration time request to the slave terminal, and the request data packet contains the time required for the slave terminal to calibrate, and the time required for the slave terminal to calibrate is as follows: ad2 = t1-ts2+ (t2-t 1)/2.
7. A method of accurately aligning time between multiple terminals of a time keeping sports testing system according to claim 1, wherein: the calibration time is reset local time after the slave terminal receives the calibration time request; the reset local time is the current local time plus the calibration time, i.e. the slave terminal set time = slave terminal current time + ad 2.
CN201910946548.8A 2019-10-06 2019-10-06 Method for accurately aligning time among multiple terminals of timing type sports test system Pending CN112615691A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910946548.8A CN112615691A (en) 2019-10-06 2019-10-06 Method for accurately aligning time among multiple terminals of timing type sports test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910946548.8A CN112615691A (en) 2019-10-06 2019-10-06 Method for accurately aligning time among multiple terminals of timing type sports test system

Publications (1)

Publication Number Publication Date
CN112615691A true CN112615691A (en) 2021-04-06

Family

ID=75224349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910946548.8A Pending CN112615691A (en) 2019-10-06 2019-10-06 Method for accurately aligning time among multiple terminals of timing type sports test system

Country Status (1)

Country Link
CN (1) CN112615691A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1667997A (en) * 2004-03-10 2005-09-14 朗迅科技公司 Method and system for the clock synchronization of network terminals
CN102201983A (en) * 2011-05-03 2011-09-28 中兴通讯股份有限公司 Method, terminal and system for measuring asymmetric time delay of transmission link
CN104935630A (en) * 2015-04-23 2015-09-23 南京信息工程大学 HTTP-based millisecond-level clock calibration method
CN105490798A (en) * 2015-11-25 2016-04-13 尹璐 Synchronization method and synchronization system for standard time and fighting time of cross-platform terminals of multiple types
CN107613012A (en) * 2017-09-27 2018-01-19 北京汇英添力科技有限公司 A kind of multiple terminals synchronizing web pages clocking method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1667997A (en) * 2004-03-10 2005-09-14 朗迅科技公司 Method and system for the clock synchronization of network terminals
CN102201983A (en) * 2011-05-03 2011-09-28 中兴通讯股份有限公司 Method, terminal and system for measuring asymmetric time delay of transmission link
CN104935630A (en) * 2015-04-23 2015-09-23 南京信息工程大学 HTTP-based millisecond-level clock calibration method
CN105490798A (en) * 2015-11-25 2016-04-13 尹璐 Synchronization method and synchronization system for standard time and fighting time of cross-platform terminals of multiple types
CN107613012A (en) * 2017-09-27 2018-01-19 北京汇英添力科技有限公司 A kind of multiple terminals synchronizing web pages clocking method and system

Similar Documents

Publication Publication Date Title
CN104375789B (en) The synchronous display method and system of mosaic screen
CN110418170B (en) Detection method and device, storage medium and electronic device
CN100581164C (en) Accurate time synchronization method and system facing measurement and control
CN105940390B (en) Method and system for the synchronous received data of multiple sensors from equipment
CN107251620B (en) Beacon-based wireless synchronization
US8001225B2 (en) Server time protocol messages and methods
WO2021204144A1 (en) Data processing system and method, sensor, mobile acquisition backpack, and device
CN102638324B (en) Method and device for realizing precise time synchronization
CN105515708B (en) A kind of clock synchronization accuracy test device and method based on FC networks
CN106059701A (en) Device for testing clock synchronization correction value of time-triggered Ethernet by capturing protocol control frame
CN101534222A (en) End-to-end network delay jitter measuring method, device and system thereof
CN111954050B (en) Method and system for synchronizing videos among multiple devices
US20100293243A1 (en) method and apparatus for measuring directionally differentiated (one-way) network latency
US20220329338A1 (en) Synchronizing a distributed application via a communication network
CN107770569A (en) Multimedia synchronous broadcast method, apparatus and system
CN112615691A (en) Method for accurately aligning time among multiple terminals of timing type sports test system
CN111102689A (en) Method and device for adjusting clock synchronization
WO2023201822A1 (en) Multi-camera synchronous correction method and apparatus, and storage medium
CN111372111A (en) Data determination method and device and vehicle-mounted terminal
CN102983959B (en) Method for realizing one-step mode and two-step mode for PTP (precision time synchronization protocol) in a plurality of MAC
CN115426515A (en) Method, device, system and storage medium for multi-device synchronous calibration
US20210127240A1 (en) Dynamic weighing device
US9635633B2 (en) Multimedia synchronization system and method
CN112702620A (en) Method for realizing multi-screen synchronous playing of player based on gstreamer
CN110661878B (en) Method and device for synchronously testing instructions and data in sports test 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