JP7600144B2 - Synchronization device and synchronization method - Google Patents
Synchronization device and synchronization method Download PDFInfo
- Publication number
- JP7600144B2 JP7600144B2 JP2021567140A JP2021567140A JP7600144B2 JP 7600144 B2 JP7600144 B2 JP 7600144B2 JP 2021567140 A JP2021567140 A JP 2021567140A JP 2021567140 A JP2021567140 A JP 2021567140A JP 7600144 B2 JP7600144 B2 JP 7600144B2
- Authority
- JP
- Japan
- Prior art keywords
- counter
- count value
- master
- unit
- slave
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
- H04L7/02—Speed or phase control by the received code signals, the signals containing no special synchronisation information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Computer Networks & Wireless Communication (AREA)
- Mobile Radio Communication Systems (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Description
本開示は、同期装置及び同期方法に関する。 The present disclosure relates to a synchronization device and a synchronization method.
Bluetooth(登録商標)を用いたTWS(True Wireless Stereo)イヤホンが急速に普及しつつある。小型・低電力化の要求から、従来のBluetooth規格に対して、より低電力な規格であるBluetooth Low Enerty(BLE)規格の策定が進められている。 TWS (True Wireless Stereo) earphones using Bluetooth (registered trademark) are rapidly becoming popular. Due to the demand for smaller size and lower power consumption, the Bluetooth Low Energy (BLE) standard, which is a lower power consumption standard than the conventional Bluetooth standard, is being developed.
TWSイヤホンによるステレオ・オーディオ再生時には、左右の音楽再生同期を、いかに定位を保った状態で達成するかが非常に重要であり、信頼性の高いオーディオ再生同期技術の提供が求められている。When playing stereo audio with TWS earphones, it is extremely important to synchronize the left and right music playback while maintaining the correct positioning, so there is a demand for highly reliable audio playback synchronization technology.
従来のBluetooth規格では、オーディオ再生時にスマートフォンや音楽プレーヤ等の再生デバイスから時刻情報が送信され、この時刻情報に同期させることで再生同期を実現していた。一方、BLE規格では、この時刻情報がパケットに含まれていないため、従来技術とは 別の手法を用いて オーディオ再生同期を実現する必要がある In the conventional Bluetooth standard, when audio is played, time information is transmitted from the playback device, such as a smartphone or music player, and playback synchronization is achieved by synchronizing with this time information. On the other hand, in the BLE standard, this time information is not included in the packet, so audio playback synchronization must be achieved using a method different from the conventional technology.
本開示は、無線通信を行うマスタとスレーブの間で精度よく同期を取ることができる同期装置及び同期方法を提供するものである。 The present disclosure provides a synchronization device and a synchronization method that can achieve precise synchronization between a master and a slave that communicate wirelessly.
上記の課題を解決するために、本開示の一態様によれば、マスタとスレーブとの間で無線通信により時系列データを同期させる同期装置であって、
前記マスタは、
複数のパケットを生成するパケット生成部と、
前記複数のパケット中の任意のパケットを所定の間隔で前記スレーブに送信するパケット送信部と、を有し、
前記スレーブは、
前記任意のパケットを受信するパケット受信部と、
基準クロック信号に基づいて、前記任意のパケットの間隔をカウントするカウンタと、を備え、
前記カウンタのカウント値に基づいて、前記基準クロック信号の周波数を調整することで、前記マスタと前記複数のスレーブ間での同期を図る、同期装置が提供される。
In order to solve the above problems, according to one aspect of the present disclosure, there is provided a synchronization device that synchronizes time-series data between a master and a slave via wireless communication, comprising:
The master is
a packet generator for generating a plurality of packets;
a packet transmission unit that transmits an arbitrary packet of the plurality of packets to the slave at a predetermined interval;
The slave is
A packet receiving unit for receiving the arbitrary packet;
a counter that counts the interval between the arbitrary packets based on a reference clock signal;
A synchronization device is provided that adjusts the frequency of the reference clock signal based on the count value of the counter, thereby achieving synchronization between the master and the multiple slaves.
また、本開示の他の一態様によれば、マスタと複数のスレーブとの間で無線通信により時系列データを同期させる同期装置であって、
前記マスタは、
複数のパケットを生成するパケット生成部と、
前記複数のパケット中の任意のパケットを所定の間隔で前記複数のスレーブのうち一つに送信するパケット送信部と、を有し、
前記複数のスレーブのうちの一つは、
前記任意のパケットを受信するパケット受信部と、
基準クロック信号に基づいて、前記任意のパケットの間隔をカウントするカウンタと、を備え、
前記カウンタのカウント値に基づいて、前記基準クロック信号の周波数を調整することで、前記マスタと前記複数のスレーブ間での同期を図る、同期装置が提供される。
According to another aspect of the present disclosure, there is provided a synchronization device that synchronizes time-series data between a master and a plurality of slaves via wireless communication, comprising:
The master is
a packet generator for generating a plurality of packets;
a packet transmission unit that transmits any one of the plurality of packets to one of the plurality of slaves at a predetermined interval;
One of the plurality of slaves
A packet receiving unit for receiving the arbitrary packet;
a counter that counts the interval between the arbitrary packets based on a reference clock signal;
A synchronization device is provided that adjusts the frequency of the reference clock signal based on the count value of the counter, thereby achieving synchronization between the master and the multiple slaves.
前記複数のパケットは、パケットの間隔に関する情報と時系列データとを含んでおり、
前記パケット受信部で新たなパケットが受信されるたびに、前記カウンタのカウント値をラッチするラッチ部と、
前記パケット受信部で受信されたパケットに含まれるパケットの間隔に関する情報を抽出する情報抽出部と、
前記抽出されたパケットの間隔に関する情報に基づいて、理想的なカウント値を算出する理想カウント値算出部と、
前記ラッチ部でラッチされた前記カウンタのカウント値と、前記理想的なカウント値との差分を算出する差分算出部と、
前記差分に基づいて、前記基準クロック信号の周波数を調整する周波数調整部と、を備えてもよい。
the plurality of packets include information regarding packet intervals and time series data;
a latch unit that latches the count value of the counter every time a new packet is received by the packet receiving unit;
an information extraction unit that extracts information regarding a packet interval included in the packet received by the packet receiving unit;
an ideal count value calculation unit that calculates an ideal count value based on the extracted information about the interval between packets;
a difference calculation unit that calculates a difference between the count value of the counter latched by the latch unit and the ideal count value;
The clock signal generating device may further include a frequency adjusting unit that adjusts a frequency of the reference clock signal based on the difference.
前記周波数調整部は、前記ラッチ部でラッチされた前記カウンタのカウント値が前記理想的なカウント値よりも大きければ、前記基準クロック信号の周波数を低くし、前記ラッチ部でラッチされた前記カウンタのカウント値が前記理想的なカウント値よりも小さければ、前記基準クロック信号の周波数を高くしてもよい。The frequency adjustment unit may lower the frequency of the reference clock signal if the count value of the counter latched by the latch unit is greater than the ideal count value, and may increase the frequency of the reference clock signal if the count value of the counter latched by the latch unit is smaller than the ideal count value.
前記スレーブは、
前記差分の時間変化に基づいて、前記差分が所定値以下になるように前記基準クロック信号の周波数を調整するための制御値を算出する制御値算出部を有し、
前記周波数調整部は、前記制御値に基づいて、前記基準クロック信号の周波数を調整してもよい。
The slave is
a control value calculation unit that calculates a control value for adjusting the frequency of the reference clock signal based on a change in the difference over time so that the difference becomes equal to or smaller than a predetermined value;
The frequency adjuster may adjust the frequency of the reference clock signal based on the control value.
前記スレーブは、
前記差分の単位時間当たりの変化値を示す速度成分を抽出する速度成分抽出部と、
前記速度成分の単位時間当たりの変化値を示す加速度成分を抽出する加速度成分抽出部と、を有し、
前記制御値算出部は、前記速度成分及び前記加速度成分に基づいて、前記制御値を算出してもよい。
The slave is
a speed component extracting unit that extracts a speed component indicating a change value per unit time of the difference;
an acceleration component extraction unit that extracts an acceleration component that indicates a change value per unit time of the velocity component,
The control value calculation section may calculate the control value based on the velocity component and the acceleration component.
前記スレーブは、前記制御値のばらつきが所定範囲内に収まるように調整する制御値調整部を有し、
前記周波数調整部は、前記制御値調整部で調整された制御値に基づいて、前記基準クロック信号の周波数を調整してもよい。
the slave has a control value adjustment unit that adjusts the control value so that the variation in the control value falls within a predetermined range;
The frequency adjustment unit may adjust the frequency of the reference clock signal based on the control value adjusted by the control value adjustment unit.
前記パケット送信部は、前記複数のパケットを含むパケット群を、予め定めた間隔で複数回送信し、
前記スレーブ内の前記カウンタは、前記パケット群に含まれる各パケットの間隔をそれぞれ計測し、
前記スレーブは、
前記パケット群に含まれる各パケットの間隔のうち、カウント値を計測し損ねたパケットの間隔が存在する場合には、カウント値を補間する補間部と、
前記カウンタでカウントしたカウント値のうち、許容範囲を逸脱しているカウント値を除去する除外部と、を有し、
前記差分算出部は、前記補間部による補間と、前記除外部による除外とを行ったカウント値と、前記理想的なカウント値との差分を算出してもよい。
the packet transmission unit transmits a packet group including the plurality of packets a plurality of times at a predetermined interval;
the counter in the slave measures an interval between each packet included in the packet group;
The slave is
an interpolation unit that interpolates count values when there is a packet interval whose count value has not been measured among the intervals between packets included in the packet group;
an exclusion unit that excludes count values that are outside a tolerance range from among the count values counted by the counter;
The difference calculation section may calculate a difference between a count value obtained by performing the interpolation by the interpolation section and the exclusion by the exclusion section, and the ideal count value.
前記時系列データは、生体情報を含むデータ又はオーディオデータであってもよい。The time series data may be data including biometric information or audio data.
前記複数のスレーブのそれぞれにおける前記パケット受信部は、前記マスタとそれぞれ異なるタイミングで無線通信を行って、前記マスタから送信された固有の時系列データを含む前記複数のパケットを受信してもよい。The packet receiving unit in each of the plurality of slaves may perform wireless communication with the master at different times to receive the plurality of packets including unique time series data transmitted from the master.
前記マスタは、オーディオデータを記憶する記憶部を有する情報提供端末であり、
前記情報提供端末とそれぞれ異なるタイミングで無線通信を行う2台の前記スレーブを備え、
前記2台のスレーブのうち一方は前記マスタから送信された左耳用のオーディオデータを再生するイヤホンであり、他方は前記マスタから送信された右耳用のオーディオデータを再生するイヤホンであってもよい。
the master is an information providing terminal having a storage unit for storing audio data;
two slaves that wirelessly communicate with the information providing terminal at different times,
One of the two slaves may be an earphone that reproduces audio data for the left ear transmitted from the master, and the other may be an earphone that reproduces audio data for the right ear transmitted from the master.
本開示の他の一態様によれば、マスタとスレーブとの間で無線通信により時系列データを同期させる同期装置であって、
前記マスタは、
第1基準クロック信号に基づいてカウント動作を行う第1カウンタと、
第2基準クロック信号に基づいて、情報提供端末から送信された複数のパケットの間隔をカウントする第2カウンタと、
前記第1カウンタのカウント値と前記第2カウンタのカウント値とを含むパケットを前記スレーブに送信する第1パケット送信部と、を有し、
前記スレーブは、
第3基準クロック信号に基づいてカウント動作を行う第3カウンタと、
第4基準クロック信号に基づいて、前記情報提供端末から送信された前記複数のパケットの間隔をカウントする第4カウンタと、
前記第3カウンタのカウント値と前記第4カウンタのカウント値とを含むパケットを前記マスタに送信する第2パケット送信部と、
前記マスタから送信された前記第2カウンタのカウント値と、前記第4カウンタのカウント値とに基づいて、前記第4基準クロック信号の周波数を調整する周波数調整部と、を有する、同期装置が提供される。
According to another aspect of the present disclosure, there is provided a synchronization device that synchronizes time series data between a master and a slave via wireless communication, comprising:
The master is
a first counter that performs a counting operation based on a first reference clock signal;
a second counter that counts intervals between a plurality of packets transmitted from the information providing terminal based on a second reference clock signal;
a first packet transmitting unit configured to transmit a packet including the count value of the first counter and the count value of the second counter to the slave;
The slave is
a third counter that performs a counting operation based on a third reference clock signal;
a fourth counter that counts intervals between the plurality of packets transmitted from the information providing terminal based on a fourth reference clock signal;
a second packet transmitting unit configured to transmit a packet including the count value of the third counter and the count value of the fourth counter to the master;
A synchronization device is provided, comprising: a frequency adjustment unit that adjusts a frequency of the fourth reference clock signal based on the count value of the second counter and the count value of the fourth counter transmitted from the master.
前記マスタから送信された前記第2カウンタのカウント値と、前記第4カウンタのカウント値との差分を算出する差分算出部を備え、
前記周波数調整部は、前記差分に基づいて、前記第4基準クロック信号の周波数を調整してもよい。
a difference calculation unit that calculates a difference between the count value of the second counter transmitted from the master and the count value of the fourth counter,
The frequency adjusting section may adjust the frequency of the fourth reference clock signal based on the difference.
前記第1カウンタのカウント値と、前記第3カウンタのカウント値とは、前記マスタと前記スレーブとでパケット通信を行うたびに、同じ値になるか、又は差分が同一になるように調整されてもよい。The count value of the first counter and the count value of the third counter may be adjusted so that they are the same or the difference between them is the same each time packet communication is performed between the master and the slave.
前記スレーブは、
前記情報提供端末から送信された複数のパケットに含まれる送信終了時刻に関する情報を取得する終了時刻情報取得部と、
前記送信終了時刻に関する情報に基づいて、時系列データの再生又は処理の開始時刻に関する情報を算出する開始時刻算出部と、
前記第3カウンタのカウント値と、前記周波数調整部で前記第4基準クロック信号の周波数を調整後の前記第4カウンタのカウント値と、前記周波数調整部で前記第4基準クロック信号の周波数を調整後の前記差分算出部で算出された前記差分と、前記開始時刻に関する情報と、に基づいて、時系列データの再生又は処理を行う時刻を前記マスタとの間で同期させる同期化部と、を有してもよい。
The slave is
an end time information acquiring unit that acquires information regarding a transmission end time included in a plurality of packets transmitted from the information providing terminal;
a start time calculation unit that calculates information regarding a start time of reproduction or processing of the time series data based on the information regarding the transmission end time;
The clock signal may include a synchronization unit that synchronizes with the master a time at which time series data is reproduced or processed based on the count value of the third counter, the count value of the fourth counter after the frequency of the fourth reference clock signal has been adjusted by the frequency adjustment unit, the difference calculated by the difference calculation unit after the frequency of the fourth reference clock signal has been adjusted by the frequency adjustment unit, and information regarding the start time.
前記スレーブは、
再生又は処理された時系列データの区切りをカウントする第5カウンタと、
前記第5カウンタがカウントアップするたびに、前記第3カウンタのカウント値と、前記第4カウンタのカウント値とを取得するカウント値取得部と、を備え、
前記第2パケット送信部は、前記カウント値取得部で取得された前記第3カウンタのカウント値と、前記第4カウンタのカウント値とを前記マスタに送信してもよい。
The slave is
a fifth counter for counting divisions of the reproduced or processed time series data;
a count value acquiring unit that acquires a count value of the third counter and a count value of the fourth counter every time the fifth counter counts up,
The second packet transmitting unit may transmit the count value of the third counter and the count value of the fourth counter acquired by the count value acquiring unit to the master.
前記時系列データは、オーディオデータであり、
前記第5カウンタは、前記オーディオデータのフレーム数をカウントしてもよい。
the time series data is audio data,
The fifth counter may count the number of frames of the audio data.
前記周波数調整部は、前記マスタ及び前記スレーブがパケット通信を開始する際に、前記差分に基づいて前記第4基準クロック信号の周波数を調整し、
前記同期化部は、前記マスタ及び前記スレーブが前記情報提供端末との間でパケット通信を行う合間に、時系列データの再生又は処理を行う時刻を前記マスタとの間で同期させてもよい。
the frequency adjusting unit adjusts a frequency of the fourth reference clock signal based on the difference when the master and the slave start packet communication;
The synchronization unit may synchronize with the master a time at which the time series data is reproduced or processed, during an interval between packet communication between the master and the slave and the information providing terminal.
前記マスタ及び前記スレーブの一方は、前記情報提供端末から左耳用のオーディオデータを受信する第1イヤホンであり、他方は、前記情報提供端末から前記第1イヤホンとは別個のタイミングで右耳用のオーディオデータを受信する第2イヤホンであってもよい。One of the master and the slave may be a first earphone that receives audio data for the left ear from the information providing terminal, and the other may be a second earphone that receives audio data for the right ear from the information providing terminal at a timing separate from that of the first earphone.
前記第1イヤホン及び前記第2イヤホンのそれぞれが、互いにパケットを送受して、前記第1イヤホン及び前記第2イヤホンのそれぞれにおいて受信されたパケットに含まれるプロファイル情報にて、自装置が前記マスタ又は前記スレーブであることを確定するマスタ/スレーブ確定部を有してもよい。Each of the first earphone and the second earphone may have a master/slave determination unit that transmits and receives packets to each other and determines whether the device is the master or the slave based on profile information contained in the packets received by each of the first earphone and the second earphone.
前記マスタと前記スレーブとは、Bluetooth(登録商標) Low Energyの規格に準拠したパケット通信を行ってもよい。The master and the slave may perform packet communication in accordance with the Bluetooth (registered trademark) Low Energy standard.
本開示の他の一態様によれば、マスタと複数のスレーブとの間で無線通信により時系列データを同期させる同期方法であって、
前記マスタは、
複数のパケットを生成し、
前記複数のパケット中の任意のパケットを所定の間隔で前記複数のスレーブのうち一つに送信し、
前記複数のスレーブのうち一つは、
前記任意のパケットを受信し、
基準クロック信号に基づいて、前記任意のパケットの間隔をカウンタでカウントし、
前記カウンタのカウント値に基づいて、前記基準クロック信号の周波数を調整することで、前記マスタと前記複数のスレーブ間での同期を図る、同期方法が提供される。
According to another aspect of the present disclosure, there is provided a synchronization method for synchronizing time series data between a master and a plurality of slaves via wireless communication, the method comprising:
The master is
Generate multiple packets,
transmitting any packet among the plurality of packets to one of the plurality of slaves at a predetermined interval;
One of the plurality of slaves is
receiving said any packet;
Counting the interval between the arbitrary packets with a counter based on a reference clock signal;
A synchronization method is provided in which the frequency of the reference clock signal is adjusted based on the count value of the counter, thereby achieving synchronization between the master and the multiple slaves.
本開示の他の一態様によれば、マスタとスレーブとの間で無線通信により時系列データを同期させる同期方法であって、
前記マスタは、
第1基準クロック信号に基づいて第1カウンタでカウント動作を行い、
第2基準クロック信号に基づいて、情報提供端末から送信された複数のパケットの間隔を第2カウンタでカウントし、
前記第1カウンタのカウント値と前記第2カウンタのカウント値とを含むパケットを前記スレーブに送信し、
前記スレーブは、
第3基準クロック信号に基づいて第3カウンタでカウント動作を行い、
第4基準クロック信号に基づいて、前記情報提供端末から送信された前記複数のパケットの間隔を第4カウンタでカウントし、
前記第3カウンタのカウント値と前記第4カウンタのカウント値とを含むパケットを前記マスタに送信し、
前記マスタから送信された前記第2カウンタのカウント値と、前記第4カウンタのカウント値とに基づいて、前記第4基準クロック信号の周波数を調整する、同期方法が提供される。
According to another aspect of the present disclosure, there is provided a synchronization method for synchronizing time series data between a master and a slave via wireless communication, the method comprising:
The master is
A first counter performs a counting operation based on a first reference clock signal;
counting intervals between a plurality of packets transmitted from the information providing terminal with a second counter based on a second reference clock signal;
Transmitting a packet including the count value of the first counter and the count value of the second counter to the slave;
The slave is
A third counter performs a counting operation based on a third reference clock signal;
counting intervals between the plurality of packets transmitted from the information providing terminal by a fourth counter based on a fourth reference clock signal;
Transmitting a packet including the count value of the third counter and the count value of the fourth counter to the master;
There is provided a synchronization method for adjusting a frequency of the fourth reference clock signal based on the count value of the second counter and the count value of the fourth counter transmitted from the master.
以下、本開示の実施の形態について、詳細に説明する。 The following describes in detail the embodiments of the present disclosure.
(同期装置の概略説明)
本実施形態による同期装置は、マスタとスレーブとの間で無線通信により時系列データを同期させる。マスタは、スレーブに時系列データを含むパケットを無線通信にて送信し、スレーブは受信されたパケットに含まれる時系列データを、マスタの時系列データに同期させる処理を行う。
(Outline of Synchronizing Device)
The synchronization device according to the present embodiment synchronizes time-series data between a master and a slave via wireless communication. The master transmits a packet including the time-series data to the slave via wireless communication, and the slave synchronizes the time-series data included in the received packet with the time-series data of the master.
マスタとスレーブで送受される時系列データの種類は問わない。一例として、時系列データは、生体情報を含むデータ又はオーディオデータであってもよい。以下では、マスタとスレーブがオーディオデータを同期させる例を主に説明する。この場合、マスタは、オーディオデータを提供する情報提供端末で、スレーブはイヤホンであってもよい。あるいは、マスタは左右いずれか一方のイヤホンで、スレーブは他方のイヤホンであってもよい。 There is no restriction on the type of time series data transmitted and received between the master and the slave. As an example, the time series data may be data including biometric information or audio data. Below, an example in which the master and the slave synchronize audio data will be mainly described. In this case, the master may be an information providing terminal that provides audio data, and the slave may be an earphone. Alternatively, the master may be one of the left or right earphones, and the slave may be the other earphone.
図1は本実施形態による同期装置1の概略構成を示す図である。図1の同期装置1は、例えば、スマートフォンやタブレット、携帯電話、携帯型音楽プレーヤ等の情報提供端末2と、情報提供端末2からオーディオデータを受信して音声出力する左右のイヤホン3a,3bとを備えている。情報提供端末2がマスタMで、左右のイヤホン3a,3bがスレーブS1,S2になりうる。あるいは、左右いずれか一方のイヤホン3aがマスタMで、他方がスレーブSになりうる。 Figure 1 is a diagram showing the schematic configuration of a synchronization device 1 according to this embodiment. The synchronization device 1 in Figure 1 includes an information providing terminal 2, such as a smartphone, tablet, mobile phone, or portable music player, and left and right earphones 3a, 3b that receive audio data from the information providing terminal 2 and output audio. The information providing terminal 2 can be the master M, and the left and right earphones 3a, 3b can be the slaves S1, S2. Alternatively, one of the left and right earphones 3a can be the master M, and the other can be the slave S.
本実施形態では、上述したBluetooth(登録商標)Low Energy(BLE)でマスタMとスレーブS1,S2が無線通信を行うことを想定している。BLEは、通常のBluetoothよりも低消費電力であり、バッテリ容量が限られているイヤホン3a,3b等の小型の通信機器では、連続使用時間を延ばせることから、今後の普及が期待されている。In this embodiment, it is assumed that the master M and the slaves S1 and S2 perform wireless communication using the above-mentioned Bluetooth (registered trademark) Low Energy (BLE). BLE consumes less power than normal Bluetooth and can extend the continuous use time of small communication devices such as the earphones 3a and 3b, which have limited battery capacity, so it is expected to become more widespread in the future.
例えば、マスタMが情報提供端末2で、スレーブS1,S2が左右のイヤホン3a,3bである場合、BLEの規格では、マスタMから各イヤホン3a,3bに、そのイヤホン3a,3b用のオーディオデータのみを送信する。すなわち、一方のイヤホン3a,3bには、他方のイヤホン3a,3b用のオーディオデータは送信されない。各イヤホン3a,3bは、無線で通信を行うため、各イヤホン3a,3bが受信したオーディオデータの同期を取る処理を、情報提供端末2と各イヤホン3a,3bとの間で行うととともに、各イヤホン3a,3b同士でも同期を取る必要がある。本実施形態は、マスタMとスレーブS1,S2との間で行う同期処理に技術的特徴を有する。まず、BLEの規格について説明する。For example, if the master M is the information providing terminal 2 and the slaves S1 and S2 are the left and right earphones 3a and 3b, in the BLE standard, the master M transmits only audio data for each earphone 3a, 3b to that earphone. In other words, audio data for one earphone 3a, 3b is not transmitted to the other earphone 3a, 3b. Since the earphones 3a and 3b communicate wirelessly, a process of synchronizing the audio data received by each earphone 3a, 3b must be performed between the information providing terminal 2 and each earphone 3a, 3b, and the earphones 3a, 3b must also synchronize with each other. This embodiment has a technical feature in the synchronization process performed between the master M and the slaves S1 and S2. First, the BLE standard will be described.
さらに、BLE機器内で使用されるBLE-PHYカウンタ用のクロックの精度に関して、±2μ秒以下のずれを有する、と記載されている。 Furthermore, it is stated that the accuracy of the clock for the BLE-PHY counter used in the BLE device has an error of less than ±2 μsec.
また、接続要件とクロック要件に関して、BLEの規格では、同期型接続(ISO:Isochronous connection)と一般データ用フレーム接続(ACL:Asynchronous Connection Interval)が規定されている。 In addition, with regard to connection and clock requirements, the BLE standard specifies synchronous connection (ISO: Isochronous connection) and general data frame connection (ACL: Asynchronous Connection Interval).
本実施形態では、マスタMとスレーブS1,S2は同期型接続(ISO)にてオーディオデータの伝送とクロックリカバリを行い、一般データ用フレーム接続(ACL)にて、GATT(Genetic Attribute)のプロファイルを介して、左右のイヤホン3a,3bでカウンタ値を交換し、カウンタのずれを調整する。 In this embodiment, the master M and slaves S1 and S2 transmit audio data and perform clock recovery via a synchronous connection (ISO), and exchange counter values between the left and right earphones 3a and 3b via a general data frame connection (ACL) via the GATT (Genetic Attribute) profile to adjust the counter deviation.
図2はBLEの規格に準拠したパケット通信のタイミングを示す図である。図2では、マスタM(情報提供端末2)から、2つのスレーブS1,S2(左右のイヤホン3a,3b)に再生用のオーディオデータを含むパケットを送信する例を示している。ISOインターバルの中には、複数のパケットのそれぞれが所定の間隔で配置されている。1つのパケットの送信間隔は、サブインターバルと呼ばれる。マスタMからのパケットを受信したスレーブS1,S2は、受取(ACK)情報を含むパケットをマスタMに送信する。複数のパケットを含むパケット群の送信期間は、Synchronization Delay(同期遅延期間)と呼ばれ、このSynchronization Delayの情報はパケットに含めて、マスタMからスレーブS1,S2に送信される。 Figure 2 is a diagram showing the timing of packet communication conforming to the BLE standard. Figure 2 shows an example in which a master M (information providing terminal 2) transmits packets containing audio data for playback to two slaves S1 and S2 (left and right earphones 3a and 3b). Within the ISO interval, multiple packets are arranged at predetermined intervals. The transmission interval of one packet is called a subinterval. Having received a packet from master M, slaves S1 and S2 transmit a packet containing acknowledgement (ACK) information to master M. The transmission period of a packet group containing multiple packets is called a synchronization delay, and this synchronization delay information is included in the packet and transmitted from master M to slaves S1 and S2.
図2からわかるように、左右のイヤホン3a,3bでは、パケットの送信時刻がずれている。上述したように、BLEでは、左のイヤホン3bには左のオーディオデータを含むパケットを送信し、右のイヤホン3aには右のオーディオデータを含むパケットを送信する。また、BLEでは、左右のイヤホン3a,3bに同時にパケットを送信することはできない。このため、図2に示すように、左のイヤホン3bと右のイヤホン3aでは、パケットの送信時刻にずれが生じる。しかしながら、Synchronization Delayを左のパケットと右のパケットでそれぞれ規定することで、Synchronization Delayの終了時刻を、左右のイヤホン3a,3bで一致させている。 As can be seen from Figure 2, there is a difference in the packet transmission times between the left and right earphones 3a and 3b. As described above, with BLE, a packet containing left audio data is transmitted to the left earphone 3b, and a packet containing right audio data is transmitted to the right earphone 3a. Furthermore, with BLE, packets cannot be transmitted to the left and right earphones 3a and 3b simultaneously. For this reason, as shown in Figure 2, there is a difference in the packet transmission times between the left earphone 3b and the right earphone 3a. However, by specifying the Synchronization Delay for the left packet and the right packet respectively, the end times of the Synchronization Delay are made to match between the left and right earphones 3a and 3b.
本実施形態では、Synchronization Delayの終了時刻から、さらにPresentation Delayの期間経過後に、左右のイヤホン3a,3bでオーディオデータの再生を開始させる。In this embodiment, audio data starts to be played through the left and right earphones 3a and 3b after the end time of the Synchronization Delay and the Presentation Delay period has elapsed.
図3は図2のサブインターバル内に送信される1つのパケットのデータ構成を示す図である。図3のパケットのデータ構成はBLEの規格に準拠したものであり、BLEパケットと呼ばれる。図3に示すように、BLEパケットは、プリアンブルと、アクセスアドレスと、PDUと、CRCとを有する。プリアンブルは、オーディオデータに関するデータを含まないが、BLE変調信号を含んでいる。アクセスアドレスは、通信相手を特定する情報やパケットの種類を表す情報を含んでいる。PDUは、オーディオデータを含む他に、上述したSynchronization Delayやパケット間隔に関する情報(BLEパラメータ)を含んでいる。CRCはエラーチェック用のデータである。 Figure 3 is a diagram showing the data structure of one packet transmitted within the subinterval of Figure 2. The data structure of the packet in Figure 3 complies with the BLE standard and is called a BLE packet. As shown in Figure 3, a BLE packet has a preamble, an access address, a PDU, and a CRC. The preamble does not contain data related to audio data, but does contain a BLE modulated signal. The access address contains information that identifies the communication partner and information that indicates the type of packet. In addition to containing audio data, the PDU contains the above-mentioned synchronization delay and information related to the packet interval (BLE parameters). The CRC is data for error checking.
図4は本実施形態による同期装置1の一部を構成するマスタM又はスレーブS1,S2のハードウェア構成の一例を示すブロック図である。より具体的には、図4はイヤホン3a,3bのハードウェア構成を示している。上述したように、図4のイヤホン3a,3bは、情報提供端末2からオーディオデータを受信する際にはスレーブS1,S2として動作する。また、イヤホン3a,3b同士で同期化処理を行う際には、マスタM又はスレーブSとして動作する。 Figure 4 is a block diagram showing an example of the hardware configuration of the master M or slaves S1 and S2 that constitute a part of the synchronization device 1 according to this embodiment. More specifically, Figure 4 shows the hardware configuration of the earphones 3a and 3b. As described above, the earphones 3a and 3b in Figure 4 operate as slaves S1 and S2 when receiving audio data from the information providing terminal 2. In addition, they operate as master M or slave S when performing synchronization processing between the earphones 3a and 3b.
図4のイヤホン3a,3bは、クロック生成部(CRG)11と、カウンタ部12と、RF(Radio Frequency)部13と、ベースバンド部14と、CPU15と、オーディオ処理部(Audio Processor)16と、バッファインターフェース部(BIF)17と、オーディオインタフェース部(AIF:Audio Interface)18と、音声出力部(Audio Chip)19と、スピーカ20と、マイク21とを有する。The earphones 3a and 3b in Figure 4 have a clock generation unit (CRG) 11, a counter unit 12, an RF (Radio Frequency) unit 13, a baseband unit 14, a CPU 15, an audio processing unit (Audio Processor) 16, a buffer interface unit (BIF) 17, an audio interface unit (AIF: Audio Interface) 18, an audio output unit (Audio Chip) 19, a speaker 20, and a microphone 21.
RF部13は、図2に示したパケットを含む無線信号を受信して復調する処理を行う。RF部13の内部構成の説明は割愛するが、RF部13はBLEの規格に準拠して、2.4GHz帯域の無線信号を受信して復調処理を行う。このように、RF部13は、マスタMから送信された複数のパケットを受信するパケット受信部として機能する。The RF unit 13 receives and demodulates a wireless signal including the packet shown in Figure 2. Although a description of the internal configuration of the RF unit 13 is omitted, the RF unit 13 receives and demodulates a wireless signal in the 2.4 GHz band in accordance with the BLE standard. In this way, the RF unit 13 functions as a packet receiving unit that receives multiple packets transmitted from the master M.
ベースバンド部14は、PHY部14aとLINK部14bを有する。PHY部14aは、RF部13で復調した信号をデジタル信号に変換する。LINK部14bは、特定のアクセスアドレスを持つパケットを抽出し、パケットに含まれるパケット間隔の情報から理想的なPCDカウント値(理想PCDカウント値)を算出する。PCDカウント値とは、後述するように、マスタMから送信されるパケットの間隔をカウントするカウンタ(PCDカウンタ12aと呼ぶ)のカウント値である。このように、LINK部14bは、受信されたパケットに含まれるパケットの間隔に関する情報を抽出する情報抽出部と、抽出されたパケットの間隔に関する情報に基づいて、理想的なカウント値を算出する理想カウント値算出部として機能する。また、LINK部14bは、通信相手のPCDカウント値を理想PCDカウント値として受信する場合もある。The baseband unit 14 has a PHY unit 14a and a LINK unit 14b. The PHY unit 14a converts the signal demodulated by the RF unit 13 into a digital signal. The LINK unit 14b extracts a packet having a specific access address and calculates an ideal PCD count value (ideal PCD count value) from the packet interval information contained in the packet. The PCD count value is the count value of a counter (called PCD counter 12a) that counts the interval of packets transmitted from the master M, as described later. In this way, the LINK unit 14b functions as an information extraction unit that extracts information about the packet interval contained in the received packet, and an ideal count value calculation unit that calculates an ideal count value based on the extracted information about the packet interval. In addition, the LINK unit 14b may receive the PCD count value of the communication partner as the ideal PCD count value.
CPU15は、比較処理(CMP)と、PCD制御処理と、SyncDelay検出処理(終了時刻情報取得部)と、Depacket処理を行う。比較処理では、LINK部14bで算出された理想的なPCDカウント値又は通信相手のPCDカウント値と、自装置内の後述するPCDカウンタ12aのカウント値とを比較する。The CPU 15 performs a comparison process (CMP), a PCD control process, a SyncDelay detection process (end time information acquisition section), and a Depacket process. In the comparison process, the ideal PCD count value calculated by the LINK section 14b or the PCD count value of the communication partner is compared with the count value of a PCD counter 12a (described later) in the own device.
PCD制御処理では、比較処理での比較結果に基づいて、理想PCDカウント値とPCDカウンタ12aのカウント値との差分を検出し、その差分に基づいて、PCDカウンタ12aを動作させる基準クロック信号の周波数を制御する。In the PCD control process, the difference between the ideal PCD count value and the count value of the PCD counter 12a is detected based on the comparison result of the comparison process, and the frequency of the reference clock signal that operates the PCD counter 12a is controlled based on that difference.
Depacket処理では、受信されたパケットの中身を抽出する。SyncDelay検出処理では、受信されたパケットに含まれるSynchronization Delayを検出する。パケット内のSynchronization Delayやオーディオデータなどの情報は、第1のRAM22に格納される。第1のRAM22に格納されたデータは、オーディオ処理部16により読み出される。 In the Depacket process, the contents of the received packet are extracted. In the Sync Delay detection process, the Synchronization Delay contained in the received packet is detected. Information such as the Synchronization Delay and audio data in the packet is stored in the first RAM 22. The data stored in the first RAM 22 is read out by the audio processing unit 16.
このように、CPU15は、PCDカウント値と理想的なカウント値との差分を算出する差分算出部と、差分に基づいて基準クロック信号の周波数を調整する周波数調整部として機能する。In this way, the CPU 15 functions as a difference calculation unit that calculates the difference between the PCD count value and the ideal count value, and a frequency adjustment unit that adjusts the frequency of the reference clock signal based on the difference.
また、CPU15は、左右のイヤホン3a,3b間で音出しタイミングの調整と音ずれの確認を行う場合は、左右のイヤホン3a,3bで同期させたLR同期パケットの生成処理と、LR通信時の再生Delay値の生成処理とを行う。 In addition, when the CPU 15 adjusts the sound output timing and checks the sound delay between the left and right earphones 3a, 3b, it performs a process of generating an LR synchronization packet that synchronizes the left and right earphones 3a, 3b, and a process of generating a playback delay value during LR communication.
オーディオ処理部16は、DSP16aを有し、第1のRAM22に格納されたパケットの情報を読み出して、上述したPresentation Delayを算出する。また、オーディオ処理部16は、第1のRAM22に格納されているパケットのオーディオデータのDMA転送を行うDMAC16bを内蔵している。DMAC16bは、オーディオデータを第2のRAM23に格納する。The audio processing unit 16 has a DSP 16a, reads packet information stored in the first RAM 22, and calculates the above-mentioned Presentation Delay. The audio processing unit 16 also has a built-in DMAC 16b that performs DMA transfer of the audio data of the packets stored in the first RAM 22. The DMAC 16b stores the audio data in the second RAM 23.
また、オーディオ処理部16は、左右のイヤホン3a,3b間で音出しタイミングの調整と音ずれの確認を行う場合は、CPU15が生成した再生Delay値を用いたパケットの遅延処理と、再生Delay値を加味した音声データのMix処理を行う。 In addition, when the audio processing unit 16 adjusts the sound output timing and checks the sound delay between the left and right earphones 3a, 3b, it performs packet delay processing using the playback delay value generated by the CPU 15, and mixes the audio data taking into account the playback delay value.
クロック生成部11は、水晶発振器11aと、1/2分周器11bと、PLL回路(SysPLL)11cと、1/N分周器11dと、不等分周PCDクロック生成部11eと、1/4分周器11fとを有する。水晶発振器11aは、例えば32MHzの源発振信号を出力する。1/2分周器11bは、源発振信号の周波数を1/2に落とした分周信号を出力する。PLL回路11cは、分周信号を用いて、PLL制御されるクロック信号を生成する。クロック信号の周波数は、例えば、源発振信号の周波数よりも速い周波数の信号である。1/N分周器11dは、クロック信号の周波数を1/Nに落とした分周信号を生成する。不等分周PCDクロック生成部11eは、理想PCDカウント値とPCDカウンタ12aのカウント値との差分に応じて、PCDカウンタ12aを動作させる基準クロック信号の元になるクロック信号の周波数を可変制御する。不等分周PCDクロック生成部11eから出力されるクロック信号の周波数は、1/4分周器11fで4分周されて基準クロック信号が生成される。The clock generation unit 11 has a crystal oscillator 11a, a 1/2 frequency divider 11b, a PLL circuit (SysPLL) 11c, a 1/N frequency divider 11d, an unequal frequency division PCD clock generation unit 11e, and a 1/4 frequency divider 11f. The crystal oscillator 11a outputs a source oscillation signal of, for example, 32 MHz. The 1/2 frequency divider 11b outputs a frequency-divided signal in which the frequency of the source oscillation signal is reduced by half. The PLL circuit 11c uses the frequency-divided signal to generate a clock signal that is PLL-controlled. The frequency of the clock signal is, for example, a signal with a frequency faster than that of the source oscillation signal. The 1/N frequency divider 11d generates a frequency-divided signal in which the frequency of the clock signal is reduced by 1/N. The unequal frequency division PCD clock generating unit 11e variably controls the frequency of a clock signal that is the source of a reference clock signal that operates the PCD counter 12a, depending on the difference between the ideal PCD count value and the count value of the PCD counter 12a. The frequency of the clock signal output from the unequal frequency division PCD clock generating unit 11e is divided by four by a quarter divider 11f to generate a reference clock signal.
カウンタ部12は、PCDカウンタ12aと、分周制御レジスタ12bとを有する。分周制御レジスタ12bは、上述したCPU15で算出された、理想PCDカウント値とPCDカウンタ12aのカウント値との差分に応じた分周制御値を記憶する。上述した不等分周PCDクロック生成部11eは、分周制御レジスタ12bに記憶された分周制御値に基づいて、クロック信号の分周比を設定する。The counter unit 12 has a PCD counter 12a and a frequency division control register 12b. The frequency division control register 12b stores a frequency division control value corresponding to the difference between the ideal PCD count value and the count value of the PCD counter 12a, calculated by the CPU 15 described above. The unequal frequency division PCD clock generation unit 11e described above sets the frequency division ratio of the clock signal based on the frequency division control value stored in the frequency division control register 12b.
PCDカウンタ12aは、1/4分周器11fから出力される基準クロック信号に同期してカウント動作を行う32ビットカウンタである。PCDカウンタ12aは、マスタMから送信されてくるパケットの間隔を基準クロック信号に同期させてカウントする。PCDカウンタ12aのカウント値は、CPU15に送られるとともに、BIF17にも送られる。The PCD counter 12a is a 32-bit counter that performs counting operations in synchronization with the reference clock signal output from the 1/4 frequency divider 11f. The PCD counter 12a counts the interval between packets transmitted from the master M in synchronization with the reference clock signal. The count value of the PCD counter 12a is sent to the CPU 15 and also to the BIF 17.
BIF17は、BIF部17aと、比較器(CMP)17bと、トリガ生成部(Kicker)17cと、FIFO17dと、I2S通信部17eとを有する。比較器17bは、マスタMから送られたパケットに含まれるSynchronization Delayと、オーディオ処理部16で算出されたPresentation Delayとにより定まる再生時刻に応じた値と、PCDカウンタ12aのカウント値とを比較する。比較器17bで一致が検出されると、トリガ生成部17cはトリガ信号を出力する。The BIF 17 has a BIF section 17a, a comparator (CMP) 17b, a trigger generation section (Kicker) 17c, a FIFO 17d, and an I2S communication section 17e. The comparator 17b compares the count value of the PCD counter 12a with a value corresponding to the playback time determined by the Synchronization Delay included in the packet sent from the master M and the Presentation Delay calculated by the audio processing section 16. When the comparator 17b detects a match, the trigger generation section 17c outputs a trigger signal.
FIFO17dは、トリガ生成部17cからトリガ信号が出力されると、第2のRAM23に格納されているオーディオデータを順に出力する。FIFO17dから出力されたオーディオデータは、I2S通信部17eを介してAIF18にシリアル伝送される。When a trigger signal is output from the trigger generating unit 17c, the FIFO 17d sequentially outputs the audio data stored in the second RAM 23. The audio data output from the FIFO 17d is serially transmitted to the AIF 18 via the I2S communication unit 17e.
AIF18は、BIF17から出力されたオーディオデータについて所定の音声処理を行った後、音声出力部19に送信する。音声出力部19は、AIF8からのオーディオデータをD/A変換してスピーカ20に出力する。また、マイク21で収集した周囲の音声信号は、A/D変換してAIF18に送られる。The AIF 18 performs a predetermined audio processing on the audio data output from the BIF 17, and then transmits it to the audio output unit 19. The audio output unit 19 performs D/A conversion on the audio data from the AIF 8 and outputs it to the speaker 20. In addition, the surrounding audio signal collected by the microphone 21 is A/D converted and sent to the AIF 18.
図5はマスタM及びスレーブS1,S2が行うソフトウェア処理の機能ブロック図である。より具体的には、図5の破線よりも上側がソフトウェア処理の機能ブロックを示し、破線よりも下側はソフトウェア処理に関連するハードウェアの構成ブロックを示している。 Figure 5 is a functional block diagram of the software processing performed by master M and slaves S1 and S2. More specifically, the area above the dashed line in Figure 5 shows the functional blocks of the software processing, and the area below the dashed line shows the hardware configuration blocks related to the software processing.
図5に示すハードウェアの構成ブロックは、図4のブロック図内の一部のブロックに対応付けられている。例えば、図5のBLE-PHYカウンタ14cは、図4のLINK部14bの内部に設けられる。図5のPCDカウンタ12aは、図4のカウンタ部12の内部のPCDカウンタ12aに対応する。図5のBIF17は、図4のBIF17に対応する。なお、図5では省略しているが、実際には、BIF17とスピーカ20の間に、図4に示すように、AIF18と音声出力部19が存在する。図5のPCDラッチ部17fは、例えば図4の比較器17bに設けられている。図5のPCD制御部11gは、図4の不等分周PCDクロック生成部11eに設けられる。 The hardware configuration blocks shown in FIG. 5 correspond to some of the blocks in the block diagram of FIG. 4. For example, the BLE-PHY counter 14c in FIG. 5 is provided inside the LINK unit 14b in FIG. 4. The PCD counter 12a in FIG. 5 corresponds to the PCD counter 12a inside the counter unit 12 in FIG. 4. The BIF 17 in FIG. 5 corresponds to the BIF 17 in FIG. 4. Although omitted in FIG. 5, in reality, the AIF 18 and the audio output unit 19 are present between the BIF 17 and the speaker 20 as shown in FIG. 4. The PCD latch unit 17f in FIG. 5 is provided, for example, in the comparator 17b in FIG. 4. The PCD control unit 11g in FIG. 5 is provided in the unequal frequency division PCD clock generation unit 11e in FIG. 4.
図5に示すソフトウェア機能ブロック図は、BLE-PCDカウンタペア取得部31と、左右PCDずれ算出部32と、出力PCD算出部(同期化部)33と、Presentation Delay算出部(開始時刻算出部)34と、オーディオデコーダ35と、オーディオフレームカウンタ(第5カウンタ)36と、オーディオPCDカウンタペア取得部(カウント値取得部)37と、抜け落ち/wrap-around検出部38と、許容誤差外データ除去部39と、BLEパラメータ抽出部40と、理想PCD値算出部41と、PCD差分抽出部42と、速度成分抽出部43と、加速度成分抽出部44と、理想PCD制御値算出部45と、可能PCD制御値算出部46とを有する。これらのソフトウェア機能ブロックは、主には図4のCPU15により実行される。The software functional block diagram shown in FIG. 5 includes a BLE-PCD counter pair acquisition unit 31, a left/right PCD deviation calculation unit 32, an output PCD calculation unit (synchronization unit) 33, a Presentation Delay calculation unit (start time calculation unit) 34, an audio decoder 35, an audio frame counter (fifth counter) 36, an audio PCD counter pair acquisition unit (count value acquisition unit) 37, a dropout/wrap-around detection unit 38, an outside allowable error data removal unit 39, a BLE parameter extraction unit 40, an ideal PCD value calculation unit 41, a PCD difference extraction unit 42, a speed component extraction unit 43, an acceleration component extraction unit 44, an ideal PCD control value calculation unit 45, and a possible PCD control value calculation unit 46. These software functional blocks are mainly executed by the CPU 15 in FIG. 4.
BLE-PCDカウンタペア取得部31は、通信相手(例えばマスタM)のBLE-PHYカウンタ14cのカウント値及びPCDカウンタ12aのカウント値のペアを取得するともに、自装置(例えばスレーブS1,S2)のBLE-PHYカウンタ14cのカウント値及びPCDカウンタ12aのカウント値のペアを取得する。BLE-PHYカウンタ14cのカウント値は、マスタMとスレーブS1,S2で同じ値になるように、あるいは、カウント値の差分が同一になるように、定期的に校正処理が行われる。このため、以下の説明では、マスタ側とスレーブ側のBLE-PHYカウンタ14cのカウント値が同じであるか、差分が同一であるものとする。The BLE-PCD counter pair acquisition unit 31 acquires a pair of the count value of the BLE-PHY counter 14c and the count value of the PCD counter 12a of the communication partner (e.g., master M), and also acquires a pair of the count value of the BLE-PHY counter 14c and the count value of the PCD counter 12a of its own device (e.g., slaves S1 and S2). The count value of the BLE-PHY counter 14c is periodically calibrated so that it becomes the same value between master M and slaves S1 and S2, or so that the difference between the count values becomes the same. For this reason, in the following explanation, it is assumed that the count values of the BLE-PHY counters 14c on the master side and slave side are the same, or that the difference between them is the same.
左右PCDずれ算出部32は、マスタMのPCDカウンタ12aのカウント値と、スレーブS1,S2のPCDカウンタ12aのカウント値との差分を算出する。Presentation Delay算出部34は、通信相手(例えばマスタM)から送信されたパケットに含まれるSynchronous DelayからPresentation Delayを算出する。出力PCD算出部33は、左右PCDずれ算出部32で算出されたPCDカウンタ12aのカウント値の差分と、Presentation Delayとに基づいて、オーディオデータの再生時刻に対応するPCDカウンタ12aのカウント値を算出する。The left/right PCD deviation calculation unit 32 calculates the difference between the count value of the PCD counter 12a of the master M and the count values of the PCD counters 12a of the slaves S1 and S2. The Presentation Delay calculation unit 34 calculates the Presentation Delay from the Synchronous Delay included in the packet transmitted from the communication partner (e.g., master M). The output PCD calculation unit 33 calculates the count value of the PCD counter 12a corresponding to the playback time of the audio data based on the Presentation Delay and the difference between the count values of the PCD counter 12a calculated by the left/right PCD deviation calculation unit 32.
オーディオフレームカウンタ36は、オーディオフレームを出力した数をカウントする。オーディオPCDカウンタペア取得部37は、オーディオフレームカウンタ36がカウントアップしたタイミングで、自装置(例えばスレーブS1,S2)のPCDカウンタ12aのカウント値とBLE-PHYカウンタ14cのカウント値を取得する。オーディオPCDカウンタペア取得部37で取得されたPCDカウンタ12aとBLE-PHYカウンタ14cのカウント値は、通信相手(例えばマスタM)に送信される。The audio frame counter 36 counts the number of audio frames output. The audio PCD counter pair acquisition unit 37 acquires the count value of the PCD counter 12a and the count value of the BLE-PHY counter 14c of its own device (e.g., slaves S1 and S2) when the audio frame counter 36 counts up. The count values of the PCD counter 12a and the BLE-PHY counter 14c acquired by the audio PCD counter pair acquisition unit 37 are transmitted to the communication partner (e.g., master M).
抜け落ち/wrap-around検出部38は、PCDカウンタ12aがパケットの間隔をカウントし損なった場合に、カウント値の補間を行う。また、PCDカウンタ12aは、最大カウント値に到達すると、0からカウントし直すため、PCDカウンタ12aのカウント途中で0からカウントし直したことを検出して、パケットの間隔に対応するカウント値を算出する。The dropout/wrap-around detection unit 38 interpolates the count value when the PCD counter 12a fails to count the interval between packets. In addition, since the PCD counter 12a restarts counting from 0 when it reaches its maximum count value, the dropout/wrap-around detection unit 38 detects that the PCD counter 12a has restarted counting from 0 in the middle of counting and calculates the count value corresponding to the interval between packets.
許容誤差外データ除去部39は、PCDカウンタ12aのカウント値が想定した範囲内にない場合は、そのカウント値を除去することで、カウント値の信頼性を向上させる。The outside error tolerance data removal unit 39 improves the reliability of the count value by removing the count value of the PCD counter 12a if the count value is not within the expected range.
BLEパラメータ抽出部40は、受信されたパケットに含まれるBLEパラメータを抽出する。BLEパラメータには、例えばパラメータの間隔に関する情報が含まれている。The BLE parameter extraction unit 40 extracts BLE parameters contained in the received packet. The BLE parameters include, for example, information regarding the interval between parameters.
理想PCD値算出部41は、BLEパラメータに含まれるパケットの間隔に関する情報に基づいて、理想PCDカウント値を算出する。より具体的には、理想PCD値算出部41は、受信されたパケットに含まれるパケット間隔(connection interval)を、PHY部14aでアクセスアドレスごとにラッチし、そのときのマスタMのPCDカウント値を期待値とする。The ideal PCD value calculation unit 41 calculates an ideal PCD count value based on information about packet intervals included in the BLE parameters. More specifically, the ideal PCD value calculation unit 41 latches the packet interval (connection interval) included in the received packet for each access address in the PHY unit 14a, and sets the PCD count value of the master M at that time as the expected value.
PCD差分抽出部42は、自装置(例えばスレーブS1,S2)内のPCDカウンタ12aのカウント値をPCDラッチ部17fでラッチした値と、理想PCDカウント値とを比較して、その差分を抽出する。PCD差分抽出部42で抽出された差分に異常値が含まれる可能性もありうるため、1回ごとの差分を検出するのではなく、複数回の差分の変化率等を見て、異常な差分値は除外する。The PCD difference extraction unit 42 compares the count value of the PCD counter 12a in its own device (e.g., slaves S1 and S2) latched by the PCD latch unit 17f with the ideal PCD count value to extract the difference. Since the difference extracted by the PCD difference extraction unit 42 may contain an abnormal value, the unit does not detect the difference for each time, but rather looks at the rate of change of the difference over multiple times and excludes abnormal difference values.
例えば、N番目のconnection intervalのPCDカウント値をPCDresultNとし、N回目の理想PCDカウント値をPCDreferNとすると、以下の式(1)により、差分ΔPCDdiffを算出する。
ΔPCDdiff={(PCDresultN-PCDresult1)-(PCDreferN-PCDrefer1)}/N
…(1)
For example, if the PCD count value of the Nth connection interval is PCDresultN and the Nth ideal PCD count value is PCDreferN, the difference ΔPCDdiff is calculated by the following formula (1).
ΔPCDdiff={(PCDresultN−PCDresult1)−(PCDreferN−PCDrefer1)}/N
…(1)
図6はPCDカウント値と理想PCDカウント値の関係の一例を示す図である。図6の横軸は時刻、縦軸はPCDカウント値である。図6の白丸はPCDカウント値、図6の直線は理想PCDカウント値を示している。時刻t2におけるPCDカウント値は許容誤差外データ除外部で除外されている。直線と白丸との距離がPCDカウント値の差分を表している。PCDカウント値は、パケットを受信するたびに、多少の誤差を含んでいるが、複数回のPCDカウント値の計測結果を考慮に入れることで、信頼性の高い差分を算出できる。 Figure 6 is a diagram showing an example of the relationship between the PCD count value and the ideal PCD count value. The horizontal axis of Figure 6 is time, and the vertical axis is the PCD count value. The white circles in Figure 6 represent the PCD count values, and the straight line in Figure 6 represents the ideal PCD count value. The PCD count value at time t2 is excluded by the unit for excluding data outside the allowable error. The distance between the straight line and the white circle represents the difference in the PCD count value. The PCD count value contains some error each time a packet is received, but by taking into account the results of measuring the PCD count value multiple times, a highly reliable difference can be calculated.
速度成分抽出部43は、PCD差分抽出部42で抽出された差分が単位時間に変化した値を示す速度成分を抽出する。加速度成分抽出部44は、速度成分抽出部43で抽出された速度成分が単位時間に変化した値を示す加速度成分を抽出する。The velocity component extraction unit 43 extracts a velocity component that indicates the value by which the difference extracted by the PCD difference extraction unit 42 changes per unit time. The acceleration component extraction unit 44 extracts an acceleration component that indicates the value by which the velocity component extracted by the velocity component extraction unit 43 changes per unit time.
理想PCD制御値算出部45は、速度成分及び加速度成分がゼロに近づくようにPCD制御値を算出する。状態遷移を持たせて、オーバー気味あるいはアンダー気味のPCD制御値を算出してもよいし、場合によっては制御放棄にしてもよいし、初期状態では制御値を大きくし、初期状態以外では制御値の変化率を小さくするようなPCD制御値のゲイン調整を行ってもよい。The ideal PCD control value calculation unit 45 calculates the PCD control value so that the speed component and acceleration component approach zero. A state transition may be provided to calculate a PCD control value that is slightly over or under, or in some cases control may be abandoned, or the gain of the PCD control value may be adjusted so that the control value is large in the initial state and the rate of change of the control value is small in states other than the initial state.
可能PCD制御値算出部46は、PCD制御値が所定の範囲内に収まるように丸める処理を行う。可能PCD制御値算出部46で算出されたPCD制御値は、図4の分周制御レジスタ12bに記憶される。不等分周PCDクロック生成部11eは、PCD制御値に応じた分周比で分周されたクロックを生成する。このクロックに基づいて、1/4分周器11fは基準クロック信号を生成する。The possible PCD control value calculation unit 46 performs a rounding process so that the PCD control value falls within a predetermined range. The PCD control value calculated by the possible PCD control value calculation unit 46 is stored in the division control register 12b in FIG. 4. The unequal division PCD clock generation unit 11e generates a clock divided by a division ratio according to the PCD control value. Based on this clock, the 1/4 divider 11f generates a reference clock signal.
図7は、マスタMがスマートフォン等の情報提供端末2で、スレーブS1,S2がイヤホン3a,3bである場合の処理動作を示すフローチャートである。まず、マスタMとスレーブS1,S2との間でICO(Isychronous Connection Oriented)通信を行う(ステップS1)。ICO通信では、図3に示したように、複数のパケットのそれぞれを所定の間隔で順次送信する。 Figure 7 is a flowchart showing the processing operation when the master M is an information providing terminal 2 such as a smartphone, and the slaves S1 and S2 are earphones 3a and 3b. First, ICO (Isychronous Connection Oriented) communication is performed between the master M and the slaves S1 and S2 (step S1). In ICO communication, as shown in Figure 3, multiple packets are transmitted sequentially at a predetermined interval.
次に、マスタMとスレーブS1,S2はそれぞれ、通信相手から送信されたパケットに含まれるアクセスアドレスを取得する(ステップS2)。アクセスアドレスによって、通信相手を特定することができる。この場合は、後述するクロックリカバリ処理を行う通信相手からのパケットであるか否かを判断する。Next, the master M and the slaves S1 and S2 each obtain the access address contained in the packet sent from the communication partner (step S2). The communication partner can be identified by the access address. In this case, it is determined whether the packet is from a communication partner that performs the clock recovery process described later.
アクセスアドレスによって通信相手を特定できた場合には、クロックリカバリ処理を開始する(ステップS3)。クロックリカバリ処理では、後に詳述するように、マスタMとして機能する情報提供端末2から送信されたパケットの間隔をスレーブS1,S2のPCDカウンタ12aでカウントし、PCDカウンタ12aのカウント値が理想的なPCDカウント値に一致するように、PCDカウンタ12aを動作させる基準クロック信号の周波数を制御する処理を行う。If the communication partner can be identified by the access address, clock recovery processing is started (step S3). In the clock recovery processing, as described in detail later, the PCD counters 12a of the slaves S1 and S2 count the interval between packets transmitted from the information providing terminal 2 functioning as the master M, and the frequency of the reference clock signal that operates the PCD counters 12a is controlled so that the count value of the PCD counters 12a matches the ideal PCD count value.
次に、左のスレーブS1,S2(イヤホン3a,3b)と右のスレーブS1,S2(イヤホン3a,3b)との間で、ACL(Asynchronous Connection Less)通信を開始する(ステップS4)。ACL通信とは、左右のイヤホン3a,3b同士でパケットを送受して、再生時刻のタイミング調整と音ずれの確認を行うものである。Next, Asynchronous Connection Less (ACL) communication is started between the left slave S1, S2 (earphones 3a, 3b) and the right slave S1, S2 (earphones 3a, 3b) (step S4). ACL communication involves sending and receiving packets between the left and right earphones 3a, 3b to adjust the playback timing and check for sound lag.
まず、アクセスアドレスを取得する(ステップS5)。アクセスアドレスによって、通信相手を特定する。次に、受信されたパケットに含まれるGATT(Genetic Attribute)のプロファイルを取得する(ステップS6)。次に、取得したGATTに基づいて、マスタMかスレーブS1,S2かを判別する(ステップS7)。マスタMの場合は、図7のフローチャートを終了する。一方、スレーブS1,S2の場合は、クロックリカバリ処理を行う(ステップS8)。ステップS8のクロックリカバリ処理では、マスタMとなるイヤホン3a,3bから送られたPCDカウント値を、スレーブS1,S2となるイヤホン3a,3bで取得し、スレーブS1,S2のPCDカウント値との差分を算出し、その差分が小さくなるように、スレーブS1,S2のPCDカウンタ12aを動作させる基準クロック信号の周波数を調整する。このように、ペアリング後に行われるクロックリカバリ処理は、スレーブS1,S2のみが行う。First, an access address is obtained (step S5). The communication partner is identified by the access address. Next, a profile of the GATT (Genetic Attribute) included in the received packet is obtained (step S6). Next, based on the obtained GATT, it is determined whether it is the master M or the slaves S1 and S2 (step S7). In the case of the master M, the flowchart of FIG. 7 is terminated. On the other hand, in the case of the slaves S1 and S2, clock recovery processing is performed (step S8). In the clock recovery processing of step S8, the PCD count value sent from the earphones 3a and 3b that are the master M is obtained by the earphones 3a and 3b that are the slaves S1 and S2, and the difference with the PCD count value of the slaves S1 and S2 is calculated, and the frequency of the reference clock signal that operates the PCD counters 12a of the slaves S1 and S2 is adjusted so that the difference becomes small. In this way, the clock recovery processing performed after pairing is performed only by the slaves S1 and S2.
図8は、マスタMとスレーブSの一方が左のイヤホン3bで、他方が右のイヤホン3aである場合の処理動作を示すフローチャートである。まず、ACL通信を開始する(ステップS11)。次に、アクセスアドレスを取得する(ステップS12)。次に、GATTプロファイルを取得する(ステップS13)。次に、取得したGATTプロファイルに基づいて、マスタMかスレーブSかを判定する(ステップS14)。マスタMと判定されると図9の処理を終了し、スレーブSと判定されると図8に示すクロックリカバリ処理を行う(ステップS15)。 Figure 8 is a flowchart showing the processing operation when one of the master M and slave S is the left earphone 3b and the other is the right earphone 3a. First, ACL communication is started (step S11). Next, an access address is acquired (step S12). Next, a GATT profile is acquired (step S13). Next, based on the acquired GATT profile, it is determined whether it is the master M or the slave S (step S14). If it is determined to be the master M, the processing of Figure 9 is terminated, and if it is determined to be the slave S, the clock recovery processing shown in Figure 8 is performed (step S15).
図8の処理は、左右のイヤホン3a,3b同士で行うものであり、例えば、情報提供端末2とペアリングを行う前に、左右のイヤホン3a,3b同士でペアリング処理を行う場合や、情報提供端末2からオーディオデータの提供を受ける合間に、左右のイヤホン3a,3b同士で同期を取る目的で行われる。The processing in FIG. 8 is performed between the left and right earphones 3a, 3b, for example, when pairing the left and right earphones 3a, 3b with each other before pairing with the information providing terminal 2, or for the purpose of synchronizing the left and right earphones 3a, 3b with each other while receiving audio data from the information providing terminal 2.
図9は、図7及び図8のフローチャートにおけるクロックリカバリ処理の詳細フローチャートである。図9のフローチャートは、スレーブS1,S2(イヤホン3a,3b)が行うクロックリカバリ処理を示している。まず、PCDカウンタ12aを動作させる基準クロック信号の周波数を変更するか否かを判定する(ステップS21)。ステップS21では、マスタMが情報提供端末2で、スレーブS1,S2がイヤホン3a,3bである場合は、基準クロック信号の周波数を変更すると判定される。 Figure 9 is a detailed flowchart of the clock recovery process in the flowcharts of Figures 7 and 8. The flowchart in Figure 9 shows the clock recovery process performed by slaves S1 and S2 (earphones 3a and 3b). First, it is determined whether or not to change the frequency of the reference clock signal that operates the PCD counter 12a (step S21). In step S21, if the master M is the information providing terminal 2 and the slaves S1 and S2 are the earphones 3a and 3b, it is determined that the frequency of the reference clock signal is to be changed.
基準クロック信号の周波数を変更すると判定された場合、クロックリカバリの基準点(基準時刻)を確定する(ステップS22)。ここでは、例えば、特定のパケットが受信された時刻を基準点とする。次に、スレーブS1,S2内のPCDカウンタ12aのカウント値(PCDカウント値)を読み込む(ステップS23)。次に、PCDカウンタ12aのカウント値と、パケット間隔に基づいて算出した理想的なPCDカウント値との差分を算出する(ステップS24)。なお、ステップS24では、情報提供端末2からのオーディオデータを受信する左右のイヤホン3a,3b同士で同期化処理を行う場合、一方のイヤホン3a,3bをマスタMとして、マスタMから送信されたPCDカウント値と、スレーブSのPCDカウント値との差分を算出する。If it is determined that the frequency of the reference clock signal is to be changed, the reference point (reference time) of the clock recovery is determined (step S22). Here, for example, the time when a specific packet is received is set as the reference point. Next, the count value (PCD count value) of the PCD counter 12a in the slaves S1 and S2 is read (step S23). Next, the difference between the count value of the PCD counter 12a and the ideal PCD count value calculated based on the packet interval is calculated (step S24). In step S24, when performing synchronization processing between the left and right earphones 3a and 3b that receive audio data from the information providing terminal 2, one of the earphones 3a and 3b is set as the master M, and the difference between the PCD count value transmitted from the master M and the PCD count value of the slave S is calculated.
次に、算出された差分に基づいて、PCDカウンタ12aを動作させる基準クロック信号の周波数を調整する(ステップS25)。次に、PCDカウンタ12aのカウント値とBLE-PHYカウンタ14cのカウント値をペアにしてマスタMに送信する(ステップS26)。Next, the frequency of the reference clock signal that operates the PCD counter 12a is adjusted based on the calculated difference (step S25). Next, the count value of the PCD counter 12a and the count value of the BLE-PHY counter 14c are paired and transmitted to the master M (step S26).
次に、PCDカウンタ12aのカウント値の位相調整を行うか否かを判定する(ステップS27)。マスタMが情報提供端末2の場合は、位相調整は行わないため、図8の処理を終了する。一方、左のイヤホン3bと右のイヤホン3aで音出しタイミングを調整する場合には、位相調整を行うと判定される。Next, it is determined whether or not to perform phase adjustment of the count value of the PCD counter 12a (step S27). If the master M is the information providing terminal 2, phase adjustment is not performed, and the process of FIG. 8 is terminated. On the other hand, if the sound output timing is to be adjusted between the left earphone 3b and the right earphone 3a, it is determined that phase adjustment is to be performed.
PCDカウンタ12aのカウント値の位相調整を行うと判定された場合、マスタM(一方のイヤホン3a,3b)から送信された、PCDカウンタ12aのカウント値とBLE-PHYカウンタ14cのカウント値のペアを取得する(ステップS28)。If it is determined that a phase adjustment is to be performed on the count value of the PCD counter 12a, a pair of the count value of the PCD counter 12a and the count value of the BLE-PHY counter 14c transmitted from the master M (one of the earphones 3a, 3b) is obtained (step S28).
次に、マスタM(一方のイヤホン3a,3b)のPCDカウント値とスレーブS1,S2(他方のイヤホン3a,3b)のPCDカウント値の差分を算出する(ステップS29)。次に、算出された差分に基づいて、スレーブS1,S2のPCDカウント値を調整する(ステップS30)。Next, the difference between the PCD count value of the master M (one of the earphones 3a and 3b) and the PCD count value of the slaves S1 and S2 (the other earphones 3a and 3b) is calculated (step S29). Next, the PCD count values of the slaves S1 and S2 are adjusted based on the calculated difference (step S30).
(クロックリカバリ処理)
次に、クロックリカバリ処理について詳細に説明する。図7~図9のフローチャートに示したように、クロックリカバリ処理は、マスタMが情報提供端末2で、スレーブS1,S2がイヤホン3a,3bである場合にも行われるし、マスタMが一方のイヤホン3a,3bで、スレーブSが他方のイヤホン3a,3bである場合にも行われる。
(Clock recovery processing)
Next, the clock recovery process will be described in detail. As shown in the flowcharts of Figures 7 to 9, the clock recovery process is performed when the master M is the information providing terminal 2 and the slaves S1 and S2 are the earphones 3a and 3b, and also when the master M is one of the earphones 3a and 3b and the slave S is the other earphone 3a and 3b.
図5のブロック図の破線枠内がクロックリカバリ処理に関連する処理ブロックである。クロックリカバリ処理には、ハードウェアとしては、PCDラッチ部17fとPCD制御部11gが用いられ、ソフトウェアの機能ブロックとしては、抜け落ち/wrap-around検出部38と、許容誤差外データ除去部39と、BLEパラメータ抽出部40と、理想PCD値算出部41と、PCD差分抽出部42と、速度成分抽出部43と、加速度成分抽出部44と、理想PCD制御値算出部45と、可能PCD制御値算出部46とが設けられる。The processing blocks related to the clock recovery process are enclosed within the dashed line in the block diagram of Figure 5. For the clock recovery process, the hardware includes a PCD latch unit 17f and a PCD control unit 11g, and the software includes a dropout/wrap-around detection unit 38, an out-of-tolerance data removal unit 39, a BLE parameter extraction unit 40, an ideal PCD value calculation unit 41, a PCD difference extraction unit 42, a speed component extraction unit 43, an acceleration component extraction unit 44, an ideal PCD control value calculation unit 45, and a possible PCD control value calculation unit 46.
図10~図12はスレーブS1,S2が行うクロックリカバリ処理の手順を矢印線で示した図である。まず、図10の矢印線に示すように、例えば新たなパケットが受信された時点で、PCDカウンタ12aでカウントしていたPCDカウント値をPCDラッチ部17fでラッチする。次に、図11に示すように、ラッチされたPCDカウント値と、理想PCD値算出部41で算出された理想PCDカウント値との差分をPCD差分抽出部42で算出する。その後、速度成分抽出部43と加速度成分抽出部44の処理を経て、理想PCD制御値算出部45にて理想PCD制御値を算出する。次に、図12に示すように、可能PCD制御値算出部46にてPCD制御値を算出し、このPCD制御値に基づいて、PCDカウンタ12aを動作させる基準クロック信号の周波数を制御する。 Figures 10 to 12 are diagrams showing the procedure of the clock recovery process performed by the slaves S1 and S2 with arrows. First, as shown by the arrows in Figure 10, for example, when a new packet is received, the PCD count value counted by the PCD counter 12a is latched by the PCD latch unit 17f. Next, as shown in Figure 11, the difference between the latched PCD count value and the ideal PCD count value calculated by the ideal PCD value calculation unit 41 is calculated by the PCD difference extraction unit 42. After that, through processing by the speed component extraction unit 43 and the acceleration component extraction unit 44, the ideal PCD control value is calculated by the ideal PCD control value calculation unit 45. Next, as shown in Figure 12, the possible PCD control value calculation unit 46 calculates the PCD control value, and the frequency of the reference clock signal that operates the PCD counter 12a is controlled based on this PCD control value.
図10~図12に示すクロックリカバリ処理にて、スレーブS1,S2のPCDカウント値のずれが補正される。 The clock recovery process shown in Figures 10 to 12 corrects the discrepancy in the PCD count values of slaves S1 and S2.
クロックリカバリ処理は、マスタMが情報提供端末2の場合にスレーブS1,S2で行われる。この他、例えば左右イヤホン3a,3bの一方がマスタMの場合に、他方のイヤホン3a,3bでも行われる。この場合のクロックリカバリ処理は、図8のステップS35の処理である。イヤホン3a,3b同士で行うクロックリカバリ処理では、マスタMのイヤホン3a,3bのPCDカウント値がスレーブS1,S2である他方のイヤホン3a,3bに送られる。スレーブS1,S2は、自装置のPCDカウント値とマスタMのPCDカウント値との差分を算出し(図9のステップS14)、その差分がゼロになるように、基準クロック信号の周波数を調整する(ステップS15)。The clock recovery process is performed by the slaves S1 and S2 when the master M is the information providing terminal 2. In addition, for example, when one of the left and right earphones 3a and 3b is the master M, the clock recovery process is also performed by the other earphone 3a or 3b. The clock recovery process in this case is the process of step S35 in FIG. 8. In the clock recovery process performed between the earphones 3a and 3b, the PCD count value of the earphones 3a and 3b of the master M is sent to the other earphones 3a and 3b, which are the slaves S1 and S2. The slaves S1 and S2 calculate the difference between the PCD count value of their own device and the PCD count value of the master M (step S14 in FIG. 9), and adjust the frequency of the reference clock signal so that the difference becomes zero (step S15).
これにより、左右のイヤホン3a,3bから音声出力を開始した後に、左右のイヤホン3a,3bは、マスタMである情報提供端末2から継続してオーディオデータの提供を受けて、情報提供端末2との同期処理を行う合間に、左右のイヤホン3a,3b同士でも同期処理を行うことができる。As a result, after audio output has begun from the left and right earphones 3a, 3b, the left and right earphones 3a, 3b continue to receive audio data from the information providing terminal 2, which is the master M, and can perform synchronization processing between the left and right earphones 3a, 3b in between performing synchronization processing with the information providing terminal 2.
クロックリカバリ処理が終了すると、左右イヤホン3a,3bの音出しタイミング調整が行われる。図13は左右イヤホン3a,3bの音出しタイミング調整の概念図である。図13の例では、左のイヤホン3bと右のイヤホン3aのいずれかをマスタMとし、他方をスレーブSとし、マスタMのBLE-PHYカウンタ14cのカウント値(BLE-PHYカウント値)が2~7まで変化している間に、PCDカウンタ12aのカウント値(PCDカウント値)が100~600まで変化している。一方、スレーブS1,S2のBLE-PHYカウント値は2~7まで変化している間に、PCDカウント値は110~610まで変化している。このように、BLE-PHYカウント値は、マスタMとスレーブで一致している。その理由は、パケットを受信するたびに、スレーブS1,S2のBLE-PHYカウント値をマスタMのBLE-PHYカウント値に一致させる処理が行われるためである。これに対して、PCDカウント値はマスタMとスレーブS1,S2でずれが生じる場合がある。その理由は、マスタMやスレーブS1,S2内の水晶発振器11aから出力される源発振信号の周波数が必ずしも一致しないことから、PCDカウント値にずれが生じるためである。When the clock recovery process is completed, the sound output timing of the left and right earphones 3a and 3b is adjusted. FIG. 13 is a conceptual diagram of the sound output timing adjustment of the left and right earphones 3a and 3b. In the example of FIG. 13, either the left earphone 3b or the right earphone 3a is the master M, and the other is the slave S. While the count value (BLE-PHY count value) of the BLE-PHY counter 14c of the master M changes from 2 to 7, the count value (PCD count value) of the PCD counter 12a changes from 100 to 600. On the other hand, while the BLE-PHY count values of the slaves S1 and S2 change from 2 to 7, the PCD count value changes from 110 to 610. In this way, the BLE-PHY count values of the master M and the slaves match. This is because a process is performed to match the BLE-PHY count values of the slaves S1 and S2 to the BLE-PHY count value of the master M every time a packet is received. On the other hand, there are cases where the PCD count value is different between the master M and the slaves S1 and S2. The reason is that the frequencies of the source oscillation signals output from the crystal oscillators 11a in the master M and the slaves S1 and S2 do not necessarily match, causing a discrepancy in the PCD count value.
左右イヤホン3a,3bの音出しタイミング調整では、PCDカウント値の差分を検出し、その差分を考慮に入れた上で、どのタイミングで左右イヤホン3a,3bの音出しを行うかを決定する。図13では、BLE-PHYカウント値が7で、かつ、その後にPCDカウント値が60だけカウントアップしたときに音出しを行うことを決定した例を示している。この場合、マスタMは、BLE-PHYカウント値が7で、PCDカウント値が660のときが音出しタイミングになるのに対し、スレーブS1,S2は、BLE-PHYカウント値が7で、PCDカウント値が670のときが音出しタイミングになる。このように、マスタMとスレーブS1,S2のPCDカウント値の差分を検出して、その差分を考慮に入れて音出しタイミングを決定することで、左右イヤホン3a,3bでの音出しタイミングを一致させることができる。In adjusting the sound output timing of the left and right earphones 3a and 3b, the difference between the PCD count values is detected, and the timing at which the left and right earphones 3a and 3b will output sound is determined taking that difference into consideration. FIG. 13 shows an example in which it is determined that sound will be output when the BLE-PHY count value is 7 and the PCD count value is then counted up by 60. In this case, the sound output timing of the master M is when the BLE-PHY count value is 7 and the PCD count value is 660, whereas the sound output timing of the slaves S1 and S2 is when the BLE-PHY count value is 7 and the PCD count value is 670. In this way, by detecting the difference between the PCD count values of the master M and the slaves S1 and S2 and determining the sound output timing taking that difference into consideration, the sound output timing of the left and right earphones 3a and 3b can be matched.
図14~図18はスレーブSが行う左右イヤホン3a,3bの音出しタイミング調整と出音タイミングのずれ確認処理の手順を矢印線で示した図である。図14~図18の処理は、左右イヤホン3a,3bのいずれか一方をマスタMとし、かつ他方をスレーブSとして行われる。 Figures 14 to 18 are diagrams using arrows to show the steps of adjusting the sound output timing of the left and right earphones 3a, 3b and checking the deviation of the sound output timing, which are performed by the slave S. The processes in Figures 14 to 18 are performed with one of the left and right earphones 3a, 3b as the master M and the other as the slave S.
まず、図14の矢印線に示すように、BLE-PCDカウンタペア取得部31は、マスタMからのパケットを受信したときに、そのパケットに含まれる、マスタMのBLE-PHYカウンタ14cのカウント値及びPCDカウンタ12aのカウント値のペアを取得する。First, as shown by the arrow line in Figure 14, when the BLE-PCD counter pair acquisition unit 31 receives a packet from master M, it acquires the pair of count values of master M's BLE-PHY counter 14c and PCD counter 12a contained in the packet.
また、図15に示すように、BLE-PCDカウンタペア取得部31は、自装置(スレーブS)のBLE-PHYカウンタ14cのカウント値及びPCDカウンタ12aのカウント値のペアを取得する。左右PCDずれ計算部は、マスタMのPCDカウンタ12aのカウント値と、スレーブSのPCDカウンタ12aのカウント値との差分を算出する。本明細書では、マスタMのBLE-PHYカウンタ14cを第1カウンタ、マスタMのPCDカウンタ12aを第2カウンタと呼び、スレーブSのBLE-PHYカウンタ14cを第3カウンタ、スレーブSのPCDカウンタ12aを第4カウンタと呼ぶことがある。 Also, as shown in Figure 15, the BLE-PCD counter pair acquisition unit 31 acquires a pair of count values of the BLE-PHY counter 14c and PCD counter 12a of the own device (slave S). The left/right PCD deviation calculation unit calculates the difference between the count value of the PCD counter 12a of the master M and the count value of the PCD counter 12a of the slave S. In this specification, the BLE-PHY counter 14c of the master M may be referred to as the first counter, the PCD counter 12a of the master M as the second counter, the BLE-PHY counter 14c of the slave S as the third counter, and the PCD counter 12a of the slave S as the fourth counter.
次に、図16に示すように、Presentation Delay算出部34は、受信されたパケットに含まれるSynchronous DelayからPresentation Delayを算出する。出力PCD算出部33は、左右PCDずれ算出部32で算出されたPCDカウンタ12aのカウント値の差分と、Presentation Delayとに基づいて、オーディオデータの再生時刻に対応するPCDカウンタ12aのカウント値を算出する。そして、PCDカウンタ12aのカウント値が再生時刻に対応するカウント値に到達すると、オーディオデコーダ35でデコードされたオーディオデータは、BIF17、AIF18及び音声出力部19を介して、スピーカ20から音声出力する。16, the Presentation Delay calculation unit 34 calculates the Presentation Delay from the Synchronous Delay included in the received packet. The output PCD calculation unit 33 calculates the count value of the PCD counter 12a corresponding to the playback time of the audio data based on the Presentation Delay and the difference between the count values of the PCD counter 12a calculated by the left/right PCD deviation calculation unit 32. When the count value of the PCD counter 12a reaches the count value corresponding to the playback time, the audio data decoded by the audio decoder 35 is output as audio from the speaker 20 via the BIF 17, the AIF 18 and the audio output unit 19.
オーディオデコーダ35でデコードされたオーディオデータは、図17に示すように、オーディオフレームカウンタ36にも送られる。オーディオフレームカウンタ36は、オーディオフレームの数をカウントする。オーディオフレームカウンタ36がカウントアップしたタイミングに同期して、オーディオPCDカウンタペア取得部37は、自装置(スレーブS)のBLE-PHYカウンタ14cのカウント値とPCDカウント値とを取得する。取得されたBLE-PHYカウンタ14cのカウント値とPCDカウント値は、図18に示すようにマスタMに送信される。The audio data decoded by the audio decoder 35 is also sent to the audio frame counter 36 as shown in FIG. 17. The audio frame counter 36 counts the number of audio frames. In synchronization with the timing when the audio frame counter 36 counts up, the audio PCD counter pair acquisition unit 37 acquires the count value and PCD count value of the BLE-PHY counter 14c of its own device (slave S). The acquired count value and PCD count value of the BLE-PHY counter 14c are transmitted to the master M as shown in FIG. 18.
図14~図18に示す音出しタイミング調整と出音タイミングのずれ調整は、左右イヤホン3a,3bが情報提供端末2からオーディオデータを含むパケットを受信する合間に行われる。左右イヤホン3a,3bは、情報提供端末2からオーディオデータを含むパケットを受信する際にはスレーブS1,S2として動作する。左右イヤホン3a,3b同士で、図14~図18に示す音出しタイミング調整と出音タイミングのずれ調整を行う際には、いずれか一方のイヤホン3a,3bがマスタMとなり、他方のイヤホン3a,3bがスレーブSとなる。 The sound output timing adjustments and sound output timing offset adjustments shown in Figures 14 to 18 are performed while the left and right earphones 3a, 3b are receiving packets containing audio data from the information providing terminal 2. The left and right earphones 3a, 3b operate as slaves S1, S2 when receiving packets containing audio data from the information providing terminal 2. When the left and right earphones 3a, 3b are performing the sound output timing adjustments and sound output timing offset adjustments shown in Figures 14 to 18 between each other, one of the earphones 3a, 3b becomes the master M, and the other earphone 3a, 3b becomes the slave S.
これにより、左右のイヤホン3a,3bから音声出力を開始した後に、左右のイヤホン3a,3bは、マスタMである情報提供端末2から継続してオーディオデータの提供を受けて、情報提供端末2との同期処理を行いつつ、左右のイヤホン3a,3b同士でも同期処理を行うことができる。As a result, after audio output has started from the left and right earphones 3a, 3b, the left and right earphones 3a, 3b continue to receive audio data from the information providing terminal 2, which is the master M, and can perform synchronization processing with the information providing terminal 2 while also performing synchronization processing between the left and right earphones 3a, 3b.
このように、本実施形態では、マスタMとスレーブS1,S2がBLEに準拠したパケット通信を行う際、スレーブS1,S2でクロックリカバリ処理を行うため、マスタMとスレーブS1,S2で、時系列データを同期化することができる。クロックリカバリ処理では、マスタMとして機能する情報提供端末2と、情報提供端末2からのパケットを受信するスレーブS1,S2との間でパケット通信を行う場合は、スレーブS1,S2のPCDカウンタ12aでマスタMから送信されたパケットの間隔を計測するとともに、パケットに含まれるBLEパラメータから理想PCDカウント値を算出し、PCDカウント値と理想PCDカウント値の差分を算出する。差分に基づいてPCDカウンタ12aを動作させる基準クロック信号の周波数を制御するため、スレーブS1,S2のPCDカウント値をマスタMのPCDカウント値に一致、あるいは両者の差分を一定にすることができる。In this way, in this embodiment, when the master M and the slaves S1 and S2 perform packet communication conforming to BLE, the slaves S1 and S2 perform clock recovery processing, so that the master M and the slaves S1 and S2 can synchronize their time series data. In the clock recovery processing, when packet communication is performed between the information providing terminal 2 functioning as the master M and the slaves S1 and S2 receiving packets from the information providing terminal 2, the PCD counters 12a of the slaves S1 and S2 measure the interval between packets transmitted from the master M, calculate the ideal PCD count value from the BLE parameters included in the packets, and calculate the difference between the PCD count value and the ideal PCD count value. The frequency of the reference clock signal that operates the PCD counter 12a is controlled based on the difference, so that the PCD count value of the slaves S1 and S2 can be made to match the PCD count value of the master M, or the difference between the two can be made constant.
本実施形態による同期装置1は、このようなクロックリカバリ処理を、スマートフォン等の情報提供端末2をマスタMとして、左右のイヤホン3a,3bをスレーブS1,S2として行った後、左右イヤホン3a,3bの音出しタイミングの調整を行う。この音出しタイミングの調整では、パケットに含まれるSynchronous Delayと、Synchronous Delayから算出されるPresentation Delayと、PCDカウント値と、その差分情報とを用いて、オーディオデータの再生時刻をマスタMとスレーブS1,S2で合わせることができる。The synchronization device 1 according to the present embodiment performs such clock recovery processing with the information providing terminal 2 such as a smartphone as the master M and the left and right earphones 3a, 3b as the slaves S1, S2, and then adjusts the sound output timing of the left and right earphones 3a, 3b. In adjusting the sound output timing, the playback time of the audio data can be synchronized between the master M and the slaves S1, S2 using the Synchronous Delay included in the packet, the Presentation Delay calculated from the Synchronous Delay, the PCD count value, and the difference information thereof.
また、いったん音声出力を開始した後、一方のイヤホン3a,3bをマスタMとし、他方のイヤホン3a,3bをスレーブS1,S2として、出音タイミングのずれの確認及び調整を行うことができる。ここでは、マスタMとスレーブS1,S2で、BLE-PHYカウント値とPCDカウント値をペアにして交換し、例えばスレーブS1,S2にて、PCDカウント値の差分を検出する。そして、その差分に応じて、音声出力のタイミングを調整する。これにより、左右イヤホン3a,3bのPCDカウント値が時間の経過とともにずれたとしたとしても、音声出力タイミングを左右イヤホン3a,3bで一致させることができる。 Once audio output has started, one of the earphones 3a, 3b can be set as the master M and the other earphones 3a, 3b as the slaves S1, S2 to check and adjust the timing discrepancy of the sound output. Here, the master M and the slaves S1, S2 exchange pairs of BLE-PHY count values and PCD count values, and the slaves S1, S2 detect the difference in the PCD count values, for example. The timing of the audio output is then adjusted according to that difference. This makes it possible to match the timing of the audio output between the left and right earphones 3a, 3b, even if the PCD count values of the left and right earphones 3a, 3b shift over time.
上述した実施形態で説明した同期装置1の少なくとも一部は、ハードウェアで構成してもよいし、ソフトウェアで構成してもよい。ソフトウェアで構成する場合には、同期装置1の少なくとも一部の機能を実現するプログラムをフレキシブルディスクやCD-ROM等の記録媒体に収納し、コンピュータに読み込ませて実行させてもよい。記録媒体は、磁気ディスクや光ディスク等の着脱可能なものに限定されず、ハードディスク装置やメモリなどの固定型の記録媒体でもよい。At least a part of the synchronization device 1 described in the above embodiment may be configured with hardware or software. If configured with software, a program that realizes at least a part of the functions of the synchronization device 1 may be stored on a recording medium such as a flexible disk or CD-ROM, and read and executed by a computer. The recording medium is not limited to removable ones such as magnetic disks and optical disks, but may be fixed recording media such as a hard disk drive or memory.
また、同期装置1の少なくとも一部の機能を実現するプログラムを、インターネット等の通信回線(無線通信も含む)を介して頒布してもよい。さらに、同プログラムを暗号化したり、変調をかけたり、圧縮した状態で、インターネット等の有線回線や無線回線を介して、あるいは記録媒体に収納して頒布してもよい。In addition, a program that realizes at least a part of the functions of the synchronization device 1 may be distributed via a communication line (including wireless communication) such as the Internet. Furthermore, the program may be encrypted, modulated, or compressed and distributed via a wired line or wireless line such as the Internet, or stored on a recording medium.
なお、本技術は以下のような構成を取ることができる。
(1)マスタとスレーブとの間で無線通信により時系列データを同期させる同期装置であって、
前記マスタは、
複数のパケットを生成するパケット生成部と、
前記複数のパケット中の任意のパケットを所定の間隔で前記スレーブに送信するパケット送信部と、を有し、
前記スレーブは、
前記任意のパケットを受信するパケット受信部と、
基準クロック信号に基づいて、前記任意のパケットの間隔をカウントするカウンタと、を備え、
前記カウンタのカウント値に基づいて、前記基準クロック信号の周波数を調整することで、前記マスタと前記複数のスレーブ間での同期を図る、同期装置。
(2)マスタと複数のスレーブとの間で無線通信により時系列データを同期させる同期装置であって、
前記マスタは、
複数のパケットを生成するパケット生成部と、
前記複数のパケット中の任意のパケットを所定の間隔で前記複数のスレーブのうち一つに送信するパケット送信部と、を有し、
前記複数のスレーブのうちの一つは、
前記任意のパケットを受信するパケット受信部と、
基準クロック信号に基づいて、前記任意のパケットの間隔をカウントするカウンタと、を備え、
前記カウンタのカウント値に基づいて、前記基準クロック信号の周波数を調整することで、前記マスタと前記複数のスレーブ間での同期を図る、同期装置。
(3)前記複数のパケットは、パケットの間隔に関する情報と時系列データとを含んでおり、
前記パケット受信部で新たなパケットが受信されるたびに、前記カウンタのカウント値をラッチするラッチ部と、
前記パケット受信部で受信されたパケットに含まれるパケットの間隔に関する情報を抽出する情報抽出部と、
前記抽出されたパケットの間隔に関する情報に基づいて、理想的なカウント値を算出する理想カウント値算出部と、
前記ラッチ部でラッチされた前記カウンタのカウント値と、前記理想的なカウント値との差分を算出する差分算出部と、
前記差分に基づいて、前記基準クロック信号の周波数を調整する周波数調整部と、を備える、(1)又は(2)に記載の同期装置。
(4)前記周波数調整部は、前記ラッチ部でラッチされた前記カウンタのカウント値が前記理想的なカウント値よりも大きければ、前記基準クロック信号の周波数を低くし、前記ラッチ部でラッチされた前記カウンタのカウント値が前記理想的なカウント値よりも小さければ、前記基準クロック信号の周波数を高くする、(3)に記載の同期装置。
(5)前記スレーブは、
前記差分の時間変化に基づいて、前記差分が所定値以下になるように前記基準クロック信号の周波数を調整するための制御値を算出する制御値算出部を有し、
前記周波数調整部は、前記制御値に基づいて、前記基準クロック信号の周波数を調整する、(3)又は(4)に記載の同期装置。
(6)前記スレーブは、
前記差分の単位時間当たりの変化値を示す速度成分を抽出する速度成分抽出部と、
前記速度成分の単位時間当たりの変化値を示す加速度成分を抽出する加速度成分抽出部と、を有し、
前記制御値算出部は、前記速度成分及び前記加速度成分に基づいて、前記制御値を算出する、(5)に記載の同期装置。
(7)前記スレーブは、前記制御値のばらつきが所定範囲内に収まるように調整する制御値調整部を有し、
前記周波数調整部は、前記制御値調整部で調整された制御値に基づいて、前記基準クロック信号の周波数を調整する、(5)又は(6)に記載の同期装置。
(8)前記パケット送信部は、前記複数のパケットを含むパケット群を、予め定めた間隔で複数回送信し、
前記スレーブ内の前記カウンタは、前記パケット群に含まれる各パケットの間隔をそれぞれ計測し、
前記スレーブは、
前記パケット群に含まれる各パケットの間隔のうち、カウント値を計測し損ねたパケットの間隔が存在する場合には、カウント値を補間する補間部と、
前記カウンタでカウントしたカウント値のうち、許容範囲を逸脱しているカウント値を除去する除外部と、を有し、
前記差分算出部は、前記補間部による補間と、前記除外部による除外とを行ったカウント値と、前記理想的なカウント値との差分を算出する、(3)乃至(7)のいずれか一項に記載の同期装置。
(9)前記時系列データは、生体情報を含むデータ又はオーディオデータである、(1)乃至(8)のいずれか一項に記載の同期装置。
(10)前記複数のスレーブのそれぞれにおける前記パケット受信部は、前記マスタとそれぞれ異なるタイミングで無線通信を行って、前記マスタから送信された固有の時系列データを含む前記複数のパケットを受信する、(3)乃至(9)のいずれか一項に記載の同期装置。
(11)前記マスタは、オーディオデータを記憶する記憶部を有する情報提供端末であり、
前記情報提供端末とそれぞれ異なるタイミングで無線通信を行う2台の前記スレーブを備え、
前記2台のスレーブのうち一方は前記マスタから送信された左耳用のオーディオデータを再生するイヤホンであり、他方は前記マスタから送信された右耳用のオーディオデータを再生するイヤホンである、(1)乃至(10)のいずれか一項に記載の同期装置。
(12)マスタとスレーブとの間で無線通信により時系列データを同期させる同期装置であって、
前記マスタは、
第1基準クロック信号に基づいてカウント動作を行う第1カウンタと、
第2基準クロック信号に基づいて、情報提供端末から送信された複数のパケットの間隔をカウントする第2カウンタと、
前記第1カウンタのカウント値と前記第2カウンタのカウント値とを含むパケットを前記スレーブに送信する第1パケット送信部と、を有し、
前記スレーブは、
第3基準クロック信号に基づいてカウント動作を行う第3カウンタと、
第4基準クロック信号に基づいて、前記情報提供端末から送信された前記複数のパケットの間隔をカウントする第4カウンタと、
前記第3カウンタのカウント値と前記第4カウンタのカウント値とを含むパケットを前記マスタに送信する第2パケット送信部と、
前記マスタから送信された前記第2カウンタのカウント値と、前記第4カウンタのカウント値とに基づいて、前記第4基準クロック信号の周波数を調整する周波数調整部と、を有する、同期装置。
(13)前記マスタから送信された前記第2カウンタのカウント値と、前記第4カウンタのカウント値との差分を算出する差分算出部を備え、
前記周波数調整部は、前記差分に基づいて、前記第4基準クロック信号の周波数を調整する、(12)に記載の同期装置。
(14)前記第1カウンタのカウント値と、前記第3カウンタのカウント値とは、前記マスタと前記スレーブとでパケット通信を行うたびに、同じ値になるか、又は差分が同一になるように調整される、(12)又は(13)に記載の同期装置。
(15)前記スレーブは、
前記情報提供端末から送信された複数のパケットに含まれる送信終了時刻に関する情報を取得する終了時刻情報取得部と、
前記送信終了時刻に関する情報に基づいて、時系列データの再生又は処理の開始時刻に関する情報を算出する開始時刻算出部と、
前記第3カウンタのカウント値と、前記周波数調整部で前記第4基準クロック信号の周波数を調整後の前記第4カウンタのカウント値と、前記周波数調整部で前記第4基準クロック信号の周波数を調整後の前記差分算出部で算出された前記差分と、前記開始時刻に関する情報と、に基づいて、時系列データの再生又は処理を行う時刻を前記マスタとの間で同期させる同期化部と、を有する(13)に記載の同期装置。
(16)前記スレーブは、
再生又は処理された時系列データの区切りをカウントする第5カウンタと、
前記第5カウンタがカウントアップするたびに、前記第3カウンタのカウント値と、前記第4カウンタのカウント値とを取得するカウント値取得部と、を備え、
前記第2パケット送信部は、前記カウント値取得部で取得された前記第3カウンタのカウント値と、前記第4カウンタのカウント値とを前記マスタに送信する、(12)乃至(15)のいずれか一項に記載の同期装置。
(17)前記時系列データは、オーディオデータであり、
前記第5カウンタは、前記オーディオデータのフレーム数をカウントする、(16)に記載の同期装置。
(18)前記周波数調整部は、前記マスタ及び前記スレーブがパケット通信を開始する際に、前記差分に基づいて前記第4基準クロック信号の周波数を調整し、
前記同期化部は、前記マスタ及び前記スレーブが前記情報提供端末との間でパケット通信を行う合間に、時系列データの再生又は処理を行う時刻を前記マスタとの間で同期させる、(12)乃至(17)のいずれか一項に記載の同期装置。
(19)前記マスタ及び前記スレーブの一方は、前記情報提供端末から左耳用のオーディオデータを受信する第1イヤホンであり、他方は、前記情報提供端末から前記第1イヤホンとは別個のタイミングで右耳用のオーディオデータを受信する第2イヤホンである、(12)乃至(18)のいずれか一項に記載の同期装置。
(20)前記第1イヤホン及び前記第2イヤホンのそれぞれが、互いにパケットを送受して、前記第1イヤホン及び前記第2イヤホンのそれぞれにおいて受信されたパケットに含まれるプロファイル情報にて、自装置が前記マスタ又は前記スレーブであることを確定するマスタ/スレーブ確定部を有する、(19)に記載の同期装置。
(21)前記マスタと前記スレーブとは、Bluetooth(登録商標) Low Energyの規格に準拠したパケット通信を行う、(1)乃至(20)のいずれか一項に記載の同期装置。
(22)マスタと複数のスレーブとの間で無線通信により時系列データを同期させる同期方法であって、
前記マスタは、
複数のパケットを生成し、
前記複数のパケット中の任意のパケットを所定の間隔で前記複数のスレーブのうち一つに送信し、
前記複数のスレーブのうち一つは、
前記任意のパケットを受信し、
基準クロック信号に基づいて、前記任意のパケットの間隔をカウンタでカウントし、
前記カウンタのカウント値に基づいて、前記基準クロック信号の周波数を調整することで、前記マスタと前記複数のスレーブ間での同期を図る、同期方法。
(23)マスタとスレーブとの間で無線通信により時系列データを同期させる同期方法であって、
前記マスタは、
第1基準クロック信号に基づいて第1カウンタでカウント動作を行い、
第2基準クロック信号に基づいて、情報提供端末から送信された複数のパケットの間隔を第2カウンタでカウントし、
前記第1カウンタのカウント値と前記第2カウンタのカウント値とを含むパケットを前記スレーブに送信し、
前記スレーブは、
第3基準クロック信号に基づいて第3カウンタでカウント動作を行い、
第4基準クロック信号に基づいて、前記情報提供端末から送信された前記複数のパケットの間隔を第4カウンタでカウントし、
前記第3カウンタのカウント値と前記第4カウンタのカウント値とを含むパケットを前記マスタに送信し、
前記マスタから送信された前記第2カウンタのカウント値と、前記第4カウンタのカウント値とに基づいて、前記第4基準クロック信号の周波数を調整する、同期方法。
The present technology can be configured as follows.
(1) A synchronization device that synchronizes time-series data between a master and a slave by wireless communication, comprising:
The master is
a packet generator for generating a plurality of packets;
a packet transmission unit that transmits an arbitrary packet of the plurality of packets to the slave at a predetermined interval;
The slave is
A packet receiving unit for receiving the arbitrary packet;
a counter that counts the interval between the arbitrary packets based on a reference clock signal;
A synchronization device that adjusts a frequency of the reference clock signal based on the count value of the counter, thereby achieving synchronization between the master and the multiple slaves.
(2) A synchronization device that synchronizes time-series data between a master and a plurality of slaves by wireless communication, comprising:
The master is
a packet generator for generating a plurality of packets;
a packet transmission unit that transmits any one of the plurality of packets to one of the plurality of slaves at a predetermined interval;
One of the plurality of slaves
A packet receiving unit for receiving the arbitrary packet;
a counter that counts the interval between the arbitrary packets based on a reference clock signal;
A synchronization device that adjusts a frequency of the reference clock signal based on the count value of the counter, thereby achieving synchronization between the master and the multiple slaves.
(3) the plurality of packets include information regarding packet intervals and time series data;
a latch unit that latches the count value of the counter every time a new packet is received by the packet receiving unit;
an information extraction unit that extracts information regarding a packet interval included in the packet received by the packet receiving unit;
an ideal count value calculation unit that calculates an ideal count value based on the extracted information about the interval between packets;
a difference calculation unit that calculates a difference between the count value of the counter latched by the latch unit and the ideal count value;
and a frequency adjustment unit that adjusts a frequency of the reference clock signal based on the difference.
(4) The synchronization device described in (3), wherein the frequency adjustment unit lowers the frequency of the reference clock signal if the count value of the counter latched by the latch unit is greater than the ideal count value, and increases the frequency of the reference clock signal if the count value of the counter latched by the latch unit is smaller than the ideal count value.
(5) The slave is
a control value calculation unit that calculates a control value for adjusting the frequency of the reference clock signal based on a change in the difference over time so that the difference becomes equal to or smaller than a predetermined value;
The synchronization device according to (3) or (4), wherein the frequency adjustment unit adjusts the frequency of the reference clock signal based on the control value.
(6) The slave is
a speed component extracting unit that extracts a speed component indicating a change value per unit time of the difference;
an acceleration component extraction unit that extracts an acceleration component that indicates a change value per unit time of the velocity component,
The synchronization device according to (5), wherein the control value calculation unit calculates the control value based on the velocity component and the acceleration component.
(7) The slave has a control value adjustment unit that adjusts the control value so that the variation in the control value falls within a predetermined range,
The synchronization device according to (5) or (6), wherein the frequency adjustment unit adjusts the frequency of the reference clock signal based on the control value adjusted by the control value adjustment unit.
(8) The packet transmission unit transmits a packet group including the plurality of packets a plurality of times at a predetermined interval;
the counter in the slave measures an interval between each packet included in the packet group;
The slave is
an interpolation unit that interpolates count values when there is a packet interval whose count value has not been measured among the intervals between packets included in the packet group;
an exclusion unit that excludes count values that are outside a tolerance range from among the count values counted by the counter;
The synchronization device according to any one of (3) to (7), wherein the difference calculation unit calculates the difference between a count value obtained by interpolation by the interpolation unit and exclusion by the exclusion unit and the ideal count value.
(9) The synchronization device according to any one of (1) to (8), wherein the time series data is data including biometric information or audio data.
(10) A synchronization device described in any one of (3) to (9), wherein the packet receiving unit in each of the plurality of slaves performs wireless communication with the master at different times to receive the plurality of packets including unique time series data transmitted from the master.
(11) The master is an information providing terminal having a storage unit for storing audio data,
two slaves that wirelessly communicate with the information providing terminal at different times,
The synchronization device according to any one of (1) to (10), wherein one of the two slaves is an earphone that reproduces audio data for the left ear transmitted from the master, and the other is an earphone that reproduces audio data for the right ear transmitted from the master.
(12) A synchronization device that synchronizes time-series data between a master and a slave by wireless communication, comprising:
The master is
a first counter that performs a counting operation based on a first reference clock signal;
a second counter that counts intervals between a plurality of packets transmitted from the information providing terminal based on a second reference clock signal;
a first packet transmitting unit configured to transmit a packet including the count value of the first counter and the count value of the second counter to the slave;
The slave is
a third counter that performs a counting operation based on a third reference clock signal;
a fourth counter that counts intervals between the plurality of packets transmitted from the information providing terminal based on a fourth reference clock signal;
a second packet transmitting unit configured to transmit a packet including the count value of the third counter and the count value of the fourth counter to the master;
a frequency adjusting unit that adjusts a frequency of the fourth reference clock signal based on the count value of the second counter and the count value of the fourth counter transmitted from the master.
(13) A difference calculation unit is provided that calculates a difference between the count value of the second counter transmitted from the master and the count value of the fourth counter,
The synchronization device according to (12), wherein the frequency adjustment unit adjusts the frequency of the fourth reference clock signal based on the difference.
(14) A synchronization device described in (12) or (13), in which the count value of the first counter and the count value of the third counter are adjusted so that they become the same or the difference between them becomes the same each time packet communication is performed between the master and the slave.
(15) The slave is
an end time information acquiring unit that acquires information regarding a transmission end time included in a plurality of packets transmitted from the information providing terminal;
a start time calculation unit that calculates information regarding a start time of reproduction or processing of the time series data based on the information regarding the transmission end time;
and a synchronization unit that synchronizes with the master a time at which time series data is reproduced or processed based on a count value of the third counter, a count value of the fourth counter after the frequency of the fourth reference clock signal has been adjusted by the frequency adjustment unit, the difference calculated by the difference calculation unit after the frequency of the fourth reference clock signal has been adjusted by the frequency adjustment unit, and information regarding the start time.
(16) The slave is
a fifth counter for counting divisions of the reproduced or processed time series data;
a count value acquiring unit that acquires a count value of the third counter and a count value of the fourth counter every time the fifth counter counts up,
The synchronization device described in any one of (12) to (15), wherein the second packet transmitting unit transmits the count value of the third counter and the count value of the fourth counter acquired by the count value acquiring unit to the master.
(17) The time series data is audio data,
The synchronization device according to (16), wherein the fifth counter counts the number of frames of the audio data.
(18) The frequency adjusting unit adjusts a frequency of the fourth reference clock signal based on the difference when the master and the slave start packet communication.
The synchronization device according to any one of (12) to (17), wherein the synchronization unit synchronizes with the master the time at which the master and the slave play or process time series data between packet communication between the master and the information providing terminal.
(19) A synchronization device described in any one of (12) to (18), wherein one of the master and the slave is a first earphone that receives audio data for the left ear from the information providing terminal, and the other is a second earphone that receives audio data for the right ear from the information providing terminal at a timing separate from that of the first earphone.
(20) The synchronization device described in (19), wherein each of the first earphone and the second earphone transmits and receives packets to each other, and has a master/slave determination unit that determines whether the first earphone and the second earphone are the master or the slave based on profile information included in the packets received by each of the first earphone and the second earphone.
(21) The synchronization device according to any one of (1) to (20), wherein the master and the slave perform packet communication in compliance with the Bluetooth (registered trademark) Low Energy standard.
(22) A synchronization method for synchronizing time series data between a master and a plurality of slaves by wireless communication, comprising:
The master is
Generate multiple packets,
transmitting any packet among the plurality of packets to one of the plurality of slaves at a predetermined interval;
One of the plurality of slaves is
receiving said any packet;
Counting the interval between the arbitrary packets with a counter based on a reference clock signal;
A synchronization method for achieving synchronization between the master and the plurality of slaves by adjusting a frequency of the reference clock signal based on a count value of the counter.
(23) A synchronization method for synchronizing time series data between a master and a slave by wireless communication, comprising:
The master is
A first counter performs a counting operation based on a first reference clock signal;
counting intervals between a plurality of packets transmitted from the information providing terminal with a second counter based on a second reference clock signal;
Transmitting a packet including the count value of the first counter and the count value of the second counter to the slave;
The slave is
A third counter performs a counting operation based on a third reference clock signal;
counting intervals between the plurality of packets transmitted from the information providing terminal by a fourth counter based on a fourth reference clock signal;
Transmitting a packet including the count value of the third counter and the count value of the fourth counter to the master;
A synchronization method comprising: adjusting a frequency of the fourth reference clock signal based on a count value of the second counter and a count value of the fourth counter transmitted from the master.
本開示の態様は、上述した個々の実施形態に限定されるものではなく、当業者が想到しうる種々の変形も含むものであり、本開示の効果も上述した内容に限定されない。すなわち、特許請求の範囲に規定された内容およびその均等物から導き出される本開示の概念的な思想と趣旨を逸脱しない範囲で種々の追加、変更および部分的削除が可能である。The aspects of the present disclosure are not limited to the individual embodiments described above, but include various modifications that may be conceived by a person skilled in the art, and the effects of the present disclosure are not limited to the above. In other words, various additions, modifications, and partial deletions are possible within the scope of the conceptual idea and intent of the present disclosure derived from the contents defined in the claims and their equivalents.
1 同期装置、2 情報提供端末、3a、3b イヤホン、11 クロック生成部、11a 水晶発振器、11b 1/2分周器、11c PLL回路、11d 1/N分周器、11e 不等分周PCDクロック生成部、11f 1/4分周器、12 カウンタ部、12a PCDカウンタ、13 RF部、14 ベースバンド部、14a PHY部、14b LINK部、15 CPU、16 オーディオ処理部、16a DSP、16b DMAC、17 BIF、17a BIF部、17b 比較器、17c トリガ生成部、17d FIFO、17e I2S通信部、18 オーディオインタフェース部、19 音声出力部、20 スピーカ、21 マイク、31 BLE-PCDカウンタペア取得部、32 左右PCDずれ算出部、33 出力PCD算出部、34 Presentation Delay算出部、35 オーディオデコーダ、36 オーディオフレームカウンタ、37 オーディオPCDカウンタペア取得部、38 抜け落ち/wrap around検出部、39 許容誤差外データ除去部、40 BLEパラメータ抽出部、41 理想PCD値算出部、42 PCD差分抽出部、43 速度成分抽出部、44 加速度成分抽出部、45 理想PCD制御値算出部、46 可能PCD制御値算出部1 Synchronization device, 2 Information providing terminal, 3a, 3b Earphone, 11 Clock generation unit, 11a Crystal oscillator, 11b 1/2 frequency divider, 11c PLL circuit, 11d 1/N frequency divider, 11e Unequal frequency division PCD clock generation unit, 11f 1/4 frequency divider, 12 Counter unit, 12a PCD counter, 13 RF unit, 14 Baseband unit, 14a PHY unit, 14b LINK unit, 15 CPU, 16 Audio processing unit, 16a DSP, 16b DMAC, 17 BIF, 17a BIF unit, 17b Comparator, 17c Trigger generation unit, 17d FIFO, 17e I2S communication unit, 18 Audio interface unit, 19 Audio output unit, 20 Speaker, 21 Microphone, 31 BLE-PCD counter pair acquisition unit, 32 left/right PCD deviation calculation unit, 33 output PCD calculation unit, 34 presentation delay calculation unit, 35 audio decoder, 36 audio frame counter, 37 audio PCD counter pair acquisition unit, 38 dropout/wrap around detection unit, 39 outside allowable error data removal unit, 40 BLE parameter extraction unit, 41 ideal PCD value calculation unit, 42 PCD difference extraction unit, 43 velocity component extraction unit, 44 acceleration component extraction unit, 45 ideal PCD control value calculation unit, 46 possible PCD control value calculation unit
Claims (11)
前記マスタは、
第1基準クロック信号に基づいてカウント動作を行う第1カウンタと、
第2基準クロック信号に基づいて、情報提供端末から送信された複数のパケットの間隔をカウントする第2カウンタと、
前記第1カウンタのカウント値と前記第2カウンタのカウント値とを含むパケットを前記スレーブに送信する第1パケット送信部と、を有し、
前記スレーブは、
第3基準クロック信号に基づいてカウント動作を行う第3カウンタと、
第4基準クロック信号に基づいて、前記情報提供端末から送信された前記複数のパケットの間隔をカウントする第4カウンタと、
前記第3カウンタのカウント値と前記第4カウンタのカウント値とを含むパケットを前記マスタに送信する第2パケット送信部と、
前記マスタから送信された前記第2カウンタのカウント値と、前記第4カウンタのカウント値とに基づいて、前記第4基準クロック信号の周波数を調整する周波数調整部と、を有する、
同期装置。 A synchronization device that synchronizes time series data between a master and a slave by wireless communication,
The master is
a first counter that performs a counting operation based on a first reference clock signal;
a second counter that counts intervals between a plurality of packets transmitted from the information providing terminal based on a second reference clock signal;
a first packet transmitting unit configured to transmit a packet including the count value of the first counter and the count value of the second counter to the slave;
The slave is
a third counter that performs a counting operation based on a third reference clock signal;
a fourth counter that counts intervals between the plurality of packets transmitted from the information providing terminal based on a fourth reference clock signal;
a second packet transmitting unit configured to transmit a packet including the count value of the third counter and the count value of the fourth counter to the master;
a frequency adjusting unit that adjusts a frequency of the fourth reference clock signal based on a count value of the second counter and a count value of the fourth counter transmitted from the master.
Synchronization device.
前記周波数調整部は、前記差分に基づいて、前記第4基準クロック信号の周波数を調整する、
請求項1に記載の同期装置。 a difference calculation unit that calculates a difference between the count value of the second counter transmitted from the master and the count value of the fourth counter,
The frequency adjusting unit adjusts the frequency of the fourth reference clock signal based on the difference.
The synchronization device according to claim 1 .
請求項1又は2に記載の同期装置。 The count value of the first counter and the count value of the third counter are adjusted so that they become the same or the difference between them becomes the same every time packet communication is performed between the master and the slave.
3. A synchronization device according to claim 1 or 2 .
前記情報提供端末から送信された複数のパケットに含まれる送信終了時刻に関する情報を取得する終了時刻情報取得部と、
前記送信終了時刻に関する情報に基づいて、時系列データの再生又は処理の開始時刻に関する情報を算出する開始時刻算出部と、
前記第3カウンタのカウント値と、前記周波数調整部で前記第4基準クロック信号の周波数を調整後の前記第4カウンタのカウント値と、前記周波数調整部で前記第4基準クロック信号の周波数を調整後の前記差分算出部で算出された前記差分と、前記開始時刻に関する情報と、に基づいて、時系列データの再生又は処理を行う時刻を前記マスタとの間で同期させる同期化部と、を有する、
請求項2に記載の同期装置。 The slave is
an end time information acquiring unit that acquires information regarding a transmission end time included in a plurality of packets transmitted from the information providing terminal;
a start time calculation unit that calculates information regarding a start time of reproduction or processing of the time series data based on the information regarding the transmission end time;
a synchronization unit that synchronizes with the master a time at which the time series data is reproduced or processed, based on a count value of the third counter, a count value of the fourth counter after the frequency of the fourth reference clock signal has been adjusted by the frequency adjustment unit, the difference calculated by the difference calculation unit after the frequency of the fourth reference clock signal has been adjusted by the frequency adjustment unit, and information regarding the start time .
The synchronization device according to claim 2 .
再生又は処理された時系列データの区切りをカウントする第5カウンタと、
前記第5カウンタがカウントアップするたびに、前記第3カウンタのカウント値と、前記第4カウンタのカウント値とを取得するカウント値取得部と、を備え、
前記第2パケット送信部は、前記カウント値取得部で取得された前記第3カウンタのカウント値と、前記第4カウンタのカウント値とを前記マスタに送信する、
請求項1乃至4のいずれか一項に記載の同期装置。 The slave is
a fifth counter for counting divisions of the reproduced or processed time series data;
a count value acquiring unit that acquires a count value of the third counter and a count value of the fourth counter every time the fifth counter counts up,
the second packet transmitting unit transmits the count value of the third counter and the count value of the fourth counter acquired by the count value acquiring unit to the master;
A synchronization device according to any one of claims 1 to 4 .
前記第5カウンタは、前記オーディオデータのフレーム数をカウントする、
請求項5に記載の同期装置。 the time series data is audio data,
the fifth counter counts the number of frames of the audio data;
The synchronization device according to claim 5 .
前記同期化部は、前記マスタ及び前記スレーブが前記情報提供端末との間でパケット通信を行う合間に、時系列データの再生又は処理を行う時刻を前記マスタとの間で同期させる、
請求項4に記載の同期装置。 the frequency adjusting unit adjusts a frequency of the fourth reference clock signal based on the difference when the master and the slave start packet communication;
the synchronization unit synchronizes with the master a time for reproducing or processing time-series data during a time interval between the master and the slave performing packet communication with the information providing terminal;
5. The synchronization device according to claim 4 .
請求項1乃至7のいずれか一項に記載の同期装置。 one of the master and the slave is a first earphone that receives audio data for a left ear from the information providing terminal, and the other is a second earphone that receives audio data for a right ear from the information providing terminal at a timing separate from that of the first earphone;
A synchronization device according to any one of the preceding claims.
請求項8に記載の同期装置。 Each of the first earphone and the second earphone transmits and receives packets to each other, and has a master/slave determination unit that determines whether the first earphone or the second earphone is the master or the slave based on profile information included in the packets received by each of the first earphone and the second earphone.
The synchronization device according to claim 8 .
請求項1乃至9のいずれか一項に記載の同期装置。 The master and the slave perform packet communication in accordance with the Bluetooth (registered trademark) Low Energy standard.
A synchronization device according to any one of the preceding claims.
前記マスタは、
第1基準クロック信号に基づいて第1カウンタでカウント動作を行い、
第2基準クロック信号に基づいて、情報提供端末から送信された複数のパケットの間隔を第2カウンタでカウントし、
前記第1カウンタのカウント値と前記第2カウンタのカウント値とを含むパケットを前記スレーブに送信し、
前記スレーブは、
第3基準クロック信号に基づいて第3カウンタでカウント動作を行い、
第4基準クロック信号に基づいて、前記情報提供端末から送信された前記複数のパケットの間隔を第4カウンタでカウントし、
前記第3カウンタのカウント値と前記第4カウンタのカウント値とを含むパケットを前記マスタに送信し、
前記マスタから送信された前記第2カウンタのカウント値と、前記第4カウンタのカウント値とに基づいて、前記第4基準クロック信号の周波数を調整する、
同期方法。 A synchronization method for synchronizing time series data between a master and a slave by wireless communication, comprising the steps of:
The master is
A first counter performs a counting operation based on a first reference clock signal;
counting intervals between a plurality of packets transmitted from the information providing terminal with a second counter based on a second reference clock signal;
Transmitting a packet including the count value of the first counter and the count value of the second counter to the slave;
The slave is
A third counter performs a counting operation based on a third reference clock signal;
counting intervals between the plurality of packets transmitted from the information providing terminal by a fourth counter based on a fourth reference clock signal;
transmitting a packet including the count value of the third counter and the count value of the fourth counter to the master;
adjusting a frequency of the fourth reference clock signal based on the count value of the second counter and the count value of the fourth counter transmitted from the master;
Synchronization method.
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2019235135 | 2019-12-25 | ||
| JP2019235135 | 2019-12-25 | ||
| PCT/JP2020/045105 WO2021131583A1 (en) | 2019-12-25 | 2020-12-03 | Synchronization device and synchronization method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPWO2021131583A1 JPWO2021131583A1 (en) | 2021-07-01 |
| JP7600144B2 true JP7600144B2 (en) | 2024-12-16 |
Family
ID=76573893
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2021567140A Active JP7600144B2 (en) | 2019-12-25 | 2020-12-03 | Synchronization device and synchronization method |
Country Status (2)
| Country | Link |
|---|---|
| JP (1) | JP7600144B2 (en) |
| WO (1) | WO2021131583A1 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2023117653A (en) * | 2022-02-14 | 2023-08-24 | ソニーセミコンダクタソリューションズ株式会社 | Information processing system and information processing method |
| CN118381577B (en) * | 2024-06-25 | 2024-08-30 | 四川清能继控科技有限公司 | MCU system time synchronization method and device |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001186180A (en) | 1999-12-24 | 2001-07-06 | Oki Electric Ind Co Ltd | Ip terminal device, method for estimating frequency error range, method of estimating frequency difference and method of calculating estimated required time |
| JP2002252606A (en) | 2001-02-26 | 2002-09-06 | Oki Electric Ind Co Ltd | Synchronization correction circuit |
| JP2003273853A (en) | 2002-03-13 | 2003-09-26 | Oki Electric Ind Co Ltd | Audio data synchronization correcting circuit |
| JP2013504937A (en) | 2009-09-10 | 2013-02-07 | コス コーポレイション | Synchronous wireless earphone |
| JP2018011204A (en) | 2016-07-13 | 2018-01-18 | 株式会社ディーアンドエムホールディングス | Wireless audio system, wireless speakers, and computer readable programs |
| US20190261089A1 (en) | 2018-02-21 | 2019-08-22 | Apple Inc. | Binaural audio capture using untethered wireless headset |
-
2020
- 2020-12-03 JP JP2021567140A patent/JP7600144B2/en active Active
- 2020-12-03 WO PCT/JP2020/045105 patent/WO2021131583A1/en not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001186180A (en) | 1999-12-24 | 2001-07-06 | Oki Electric Ind Co Ltd | Ip terminal device, method for estimating frequency error range, method of estimating frequency difference and method of calculating estimated required time |
| JP2002252606A (en) | 2001-02-26 | 2002-09-06 | Oki Electric Ind Co Ltd | Synchronization correction circuit |
| JP2003273853A (en) | 2002-03-13 | 2003-09-26 | Oki Electric Ind Co Ltd | Audio data synchronization correcting circuit |
| JP2013504937A (en) | 2009-09-10 | 2013-02-07 | コス コーポレイション | Synchronous wireless earphone |
| JP2018011204A (en) | 2016-07-13 | 2018-01-18 | 株式会社ディーアンドエムホールディングス | Wireless audio system, wireless speakers, and computer readable programs |
| US20190261089A1 (en) | 2018-02-21 | 2019-08-22 | Apple Inc. | Binaural audio capture using untethered wireless headset |
Non-Patent Citations (1)
| Title |
|---|
| 田中 邦夫 Kunio Tanaka,コイン電池で長時間動作! サッと起きてパッと寝る 最新規格 Bluetooth 4.0のLEモード,Interface 第39巻 第5号 ,日本,CQ出版株式会社 CQ Publishing Co.,Ltd.,2013年05月01日,第39巻、第5号,pp. 36-41 |
Also Published As
| Publication number | Publication date |
|---|---|
| JPWO2021131583A1 (en) | 2021-07-01 |
| WO2021131583A1 (en) | 2021-07-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2021131582A1 (en) | Synchronization device and synchronization method | |
| US11375312B2 (en) | Method, device, loudspeaker equipment and wireless headset for playing audio synchronously | |
| US11863656B2 (en) | Method and apparatus for time synchronisation in wireless networks | |
| US11546682B2 (en) | Method and system for synchronous audio playback of TWS earphones | |
| TWI539851B (en) | Frame sync across multiple channels | |
| CN108462991B (en) | Processor clock synchronization method, device and system | |
| JP7600144B2 (en) | Synchronization device and synchronization method | |
| CN105047209B (en) | Bluetooth audio frequency plays synchronous method, apparatus and Bluetooth audio playing device | |
| JP5525032B2 (en) | Synchronization control system including main device and slave device and synchronization control method thereof | |
| US10805664B2 (en) | Wireless audio synchronization | |
| US20100179673A1 (en) | Multitrack recorder and synchronous recording method using a plurality of multitrack recorders | |
| KR20210055009A (en) | Multi-member bluetooth device capable of synchronizing audio playback between different bluetooth circuits | |
| KR102433753B1 (en) | Main bluetooth circuit and auxiliary bluetooth circuit of multi-member bluetooth device capable of synchronizing audio playback between different bluetooth circuits | |
| CN112235863B (en) | Audio equipment | |
| EP4622163A1 (en) | Frequency adjustment method and apparatus, bluetooth earphones, storage medium, and program product | |
| CN115604810B (en) | Wireless audio device synchronous playback method, system and storage medium | |
| TWI587697B (en) | Multimedia synchronization system and method | |
| CN115551066A (en) | Audio synchronization method, audio playing device, audio source and storage medium | |
| WO2020238997A1 (en) | Time synchronization method, service board, and network device | |
| JP7659721B2 (en) | Audio reproduction method, apparatus, electronic device and storage medium | |
| JP3627743B2 (en) | Node in data transmission system | |
| US20250317233A1 (en) | Clock synchronization method, apparatus, chip, chip module, system, and storage medium | |
| US11979705B2 (en) | Bluetooth earphone adaptive audio playback speed | |
| CN116709094A (en) | Audio synchronous playing method, TWS earphone and synchronous playing system | |
| CN115278457A (en) | Audio processing system, audio data synchronization method, electronic equipment and chip |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20231016 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20240820 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20241001 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20241105 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20241204 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7600144 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |