CN105357750A - Method and selection device for selecting master synchronization equipment, control equipment and electronic equipment - Google Patents

Method and selection device for selecting master synchronization equipment, control equipment and electronic equipment Download PDF

Info

Publication number
CN105357750A
CN105357750A CN201510685773.2A CN201510685773A CN105357750A CN 105357750 A CN105357750 A CN 105357750A CN 201510685773 A CN201510685773 A CN 201510685773A CN 105357750 A CN105357750 A CN 105357750A
Authority
CN
China
Prior art keywords
electronic device
device
synchronization
delay
electronic
Prior art date
Application number
CN201510685773.2A
Other languages
Chinese (zh)
Inventor
高强
姜斌斌
王重乐
Original Assignee
北京小鸟听听科技有限公司
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 北京小鸟听听科技有限公司 filed Critical 北京小鸟听听科技有限公司
Priority to CN201510685773.2A priority Critical patent/CN105357750A/en
Publication of CN105357750A publication Critical patent/CN105357750A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • H04W56/0015Synchronization between nodes one node acting as a reference for the others
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Abstract

The invention discloses a method and a selection device for selecting master synchronization equipment, control equipment and electronic equipment. The method for selecting the master synchronization equipment from a plurality of pieces of electronic equipment in a communication system comprises the following steps: acquiring individual transmission delays between each piece of electronic equipment and other electronic equipment; calculating total transmission delays of the electronic equipment, wherein the total transmission delays are the sums of the individual transmission delays of the electronic equipment; and selecting the electronic equipment with a minimum total transmission delay as the master synchronization equipment.

Description

选择主同步设备的方法、选择装置、控制设备和电子设备 The method of selecting a primary synchronization device, selection means, control device and the electronic device

技术领域 FIELD

[0001] 本发明涉及音响系统中的同步技术,更具体地,涉及一种用于在通信系统中的多个电子设备中选择主同步设备的方法、用于在通信系统中的多个电子设备中选择主同步设备的选择装置、控制设备和电子设备。 [0001] The present invention relates to synchronization technology in a sound system, and more particularly, to a plurality of electronic devices in a communication system, select a primary synchronization method of the device, a plurality of electronic devices in a communication system selecting means for selecting the primary synchronization device, the control device and the electronic device.

背景技术 Background technique

[0002] —般来说,时间同步是指,两个设备在时间上具有一致性。 [0002] - In general, the time synchronization means, the two devices consistent over time. 在包含多个设备的同步系统中,时钟源所在的设备被称为主设备或主同步设备,其他设备与主设备通信,以同步自己的本地时钟,从而达到与主设备的时钟保持一致的目的。 In the synchronization system comprising a plurality of devices, where the device is referred to as the clock source master or master synchronization device, the master device communicate with other devices to synchronize their local clocks, so as to achieve consistent with the master clock device .

[0003] 但是,同步系统中可能存在多种技术问题。 [0003] However, there may be a variety of technical problems in the synchronization system.

[0004] 例如,如果主设备的网络状况变差,例如,在W1-Fi环境下,如果主设备远离W1-Fi路由器,那么这将会导致同步系统的整体时间同步效果变差。 [0004] For example, if the master network conditions deteriorate, for example, in the W1-Fi environment, if the master device away from W1-Fi router, then this will lead to an overall time synchronization system synchronization effect of variation.

[0005] 例如,在无线WiFi音频系统中,可以由两个音箱组成立体声播放系统。 [0005] For example, a wireless WiFi audio system may consist of two speaker stereo playback system. 通常要求两个音箱在同一时间播放同一音乐的不同声道。 Usually it requires two speakers playing the different channels of the same music at the same time. 如果两个音箱的播放时间差达到毫秒级,这会大大影响用户听音乐的体验。 If the playback time difference between the two speakers up to milliseconds, which would greatly affect the user experience of listening to music. 尤其的是,在使用WiFi作为通信媒介的情况下,当通信状况变差(例如,WiFi信道拥挤)时,同步精度会变差。 In particular, in the case of using as a WiFi communication medium, when a communication condition deteriorates (e.g., WiFi channel congestion), the synchronization accuracy is deteriorated.

[0006] 例如,随着人们生活水准的提高,在用户家中可能存在多个路由器,多个音箱连接到不同路由器。 [0006] For example, as people's living standards improve, there are multiple routers may be in the user's home, multiple speakers connected to different routers. 这可能存在跨路由器进行通信的情况。 This may be the presence of cross-router communications. 在这种情况下,通讯链加长,从而导致同步效果变差。 In this case, the communication chain lengthened, resulting in poor synchronization effect.

[0007] 因此,本发明的发明人认识到,尤其对于音响系统来说,需要进行改进。 [0007] Accordingly, the present inventors recognized that, particularly for audio systems, needs to be improved.

发明内容 SUMMARY

[0008] 本发明的一个目的是提供一种用于在通信系统中的多个电子设备中选择主同步设备的新技术方案。 [0008] An object of the present invention is to provide a plurality of electronic devices in a communication system for selecting a master synchronization device of any new technical solution.

[0009] 根据本发明的第一方面,提供了一种用于在通信系统中的多个电子设备中选择主同步设备的方法,包括:获得每个电子设备与其他电子设备之间的单独传输延迟;计算每个电子设备的总传输延迟,其中,所述总传输延迟是每个电子设备的单独传输延迟之和;以及选择总传输延迟最小的电子设备作为主同步设备。 [0009] According to a first aspect of the present invention, there is provided a plurality of electronic devices in a communication system, selecting a master synchronization device, comprising: obtaining individual transmission between the electronic device and other electronic devices each delay; each electronic device computing the total transmission delay, wherein the delay of the total transmission delay for each individual electronic device and transmission; and selecting a minimum of the total transmission delay electronic device as the primary synchronization device.

[0010] 优选地,通过计算从一个电子设备向另一个电子设备发送时间同步包到该一个电子设备接收到该时间同步包的反馈包之间的时间,获得单独传输延迟。 [0010] Preferably, the synchronization packets by calculating from one electronic device to another electronic device to the time between the transmission time of the electronic device receives a time synchronization packet to the feedback packet, a transmission delay is obtained separately.

[0011] 优选地,所述单独传输延迟是从一个电子设备到另一个电子设备之间的多次获取的传输延迟的平均值。 [0011] Preferably, the individual transmission delay is the delay from one electronic device acquires a plurality of times between the transmission of another electronic device to an average value.

[0012] 优选地,所述总传输延迟是经过加权的,以及当前主同步设备的总传输延迟被赋予较小的权重。 [0012] Preferably, the total transmission delay is the result, and the weighted total transmission delay of the current master synchronization device is given less weight.

[0013] 优选地,所述通信系统是音响系统,以及所述多个电子设备是音箱。 [0013] Preferably, the communication system is a sound system, and the plurality of electronic device is a speaker.

[0014] 根据本发明的第二方面,提供了一种用于在通信系统中的多个电子设备中选择主同步设备的选择装置,包括:获得单元,被设置成获得每个电子设备与其他电子设备之间的单独传输延迟;计算单元,被设置成计算每个电子设备的总传输延迟,其中,所述总传输延迟是每个电子设备的单独传输延迟之和;以及选择单元,被设置成选择总传输延迟最小的电子设备作为主同步设备。 [0014] According to a second aspect of the present invention, there is provided a plurality of electronic apparatus selecting means for selecting a communication system in a primary synchronization device, comprising: obtaining means arranged to obtain an electronic device with each other individual transmission delay between the electronic device; calculating unit arranged to calculate a total transmission delay for each electronic device, wherein the total transmission delay is the transmission delay of each individual and the electronic device; and a selecting means is provided to select the minimum total propagation delay of the electronic device as the primary synchronization device.

[0015] 优选地,所述获得单元被设置成通过计算从一个电子设备向另一个电子设备发送时间同步包到该一个电子设备接收到该时间同步包的反馈包之间的时间,获得单独传输延迟。 [0015] Preferably, the time between synchronization packets obtained by calculating from one electronic device to another electronic device a transmission time to the electronic device receives the time synchronization packet is a feedback packet unit is arranged to obtain individual transport delay.

[0016] 优选地,所述获得单元被设置成通过计算从一个电子设备到另一个电子设备之间的多次获取的传输延迟的平均值,获得所述单独传输延迟。 [0016] Preferably, the average value obtained from the delayed transmission of the electronic device a plurality of times between the acquisition to another electronic device by the computing means is arranged to obtain the individual transmission delay.

[0017] 优选地,所述总传输延迟是经过加权的,以及当前主同步设备的总传输延迟被赋予较小的权重。 [0017] Preferably, the total transmission delay is the result, and the weighted total transmission delay of the current master synchronization device is given less weight.

[0018] 优选地,所述通信系统是音响系统,以及所述多个电子设备是音箱。 [0018] Preferably, the communication system is a sound system, and the plurality of electronic device is a speaker.

[0019] 根据本发明的第三方面,提供了一种控制设备,包括根据本发明的选择装置,用于选择通信系统中的多个电子设备中的电子设备作为主同步设备。 [0019] According to a third aspect of the present invention, there is provided a control apparatus comprising selecting means according to the invention, the plurality of electronic devices for selecting a communication system in an electronic device as a primary synchronization device.

[0020] 根据本发明的第四方面,提供了一种电子设备,包括根据本发明的选择装置,用于选择包括该电子设备的通信系统中的多个电子设备中的电子设备作为主同步设备。 [0020] According to a fourth aspect of the present invention, there is provided an electronic device, comprising selecting means according to the invention, for selecting a communication system comprising a plurality of electronic devices of the electronic device in the electronic device as the master synchronization device .

[0021] 本发明的发明人发现,在现有技术中,没有通过计算总延迟来选择主同步设备的方案。 [0021] The present inventors found that, in the prior art, there is no program to select the primary synchronization device by calculating the total delay. 因此,本发明所要实现的技术任务或者所要解决的技术问题是本领域技术人员从未想到的或者没有预期到的,故本发明是一种新的技术方案。 Therefore, the present invention is to be achieved or technical tasks to be solved the technical problem to those skilled never thought of or not anticipated, so the present invention is a new technical solution.

[0022]另外,本领域技术人员应当理解,尽管现有技术中存在许多问题,但是,本发明的每个实施例或权利要求的技术方案可以仅在一个或几个方面进行改进,而不必同时解决现有技术中或者背景技术中列出的全部技术问题。 [0022] Further, those skilled in the art will appreciate that although there are many problems of the prior art, however, each of the technical solutions of the embodiments of the present invention or the claims can only be improved in one or more aspects, without at the same time solve all the technical problems of the prior art or technology listed in the background. 本领域技术人员应当理解,对于一个权利要求中没有提到的内容不应当作为对于该权利要求的限制。 Those skilled in the art will appreciate, the content is not mentioned in a claim should not be construed as limiting to the claims.

[0023] 通过以下参照附图对本发明的示例性实施例的详细描述,本发明的其它特征及其优点将会变得清楚。 [0023] reference to the drawings in detail by the following description of exemplary embodiments of the present invention, other features and advantages of the invention will become apparent.

附图说明 BRIEF DESCRIPTION

[0024] 被结合在说明书中并构成说明书的一部分的附图示出了本发明的实施例,并且连同其说明一起用于解释本发明的原理。 [0024] are incorporated in and constitute a part of the specification, illustrate an embodiment of the present invention, and together with the description serve to explain the principles of the invention.

[0025] 图1是显示可用于实现本发明的实施例的音箱的配置的例子的示意性框图。 [0025] FIG. 1 is a schematic block diagram that can be used to implement an example of the configuration of the present embodiment of the invention the speaker.

[0026] 图2示出了根据本发明的第一实施例的用于在通信系统中的多个电子设备中选择主同步设备的方法的流程图。 [0026] FIG. 2 shows a flowchart of a plurality of electronic devices in a communication system in a first embodiment of the present invention selects a primary synchronization method of the device.

[0027] 图3示出了根据本发明的第一实施例的选择装置的框图。 [0027] FIG. 3 shows a block diagram of a selecting device according to the first embodiment of the present invention.

[0028] 图4示出了根据本发明的一个例子的示意图。 [0028] FIG. 4 shows a schematic diagram of an example of the present invention.

[0029] 图5示出了两个音箱之间产生同步差异的例子。 [0029] FIG. 5 shows an example of generating a synchronization difference between the two speakers.

[0030] 图6示出了根据本发明的第二实施例的时钟校正方法的流程图。 [0030] FIG. 6 shows a flow chart of a clock correction method of the second embodiment of the present invention.

[0031] 图7示出了根据本发明的第二实施例的时钟校正装置的框图。 [0031] FIG. 7 shows a block diagram of a clock correction apparatus according to a second embodiment of the present invention.

[0032] 图8示出了根据本发明的第三实施例的用于选择多级主同步设备的方法的流程图。 [0032] FIG. 8 illustrates a flowchart of a method according to a third embodiment of the present invention is a multi-stage selection primary synchronization device.

[0033] 图9示出了根据本发明的第三实施例的选择装置的框图。 [0033] FIG. 9 shows a block diagram of a selection device according to a third embodiment of the present invention.

[0034] 图10示出了根据本发明的另一个例子的示意图。 [0034] FIG. 10 shows a schematic view of another example of the present invention.

[0035] 图11示出了根据本发明的又一个例子的示意图。 [0035] FIG. 11 shows a schematic view of still another example of the present invention.

具体实施方式 Detailed ways

[0036] 现在将参照附图来详细描述本发明的各种示例性实施例。 [0036] Various exemplary embodiments will now embodiment of the present invention are described in detail with reference to the accompanying drawings. 应注意到:除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表达式和数值不限制本发明的范围。 It should be noted: Unless specifically stated otherwise, the relative arrangement of the components and steps otherwise set forth in these embodiments, the numerical expressions and numerical values ​​are not limiting the scope of the present invention.

[0037] 以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本发明及其应用或使用的任何限制。 [0037] The following description of at least one exemplary embodiment is merely illustrative, and not as any limitation on the present invention and its application, or uses.

[0038] 对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为说明书的一部分。 [0038] ordinary skill in the relevant art known to the art, methods and devices may not be discussed in detail, but in appropriate cases, the techniques, methods and apparatus are to be considered as part of the specification.

[0039] 在这里示出和讨论的所有例子中,任何具体值应被解释为仅仅是示例性的,而不是作为限制。 [0039] In all of the examples illustrated and discussed herein any specific values ​​should be construed as merely illustrative, and not by way of limitation. 因此,示例性实施例的其它例子可以具有不同的值。 Thus, other examples of the exemplary embodiments may have different values.

[0040] 应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。 [0040] It should be noted: like reference numerals and letters refer to similar items in the following figures, and thus once an item is defined in one figure, then the following figures need not be further discussed .

[0041]〈音箱的配置〉 [0041] <speaker configuration>

[0042] 图1是显示可用于实现本发明的实施例的音箱1000的配置的例子的框图。 [0042] FIG. 1 is a block diagram showing an example of a configuration that can be used in embodiments of the present invention, the speaker 1000 is achieved.

[0043] 如图1所示,音箱1000包括处理装置1010、存储装置1020、通信装置1030、显示装置1040、扬声器1050,等等。 [0043] As shown, the speaker includes a processing device 1010 10 001, a storage device 1020, a communication device 1030, a display device 1040, a speaker 1050, and the like.

[0044] 处理装置1010例如可以是中央处理器CPU、微处理器MCU等。 [0044] The processing device 1010 may be, for example, a central processing unit CPU, a microprocessor and MCU. 存储装置1020例如包括R0M(只读存储器)、RAM(随机存取存储器)、诸如硬盘的非易失性存储器等。 Storage means 1020 includes, for example R0M (Read Only Memory), RAM (Random Access Memory), a nonvolatile memory such as a hard disk and the like.

[0045] 通信装置1030例如能够进行有有线或无线通信。 [0045] The communication device 1030 can be, for example, wired or wireless communications.

[0046] 显示装置1040例如是液晶显示屏,例如,可以用于显示所播放的音乐的信息等。 [0046] The display device 1040 is a liquid crystal display, for example, information for displaying the music playing, and the like. 音箱1000通过扬声器1050播放声音,例如,音乐等。 1000 speakers play sound through the speaker 1050, for example, music and so on.

[0047] 图1所示的音箱仅是解释性的,并且决不是为了要限制本发明、其应用或用途。 Speaker shown in FIG. 1 [0047] merely illustrative, and in no way intended to limit the invention, its application, or uses.

[0048] <第一实施例> [0048] <First Embodiment>

[0049] 图2示出了根据本发明的第一实施例的用于在通信系统中的多个电子设备中选择主同步设备的方法。 [0049] FIG 2 illustrates a method for a plurality of electronic devices in a communication system in a first embodiment of the present invention is selected in accordance with a primary synchronization device.

[0050] 如图2所示,在步骤S2100,获得每个电子设备与其他电子设备之间的单独传输延迟。 [0050] FIG delay 2, in step S2100, the transmission is obtained between the separate electronic device and other electronic devices each.

[0051] 单独传输延迟指的是网络上的两个点之间的传输延迟。 [0051] The individual transmission refers to transmission delay between two points on the network delay. 通常,可以认为,对于网络上的两个节点A和B,从A到B的传输延迟等于从B到A的传输延迟。 Typically, it is believed, for two nodes A and B on the network, the transmission from A to B is equal to the delay from B to A is the transmission delay. 因此,例如,可以通过计算从一个电子设备向另一个电子设备发送时间同步包到该一个电子设备接收到该时间同步包的反馈包之间的时间,获得单独传输延迟(等于所述时间的二分之一)。 Thus, for example, can be calculated from the synchronization packets through one electronic device to another electronic device to the time between the transmission time of the electronic device receives a time synchronization packet to the feedback packet, obtain individual propagation delay (the time equal to two one minute).

[0052] 为了获得更加准确的传输延迟,例如,所述单独传输延迟是从一个电子设备到另一个电子设备之间的多次获取的传输延迟的平均值。 [0052] In order to obtain a more accurate transmission delay, for example, the individual transmission delay is the delay from one electronic device acquires a plurality of times between the transmission of another electronic device to an average value. 例如,获取的次数大于等于2。 For example, the number is two or more acquired.

[0053] 在某些情况下,各个电子设备之间不是直接连接的,而是通过接入点(例如,无线接入点)连接。 [0053] In some cases, between the various electronic devices are not directly connected, but are connected through an access point (e.g., access point). 如图4所示,电子设备4020a、4020b、4020c和4020d通过无线接入点4010互连。 As shown, the electronic device 4020a, 4020b, 4020c, and 4020d 4 4010 interconnected by a wireless access point. 在这种情况,两个电子设备之间的传输延迟可以等于两个电子设备分别到无线接入点的传输延迟(例如Tar、Tbr、Tcr、Tdr)之和。 In this case, the transmission delay between the two electronic devices may be equal to two electronic devices, respectively, to the transmission delay of the wireless access point (e.g. Tar, Tbr, Tcr, Tdr) sum. 例如,4020a和4020b之间的传输延迟Tab=Tar+Tbr ;以此类推。 For example, the transmission delay between 4020a and 4020b Tab = Tar + Tbr; and so on.

[0054] 在步骤S2200,计算每个电子设备的总传输延迟,其中,所述总传输延迟是每个电子设备的单独传输延迟之和。 [0054] In step S2200, each electronic device computing the total transmission delay, wherein the delay of the total transmission delay for each individual electronic device and transmission.

[0055] 例如,在图4所不的例子中,存在4个电子设备。 [0055] For example, in the example in FIG. 4 without the presence of four electronic devices. 对于电子设备4020a,总传输延迟Ta = Tab+Tac+Tad,其中Tab、Tac、Tad 分别是4020a 到4020b、4020c 和4020d 的单独传输延迟。 For electronic devices 4020a, the total transmission delay Ta = Tab + Tac + Tad, wherein Tab, Tac, Tad respectively to individual transmission 4020a 4020b, 4020c and 4020d delay. 依次类推,Tb = Tba+Tbc+Tbd,Tc = Tca+Tcb+Tcd,Td = Tda+Tdb+Tdc。 And so on, Tb = Tba + Tbc + Tbd, Tc = Tca + Tcb + Tcd, Td = Tda + Tdb + Tdc.

[0056] 在步骤S2300,选择总传输延迟最小的电子设备作为主同步设备。 [0056] In Step S2300, select a minimum total transmission delay electronic device as the primary synchronization device.

[0057] 在图4的例子中,例如,在Ta、Tb、Tc和Td中,Ta的值最小。 [0057] In the example of FIG. 4, for example, in the Ta, Tb, Tc and Td, the minimum value of Ta. 因此,可以选择设备4020a作为主同步设备。 Thus, the device may be selected as the master synchronization device 4020a.

[0058] 在一个例子中,例如,所述总传输延迟是经过加权的。 [0058] In one example, for example, the total transmission delay is the weighted. 这种设计可以防止频繁地切换主同步设备。 This design prevents frequent switching master synchronization device. 例如,假设当前设备A的总传输时间为TA。 For example, assume that the total transmission time of the device A is the current TA. 当A设备得到一次新的总传输时间TA'时,经过加权计算后的A设备的总传输时间为TAnew= TAX 90 % +TA' X 10 %。 A device obtained when a new total transmission time TA ', the total elapsed time of the transmission device A is calculated as the weighted TAnew = TAX 90% + TA' X 10%. 这种加权计算方式能够降低单次总传输时间TA'对总传输时间TA的影响,从而能够更有效的选择出合适的主同步设备。 This embodiment can reduce the weighted total transmission time per impact TA 'total transmission time TA, thereby enabling more efficient selection of a suitable primary synchronization device.

[0059] 本领域技术人员应当理解,可以每间隔预定时间执行根据本发明的方法,以动态优化系统的同步性能;可以在检查到同步效果劣化时执行所述方法;或者可以仅在系统初始时执行所述方法。 [0059] Those skilled in the art should appreciate that the predetermined time intervals to perform the method of the present invention, a synchronous dynamic performance optimization system; the method may be performed while checking the deterioration synchronization effect; or may only when the system initially performing the method.

[0060]例如,所述通信系统是需要同步操作的系统,例如,视频拼接屏系统、多点爆破系统、多路径电子开关等。 [0060] For example, the communication system is a system requires synchronous operation, e.g., a video screen splicing systems, multi-point blasting system, multi-path electronic switch. 所述电子设备可以是所述系统中的各个子设备,例如,视频拼接屏中的各个子屏幕、多点爆破系统中的各个子爆破点、多路径电子开关中的各个开关等。 The electronic device may be a device of the respective sub-system, for example, each of the sub-screen video mosaic screen, the individual sub-blasting blast site multipoint system, multi-path electronic switches each switch. 优选地,所述通信系统是音响系统,以及所述多个电子设备是音箱。 Preferably, the communication system is a sound system, and the plurality of electronic device is a speaker. 通过这种同步方式,可以减小音箱播放声音(音乐)的时间差异。 In this way the synchronization can be reduced the time difference speakers play sounds (music). 在音响系统中采用本发明的方案是特别有利的。 The present invention is in audio systems is particularly advantageous embodiment.

[0061] 有利地,通过使用根据本发明所选择的主同步设备来进行同步,可以提高系统的同步效果。 [0061] Advantageously, synchronized by a primary synchronization using the selected device of the present invention can improve the effect of the synchronization system.

[0062] 图3示出了根据本发明的第一实施例的用于在通信系统中的多个电子设备中选择主同步设备的选择装置3000。 [0062] FIG. 3 shows a selecting means to select the primary synchronization apparatus 3000 according to a plurality of electronic devices in a communication system in a first embodiment of the present invention.

[0063] 获得单兀3100被设置成获得每个电子设备与其他电子设备之间的单独传输延迟。 [0063] Wu obtain a single individual transmission 3100 is disposed between each of the obtained electronic device and another electronic delay devices.

[0064] 例如,所述获得单元3100被设置成通过计算从一个电子设备向另一个电子设备发送时间同步包到该一个电子设备接收到该时间同步包的反馈包之间的时间,获得单独传输延迟。 [0064] For example, the obtaining unit 3100 is provided to synchronize the time between the packets by calculating from one electronic device to another electronic device a transmission time to the electronic device receives the time synchronization packet is a feedback packet, transmitted separately obtained delay.

[0065] 例如,所述获得单元被设置成通过计算从一个电子设备到另一个电子设备之间的多次获取的传输延迟的平均值,获得所述单独传输延迟。 [0065] For example, the obtaining unit is arranged to average from one electronic device to the acquired transmission delay times between the other electronic device, the individual transmission delay is obtained by calculation.

[0066] 计算单元3200被设置成计算每个电子设备的总传输延迟,其中,所述总传输延迟是每个电子设备的单独传输延迟之和。 [0066] The computing unit 3200 is provided for each electronic device to calculate a total transmission delay, wherein the delay of the total transmission delay for each individual electronic device and transmission.

[0067] 例如,所述总传输延迟是经过加权的,以及当前主同步设备的总传输延迟被赋予较小的权重。 [0067] For example, the total transmission delay is the result, and the weighted total transmission delay of the current master synchronization device is given less weight.

[0068] 选择单元3300被设置成选择总传输延迟最小的电子设备作为主同步设备。 [0068] The selection unit 3300 is set to select the minimum total propagation delay of the electronic device as the primary synchronization device.

[0069] 所述通信系统是音响系统,以及所述多个电子设备是音箱。 [0069] The communication system is a sound system, and the plurality of electronic device is a speaker.

[0070] 本领域技术人员应当明白,可以通过各种方式来实现装置3000中的各个单元。 [0070] Those skilled in the art will appreciate, the respective units may be implemented in the device 3000 in various ways. 例如,可以通过指令配置处理器来实现各个单元。 For example, each unit may be realized by configuring the processor instructions. 例如,可以将指令存储在ROM中,并且当启动设备时,将指令从ROM读取到可编程器件中来实现各个单元。 For example, instructions may be stored in ROM, and when the device starts, the instruction is read from the ROM into a programmable device to implement the respective units. 例如,可以将各个单元固化到专用器件(例如ASIC)中。 For example, each unit may be cured to a specific device (e.g. ASIC). 可以将各个单元分成相互独立的单元,或者可以将它们合并在一起实现。 Each unit may be divided into independent units, or may be combined together to achieve them. 所述单元可以通过上述各种实现方式中的一种来实现,或者可以通过上述各种实现方式中的两种或更多种方式的组合来实现。 The unit may be realized by various implementations of the above, or may be realized by a combination of both the above-described various implementations of one or more ways. 对于本领域技术人员来说,这些实施方式都是等同的。 Of ordinary skill in the art, these embodiments are identical.

[0071] 图4示出了根据本发明的一个例子的示意图。 [0071] FIG. 4 shows a schematic diagram of an example of the present invention.

[0072] 在图4的例子中,通信系统包括控制设备4010和电子设备4020a、4020b、4020c和4020do [0072] In the example of Figure 4, the communication system includes a control device 4010 and the electronic device 4020a, 4020b, 4020c, and 4020do

[0073] 在图4的例子中,控制设备4010例如是无线接入点。 [0073] In the example of FIG. 4, the control device 4010, for example, a wireless access point. 但是,本领域技术人员应当理解,控制设备不限于无线接入点,它还可以是有线网络设备。 However, those skilled in the art will appreciate that the control device is not limited to a wireless access point, it may be a wired network device. 在通信系统中,电子设备还可以通过有线方式连接到控制设备。 In the communication system, the electronic device may also be connected by cable to the control device. 此外,控制设备4010还可以是连接到无线接入点的额外设备。 Further, the control device 4010 may also be an additional device connected to the wireless access point.

[0074] 电子设备4020a、4020b、4020c和4020d例如是具有网络连接功能的音箱。 [0074] Electronic devices 4020a, 4020b, 4020c, and 4020d, for example, the speaker having a network connection function.

[0075] 在图4所示的通信系统中,在多个电子设备中选择主同步设备。 [0075] In the communication system shown in FIG. 4, a primary synchronization device selected plurality of electronic devices. 在所述系统中包括根据本发明的选择装置,例如图3所示的选择装置3000。 Comprising selecting means according to the invention, selection means 3000 shown in FIG. 3, for example, in the system. 可以将选择装置设置在控制设备4010中,或者也可以将选择装置分别设置在电子设备4020a、4020b、4020c和4020d中。 Selection means may be provided in the control device 4010, or may be selected in an electronic device are provided means 4020a, 4020b, 4020c, and 4020d in.

[0076] <第二实施例> [0076] <Second Embodiment>

[0077] 图5示出了两个音箱之间产生同步差异的例子。 [0077] FIG. 5 shows an example of generating a synchronization difference between the two speakers.

[0078] 如图5所示,音箱A、B约定在Tl时间同时开始播放同一首立体声音乐。 As shown in [0078] FIG. 5, the speaker A, B agreed to start playing back the same music in stereo first time Tl. A音箱播放左声道数据,B音箱播放右声道数据。 A left channel speaker playback data, B data of the right channel speaker playback. 假设,在Tl时间,A、B同时播放。 Suppose, at time Tl, A, B while playing. 但是,因为音箱A、B中的时钟的晶体频率存在误差,因而导致音箱A、B播放的左、右声道数据越来越不同步。 However, since there is an error of the crystal clock frequency speakers A, B in, thus causing the speaker A, B play the left and right channel data falling out of sync. 在T2时,A音箱已播放了这首音乐的La个采样点,而B音箱则仅播放了这首音乐的Lb个采样点。 At T2, A La speaker has played this music sampling points, while the B speaker only played Lb sampling points this piece of music. 这导致,在T2时刻,音乐的左右声道不同步。 This led, in time T2, the music left and right channels are not synchronized. 因此,用户的音乐体验变差。 Therefore, the user's music experience worse.

[0079] 在如下环境中容易出现上述不同的情况。 [0079] The different situations as follows prone environment. 例如,在Tl时,通信状况良好,音箱A、B能够达到良好同步。 For example, when Tl, good communication, the speaker A, B is possible to achieve good synchronization. 但是,之后通信状况变差,例如,在极端情况下,A、B之间断开连接。 However, after the communication status is deteriorated, for example, in an extreme case, break the connection between A, B. 此时,音箱A、B各自按照自己的时钟(晶振步调)进行播放。 At this time, speakers A, B play each according to its own clock (crystal oscillator step).

[0080] 在这种情况下,音箱A、B的晶振频率的差异决定了两个音箱之间的同步情况。 [0080] In this case, the speaker A, B crystal frequency difference is determined where the synchronization between the two speakers. 本发明的构思在于,预先确定两个音箱之间的时钟差异(晶振频率差异),以及在通信变差的情况下使用所述时钟差异调整本地时钟。 Concept of the present invention, the predetermined clock difference (oscillation frequency difference) between the two speakers, and using the difference to adjust the local clock in the clock of the communication is deteriorated. 这样,在通信变差的情况下,相对于现有技术,可以提供较好的时钟。 Thus, in a case where the communication is deteriorated with respect to the prior art, it can provide a better clock.

[0081] 图6示出了根据本发明的第二实施例的时钟校正方法的流程图。 [0081] FIG. 6 shows a flow chart of a clock correction method of the second embodiment of the present invention.

[0082] 如图6所示,在步骤S6100,接收同步时钟信息。 [0082] As shown in FIG 6, in step the S6100, receives the synchronization clock information. 同步时钟信息例如是来自主同步设备的信息。 Synchronization information from the clock information, for example, a primary synchronization device.

[0083] 在步骤S6200,获得本地时钟信息。 [0083] In step S6200, the local clock information is obtained.

[0084] 例如,所述同步时钟信息包括第一同步时间Tsl和从Tsl起经过第一时间间隔的第二同步时间Ts2,以及所述本地时钟信息包括与第一同步时间Tsl对应的第一本地时间Tol以及与第二同步时间对应的第二本地时间To2。 [0084] For example, the clock synchronous information includes a first synchronization time Tsl and Ts2 is, a first local and the local clock time synchronization information comprises a first Tsl corresponding to the second synchronization time Tsl first time interval has elapsed Tol local time and a second time and the second synchronization time corresponding to To2. 所述第一时间间隔可以是任意时间间隔。 The first time interval may be any time interval.

[0085] 例如,同步时间Tsl和Ts2可以是主同步设备的时间,也可以是主同步设备指示从属设备进行调整的时间。 [0085] For example, synchronization time Tsl and Ts2 may be time synchronization master device, the master may be a slave device indicates the synchronization adjusting time.

[0086] 下面参照图5解释所述同步时间和本地时间。 [0086] 5 explains the synchronization time and the local time below with reference to FIG. 假设音箱A是主同步设备以及音箱B是从属设备。 A speaker is assumed that the master synchronization device and the speaker B is the slave. 本领域技术人员应当理解,在实际设备开发过程中,所述时间可以指的是基于时钟晶振的计数值。 Those skilled in the art will appreciate, the development process in a practical device, the time may refer to a count value based watch crystal. 假设在开始时,音箱A将时间Tsl发送给音箱B或者音箱B经与音箱A交互及计算得到Tsl。 Suppose at the beginning, the transmission time of the speaker A to the speaker B to the speaker B Tsl through interaction with the speaker A and the calculated or obtained Tsl. 时间Tsl可以是音箱A的时间,也可以是音箱A指示音箱B修改的时间。 Tsl time may be the time of the speaker A, and may be indicative of speaker A speaker B modified. 音箱B记录与时间Ts I对应的本地时间To I,即,To I可以是接收到Ts I时的时间,也可以是接收到Tsl之后经过固定间隔的时间。 Speaker B records the time corresponding to the local time Ts I To I, i.e., To I may be a delay in receiving the Ts I, may be received after the time passes fixed intervals Tsl. 接着,经过第一时间间隔,音箱A将时间Ts2发送给音箱B或者音箱B经与音箱A交互及计算得到Ts2。 Next, after a first time interval, time Ts2 speaker A to the speaker B transmitted by the speaker B with the speaker A and the calculated or obtained interact Ts2. 音箱B记录与时间Ts2对应的本地时间To2。 Speaker B corresponding to the recording time Ts2 local time To2. 在这里所要得到的是音箱A和音箱B之间的时钟(晶振步调)差异,因此,只要能够得到基准时钟和本地时钟之间的所述差异,所述同步时间和本地时间可以采用任意形式。 To be obtained here is a clock (crystal oscillator pace) the difference between the speaker A and the speaker B, the, can be obtained as long as the difference between the reference clock and the local clock and the local time of the time synchronization may take any form.

[0087] 在步骤S6300,基于同步时钟信息和本地时钟信息,计算本地时钟与同步时钟的时钟差异δ。 [0087] In step S6300, based on the synchronization information and the clock information of the local clock, clock difference δ computing local clock synchronized with the clock.

[0088]例如,所述时钟差异δ是多次计算的时钟差异的平均值。 [0088] For example, the clock difference δ is the average of multiple differences calculated by the clock. 这样计算的的δ更加准确。 Δ is thus calculated more accurately.

[0089] 在步骤S6400,检测通信状态。 [0089] In step S6400, communication status.

[0090] 例如,当连续η个同步周期未接收到同步时钟信息时,确定通信状态变差。 [0090] For example, when the continuous cycle η sync clock synchronization information is not received, determining the communication state deteriorates. 在一个例子中,η可以等于I。 In one example, η may be equal to I.

[0091] 在步骤S6500,在通信状态变差的情况下,使用所述时钟差异δ校正本地时钟。 [0091] In step S6500, in a case where the communication state is deteriorated, using the local clock corrected clock difference δ.

[0092] 在一个例子中,所述时钟差异δ = (Ts2-Tsl)-(To2-Tol)。 [0092] In one example, the clock difference δ = (Ts2-Tsl) - (To2-Tol). 校正本地时钟的步骤可以包括:从最后一次使用同步时钟信息进行同步(即,使用同步时钟信息校准本地时钟)之后起,每间隔所述第一时间间隔,使用所述时钟差异校正本地时钟。 Local clock correction step may include: a clock synchronous information from the last synchronization (i.e., using a local clock synchronized clock calibration information) after starting, the first time interval per interval, using the local clock corrected clock difference.

[0093]在另一个例子中,所述时钟差异 δ = ((Ts2-Tsl)-(To2-Tol)) + (To2-Tol)。 [0093] In another example, the clock difference δ = ((Ts2-Tsl) - (To2-Tol)) + (To2-Tol). 例如,校正本地时钟的步骤可以包括:从最后一次使用同步时钟信息进行同步之后起,每间隔A t时间,使用At* δ校正本地时钟。 For example, the local clock correction step may include: a synchronous information clock since the last synchronization, after every time interval A t, using the local clock corrected At * δ.

[0094] 如图5的例子中所述,本发明应用于音箱是特别有利的。 [0094] The example of FIG. 5, the present invention is applied to the speaker is particularly advantageous. 因此,例如,所述本地时钟是音箱的本地时钟。 Thus, for example, the local clock is the local clock speaker.

[0095] 图7示出了根据本发明的第二实施例的时钟校正装置7000的框图。 [0095] FIG. 7 shows a block diagram of a clock correction device 7000 of the second embodiment of the present invention.

[0096] 如图7所示,时钟校正装置7000包括接收单元7100、获得单元7200、计算单元7300、检测单元7400和校正单元7500。 [0096] As shown in FIG. 7, the clock correction apparatus 7000 includes a receiving unit 7100, obtaining unit 7200, the calculation unit 7300, a detecting unit 7400 and the correction unit 7500.

[0097] 接收单元7100被设置成接收同步时钟信息。 [0097] The receiving unit 7100 is arranged to receive the clock synchronization information.

[0098] 获得单元7200被设置成获得本地时钟信息。 [0098] obtaining unit 7200 is provided to obtain local clock information.

[0099] 例如,所述同步时钟信息包括第一同步时间Tsl和从Tsl起经过第一时间间隔的第二同步时间Ts2,以及所述本地时钟信息包括与第一同步时间Tsl对应的第一本地时间Tol以及与第二同步时间对应的第二本地时间To2。 [0099] For example, the clock synchronous information includes a first synchronization time Tsl and Ts2 is, a first local and the local clock time synchronization information comprises a first Tsl corresponding to the second synchronization time Tsl first time interval has elapsed Tol local time and a second time and the second synchronization time corresponding to To2.

[0100] 计算单元7300被设置成基于同步时钟信息和本地时钟信息,计算本地时钟与同步时钟的时钟差异δ。 [0100] Calculation based on the synchronization clock is set to the local information and clock information, clock difference δ computing unit 7300 and the local clock synchronizing clock.

[0101] 例如,所述时钟差异δ可以是多次计算的时钟差异的平均值。 [0101] For example, the clock difference δ multiple clock difference may be an average value calculated.

[0102] 检测单元7400被设置成检测通信状态。 [0102] detection unit 7400 is arranged to detect the communication state.

[0103] 例如,所述检测单元7400被设置成当连续η个同步周期未接收到同步时钟信息时,确定通信状态变差。 [0103] For example, the detection unit 7400 is arranged such that when η consecutive sync cycles synchronized clock information is not received, determining the communication state deteriorates.

[0104] 校正单元7500被设置成在通信状态变差的情况下,使用所述时钟差异δ校正本地时钟。 [0104] correction unit 7500 is provided to the communication state is deteriorated in the case of using the local clock corrected clock difference δ.

[0105] 在一个例子中,所述时钟差异δ = (Ts2-Tsl)-(To2-Tol)。 [0105] In one example, the clock difference δ = (Ts2-Tsl) - (To2-Tol). 所述校正单元7500被设置成从最后一次使用同步时钟信息进行同步之后起,每间隔所述第一时间间隔,使用所述时钟差异δ校正本地时钟。 The correction unit 7500 is provided using the synchronous clock synchronization information from the last time after the first time interval per interval, using the local clock corrected clock difference δ.

[0106] 在另一个例子中,所述时钟差异δ = ((Ts2-Tsl)-(To2-Tol)) + (To2_Tol)。 [0106] In another example, the clock difference δ = ((Ts2-Tsl) - (To2-Tol)) + (To2_Tol). 所述校正单元7500被设置成从最后一次使用同步时钟信息进行同步之后起,每间隔△ t时间,使用Δ t* δ校正本地时钟。 The correction unit 7500 is provided using the synchronous clock synchronization information from the last time after starting, each time interval △ t, Δ t * δ corrected using the local clock.

[0107] 本领域技术人员应当知道,时钟校正装置7000中的各个单元可以通过软件、硬件和软件/硬件结合的方式来实现。 [0107] skilled in the art will appreciate that the clock correction device 7000 in each embodiment may be combined by means of software, hardware, and software / hardware. 对于本领域技术人员来说,软件实现方式和硬件实现方式是等同的。 For the skilled person, and hardware implementations, software implementations are equivalent.

[0108] 有利地,所述本地时钟是音箱的本地时钟。 [0108] Advantageously, the local clock is the local clock speaker.

[0109] 可以在图4所示的例子中应用本实施例的技术方案。 [0109] may be applied to the present technical solution of the embodiment in the example shown in FIG. 4. 例如,图4中的电子设备4020a、4020b、4020c和4020d是音箱。 For example, the electronic device in FIG. 4 4020a, 4020b, 4020c, and 4020d is the speaker. 所述音箱包括图7所示的时钟校正装置7000。 The speaker includes a clock correction means shown in FIG. 77000. 在音箱4020a被选择为主同步设备的情况下,在通信状况变差的情况下,音箱4020b、4020c和4020d中的每一个可以利用其中包含的时钟校正装置7000来校正本地时钟。 In the case where the speaker is selected as the master synchronization device 4020a is, in a case where the communication condition is deteriorated, the speaker 4020b, 4020c and 4020d each of the 7000 can be corrected by using the local clock corrected clock means contained therein.

[0110]〈第三实施例〉 [0110] <Third Embodiment>

[0111] 图8示出了根据本发明的第三实施例的用于选择多级主同步设备的方法的流程图。 [0111] FIG. 8 illustrates a flowchart of a method according to a third embodiment of the present invention is a multi-stage selection primary synchronization device.

[0112] 如图8所示,在步骤S8100,为多组电子设备中的每一组选择一级主同步设备。 [0112] As shown, in step the S8100, the master synchronization device select a plurality of groups for each electronic device 8. 所述一级主同步设备作为该组电子设备的主同步设备。 The master synchronization device a synchronization device as a master of the set of the electronic device.

[0113] 例如,在多个房间的每个房间中设置一个无线接入点。 [0113] For example, a wireless access point disposed in a plurality of rooms in each room. 电子设备连接到各个不同的无线接入点。 The electronic device connected to the respective different wireless access point. 在这种情况下,可以基于多个无线接入点来划分所述多组电子设备。 In this case, a plurality of wireless access points based on the plurality of groups to divide the electronic device. 同一组中的电子设备连接到同一个无线接入点。 The same group of the same electronic device connected to a wireless access point.

[0114] 例如,对于每一组,可以基于每个电子设备到其他电子设备的总传输延迟来选择一级主同步设备。 [0114] For example, for each group, the total transmission can each electronic device to another electronic device based on the selected delay to a master synchronization device. 例如,使用前面第一实施例中描述的方案来选择一级主同步设备。 For example, using the foregoing first embodiment described in the synchronization device to select a primary embodiment.

[0115] 本领域技术人员应当理解,这里的“一级”和“二级”表示的是设备的相对级别,而不表示实际的级别。 [0115] Those skilled in the art will appreciate, where "a" and "secondary" indicates the relative level of the device, without showing the actual level. 换句话说,例如,所述多组电子设备中的每个电子设备本身可以是其他电子设备的主同步设备,以及可以在这些主同步设备中选择一级主同步设备。 In other words, for example, each electronic device of said plurality of sets of electronic device itself may be a master synchronization device other electronic devices, and may select a master synchronization device in such a primary synchronization device.

[0116] 图11中的例子示出了这种级别的相对性。 Examples of [0116] FIG. 11 shows the relative level of such. 例如,如图11所示,从设备a2、a3中选择的王冋步设备用bl表不,从设备a5、a6中选择的王冋步设备用b2表不,从设备a7、a8中选择的主同步设备用b3表示。 For example, as shown in FIG. 11, the device selected from the a2, a3 Wang Jiong step bl table equipment does, from the device a5, a6 selected Wang Jiong in step b2 equipment table does not, the device is selected from the a7, a8 of master synchronization device represented by b3. 从设备al、bl、a4、b2中选择的主同步设备用cl表示,从设备b3、a9中选择的主同步设备用c2表示。 Slave al, bl, a4, b2 selected master synchronization device represented by cl,, a9 selected master device from the synchronization device b3 represented by c2. 从设备cl、c2中选择的主同步设备用dl表示。 Slave cl, c2 selected master synchronization device indicated by dl. 其中,al、a4、a9可以被看成是包含单个设备的组,该组中的主同步设备就是al、a4、a9自身。 Wherein, al, a4, a9 can be seen as comprising a single device group, the device group is a primary synchronization al, a4, a9 itself. 设备bl、b2、b3是一级主同步设备。 Device bl, b2, b3 is a primary synchronization device. 设备(:1、02分别是&1、&4、&9、131几233的二级主同步设备。但是,从dl的角度来看,设备cl、c2又是一级主同步设备,而dl是它们的二级主同步设备。 Device (: 1 & 1.02, respectively, & 4, 233 & 9,131 several secondary master synchronization device, however, from the viewpoint of dl, equipment cl, c2 synchronization device is a master, and is dl thereof. two master synchronization device.

[0117] 在步骤S8200,在一级主同步设备中选择二级主同步设备。 [0117] In step S8200, the selected secondary master synchronization device a primary synchronization device. 所述二级主同步设备作为所述一级主设备的主同步设备。 The two primary synchronization device as a master device of the master synchronization device.

[0118] 例如,可以基于每个一级主同步设备到其他一级主同步设备的总传输延迟来选择二级主同步设备。 [0118] For example, each based on a primary synchronization device to the other one primary synchronization total transmission delay device selects two primary synchronization device. 例如,使用前面第一实施例中描述的方案来选择二级主同步设备。 For example, using the foregoing first embodiment described in the synchronization device to select two primary embodiments.

[0119] 有利地,所述电子设备是音箱。 [0119] Advantageously, the electronic device is a speaker. 例如,在存在多个房间的情况下,可以将每个房间的音箱划分到同一组中。 For example, in a case where there are a plurality of rooms, each room of the speaker may be classified into the same group. 在本发明的方案中,在每个房间中,音箱之间的同步效果较好。 In the embodiment of the present invention, in each room, the synchronization between speaker better effect. 对于不同房间的音箱,同步的要求可以适当降低。 For the speaker of the different rooms, synchronizations can be appropriately reduced. 这样,可以给用户提供更好的体验。 In this way, we can provide a better experience to the user. 另外,也适当降低了对音箱同步的整体要求。 Further, due to lower the synchronization requirements for the overall speaker.

[0120] 根据本发明,可以避免在一个级别需要进行同步的设备过多而导致通信压力过大的问题。 [0120] According to the present invention, at a level needed to avoid undue synchronization device caused by excessive pressure of the communication problem. 本发明特别适用于地域较广、设备较多、范围较大的网络。 The present invention is particularly applicable to a wide area, many devices, the scope of a larger network.

[0121] 图9示出了根据本发明的第三实施例的用于多级主同步设备的选择装置9000的框图。 [0121] FIG. 9 shows a block diagram of a multi-stage selection means master synchronization apparatus 9000 according to a third embodiment of the present invention.

[0122] 如图9所示,选择装置9000包括第一选择单元9100和第二选择单元9200。 [0122] As shown in FIG. 9, the selecting means 9000 comprises a first and a second selection unit 9100 selecting unit 9200.

[0123] 第一选择单元9100被设置成为多组电子设备中的每一组选择一级主同步设备。 [0123] The first selection unit 9100 is provided at every one of the sets of the electronic device a selected primary synchronization device. 所述一级主同步设备作为该组电子设备的主同步设备。 The master synchronization device a synchronization device as a master of the set of the electronic device.

[0124] 例如,第一选择单元9100被设置成基于多个无线接入点来划分所述多组电子设备,其中同一组中的电子设备连接到同一个无线接入点。 [0124] For example, a first selection unit 9100 is provided to a plurality of wireless access points based on the plurality of groups to divide the electronic device, wherein the electronic device in the same group connected to the same access point.

[0125] 例如,第一选择单元9100被设置成对于每一组,基于每个电子设备到其他电子设备的总传输延迟来选择一级主同步设备。 [0125] For example, a first selection unit 9100 is provided for each group, based on each electronic device to other electronic devices of the total transmission delay selecting a primary synchronization device.

[0126] 第二选择单元9200被设置成在一级主同步设备中选择二级主同步设备。 [0126] The second selection unit 9200 is arranged to select two primary synchronization apparatus in a primary synchronization device. 所述二级主同步设备作为所述一级主设备的主同步设备。 The two primary synchronization device as a master device of the master synchronization device.

[0127] 例如,第二选择单元9200被设置成基于每个一级主同步设备到其他一级主同步设备的总传输延迟来选择二级主同步设备。 [0127] For example, the second selection unit 9200 is arranged on each of a primary synchronization device to the other device a primary synchronization total transmission delay select two primary synchronization device.

[0128] 例如,所述电子设备是音箱。 [0128] For example, the electronic device is a speaker.

[0129] 本领域技术人员应当知道,选择装置9000中的各个单元可以通过软件、硬件和软件/硬件结合的方式来实现。 [0129] skilled in the art will appreciate that the selection method of each unit in the device 9000 may be combined by software, hardware, and software / hardware. 对于本领域技术人员来说,软件实现方式和硬件实现方式是等同的。 For the skilled person, and hardware implementations, software implementations are equivalent.

[0130] 图10示出了根据本发明的另一个例子的示意图。 [0130] FIG. 10 shows a schematic view of another example of the present invention.

[0131] 在图10所示的例子中,存在房间1210和房间1220。 [0131] In the example shown in FIG. 10, there is a room 1210 and 1220 rooms. 在房间1210中具有控制设备1211(例如,无线接入点)和电子设备1212、1213(例如,音箱)。 Having a control device 1211 (e.g., wireless access points) 1212, 1213, and the electronic device (e.g., speakers) 1210 in the room. 在房间1220中具有控制设备1221 (例如,无线接入点)和电子设备1222、1223 (例如,音箱)。 Having a control device 1221 (e.g., wireless access points) 1222,1223 and the electronic device (e.g., speakers) 1220 in the room. 本领域技术人员应当理解,控制设备可以位于无线接入点内,或者可以是连接到无线接入点的额外设备。 Those skilled in the art will appreciate, the control device may be located within a wireless access point, or additional equipment may be connected to the wireless access point.

[0132] 在房间1210中,例如,选择设备1212作为一级主同步设备,设备1213从属于设备1212。 [0132] 1210 in the room, for example, select a device as the master synchronization device 1212, device 1212, device 1213 subordinate. 在房间1220中,例如,选择设备1222作为一级主同步设备,设备1223从属于设备1222。 1220 in the room, for example, select a device as the master synchronization device 1222, device 1223 subordinate apparatus 1222. 在一级主同步设备1212和1222中,选择主同步设备1212作为二级主同步设备。 In a primary synchronization devices 1212 and 1222, select the primary synchronization device 1212 as a secondary master synchronization device. 由于设备1212和1213距离比较近,因此,二者之间的同步效果较好。 Since the device 1212 and 1213 from the more recent, and therefore, better synchronization effect between the two. 同理,在房间1220中,设备1222和设备1223同步效果较好。 Similarly, in room 1220, the equipment and equipment 1222 1223 synchronized better. 由于设备1212和1213和设备1222和设备1223位于不同的房间,因此,它们之间的同步对用户体验影响不是十分明显。 1212 and 1213 due to equipment and devices 1222 and 1223 devices located in different rooms, so the impact on the user experience synchronization between them is not very obvious. 因而,可以适当降低两个房间中的设备的同步要求。 Accordingly, synchronization can be appropriately reduced equipment requirements in two rooms.

[0133] 可选地,本领域技术人员应当理解,所述房间还可以包括其他电子设备。 [0133] Alternatively, one skilled in the art will appreciate, the room may also include other electronic devices. 电子设备1212、1213本身可以是房间1210中的其他电子设备的主电子设备。 1212, 1213, electronic equipment itself may be a primary electronic equipment other electronic devices in the room 1210. 电子设备1222、1223本身可以是房间1220中的其他电子设备的主电子设备。 1222,1223 electronic device itself may be a primary electronic equipment other electronic devices in the room 1220.

[0134] 可以将图9中的选择装置设置在控制设备1211或1221中,或者对于控制设备1211或1221而言的额外的控制设备中。 [0134] means may be selected in FIG. 9 is provided in the control device 1211 or 1221, or for the control device in terms of additional control devices 1211 or 1221. 可选择地,可以将图9中的选择装置设置在电子设备(音箱)中。 Alternatively, the selection means may be provided in the electronic device in FIG. 9 (speaker) of.

[0135] 本领域技术人员应当明白,尽管上面分别描述了根据本发明的三个实施例,但是,三个实施例可以相互结合。 [0135] Those skilled in the art will appreciate that while the above embodiments are separately described according to three embodiments of the present invention, however, three embodiments may be combined with each other. 例如,在图10所示的例子中,可以应用第一实施例的方案来选择每一级主同步设备。 For example, in the example shown in FIG. 10 may be applied to select a primary synchronization equipment of each of the first embodiment. 例如,在选择完主同步设备之后,位于从属地位的电子设备(音箱)可以使用根据第二实施例的方案来校正本地时钟。 For example, after completion of selecting a primary synchronization device, an electronic device located in a subordinate position (speaker) may be used to correct the local clock in accordance with a second embodiment. 因此,本领域技术人员应当明白,如果没有明确的相反指示,每个实施例都可以利用其它实施例中的特征来提供更好的技术效果。 Thus, those skilled in the art will appreciate, if not explicitly indicated to the contrary, every embodiment may utilize features of other embodiments to provide better technical effect. 三个实施例的这种结合对于本领域技术人员是显而易见的,因此,没有必要在此重复描述。 Three such embodiments in conjunction with the skilled person will be apparent, therefore, repeated description is not necessary here.

[0136] 本发明的装置和方法可以通过程序产品体现。 [0136] The method and apparatus of the present invention may be embodied by a program product. 程序产品可以包括可读存储介质,其上载有用于使处理器实现本发明的各个方面的可读程序指令。 Readable program product may include a storage medium, carrying thereon for causing a processor-readable program instructions implement various aspects of the present invention.

[0137] 可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。 [0137]-readable storage media can be used to maintain and store instructions by the instruction execution apparatus tangible device. 可读存储介质例如可以是但不限于电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。 Readable storage medium may be, but is not limited to electrical storage devices, magnetic storage devices, optical storage device, magnetic storage device, a semiconductor storage device, or any suitable combination of the above. 可读存储介质的更具体的例子(非穷举的列表)包括:便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(R0M)、可擦式可编程只读存储器(EPR0M或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(⑶-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。 Readable storage medium More specific examples (a non-exhaustive list) comprising: a portable disk, a hard disk, a random access memory (RAM), read-only memory (R0M), erasable programmable read-only memory (or flash EPR0M ), static random access memory (SRAM), a portable compact disc read-only memory (⑶-ROM), digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical coding device, for example having instructions stored thereon punched card the recess or raised structures, and any suitable combination of the above. 这里所使用的可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。 Readable storage medium used herein is not to be construed as an instantaneous signal itself, such as radio waves, or other freely propagating electromagnetic waves, an electromagnetic wave through the waveguide or other transmission media communication (e.g., a light pulse through the fiber-optic cable), or through a wire transmission electrical signal.

[0138] 这里所描述的可读程序指令可以从可读存储介质下载到各个电子设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部电子设备或外部存储设备。 [0138]-readable program instructions described herein may be downloaded from a storage medium readable to each electronic device, or through a network such as the Internet, LAN, WAN, and / or a wireless network to download to an external electronic device or an external storage device. 网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。 The network may include copper transmission cable, optical transmission, wireless transmission, routers, firewalls, switches, gateway computer and / or edge servers. 每个电子设备中的网络适配卡或者网络接口从网络接收可读程序指令,并转发该可读程序指令,以供存储在各个计算/处理设备中的可读存储介质中。 Each electronic device in the network or the network interface adapter card readable program instructions received from the network, and forwards the readable program instructions readable storage medium for storage in the respective computing / processing device in.

[0139]用于执行本发明操作的程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言一诸如Smalltalk、C++等,以及常规的过程式编程语言一诸如“C”语言或类似的编程语言。 [0139] program instructions for performing operations of the present invention may be assembly instructions, an instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state data set, or to one or more programming source code or object code written in any combination of languages, including an object oriented programming language, said programming language such as a Smalltalk, C ++ like and conventional procedural programming languages, such as a "C" language or similar programming languages. 可读程序指令可以完全地在用户电子设备上执行、部分地在用户电子设备上执行、作为一个独立的软件包执行、部分在用户电子设备上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。 Readable program instructions may execute entirely on the user's electronic device, partly on the user's electronic device to perform as a stand-alone software package, partly on a remote computer in a consumer electronics device or entirely on the remote computer or executed on the server. 在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络一包括局域网(LAN)或广域网(WAN) —连接到用户电子设备,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。 In the latter scenario, the remote computer, the remote computer through any type of network a include a local area network (LAN) or a wide area network (WAN) - connected to the consumer electronics device, or may be connected to an external computer (e.g. using an Internet Service Provider by Internet connection). 在一些实施例中,通过利用可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本发明的各个方面。 In some embodiments, by using the state-readable program instructions customization information to an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA), the electronic circuit may be performed computer-readable program instructions to implement various aspects of the invention.

[0140] 这里参照根据本发明实施例的方法、装置的流程图和/或框图描述了本发明的各个方面。 [0140] According to the method of Example of the present invention, the apparatus flowchart and / or block diagrams of various aspects are described herein with reference to the present invention. 应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由可读程序指令实现。 It should be understood that each block of the flowchart illustrations and block diagrams, and or / composition / or flowchart illustrations and block diagrams, can be implemented by program instructions readable.

[0141] 这些可读程序指令可以提供给电子设备的处理器,从而生产出一种机器,使得这些指令在通过电子设备的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。 [0141] These readable program instructions may be provided to a processor of the electronic device, to produce a machine, such that the instructions, when executed by a processor of the electronic device, resulting in realization of the flowchart and / or block diagram block or a a predetermined plurality of function blocks / operation apparatus. 也可以把这些可读程序指令存储在可读存储介质中,这些指令使得电子设备以特定方式工作,从而,存储有指令的可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。 These may be readable program instructions stored in a readable storage medium, which enable the electronic devices to function in a particular manner, such that the storage medium is readable instructions comprising a article of manufacture comprising achieve the flowchart and / or block diagrams one or more blocks of a predetermined function / operation instruction various aspects.

[0142] 也可以把可读程序指令加载到电子设备上,使得在电子设备上执行一系列操作步骤,以产生指令实现的过程,从而使得在电子设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。 [0142] The readable program instructions may be loaded onto the electronic device, so that a series of operational steps to be performed on the electronic device, to generate instructions for implementing the process such that the instructions which execute on the electronic device to implement the flowchart and / or block diagrams function specified in one or more blocks / acts.

[0143] 附图中的流程图和框图显示了根据本发明的多个实施例的装置和方法的可能实现的体系架构、功能和操作。 [0143] The flowchart and block diagrams in the architecture shows possible implementations of apparatus and methods according to various embodiments of the present invention, functionality, and operation. 在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。 In this regard, the flowchart or block diagrams each block may represent a module, segment, or part of the instruction, the module, segment, or instructions for implementing the specified logical function part for containing one or more executable instructions. 在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。 Alternatively in some implementations, the functions noted in the blocks may occur in an order different from that noted in the figures. 例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。 For example, two consecutive blocks may in fact be executed substantially concurrently, they may sometimes be executed in the reverse order, depending upon the functionality involved may be. 也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与指令的组合来实现。 Also it is noted that each block of the flowchart in block diagram, as well as combinations and / or block diagrams and / or flowchart block may perform the specified functions or acts dedicated hardware-based systems implemented with , or may be special purpose hardware and instructions combination thereof. 对于本领域技术人员来说公知的是,通过硬件方式实现、通过软件方式实现以及通过软件和硬件结合的方式实现都是等价的。 The skilled artisan is well known that implemented by hardware, by software and implemented by a combination of hardware and software implementations are equivalent.

[0144] 以上已经描述了本发明的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。 [0144] The foregoing has described the embodiments of the present invention, the foregoing description is exemplary and not intended to be exhaustive or limited to the disclosed embodiments. 在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。 In the case of each of the embodiments from the scope and spirit of the embodiments described without departing from, those of ordinary skill in the art Many modifications and variations will be apparent. 本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的技术改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。 Others of ordinary skill in the selected term herein used, is intended to best explain the principles of the embodiments, the practical application, or technical improvements to the market in the art, or to the art to understand the embodiments herein disclosed embodiments. 本发明的范围由所附权利要求来限定。 Scope of the invention defined by the appended claims.

Claims (10)

1.一种用于在通信系统中的多个电子设备中选择主同步设备的方法,包括: 获得每个电子设备与其他电子设备之间的单独传输延迟; 计算每个电子设备的总传输延迟,其中,所述总传输延迟是每个电子设备的单独传输延迟之和;以及选择总传输延迟最小的电子设备作为主同步设备。 A plurality of electronic devices in a communication system, selecting a master synchronization device, comprising: obtaining individual transmission between the electronic device and other electronic devices, each delay; calculating a total transmission delay for each electronic device , wherein the total transmission delay is the transmission delay of each electronic device individually, and; and selecting a minimum of the total transmission delay electronic device as the primary synchronization device.
2.根据权利要求1所述的方法,其中,通过计算从一个电子设备向另一个电子设备发送时间同步包到该一个电子设备接收到该时间同步包的反馈包之间的时间,获得单独传输延迟。 The method according to claim 1, wherein the synchronization packet by calculating from one electronic device to another electronic device to the time between the transmission time of the electronic device receives a time synchronization packet to the feedback packet, transmitted separately obtained delay.
3.根据权利要求1所述的方法,其中,所述单独传输延迟是从一个电子设备到另一个电子设备之间的多次获取的传输延迟的平均值。 3. The method according to claim 1, wherein said transmission delay is the delay from a separate electronic device transmits a plurality of times between the acquired average value to another electronic device.
4.根据权利要求1所述的方法,其中,所述通信系统是音响系统,以及所述多个电子设备是音箱。 4. The method according to claim 1, wherein said communication system is a sound system, and the plurality of electronic device is a speaker.
5.一种用于在通信系统中的多个电子设备中选择主同步设备的选择装置,包括: 获得单元,被设置成获得每个电子设备与其他电子设备之间的单独传输延迟; 计算单元,被设置成计算每个电子设备的总传输延迟,其中,所述总传输延迟是每个电子设备的单独传输延迟之和;以及选择单元,被设置成选择总传输延迟最小的电子设备作为主同步设备。 A plurality of electronic devices in a communication system selecting means for selecting the primary synchronization apparatus, comprising: an obtaining unit arranged to obtain a separate transmission between each electronic device and another electronic delay devices; calculation unit , is arranged to calculate a total transmission delay for each electronic device, wherein the total transmission delay is the transmission delay of each individual and the electronic device; and a selecting unit arranged to select the minimum total propagation delay of the electronic device as the primary sync your device.
6.根据权利要求5所述的选择装置,其中,所述获得单元被设置成通过计算从一个电子设备向另一个电子设备发送时间同步包到该一个电子设备接收到该时间同步包的反馈包之间的时间,获得单独传输延迟。 6. The selection means as claimed in claim 5, wherein the obtaining unit is arranged to synchronize a packet to the electronic device by calculating from one electronic device to another electronic device receives the transmission time of the time synchronization packet is a feedback packet time between obtain separate transmission delay.
7.根据权利要求5所述的选择装置,其中,所述获得单元被设置成通过计算从一个电子设备到另一个电子设备之间的多次获取的传输延迟的平均值,获得所述单独传输延迟。 7. The selection means as claimed in claim 5, wherein said obtaining an average delay from a transmitting electronic device acquires a plurality of times between the other electronic device through the calculation unit is arranged to obtain the individual transfer delay.
8.根据权利要求5所述的装置,其中,所述通信系统是音响系统,以及所述多个电子设备是音箱。 8. The device as claimed in claim 5, wherein said communication system is a sound system, and the plurality of electronic device is a speaker.
9.一种控制设备,包括根据权利要求5所述的选择装置,用于选择通信系统中的多个电子设备中的电子设备作为主同步设备。 A control apparatus comprises selecting means as claimed in claim 5, a plurality of electronic devices for selecting a communication system in an electronic device as a primary synchronization device.
10.一种电子设备,包括根据权利要求5所述的选择装置,用于选择包括该电子设备的通信系统中的多个电子设备中的电子设备作为主同步设备。 An electronic device comprising selection means as claimed in claim 5, comprising a plurality of electronic devices for selecting the communication system of the electronic device in the electronic device as the primary synchronization device.
CN201510685773.2A 2015-10-20 2015-10-20 Method and selection device for selecting master synchronization equipment, control equipment and electronic equipment CN105357750A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510685773.2A CN105357750A (en) 2015-10-20 2015-10-20 Method and selection device for selecting master synchronization equipment, control equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510685773.2A CN105357750A (en) 2015-10-20 2015-10-20 Method and selection device for selecting master synchronization equipment, control equipment and electronic equipment

Publications (1)

Publication Number Publication Date
CN105357750A true CN105357750A (en) 2016-02-24

Family

ID=55333575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510685773.2A CN105357750A (en) 2015-10-20 2015-10-20 Method and selection device for selecting master synchronization equipment, control equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN105357750A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469409A (en) * 2010-11-02 2012-05-23 中国移动通信集团公司 Multimedia conference realization method and device
CN103458496A (en) * 2012-06-04 2013-12-18 中兴通讯股份有限公司 Method and system for achieving time synchronization through WiFi-Direct
CN103581816A (en) * 2013-11-18 2014-02-12 广州市花都区中山大学国光电子与通信研究院 Wireless multi-room music system synchronization mechanism based on UPnP protocol
US20140323036A1 (en) * 2013-04-29 2014-10-30 Motorola Mobility Llc Systems and Methods for Syncronizing Multiple Electronic Devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469409A (en) * 2010-11-02 2012-05-23 中国移动通信集团公司 Multimedia conference realization method and device
CN103458496A (en) * 2012-06-04 2013-12-18 中兴通讯股份有限公司 Method and system for achieving time synchronization through WiFi-Direct
US20140323036A1 (en) * 2013-04-29 2014-10-30 Motorola Mobility Llc Systems and Methods for Syncronizing Multiple Electronic Devices
CN103581816A (en) * 2013-11-18 2014-02-12 广州市花都区中山大学国光电子与通信研究院 Wireless multi-room music system synchronization mechanism based on UPnP protocol

Similar Documents

Publication Publication Date Title
AU2006332452B2 (en) Media data synchronization in a wireless network
US9479573B2 (en) Systems, methods and computer-readable media for configuring receiver latency
US20030198255A1 (en) Method of synchronizing the playback of a digital audio broadcast using an audio waveform sample
US7333519B2 (en) Method of manually fine tuning audio synchronization of a home network
US7209795B2 (en) Method of synchronizing the playback of a digital audio broadcast by inserting a control track pulse
US8762580B2 (en) Common event-based multidevice media playback
KR101704619B1 (en) Determining available media data for network streaming
JP2007020183A (en) Method for time synchronization in residential ethernet system
WO2001061898A2 (en) Reference time distribution over a network
Han et al. A practical implementation of IEEE 1588-2008 transparent clock for distributed measurement and control systems
CN101998616A (en) Wireless communication system base station and data transmission synchronizing method thereof
KR101620799B1 (en) Frame sync across multiple channels
CN103460128A (en) Alternative audio
RU2012125261A (en) The configuration of network synchronization
CN104247309A (en) Clock synchronization using multiple network paths
JP2007501428A (en) Buffer management system, digital audio receiver, headphones, loudspeaker, buffer management method
EP2759174B1 (en) Method and apparatus for time synchronisation in wireless networks
CN103338204B (en) An audio output method and system for synchronizing
US9954671B2 (en) Information processing apparatus, synchronization correction method and computer program
RU2008146506A (en) A method of synchronization of the base station nodes
WO2014094573A1 (en) Method and apparatus for controlling multiple terminals in synchronous playback
CN102307072B (en) Program Clock Reference in the multimedia network synchronization
CN102394715B (en) Clock synchronization method and apparatus
CN103561356B (en) Multi-terminal synchronous playback method and apparatus
JP2014512126A (en) Method for time distribution in a communication network, devices and systems

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination