[go: up one dir, main page]

CN115225191B - Multi-device delay calibration method and device based on local area network - Google Patents

Multi-device delay calibration method and device based on local area network Download PDF

Info

Publication number
CN115225191B
CN115225191B CN202210801960.2A CN202210801960A CN115225191B CN 115225191 B CN115225191 B CN 115225191B CN 202210801960 A CN202210801960 A CN 202210801960A CN 115225191 B CN115225191 B CN 115225191B
Authority
CN
China
Prior art keywords
controlled
time value
terminal
time
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.)
Active
Application number
CN202210801960.2A
Other languages
Chinese (zh)
Other versions
CN115225191A (en
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.)
Shenzhen Ganzhen Intelligent Co ltd
Original Assignee
Shenzhen Ganzhen Intelligent 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 Shenzhen Ganzhen Intelligent Co ltd filed Critical Shenzhen Ganzhen Intelligent Co ltd
Priority to CN202210801960.2A priority Critical patent/CN115225191B/en
Publication of CN115225191A publication Critical patent/CN115225191A/en
Application granted granted Critical
Publication of CN115225191B publication Critical patent/CN115225191B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/0682Clock or time synchronisation in a network by delay compensation, e.g. by compensation of propagation delay or variations thereof, by ranging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a method and a device for multi-equipment delay calibration based on a local area network, which are applied to a system consisting of a control end and at least two controlled terminals, wherein the method comprises the following steps: step 1, a control end establishes long connection with all controlled terminals; step 2, the control end sends delay calibration instructions to all the controlled terminals; step 3, each controlled terminal determines the respective instruction complementary difference time value according to the receiving time; and 4, each controlled terminal performs play adjustment according to the preset buffer time value and the respective instruction difference compensating time value so as to realize synchronous play of all the controlled terminals. According to the method and the device for playing the controlled terminals, the playing adjustment is carried out on each controlled terminal according to the preset buffer time value and the instruction difference compensating time value of the controlled terminal, so that synchronous playing of all the controlled terminals is achieved, the defects of overlarge errors and asynchronous operation among a plurality of devices in the prior art are overcome, synchronous playing of all the controlled terminals is achieved, overall appearance is improved, and user experience is strong.

Description

Multi-device delay calibration method and device based on local area network
Technical Field
The invention relates to the technical field of data communication, in particular to a method and a device for multi-equipment delay calibration based on a local area network.
Background
Currently, in some specific scenes, a user needs to use a plurality of devices for displaying, but the simultaneous display of the plurality of devices has the following disadvantages: 1. delay exists among a plurality of devices, so that errors among a plurality of devices are overlarge, operation among a plurality of devices is asynchronous, overall impression is influenced, user experience is poor, and user requirements cannot be met. 2. Cannot withstand the simultaneous display of a large number of devices. 3. There is a distance limitation, and the method is not suitable for the occasion with a large distance, and the occasion with a large distance has the condition of unstable connection.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides a method and a device for multi-device delay calibration based on a local area network.
The specific technical scheme is as follows:
A method for multi-device delay calibration based on a local area network, applied to a system consisting of a control terminal and at least two controlled terminals, comprising:
Step 1, the control end establishes long connection with all the controlled terminals;
Step 2, the control end sends a delay calibration instruction to all the controlled terminals;
step 3, each controlled terminal determines a respective instruction complementary difference time value according to the receiving time;
And 4, performing play adjustment on each controlled terminal according to a preset buffer time value and the respective instruction complementary difference time value so as to realize synchronous play of all the controlled terminals.
In a specific embodiment, each controlled terminal performs play adjustment according to a preset buffer time value and the respective instruction complementary difference time value, including:
And each controlled terminal determines the final playing time according to the preset buffer time value and the respective instruction complementary difference time value, and plays according to the final playing time.
In a specific embodiment, the final playing time of the controlled terminal is obtained by the following formula:
time of final play = receiving time + preset buffer time value-instruction complementary time value.
In a specific embodiment, the buffer time value is greater than the maximum instruction complement time value.
In a specific embodiment, the control end establishes long connection with all the controlled terminals, including:
the control end and all the controlled terminals are accessed to the same network segment of a local area network;
the control terminal sends UDP search packets to each controlled terminal in the same network segment through broadcasting;
Each controlled terminal carries out identity verification on the control terminal after receiving the UDP search packet;
after the verification is passed, the controlled terminal feeds back the equipment information of the controlled terminal to the control terminal;
and the control end establishes long connection with each controlled terminal based on the equipment information.
In a specific embodiment, the method further comprises: judging whether the control end establishes long connection with all the controlled terminals;
If yes, executing the step 2;
if not, repeating the step 1.
An apparatus for multi-device delay calibration based on local area network is applied to a system composed of a control end and at least two controlled terminals, and comprises:
the long connection module is used for enabling the control end to establish long connection with all the controlled terminals;
the sending module is used for enabling the control terminal to send delay calibration instructions to all the controlled terminals;
the determining module is used for enabling each controlled terminal to determine respective instruction complementary difference time values according to the receiving time;
And the synchronization module is used for enabling each controlled terminal to play and adjust according to a preset buffer time value and the respective instruction difference compensating time value so as to realize synchronous play of all the controlled terminals.
In a specific embodiment, the long connection module includes:
The initialization module is used for enabling the control end and all the controlled terminals to access the same network segment of the local area network;
The broadcasting module is used for enabling the control terminal to send UDP search packets to all the controlled terminals in the same network segment through broadcasting;
the verification module is used for enabling each controlled terminal to carry out identity verification on the control terminal after receiving the UDP search packet;
The feedback module is used for feeding back the equipment information of the controlled terminal to the control terminal after the verification is passed;
And the receiving module is used for enabling the control terminal to establish long connection with each controlled terminal based on the equipment information.
In a specific embodiment, the synchronization module includes a calculation module configured to calculate a final playing time according to the receiving time, the buffering time value and the instruction complementary difference time value.
In a specific embodiment, the method further includes a judging module, configured to judge whether the control end establishes long connections with all the controlled terminals.
The invention has at least the following beneficial effects:
The invention provides a method and a device for multi-equipment delay calibration based on a local area network, which are applied to a system consisting of a control end and at least two controlled terminals, wherein the method comprises the following steps: step 1, a control end establishes long connection with all controlled terminals; step 2, the control end sends delay calibration instructions to all the controlled terminals; step 3, each controlled terminal determines the respective instruction complementary difference time value according to the receiving time; and 4, each controlled terminal performs play adjustment according to the preset buffer time value and the respective instruction difference compensating time value so as to realize synchronous play of all the controlled terminals. According to the method and the device for playing the controlled terminals, the playing adjustment is carried out according to the preset buffer time value and the instruction complementary difference time value of each controlled terminal, so that synchronous playing of all the controlled terminals is achieved, the defects of overlarge errors among a plurality of devices and asynchronous among the plurality of devices in the prior art are overcome, synchronous playing of all the controlled terminals is achieved, overall appearance is improved, and user experience is strong.
Further, each controlled terminal performs play adjustment according to the preset buffer time value and the respective instruction complementary difference time value, including: and each controlled terminal determines the final playing time through a preset buffer time value and a respective instruction complementary difference time value, and plays according to the final playing time. The delay among a plurality of controlled terminals is avoided, and the overall appearance is influenced.
Further, the buffer time value is larger than the maximum instruction complementary difference time value, so that when all the controlled terminals synchronously play, all the controlled terminals receive the delay calibration instruction. The asynchronous playing among the controlled terminals caused by different playing time of the controlled terminals is avoided.
Further, the control end establishes long connection with all the controlled terminals, including: the control end and all the controlled terminals are accessed to the same network segment of the local area network; the control end sends UDP search packets to each controlled terminal in the same network segment through broadcasting; each controlled terminal receives the UDP search packet and then carries out identity verification on the control terminal; after the verification is passed, the controlled terminal feeds back the equipment information of the controlled terminal to the control terminal; the control end establishes long connection with each controlled terminal based on the equipment information. The control terminal and the controlled terminal are connected to the same network segment of the local area network, so that the anti-interference performance of the controlled terminal is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a first flow chart of a method for local area network-based multi-device delay calibration according to the present invention;
FIG. 2 is a second flowchart of a method for local area network-based multi-device delay calibration according to the present invention;
FIG. 3 is a flowchart illustrating a first step in a method for multi-device delay calibration based on LAN according to the present invention;
FIG. 4 is a schematic diagram showing synchronous playback of a method for calibrating multi-device delay based on local area network according to the present invention;
FIG. 5 is a schematic diagram of a first module of an apparatus for multi-device delay calibration based on LAN according to the present invention;
Fig. 6 is a second block diagram of an apparatus for multi-device delay calibration based on lan according to the present invention.
Reference numerals:
1-a long connection module; 2-a transmitting module; 3-a determination module; a 4-synchronization module; 11-initializing a module; 12-a broadcast module; 13-a verification module; a 14-feedback module; 15-a receiving module.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention provides a method and a device for multi-equipment delay calibration based on a local area network, which are applied to a system consisting of a control end and at least two controlled terminals, wherein the method comprises the following steps: step 1, a control end establishes long connection with all controlled terminals; step 2, the control end sends delay calibration instructions to all the controlled terminals; step 3, each controlled terminal determines the respective instruction complementary difference time value according to the receiving time; and 4, each controlled terminal performs play adjustment according to the preset buffer time value and the respective instruction difference compensating time value so as to realize synchronous play of all the controlled terminals.
According to the method and the device for playing the controlled terminals, the playing adjustment is carried out according to the preset buffer time value and the instruction complementary difference time value of each controlled terminal, so that synchronous playing of all the controlled terminals is achieved, the defects of overlarge errors among a plurality of devices and asynchronous among the plurality of devices in the prior art are overcome, synchronous playing of all the controlled terminals is achieved, overall appearance is improved, and user experience is strong.
Example 1
As shown in fig. 1, a method for calibrating multi-device delay based on a local area network is applied to a system composed of a control end and at least two controlled terminals, and includes:
Step 1, a control end establishes long connection with all controlled terminals;
step 2, the control end sends delay calibration instructions to all the controlled terminals;
step 3, each controlled terminal determines the respective instruction complementary difference time value according to the receiving time;
And 4, each controlled terminal performs play adjustment according to the preset buffer time value and the respective instruction difference compensating time value so as to realize synchronous play of all the controlled terminals.
According to the method and the device for playing the controlled terminals, the playing adjustment is carried out according to the preset buffer time value and the instruction complementary difference time value of each controlled terminal, so that synchronous playing of all the controlled terminals is achieved, the defects of overlarge errors among a plurality of devices and asynchronous among the plurality of devices in the prior art are overcome, synchronous playing of all the controlled terminals is achieved, overall appearance is improved, and user experience is strong.
As shown in fig. 1 and fig. 2, step 1, the control end establishes long connection with all the controlled terminals, including:
The control end and all the controlled terminals are accessed to the same network segment of the local area network;
the control end sends UDP search packets to each controlled terminal in the same network segment through broadcasting;
each controlled terminal receives the UDP search packet and then carries out identity verification on the control terminal;
After the verification is passed, the controlled terminal feeds back the equipment information of the controlled terminal to the control terminal;
the control end establishes long connection with each controlled terminal based on the equipment information.
In the prior art, the controlled terminal is connected with the control terminal through the Internet, so that the anti-interference performance is poor, and when the network is delayed, the error is difficult to control within 500 milliseconds, so that the action of the individual controlled terminal is inconsistent with that of other controlled terminals, and the overall look and feel are affected. In the invention, the control terminal is connected with the controlled terminal through the local area network, and sends an instruction to the controlled terminal through the local area network. The defects of poor anti-interference performance and easy delay of receiving instructions by the controlled terminal caused by network delay in the prior art are avoided, so that the anti-interference performance of the controlled terminal is high, and synchronous playing of all the controlled terminals is realized.
The control terminal is connected with the controlled terminal through the local area network, and sends an instruction to the controlled terminal through the local area network; the method comprises the steps that the control end and all the controlled terminals need to access the same network segment of the local area network, and on the basis, the control end sends UDP search packets to all the controlled terminals in the same network segment through broadcasting. Because the number of the controlled terminals connected with the control end is large during large-scale activities, the common router cannot support the connection of the controlled terminals with the large number; and in large-scale activities, the placement positions of all the controlled terminals are scattered, and the problem of weak connection signals exists.
The invention adopts the scheme that the main router carries a plurality of sub routers so as to realize that a control end and a plurality of controlled terminals are accessed into the same network segment of the local area network, and overcomes the defect that the common router cannot support the connection of a plurality of controlled terminals; and the scheme that the main router carries a plurality of sub routers is adopted, so that the defect of weak connection signals caused by larger field and larger placement position interval of each controlled terminal during large-scale activities can be overcome.
Specifically, the method for calibrating the multi-equipment delay based on the local area network can ensure that at least 90 controlled terminals are simultaneously accessed to the local area network.
Specifically, the control end establishes a TCP (transmission control protocol ) long connection with all the controlled terminals.
As shown in fig. 1, 2 and 3, step 1 further includes: judging whether the control end establishes long connection with all the controlled terminals;
If yes, executing the step 2;
if not, repeating the step 1.
The method comprises the following steps: determining whether the control end establishes long connection with all the controlled terminals according to the number of the controlled terminals connected with the control end;
If the number of the devices connected with the control end is equal to the number of all the controlled terminals, executing the step 2;
and if the number of the devices connected with the control end is smaller than the number of all the controlled terminals, repeating the step 1.
The control terminal is ensured to establish long connection with all the controlled terminals, and individual controlled terminals are prevented from being omitted, so that all the controlled terminals are inconsistent, and the overall appearance is influenced.
As shown in fig. 1, each controlled terminal performs play adjustment according to a preset buffer time value and a respective instruction complementary difference time value, including: and each controlled terminal determines the final playing time through a preset buffer time value and a respective instruction complementary difference time value, and plays according to the final playing time.
In the prior art, a control terminal needs to be connected with a plurality of controlled terminals during large-scale activities, each controlled terminal executes corresponding instructions after receiving signals of the control terminal, and due to the plurality of controlled terminals, a large delay exists between the last controlled terminal receiving signals of the control terminal and the first controlled terminal receiving signals of the control terminal. The invention ensures that each controlled terminal determines the consistent final playing time through the preset buffer time value and the respective instruction complementary difference time value, and each controlled terminal plays according to the final playing time.
The final playing time of the controlled terminal is obtained by the following formula: time of final play = receiving time + preset buffer time value-instruction complementary time value. The buffer time value is larger than the maximum instruction complementary difference time value. And ensuring that all the controlled terminals have received the delay calibration instruction when each controlled terminal synchronously plays. The asynchronous playing among the controlled terminals caused by different playing time of the controlled terminals is avoided.
In a specific embodiment, as shown in fig. 4, the control end establishes long connection with the first controlled terminal and the second controlled terminal respectively; the control end sends a delay calibration instruction to the first controlled terminal and the second controlled terminal; the first controlled terminal determines a first instruction compensation time value according to the receiving time, and the second control terminal determines a second instruction compensation time value according to the receiving time; the first controlled terminal performs play adjustment according to the preset buffer time value and the first instruction difference compensating time value, and the second controlled terminal performs play adjustment according to the preset buffer time value and the second instruction difference compensating time value, so that synchronous play of the first controlled terminal and the second control terminal is realized.
For example, the preset buffer time value is 3s; the control end sends a delay calibration instruction to the first controlled terminal and the second controlled terminal in a 08:00:00; the first controlled terminal receives the delay calibration command at 08:00:01, the first command complementary difference time value is 1s, the second controlled terminal receives the delay calibration command at 08:00:02, and the second command complementary difference time value is 2s.
The final playing time T1 of the first controlled terminal and the final playing time T2 of the second controlled terminal are as follows:
T1=08:00:01+00:00:03-00:00:01=08:00:03
T2=08:00:02+00:00:03-00:00:02=08:00:03
And after the first controlled terminal and the second controlled terminal play and adjust according to the preset buffer time value and the respective instruction difference compensating time value, playing the first controlled terminal and the second controlled terminal at the time of 08:00:03, so as to realize synchronous playing of the first controlled terminal and the second controlled terminal.
In summary, the invention performs play adjustment according to the preset buffer time value and the instruction complementary difference time value of each controlled terminal, so as to realize synchronous play of all the controlled terminals, overcome the defects of overlarge error among a plurality of devices and asynchronous among a plurality of devices in the prior art, realize synchronous play of all the controlled terminals, improve the overall impression and have strong user experience.
Example 2
The embodiment provides a device for multi-device delay calibration based on a local area network based on the method for multi-device delay calibration based on the local area network provided in embodiment 1, which is applied to a system composed of a control terminal and at least two controlled terminals.
As shown in fig. 5, includes:
the long connection module 1 is used for enabling the control end to establish long connection with all the controlled terminals;
a sending module 2, configured to enable the control terminal to send a delay calibration instruction to all the controlled terminals;
the determining module 3 is used for enabling each controlled terminal to determine respective instruction complementary difference time value according to the receiving time;
and the synchronization module 4 is used for enabling each controlled terminal to play and adjust according to the preset buffer time value and the respective instruction difference compensating time value so as to realize synchronous play of all the controlled terminals.
According to the invention, all the controlled terminals are synchronously played through the cooperation of the modules, the defects of overlarge errors among a plurality of devices and asynchronous among the plurality of devices in the prior art are overcome, the synchronous playing of all the controlled terminals is realized, the overall impression is improved, and the user experience is strong.
As shown in fig. 6, the long connection module includes:
An initialization module 11, configured to enable the control end and all the controlled terminals to access to the same network segment of the local area network;
A broadcasting module 12, configured to enable the control end to send a UDP search packet to each controlled terminal in the same network segment through broadcasting;
The verification module 13 is used for enabling each controlled terminal to carry out identity verification on the control terminal after receiving the UDP search packet;
the feedback module 14 is configured to feed back, after the verification is passed, the device information of the controlled terminal to the control terminal;
and the receiving module 15 is used for enabling the control terminal to establish long connection with each controlled terminal based on the equipment information.
As shown in fig. 5 and 6, the synchronization module 4 includes a calculation module, configured to calculate a final playing time according to the receiving time, the buffer time value, and the instruction complementary difference time value, and each controlled terminal performs synchronous playing according to the final playing time. The method overcomes the defect that in the prior art, a control end is connected with a plurality of controlled terminals, and a large delay exists between the last controlled terminal which receives the signal of the control end and the first controlled terminal which receives the signal of the control end.
As shown in fig. 5 and fig. 6, the device further includes a judging module, configured to judge whether the control end establishes long connections with all the controlled terminals. The control terminal is ensured to establish long connection with all the controlled terminals, and individual controlled terminals are prevented from being omitted, so that all the controlled terminals are inconsistent, and the overall appearance is influenced.
By means of the implementation steps disclosed by the invention, compared with the prior art, the invention has the following remarkable effect improvement and breakthrough:
1. The device for multi-equipment delay calibration based on the local area network provided by the invention abandons the mode that the controlled terminal is connected with the control terminal through the Internet in the prior art, realizes the connection between the control terminal and the controlled terminal through the local area network, and sends an instruction to the controlled terminal through the local area network. The defects of poor anti-interference performance and easy delay of receiving instructions by the controlled terminal caused by network delay in the prior art are avoided, so that the anti-interference performance of the controlled terminal is high, and synchronous playing of all the controlled terminals is realized.
2. The invention provides a device for multi-equipment delay calibration based on a local area network, which adopts a scheme that a main router carries a plurality of sub-routers to realize that a control end and a plurality of controlled terminals are accessed into the same network segment of the local area network, and overcomes the defect that a common router cannot support the connection of a plurality of controlled terminals; and the scheme that the main router carries a plurality of sub routers is adopted, so that the defect of weak connection signals caused by larger field and larger placement position interval of each controlled terminal during large-scale activities can be overcome.
3. The invention provides a multi-equipment delay calibration device based on a local area network, which ensures that all controlled terminals determine mutually consistent final playing time through a preset buffer time value and a respective instruction difference compensating time value, and all the controlled terminals synchronously play according to the final playing time. The method overcomes the defect that in the prior art, when large-scale activities are performed, a control end needs to be connected with a large number of controlled terminals, and because of the large number of the controlled terminals, a large delay exists between the last controlled terminal which receives the signal of the control end and the first controlled terminal which receives the signal of the control end.
It will be appreciated by those of ordinary skill in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed over a network of computing devices, or they may alternatively be implemented in program code executable by a computer device, such that they are stored in a memory device and executed by the computing device, or they may be separately fabricated as individual integrated circuit modules, or multiple modules or steps within them may be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.
The foregoing description of the preferred embodiments of the invention is not intended to limit the invention to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims (8)

1. A method for multi-device delay calibration based on a local area network, applied to a system consisting of a control terminal and at least two controlled terminals, comprising:
Step 1, the control end establishes long connection with all the controlled terminals;
Step 2, the control end sends a delay calibration instruction to all the controlled terminals;
Step 3, each controlled terminal determines a respective instruction complementary difference time value according to the receiving time; the receiving time is the time when the controlled terminal receives the delay calibration instruction, and the instruction complementary difference time value is the difference between the receiving time and the time when the control terminal sends the delay calibration instruction;
Step 4, each controlled terminal performs play adjustment according to a preset buffer time value and the respective instruction complementary difference time value, including: determining final playing time by each controlled terminal through the preset buffer time value and the respective instruction complementary difference time value, and playing according to the final playing time so as to realize synchronous playing of all the controlled terminals; the final playing time of the controlled terminal is obtained by the following formula: time of final play = receiving time + preset buffer time value-instruction complementary time value.
2. The method of lan-based multi-device delay calibration of claim 1, wherein the buffer time value is greater than the maximum instruction difference time value.
3. The method for calibrating multi-device delay based on local area network according to claim 1, wherein the control end establishes long connections with all the controlled terminals, comprising:
the control end and all the controlled terminals are accessed to the same network segment of a local area network;
the control terminal sends UDP search packets to each controlled terminal in the same network segment through broadcasting;
Each controlled terminal carries out identity verification on the control terminal after receiving the UDP search packet;
after the verification is passed, the controlled terminal feeds back the equipment information of the controlled terminal to the control terminal;
and the control end establishes long connection with each controlled terminal based on the equipment information.
4. A method of local area network-based multi-device delay calibration according to claim 1 or 3, further comprising:
Judging whether the control end establishes long connection with all the controlled terminals;
If yes, executing the step 2;
if not, repeating the step 1.
5. A device for multi-device delay calibration based on a local area network, which is applied to a system consisting of a control end and at least two controlled terminals, and is characterized by comprising:
the long connection module is used for enabling the control end to establish long connection with all the controlled terminals;
the sending module is used for enabling the control terminal to send delay calibration instructions to all the controlled terminals;
The determining module is used for enabling each controlled terminal to determine respective instruction complementary difference time values according to the receiving time; the receiving time is the time when the controlled terminal receives the delay calibration instruction, and the instruction complementary difference time value is the difference between the receiving time and the time when the control terminal sends the delay calibration instruction;
The synchronization module is configured to enable each controlled terminal to perform play adjustment according to a preset buffer time value and the respective instruction complementary difference time value, and includes: determining final playing time by each controlled terminal through the preset buffer time value and the respective instruction difference compensating time value, and playing according to the final playing time so as to realize synchronous playing of all the controlled terminals; the final playing time of the controlled terminal is obtained by the following formula: time of final play = receiving time + preset buffer time value-instruction complementary time value.
6. The apparatus for lan-based multi-device delay calibration of claim 5, wherein said long connection module comprises:
The initialization module is used for enabling the control end and all the controlled terminals to access the same network segment of the local area network;
The broadcasting module is used for enabling the control terminal to send UDP search packets to all the controlled terminals in the same network segment through broadcasting;
the verification module is used for enabling each controlled terminal to carry out identity verification on the control terminal after receiving the UDP search packet;
The feedback module is used for feeding back the equipment information of the controlled terminal to the control terminal after the verification is passed;
And the receiving module is used for enabling the control terminal to establish long connection with each controlled terminal based on the equipment information.
7. The apparatus for lan-based multi-device delay calibration of claim 5, wherein the synchronization module comprises a calculation module for calculating a final playout time based on the receive time, the buffer time value, and the instruction complementary time value.
8. The apparatus for calibrating multi-device delay based on local area network according to claim 5, further comprising a judging module for judging whether the control terminal establishes long connections with all the controlled terminals.
CN202210801960.2A 2022-07-08 2022-07-08 Multi-device delay calibration method and device based on local area network Active CN115225191B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210801960.2A CN115225191B (en) 2022-07-08 2022-07-08 Multi-device delay calibration method and device based on local area network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210801960.2A CN115225191B (en) 2022-07-08 2022-07-08 Multi-device delay calibration method and device based on local area network

Publications (2)

Publication Number Publication Date
CN115225191A CN115225191A (en) 2022-10-21
CN115225191B true CN115225191B (en) 2024-08-23

Family

ID=83610424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210801960.2A Active CN115225191B (en) 2022-07-08 2022-07-08 Multi-device delay calibration method and device based on local area network

Country Status (1)

Country Link
CN (1) CN115225191B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117311258B (en) * 2023-12-01 2024-03-12 合肥中科鸿创信息科技有限公司 Multi-device synchronous control method and system based on UDP and PLC

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103198851A (en) * 2013-03-05 2013-07-10 福建星网视易信息系统有限公司 Multi-terminal synchronous broadcast method based on timestamp messages
CN103338204A (en) * 2013-07-05 2013-10-02 曾德钧 Audio synchronization output method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739661B (en) * 2012-06-18 2015-07-15 深圳市云动创想科技有限公司 Method and system for network audio sync output on basis of data statistics
CN103065658B (en) * 2012-12-18 2015-07-08 华为技术有限公司 Control method and device of multi-terminal synchronized playing
CN108513159A (en) * 2017-02-27 2018-09-07 中兴通讯股份有限公司 Multiple terminals synchronous broadcast controlling method, main equipment, apparatus and system
CN111147907B (en) * 2019-12-26 2022-05-10 深圳市优必选科技股份有限公司 Method, device and system for synchronously playing multiple intelligent terminals and intelligent terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103198851A (en) * 2013-03-05 2013-07-10 福建星网视易信息系统有限公司 Multi-terminal synchronous broadcast method based on timestamp messages
CN103338204A (en) * 2013-07-05 2013-10-02 曾德钧 Audio synchronization output method and system

Also Published As

Publication number Publication date
CN115225191A (en) 2022-10-21

Similar Documents

Publication Publication Date Title
CN111147907B (en) Method, device and system for synchronously playing multiple intelligent terminals and intelligent terminal
US7440430B1 (en) Jitter buffer management for mobile communication handoffs
JP5574988B2 (en) Data transfer method and system for loudspeakers in a digital sound reproduction system
US5923902A (en) System for synchronizing a plurality of nodes to concurrently generate output signals by adjusting relative timelags based on a maximum estimated timelag
CN103581816A (en) Wireless multi-room music system synchronization mechanism based on UPnP protocol
US11304090B2 (en) Method for correcting audio data during dual wireless communication and wireless playback system
CN104254007B (en) A kind of audio-frequency processing method and device
US20100034393A1 (en) Ad-hoc adaptive wireless mobile sound system
US20080040759A1 (en) System And Method For Establishing And Maintaining Synchronization Of Isochronous Audio And Video Information Streams in Wireless Multimedia Applications
US20040010623A1 (en) Reducing the access delay for transmitting processed data over transmission data
CN102739661B (en) Method and system for network audio sync output on basis of data statistics
JPH11331222A (en) Device and method for transmitting voice having adaptive packet length
US10587954B2 (en) Packet based delivery of multi-channel audio over wireless links
US20200153722A1 (en) Methods, systems, and computer readable media for measuring delivery latency in a frame-preepmtion-capable network
CN115225191B (en) Multi-device delay calibration method and device based on local area network
US7769054B2 (en) Method of conducting a communications session using incorrect timestamps
CN104168218A (en) Jitter buffering method and device
US8477810B2 (en) Synchronization using multicasting
WO2024087881A1 (en) Clock synchronization method and apparatus, system, device, and storage medium
US11129119B2 (en) Data synchronization method, device and storage medium
US8238269B2 (en) Method for balancing latency in a communications tree, corresponding device and storage means
US11751153B2 (en) Multi-member bluetooth device capable of synchronizing audio playback between different bluetooth circuits
CN115767445A (en) Bluetooth broadcast two-way communication method and device, electronic equipment and storage medium
CN118201092A (en) Wireless audio data transmission method and related equipment
CN112333690A (en) Data transmission method, device, storage medium, terminal and network access point equipment

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
GR01 Patent grant
GR01 Patent grant