JP5136141B2 - Information processing device - Google Patents
Information processing device Download PDFInfo
- Publication number
- JP5136141B2 JP5136141B2 JP2008072112A JP2008072112A JP5136141B2 JP 5136141 B2 JP5136141 B2 JP 5136141B2 JP 2008072112 A JP2008072112 A JP 2008072112A JP 2008072112 A JP2008072112 A JP 2008072112A JP 5136141 B2 JP5136141 B2 JP 5136141B2
- Authority
- JP
- Japan
- Prior art keywords
- time
- packet
- transmitted
- elapsed
- transmission
- 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.)
- Expired - Fee Related
Links
Images
Description
本発明は情報処理装置に関する。 The present invention relates to an information processing apparatus.
近年、近距離無線を用いてオーディオデータを転送し、ストリーミング再生を行う技術として、Bluetooth(登録商標)が知られている。Bluetoothを用いれば、例えば、携帯電話機や携帯型の音楽再生機からヘッドセットなどの機器にケーブルを用いることなくオーディオデータを転送することができる。 In recent years, Bluetooth (registered trademark) is known as a technology for transferring audio data using near field radio and performing streaming reproduction. Using Bluetooth, for example, audio data can be transferred from a mobile phone or a portable music player to a device such as a headset without using a cable.
Bluetoothのオーディオ転送サービスでは、RTP(Real-time Transport Protocol)に基づいてメディアパケットを対向機器に送信する。具体的には、メディアパケット送信後、次のメディアパケットの送信タイミングは、送信したメディアパケットに含まれるデータの再生時間に応じて設定される。これによって、演奏が途切れることなく、次々とメディアパケットを対向機器に送信することができる。 In the Bluetooth audio transfer service, a media packet is transmitted to the opposite device based on RTP (Real-time Transport Protocol). Specifically, after transmission of a media packet, the transmission timing of the next media packet is set according to the reproduction time of data included in the transmitted media packet. As a result, the media packets can be transmitted to the opposite device one after another without interruption of performance.
しかしながら、メディアパケットの送信タイミングとして設定されているタイマ値はメディアパケットに含まれるデータの再生時間に完全に一致しているわけではないため、メディアパケットを複数個送信しているうちに、送信タイミングとして設定されているタイマ値が適切な値ではなくなる可能性がある。 However, since the timer value set as the transmission timing of the media packet does not completely match the reproduction time of the data included in the media packet, the transmission timing is determined while a plurality of media packets are transmitted. There is a possibility that the timer value set as is not an appropriate value.
そこで、既に対向機器に送信されたメディアパケットに含まれる再生時間の総和と、実際に音楽の先頭を送信してから現在時刻までの経過時間とを比較し、誤差が発生しているときには送信タイミングを調整する。 Therefore, the sum of the playback times included in the media packets already sent to the opposite device is compared with the elapsed time from the actual start of music transmission to the current time, and if an error occurs, the transmission timing Adjust.
このとき、経過時間の算出に用いる現在時刻の情報は、装置内のシステム時計から取得する。そのため、このシステム時計に設定された時刻は正確な時刻である必要がある。このような装置内のシステム時計を正確に保つために、例えば、携帯電話機の基地局から受信した電波から時刻情報を抽出し、装置内の時刻を補正する無線通信端末が提案されている(例えば、特許文献1参照)。
特許文献1に記載された発明では、圏外の状態のように基地局から電波を受信できない場合であっても、携帯電話端末は、端末内の時刻を補正することができる。しかしながら、例えば、地下鉄の駅に設置された基地局では、正しい時刻に調整されていない場合があり、このような基地局から不正確な時刻情報を受信すると、端末内の時刻も不正確な時刻に調整してしまうことも起こりうる。 In the invention described in Patent Document 1, the mobile phone terminal can correct the time in the terminal even when the radio wave cannot be received from the base station as in the out-of-service state. However, for example, a base station installed in a subway station may not be adjusted to the correct time. If incorrect time information is received from such a base station, the time in the terminal is also incorrect. It may happen that you adjust it.
このように端末内の時刻を正確に保つことができない状態では、経過時間を正確に算出することができない。この結果、経過時間が実際よりも短く算出され、再生時間よりも短くなった場合には、データを送りすぎていると判断して、データ送信を所定の時間停止し、音切れが起こる。また、経過時間が実際よりも長く算出され、再生時間よりも長くなった場合には、対向機器にデータを送信し遅れていると判定して、遅れを取り戻そうとデータが通常よりも短いインターバルで送信されてしまう。 In such a state where the time in the terminal cannot be accurately maintained, the elapsed time cannot be accurately calculated. As a result, when the elapsed time is calculated to be shorter than the actual time and shorter than the reproduction time, it is determined that the data has been sent too much, and the data transmission is stopped for a predetermined time, resulting in sound interruption. If the elapsed time is calculated to be longer than the actual playback time and longer than the playback time, it is determined that the data has been delayed by transmitting data to the opposite device, and the data is returned at an interval shorter than usual to recover the delay. It will be sent.
そこで本発明は、システム時刻が何らかの要因で変動した場合でも、適切なタイミングでデータ送信を実現することができる情報処理装置を提供することを目的とする。 Therefore, an object of the present invention is to provide an information processing apparatus capable of realizing data transmission at an appropriate timing even when the system time fluctuates for some reason.
上記目的を達成するために、本発明による情報処理装置は、近距離無線通信によってデータをパケット単位で送信する情報処理装置であって、現在の時刻を計時し、所定のタイミングで時刻設定が調整される計時手段と、パケットを送信したときに前記計時手段の時刻設定が前記経過時間の起点を計時したときの前記計時手段の時刻設定から変動しているか否かを判定する判定手段と、前記判定手段によって変動していないと判定された場合、前記計時手段によって計時された現在時刻を用いて所定の時刻からの経過時間を算出する第1の経過時間取得手段と、前記判定手段によって変動していると判定された場合、所定の時刻から当該パケットを送信したときまでの経過時間を、当該パケットを送信したときに前記計時手段から取得した現在時刻を用いずに算出する第2の経過時間取得手段と、送信したパケットに含まれるデータの再生時間、前記経過時間、および経過時間算出の起点の時刻以降に送信されたパケットに含まれるデータの再生時間の総計に応じて、次のパケットの送信タイミングを設定する送信タイマ手段と、を有することを特徴としている。 In order to achieve the above object, an information processing apparatus according to the present invention is an information processing apparatus that transmits data in packets by short-range wireless communication, measures the current time, and adjusts the time setting at a predetermined timing. Time determination means, and determination means for determining whether or not the time setting of the time measurement means when the packet is transmitted varies from the time setting of the time measurement means when measuring the starting point of the elapsed time, When it is determined by the determination means that there is no change, the first elapsed time acquisition means for calculating the elapsed time from a predetermined time using the current time measured by the time measurement means, and the determination means If it is determined that the packet has been transmitted, the elapsed time from when the packet is transmitted to the time when the packet is transmitted is obtained from the current timing means when the packet is transmitted. A second elapsed time acquisition unit that calculates without using time, and a reproduction time of data included in the transmitted packet, the elapsed time, and the data included in the packet transmitted after the time at which the elapsed time is calculated Transmission timer means for setting the transmission timing of the next packet according to the total reproduction time.
本発明によれば、システム時刻が何らかの要因で変動した場合でも、適切なタイミングでデータ送信を実現することができる。 According to the present invention, even when the system time fluctuates for some reason, data transmission can be realized at an appropriate timing.
以下、本発明の実施形態について図面を参照して説明する。ここでは、近距離無線通信可能な携帯電話機からヘッドセットにオーディオデータを送信する場合を例にして説明する。 Embodiments of the present invention will be described below with reference to the drawings. Here, a case where audio data is transmitted from a mobile phone capable of short-range wireless communication to the headset will be described as an example.
図1は、本実施形態にかかる携帯電話機1とそれに無線接続する機器との関係を示した図である。携帯電話機1は、Bluetoothのような近距離無線通信によってデータの送受信が可能であって、同じく近距離無線通信に対応しているヘッドセット2に対してオーディオデータを転送することができる。ヘッドセット2は、受信したオーディオデータをデコードして、再生する。
FIG. 1 is a diagram illustrating a relationship between the mobile phone 1 according to the present embodiment and a device wirelessly connected thereto. The cellular phone 1 can transmit and receive data by short-range wireless communication such as Bluetooth, and can transfer audio data to the
携帯電話機1は、基地局3、交換機4を介してネットワークに接続し、音声通信やデータ通信を行うことができる。また、携帯電話機1は、所定のタイミングで基地局3から現在時刻の情報を受信して、携帯電話機1内のシステム時計を調整することができる。なお、基地局3はGPSアンテナを有しており、原子時計を有するGPS(図示しない)からその原子時計によって設定された時間を元に生成されたGPS信号を受信する。そして、このGPS信号によって高精度に現在時刻を設定することができる。 The mobile phone 1 is connected to a network via the base station 3 and the exchange 4 and can perform voice communication and data communication. In addition, the mobile phone 1 can receive information on the current time from the base station 3 at a predetermined timing and adjust the system clock in the mobile phone 1. Note that the base station 3 has a GPS antenna, and receives a GPS signal generated based on a time set by the atomic clock from a GPS (not shown) having an atomic clock. The current time can be set with high accuracy by this GPS signal.
図2は、本実施形態にかかる携帯電話機の構成を示したブロック図である。携帯電話機1は、制御部51、操作部52、表示部53、音声入出力部54、無線電話通信部55、システム時計56、記憶部57、メディアプレイヤ部58、コンテンツ処理部59、近距離無線通信部60から構成される。
FIG. 2 is a block diagram showing a configuration of the mobile phone according to the present embodiment. The cellular phone 1 includes a
制御部51は、CPU、ROM、RAMなどから構成され、携帯電話機1全体の制御を行う。
The
操作部52は、操作キーまたはタッチパネル、タッチセンサなどから構成され、ユーザの操作に応じた信号を制御部51に入力する。
The
表示部53は、液晶ディスプレイや有機ELディスプレイなどによって構成され、アプリケーションの動作に応じて文字や画像を表示する。
The
音声入出力部54は、スピーカおよびマイクロホンから成り、無線電話通信部55による音声通話の通話音声の入出力や、音楽コンテンツや動画コンテンツの音声・音楽の出力などを行う。
The voice input / output unit 54 includes a speaker and a microphone, and performs input / output of call voice of a voice call by the wireless
無線電話通信部55は、基地局3を介して音声通信やパケット通信を行う。例えば、音声通信によって音声を送信する場合、音声入出力部54のマイクロホンから音声を収音して得られた音声データに対して、符号化や誤り制御などの信号処理を行ったデータを電波に変換して、基地局3へ送信する。また、受話音声は、基地局3からの電波を受信し、電波から電気信号に変換した後、復号や誤り訂正などの信号処理を行い、音声入出力部54のスピーカから音声を出力する。
The radio
また、無線電話通信部55は補正時刻取得部55aを有しており、基地局3から所定のタイミングで時刻情報を受信し、この時刻情報に基づいてシステム時計56にて計時される現在時刻を調整する。
The radio
記憶部57は、各種アプリケーションソフトウェアや、音楽コンテンツ、動画コンテンツなどを記憶する。記憶部57に記憶されている音楽コンテンツや動画コンテンツは、メディアプレイヤ部58によって再生が指示される。
The
メディアプレイヤ部58は、記憶部57に記憶されたコンテンツを読み出し、再生や停止、一時停止などを指示する。なお、記憶部57に記憶されているコンテンツだけでなく、例えば、この携帯電話機にワンセグなどのデジタルテレビ放送や、ラジオ放送を受信する機能を設けた場合には、テレビ放送やラジオ放送のプレイヤとして用いることもできる。
The
コンテンツ処理部59は、コンテンツのエンコードとデコードを行う。例えば、メディアプレイヤ部58によって音楽コンテンツの再生が指示され、音声入出力部54のスピーカから出力する場合、コンテンツ処理部59によって、AACやMP3などのエンコード方式でエンコードされた音楽コンテンツを対応するデコード方式でデコードして、音声入出力部54のスピーカから出力する。
The
近距離無線通信部60は、Bluetoothなどの、無線電話通信部55よりも無線送信電力の小さい電波を用いた無線通信モジュールなどから構成され、対向機器との無線通信を行う。
The short-range
近距離無線通信部60は、能力取得部60a、コンフィギュレーション部60b、フレーム切出し部60c、パケット生成部60d、パケット送信部60e、送信時刻算出部60fを含む。
The short-range
能力取得部60aは、対向機器がサポートするコーデックの種類、および、コーデック種類ごとのパラメータに関する情報を取得する。
The
コンフィギュレーション部60bは、対向機器に対してデータの転送を開始するときに、能力取得部60aによって取得した情報を用いて、コーデック種類、およびコーデック種類ごとのパラメータをネゴシエーションする。
The
フレーム切出し部60cは、音楽コンテンツなどを対向機器に送信するときに、対向機器とのネゴシエーションによって決定されたコーデックの種類に合わせて、送信するコンテンツデータからフレームを切出す。なお、メディアプレイヤ部58によって記憶部57から読み出されたオーディオデータのコーデック種別がコンフィギュレーション部60bによって決定されたコーデック種別と異なるならば、コンテンツ処理部59によってオーディオデータを一度デコードし、コンフィギュレーション部60bによって決定された種別のコーデックによってエンコードを行ったオーディオデータが、フレーム切出し部60cに供給される。
When transmitting music content or the like to the opposite device, the frame cutout unit 60c cuts out a frame from the content data to be transmitted in accordance with the type of codec determined by negotiation with the opposite device. If the codec type of the audio data read from the
パケット生成部60dは、フレーム切出し部60cによって切出されたフレームごとに対向機器へのデータ転送用のパケットを生成する。生成したパケットは、パケット送信用のバッファに一時的に格納する。
The
パケット送信部60eは、パケット送信用のバッファに記憶されたパケットを適切な量だけ読み出し、対向機器へ送信する。このパケットの送信タイミングは、送信時刻算出部60fによって決定される。
The
送信時刻算出部60fは、次のパケットを送信する適切なタイミングを送信タイマにセットし、送信タイマが満了したときに、パケット送信部60eによるパケットの送信を促す。
The transmission
以上のような構成の携帯電話機1が近距離無線通信部60を用いて対向機器であるヘッドセットにオーディオデータをストリーミング転送する場合について説明する。
A case will be described in which the mobile phone 1 having the above configuration performs streaming transfer of audio data to the headset that is the opposite device using the short-range
オーディオデータをストリーミング転送する場合、ヘッドセットによって再生されるオーディオデータに音切れなどが起こらないよう、送信時刻算出部60fによって適切なタイミングを設定する必要がある。
In the case of streaming transfer of audio data, it is necessary to set an appropriate timing by the transmission
そのため、送信時刻算出部60fは、パケット送信部60eによって送信するパケットに含まれるオーディオデータの最初から最後までを再生したときに要する時間(再生時間)を取得し、この再生時間に基づいて、パケット送信部60eによって次のパケットの送信タイミングを設定する。ただし、送信タイマによって設定される次のパケット送信までの時間は、送信したパケットのオーディオデータの再生時間と完全に同一ではないため、パケットを複数送信しているうちに、送信タイミングがずれることがある。
Therefore, the transmission
そこで、送信時刻算出部60fは、パケット送信部60eによって送信されたオーディオデータの再生時間の総計を算出するとともに、実際にオーディオデータの先頭を送信してから現在時刻までの経過時間を算出する。そして、総再生時間と経過時間とを比較し、誤差が発生した場合には、次のパケットの送信タイミングを調整する。
Therefore, the transmission
ここで、送信時刻算出部60fが経過時間と算出するために用いる現在時刻は、システム時計56から取得した時刻である。システム時刻は、基地局から取得した現在時刻の情報を用いて正確な時刻に調整されているが、地下に設置された基地局から現在時刻の情報を取得した場合などに、正確な時刻ではない場合がある。
Here, the current time used by the transmission
このように、システム時計56は同期をとる基地局によって調整される時刻が異なるため、近距離無線通信部60を用いてヘッドセットにオーディオデータを転送している携帯電話機1をユーザが移動させると、経過時間を正確に算出できなくなることがある。
As described above, since the time adjusted in the
そこで、送信時刻算出部60fは、システム時計56から取得した現在時刻が経過時間を算出するのに適切な時刻であるか否かを判定し、適切な時刻であれば、その現在時刻によって経過時間を算出し、適切な時刻でなければ、取得した現在時刻を使わずに経過時間を算出する。
Therefore, the transmission
図3はパケット送信用のバッファに格納されたパケットをヘッドセットに転送する処理を示したフローチャートである。なお、パケット送信用のバッファにパケットを格納するために、メディアプレイヤ部58によって記憶部57からオーディオデータを読み出され、コンテンツ処理部59によって適宜、デコード、リエンコードが行われた後、フレーム切出し部60cによってフレームに切出され、パケット生成部60dによって送信パケットが生成されている。
FIG. 3 is a flowchart showing a process of transferring the packet stored in the packet transmission buffer to the headset. In order to store the packet in the packet transmission buffer, the audio data is read from the
パケット送信部60eは、このパケット送信用のバッファから最初に送信すべきパケットを読み出し、ヘッドセット2に送信する(S101)。このとき送信されたパケットがオーディオデータの最後のパケットであるならば(S102のYes)、このオーディオデータ転送処理は終了である。
The
最後のパケットでないならば(S102のNo)、次に送信すべきパケットがあるので、次に送信するパケットの送信タイミングを決定するための処理を行う。まず、システム時計56から現在時刻の情報を取得する(S103)。そして、システム時刻が適切な時刻であるか否かを判定する(S104)。この判定方法については、後述する。 If it is not the last packet (No in S102), since there is a packet to be transmitted next, processing for determining the transmission timing of the packet to be transmitted next is performed. First, the current time information is acquired from the system clock 56 (S103). Then, it is determined whether or not the system time is an appropriate time (S104). This determination method will be described later.
システム時刻が経過時間の算出に適切な時刻であれば(S104のYes)、そのシステム時刻を用いて経過時間を算出する(S105)。このときの経過時間の算出は、例えば式(1)のように、1つ前のパケットを送信したときの経過時間に1つ前のパケットを送信してからの経過時間を足し合わせて算出する。 If the system time is an appropriate time for calculating the elapsed time (Yes in S104), the elapsed time is calculated using the system time (S105). The elapsed time at this time is calculated by adding the elapsed time since the transmission of the previous packet to the elapsed time when the previous packet was transmitted, for example, as in equation (1). .
経過時間=1つ前のパケットを送信したときの経過時間+(現在のシステム時刻−1つ前のパケットを送信したときのシステム時刻) ・・・(1)
それに対して、システム時刻が適切な時刻でなければ(S104のNo)、取得したシステム時刻を用いずに経過時間を算出する(S106)。取得した時刻を用いない経過時間の算出方法については、後述する。
Elapsed time = elapsed time when the previous packet was transmitted + (current system time-1 system time when the previous packet was transmitted) (1)
On the other hand, if the system time is not an appropriate time (No in S104), the elapsed time is calculated without using the acquired system time (S106). A method for calculating the elapsed time without using the acquired time will be described later.
そして、経過時間とこれまでに送信したパケットに含まれる曲の総再生時間とを比較し(S107)、誤差がなければ最後に送信したパケットに含まれる曲の再生時間に基づいて、次に送信するパケットの送信時刻を送信タイマに設定し、誤差があれば、この誤差の時間および最後に送信したパケットに含まれる曲の再生時間に基づいて、次に送信するパケットの送信時刻を送信タイマに設定する(S108)。 Then, the elapsed time is compared with the total playback time of the song included in the previously transmitted packet (S107), and if there is no error, the next transmission is performed based on the playback time of the song included in the last transmitted packet. The transmission time of the packet to be transmitted is set in the transmission timer, and if there is an error, the transmission time of the packet to be transmitted next is set in the transmission timer based on the time of this error and the playback time of the song included in the last transmitted packet. Set (S108).
そして、ステップS108で設定された送信タイマが満了したときに(S109のYes)、パケット送信部60eは、次に送信すべきパケットをバッファから読み出し、ヘッドセットに送信する。
When the transmission timer set in step S108 expires (Yes in S109), the
以上のような処理によって、送信タイマに設定された時間ごとに、送信パケットを携帯電話機1からヘッドセットに順次送信しているため、適切なタイミングでパケットを送信することができる。 Through the processing as described above, the transmission packet is sequentially transmitted from the mobile phone 1 to the headset every time set in the transmission timer, so that the packet can be transmitted at an appropriate timing.
次に、図3のステップS104で行うシステム時刻が適切か否かの判定方法について詳細に説明する。ここでは、1つ前のパケットまで、システム時刻が適切と判定され、その時刻を用いて経過時間を算出していた場合の判定処理について説明する。 Next, a method for determining whether or not the system time performed in step S104 of FIG. 3 is appropriate will be described in detail. Here, the determination process when the system time is determined to be appropriate up to the previous packet and the elapsed time is calculated using the time will be described.
経過時間を算出するのにシステム時刻が不適切な状態とは、経過時間の算出の起点となった時刻を計時していたシステム時計56の調整から変動した場合である。そこで、1つ前のパケットまでシステム時刻が適切だったならば、パケットを送信したときに現在のシステム時計56から取得する時刻と、1つ前のパケットを送信したときにシステム時計56から取得された時刻に基づいて算出した現在時刻とを比較し、所定の誤差が生じた場合に、システム時刻が不適切であることを検出できる。
The state in which the system time is inappropriate for calculating the elapsed time is a case where the
1つ前のパケットを送信したときのシステム時刻を用いて現在時刻を算出するには、1つ前のパケットを送信したときにステップS103で取得したシステム時刻に、1つ前のパケットに含まれるオーディオデータの再生時間を足し合わせれば良い。 In order to calculate the current time using the system time when the previous packet was transmitted, the system time acquired in step S103 when the previous packet was transmitted is included in the previous packet. What is necessary is just to add the reproduction time of audio data.
なお、1つ前のパケットを送信したときのシステム時刻を用いた現在時刻の算出には、1つ前のパケット送信時のシステム時刻に送信タイマにセットした時間を加算して算出しても良い。 The current time using the system time when the previous packet is transmitted may be calculated by adding the time set in the transmission timer to the system time when the previous packet was transmitted. .
このように1パケット前のシステム時刻を用いて算出した現在時刻とシステム時計56から取得した現在時刻との誤差を、例えば式(2)のように算出する。
Thus, an error between the current time calculated using the system time one packet before and the current time acquired from the
誤差=(1つ前のパケット送信時のシステム時刻+1つ前のパケットに含まれるオーディオデータの再生時間)−現在のシステム時刻 ・・・(2)
そして、現在のシステム時刻が1つ前のパケット送信時の時刻を用いて算出した現在時刻より過去の時刻になっている場合(誤差<0の場合)や、現在のシステム時刻が1つ前のパケット送信時の時刻を用いて算出した現在時刻より所定の時間以上未来の時刻になっている場合(誤差>所定の時間)には、1つ前のパケットを送信したときのシステム時計56の調整から変動したと判断できる。そこで、システム時計56から取得した現在時刻を、経過時間を算出するのに適切でないと判定する。
Error = (system time at transmission of the previous packet + 1 reproduction time of audio data contained in the previous packet) −current system time (2)
Then, when the current system time is in the past from the current time calculated using the time at the previous packet transmission (when error <0), or the current system time is one before When the current time calculated using the time at the time of packet transmission is a time that is a predetermined time or more in the future (error> predetermined time), the
なお、システム時計56が未来の時刻になっている場合の判定に用いる閾値である所定の時間とは、通常発生しうるシステム時間のずれである。例えば、携帯電話機1の操作キーが連続して押下されたときの割り込み発生によって、オーディオストリーミング再生のためのメディアデータ送信が妨げられ、本来データを送信すべき時刻と実際にデータを送信する時刻との時間差が生じることがある。そこで、本来データを送信すべき時刻と実際にデータを送信する時刻との許容できる時間差(例えば100ms)を閾値として用い、このような要因による現在時刻の時間差によってシステム時計56が変動したと判定されにくくする。
Note that the predetermined time, which is a threshold used for determination when the
一方、システム時計56から取得した現在時刻が、過去のパケット送信時の時刻を用いて算出した時刻よりも未来の時刻であって、誤差が所定の時間以内の場合は、以前のパケットを送信したときのシステム時計56の調整から大きく変動していない。そこで、システム時計56から取得した現在時刻を、経過時間を算出するのに適切と判定する。
On the other hand, if the current time acquired from the
以上のような方法でシステム時計56が適切でないと判定された場合、ステップS106で送信時刻算出部60fは、システム時計56から取得したシステム時刻の情報を用いずに経過時間の算出を行う。
If it is determined that the
システム時刻を用いない経過時間の算出方法の1つは、システム時刻が適切でないと判定された時点で経過時間をリセットして初期値から経過時間の算出を再開する方法である。すなわち、曲の先頭から現在時刻までの差分を経過時間として算出するが、システム時刻が適切でないと判定されると、このパケットを送信した時刻からの経過時間を算出するように変更する。 One method of calculating the elapsed time without using the system time is a method of resetting the elapsed time and restarting the calculation of the elapsed time from the initial value when it is determined that the system time is not appropriate. That is, the difference from the beginning of the song to the current time is calculated as the elapsed time, but if it is determined that the system time is not appropriate, it is changed to calculate the elapsed time from the time when this packet was transmitted.
そのため、ステップS107で経過時間との比較に用いる送信済みのパケットに含まれるオーディオデータの総再生時間も、経過時間をリセットした時刻に送信したパケットからのオーディオデータの総再生時間を算出し、前述のとおりリセットされた経過時間と比較される。 Therefore, the total reproduction time of the audio data included in the transmitted packet used for comparison with the elapsed time in step S107 is also calculated as the total reproduction time of the audio data from the packet transmitted at the time when the elapsed time is reset. It is compared with the elapsed time reset as follows.
なお、このように経過時間をリセットする場合、そのパケット以降のパケットを送信したときにステップS104で行う「適切なシステム時刻」の判定は、経過時間をリセットする前と同様、1つ前のパケットを送信したときのシステム時刻に1つ前のパケットに含まれるオーディオデータの再生時間を加算して算出した時刻とシステム時計56から取得した時刻との比較によって行う。
When the elapsed time is reset in this way, the determination of “appropriate system time” performed in step S104 when a packet subsequent to that packet is transmitted is the same as that before the elapsed time is reset. This is performed by comparing the time calculated by adding the reproduction time of the audio data contained in the previous packet to the system time when the time is transmitted and the time acquired from the
すなわち、経過時間をリセットしたときのシステム時計56を基準にして「適切なシステム時刻」であるか否かが判定される。そのため、経過時間がリセットされた後に、システム時計56が基地局からの時刻情報を用いて再度調整されたとき、最初のパケットが送信されたときのシステム時計56の調整に戻すように調整されたとしても、最初のパケットが送信されたときのシステム時計56の調整からずれた場合と同じように経過時間を再度リセットする。
That is, it is determined whether or not it is “appropriate system time” with reference to the
システム時刻を用いない経過時間の別の算出方法は、1つ前のパケットを送信した際に算出した経過時間と、今回送信したパケットに含まれるオーディオデータの再生時間とを足し合わせて、この時間をデータ送信開始から今回送信したパケットを送信した時刻までの経過時間として算出する方法である。 Another method for calculating the elapsed time that does not use the system time is to add the elapsed time calculated when the previous packet was transmitted and the reproduction time of the audio data included in the packet transmitted this time. Is calculated as the elapsed time from the start of data transmission to the time when the packet transmitted this time is transmitted.
この方法によって経過時間の算出を行った場合、経過時間の算出の起点が最初のパケットを送信した時刻なので、最初のパケットを送信したときと同じ調整のシステム時計56によって計時される時刻が「適切な時刻」である。そのため、前述の経過時間をリセットする場合と異なり、経過時間を補正した後も、パケットを送信したときに取得したシステム時計56の時刻が「適切な時刻」であるか否かの判定は、最初のパケットを送信したときのシステム時計56を基準にして行われる。
When the elapsed time is calculated by this method, since the starting point of the elapsed time calculation is the time when the first packet is transmitted, the time counted by the
そこで、経過時間を補正後にパケットを送信したときのシステム時刻が「適切な時刻」であるか否かの判定を行うために、経過時間を補正すると、ステップS104の判定に用いた、式(2)に示した誤差を「適切な時刻」からの差分として記憶する。その後、パケットを送信すると、そのときのシステム時刻を用いて式(2)に示したように1つ前のパケット送信時のシステム時刻から算出される現在時刻との誤差を算出し、この誤差と「適切な時刻」からの差分として記憶されている値と足し合わせる。この結果が0であった場合(「適切な時刻」からの差分を打ち消すようにシステム時計56が調整されていた場合)、システム時計56の現在時刻は「適切な時刻」であると判定して、システム時刻を用いた経過時間の算出を行う。
Therefore, if the elapsed time is corrected in order to determine whether or not the system time when the packet is transmitted after correcting the elapsed time is “appropriate time”, the expression (2) used for the determination in step S104 is used. ) Is stored as a difference from “appropriate time”. Thereafter, when a packet is transmitted, an error from the current time calculated from the system time at the previous packet transmission is calculated using the system time at that time, as shown in Expression (2). Add the value stored as the difference from “appropriate time”. When this result is 0 (when the
それに対して、足し合わせた結果が0ではない場合(「適切な時刻」からの差分が打ち消されない場合)には、この合計値を新たに「適切な時刻」からの差分として記憶しておく。このように差分の値を更新することによって、システム時刻が複数回前後するような場合にも、システム時計56が「適切な時刻」に戻ったことを検出することができる。
On the other hand, if the sum is not zero (if the difference from “appropriate time” is not canceled), this total value is newly stored as the difference from “appropriate time”. . By updating the difference value in this way, it is possible to detect that the
以上のように、システム時刻が変動したことを検知し、システム時刻が変動した場合には、そのシステム時刻の情報を使わずに最初のデータ送信開始からの経過時間を算出することで、データの送信タイミングを適切に設定することができ、対向機器で音切れなどを起こすことなくオーディオデータを再生することができる。 As described above, when the system time is detected and the system time fluctuates, the elapsed time from the start of the first data transmission is calculated without using the system time information. The transmission timing can be set appropriately, and the audio data can be reproduced without causing a sound interruption or the like in the opposite device.
なお、上記実施形態に限定されることはなく、本発明の要旨を逸脱しない範囲において、適宜変更しても良い。 In addition, it is not limited to the said embodiment, You may change suitably in the range which does not deviate from the summary of this invention.
1 携帯電話機、2 ヘッドセット、3 基地局、4 交換機、51 制御部、52 操作部、53 表示部、54 音声入出力部、55 無線電話通信部、55a 補正時刻取得部、56 システム時計、57 記憶部、58 メディアプレイヤ部、59 コンテンツ処理部、60 近距離無線通信部、60a 能力取得部、60b コンフィギュレーション部、60c フレーム切出し部、60d パケット生成部、60e パケット送信部、60f 送信時刻算出部 DESCRIPTION OF SYMBOLS 1 Cellular phone, 2 Headset, 3 Base station, 4 Exchange, 51 Control part, 52 Operation part, 53 Display part, 54 Voice input / output part, 55 Radio telephone communication part, 55a Correction time acquisition part, 56 System clock, 57 Storage unit, 58 media player unit, 59 content processing unit, 60 short-range wireless communication unit, 60a capability acquisition unit, 60b configuration unit, 60c frame cutout unit, 60d packet generation unit, 60e packet transmission unit, 60f transmission time calculation unit
Claims (6)
現在の時刻を計時し、所定のタイミングで時刻設定が調整される計時手段と、
パケットを送信したときに前記計時手段の時刻設定が前記経過時間の起点を計時したときの前記計時手段の時刻設定から変動しているか否かを判定する判定手段と、
前記判定手段によって変動していないと判定された場合、前記計時手段によって計時された現在時刻を用いて所定の時刻からの経過時間を算出する第1の経過時間取得手段と、 前記判定手段によって変動していると判定された場合、所定の時刻から当該パケットを送信したときまでの経過時間を、当該パケットを送信したときに前記計時手段から取得した現在時刻を用いずに算出する第2の経過時間取得手段と、
送信したパケットに含まれるデータの再生時間、前記経過時間、および経過時間算出の起点の時刻以降に送信されたパケットに含まれるデータの再生時間の総計に応じて、次のパケットの送信タイミングを設定する送信タイマ手段と、
を有することを特徴とする情報処理装置。 An information processing apparatus that transmits data in packets by short-range wireless communication,
A time measuring means for measuring the current time and adjusting the time setting at a predetermined timing;
A determination unit for determining whether or not the time setting of the time measuring unit when the packet is transmitted varies from the time setting of the time measuring unit when the starting point of the elapsed time is measured;
A first elapsed time acquisition unit that calculates an elapsed time from a predetermined time using the current time measured by the time measuring unit when the determination unit determines that there is no variation; and a variation by the determination unit A second process of calculating an elapsed time from a predetermined time to when the packet is transmitted without using the current time acquired from the time measuring unit when the packet is transmitted. Time acquisition means;
The transmission timing of the next packet is set according to the total playback time of the data included in the packet transmitted after the playback time of the data included in the transmitted packet, the elapsed time, and the elapsed time calculation start time. A transmission timer means,
An information processing apparatus comprising:
現在の時刻を計時し、所定のタイミングで時刻設定が調整される計時手段と、
前記計時手段によって計時される現在時刻を取得する時刻情報取得手段と、
パケットを送信したときに前記時刻情報取得手段によって現在時刻を取得し、この現在時刻と、1つ前のパケットを送信時に時刻情報取得手段によって取得した時刻に基づいて算出される現在時刻とに所定の誤差があるか否かを判定する判定手段と、
前記判定手段によって所定の誤差がないと判定された場合、前記時刻情報取得手段によって取得された時刻を用いて所定の時刻からの経過時間を算出する第1の経過時間取得手段と、
前記判定手段によって所定の誤差があると判定された場合、前記時刻情報取得手段によって取得した現在時刻を用いずに経過時間を設定する第2の経過時間取得手段と、
送信したパケットに含まれるデータの再生時間、前記経過時間、および経過時間算出の起点の時刻以降に送信されたパケットに含まれるデータの再生時間の総計に応じて、次のパケットの送信タイミングを設定する送信タイマ手段と、
を有することを特徴とする情報処理装置。 An information processing apparatus that transmits data in packets by short-range wireless communication,
A time measuring means for measuring the current time and adjusting the time setting at a predetermined timing;
Time information acquisition means for acquiring the current time measured by the time measurement means;
The current time is acquired by the time information acquisition unit when a packet is transmitted, and the current time is set to a current time calculated based on the time acquired by the time information acquisition unit at the time of transmission. Determining means for determining whether or not there is an error,
A first elapsed time acquisition unit that calculates an elapsed time from a predetermined time using the time acquired by the time information acquisition unit when the determination unit determines that there is no predetermined error;
A second elapsed time acquisition unit that sets an elapsed time without using the current time acquired by the time information acquisition unit when the determination unit determines that there is a predetermined error;
The transmission timing of the next packet is set according to the total playback time of the data included in the packet transmitted after the playback time of the data included in the transmitted packet, the elapsed time, and the elapsed time calculation start time. A transmission timer means,
An information processing apparatus comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008072112A JP5136141B2 (en) | 2008-03-19 | 2008-03-19 | Information processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008072112A JP5136141B2 (en) | 2008-03-19 | 2008-03-19 | Information processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009231953A JP2009231953A (en) | 2009-10-08 |
JP5136141B2 true JP5136141B2 (en) | 2013-02-06 |
Family
ID=41246908
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008072112A Expired - Fee Related JP5136141B2 (en) | 2008-03-19 | 2008-03-19 | Information processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5136141B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5640574B2 (en) * | 2010-09-01 | 2014-12-17 | ヤマハ株式会社 | Terminal device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3659484B2 (en) * | 2000-09-01 | 2005-06-15 | 光洋電子工業株式会社 | Multi-station memory data sharing system by cyclic automatic communication |
JP2003309541A (en) * | 2002-04-15 | 2003-10-31 | Sony Corp | Data transfer system, data transfer device and method, and computer program |
JP4321529B2 (en) * | 2006-01-25 | 2009-08-26 | 日本電気株式会社 | Clock sharing circuit, clock sharing method, and communication device |
JP5150078B2 (en) * | 2006-09-22 | 2013-02-20 | Necカシオモバイルコミュニケーションズ株式会社 | Communication terminal and communication control program |
JP4796537B2 (en) * | 2007-05-11 | 2011-10-19 | 富士通東芝モバイルコミュニケーションズ株式会社 | Information processing device |
-
2008
- 2008-03-19 JP JP2008072112A patent/JP5136141B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2009231953A (en) | 2009-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4411184B2 (en) | Broadcast station synchronization method and portable terminal | |
WO2018186993A1 (en) | Apparatus and method for de-jitter buffer delay adjustment | |
KR100565333B1 (en) | A method and a apparatus of synchronization video signal with audio signal for mobile phone | |
US7725136B2 (en) | Information processing apparatus | |
US20120204049A1 (en) | Server initiated power mode switching in portable communication devices | |
US8103210B2 (en) | Information processing apparatus | |
US7860458B2 (en) | Audio transmitting apparatus and mobile communication terminal | |
JP4744444B2 (en) | STREAM DATA RECEIVING / REPRODUCING DEVICE, COMMUNICATION SYSTEM, AND STREAM DATA RECEIVING / REPRODUCING METHOD | |
KR102419595B1 (en) | Playout delay adjustment method and Electronic apparatus thereof | |
US11064228B2 (en) | Audio playback timing adjustment | |
KR20170113610A (en) | Network jitter processing method, apparatus, terminal device, program and storage medium | |
US20230246733A1 (en) | Codec configuration adaptation based on packet loss rate | |
US20060109803A1 (en) | Easy volume adjustment for communication terminal in multipoint conference | |
WO2015151249A1 (en) | Communication system and communication method | |
JP5136141B2 (en) | Information processing device | |
JP5115120B2 (en) | Video display device and audio output device | |
US20080126101A1 (en) | Information processing apparatus | |
US20060080715A1 (en) | Apparatus and method for processing VOD data in a mobile terminal | |
US9257125B2 (en) | Audio frame timing correction method and wireless device | |
JP2008061034A (en) | Wireless communication device and method | |
JP2005260758A (en) | Mobile terminal, digital data distribution server, and data transmission/receiving system | |
US20160044384A1 (en) | Operating a terminal device in a communication system | |
KR20130050815A (en) | Server and method for providing contents | |
JP4056447B2 (en) | Digital communication device | |
JPH11340907A (en) | Transmission power control system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20100922 |
|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A711 Effective date: 20101028 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110126 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120911 |
|
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: 20121016 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20121029 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5136141 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20151122 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |