JP4435209B2 - Information processing device - Google Patents
Information processing device Download PDFInfo
- Publication number
- JP4435209B2 JP4435209B2 JP2007159386A JP2007159386A JP4435209B2 JP 4435209 B2 JP4435209 B2 JP 4435209B2 JP 2007159386 A JP2007159386 A JP 2007159386A JP 2007159386 A JP2007159386 A JP 2007159386A JP 4435209 B2 JP4435209 B2 JP 4435209B2
- Authority
- JP
- Japan
- Prior art keywords
- request
- command
- connection
- wireless communication
- headset
- 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
Landscapes
- Computer And Data Communications (AREA)
- Telephone Function (AREA)
Description
本発明は情報処理装置に係り、特に、対向機器との間で無線通信を行う際に用いられるプロトコル層へのコマンドの実行を待機させることができるようにした情報処理装置に関する。 The present invention relates to an information processing apparatus, and more particularly, to an information processing apparatus capable of waiting for execution of a command to a protocol layer used when performing wireless communication with an opposite device.
近年、例えば電子機器などに適用することができる無線通信技術として例えばブルートゥース(Bluetooth(登録商標))が知られている。このブルートゥースの無線通信技術を用いれば、携帯電話機などから、オーディオケーブルを用いることなく、例えばヘッドセットなどの対向機器にオーディオデータを転送することができる。 In recent years, for example, Bluetooth (registered trademark) is known as a wireless communication technology that can be applied to, for example, electronic devices. If this Bluetooth wireless communication technology is used, audio data can be transferred from a mobile phone or the like to an opposite device such as a headset without using an audio cable.
このブルートゥースの規格としては、2.4GHzの無線LAN(IEEE 802.11/b/g)との干渉対策を施した仕様であるBluetooth Specification Version1.2 (非特許文献1)や高速化機能であるEDR(Enhanced Data Rate)を採用した仕様であるBluetooth Specification Version2+EDR (非特許文献2)などが知られている。
ところで、携帯電話機と対向機器としてのヘッドセットとの間で切断処理を実行している最中に上位層から次の接続要求があった場合、その接続要求に基づく接続処理を実行してしまうと、すでに実行中の切断処理と後発的に開始された接続処理とが衝突してしまい、後発的に開始された接続処理が失敗に終わってしまう可能性がある。また、切断処理以外の他の処理に関しては、物理層による物理接続が残存している場合にはそれを利用することで論理層による論理接続を確立してその処理を実行することができるため、前の処理の完了を待たずに実行することができるように一律にその処理に関する要求をコマンドキューにキューイングするが、前の要求に基づいてすでに実行されている処理をキャンセルする要求に関してコマンドキューにキューイングしてしまうと、キャンセル処理が遅れてしまう。 By the way, when the next connection request is received from an upper layer while the disconnection process is being executed between the mobile phone and the headset as the opposite device, the connection process based on the connection request is executed. There is a possibility that the disconnection process already being executed and the connection process started later will collide, and the connection process started later will fail. In addition, regarding processing other than disconnection processing, if physical connection by the physical layer remains, the logical connection by the logical layer can be established and used to execute the processing. Requests for processing are uniformly queued in the command queue so that they can be executed without waiting for completion of the previous processing, but command queues for canceling processing that has already been executed based on the previous request. If it is queued, the cancellation process will be delayed.
このように、携帯電話機と対向機器としてのヘッドセットとの間で無線通信を行う際に携帯電話機にて実行される処理(例えば接続処理や切断処理など)の性質とその実行状況に応じて、指示された要求に基づく処理を適切に実行することは困難であるという課題があった。 In this way, depending on the nature of the processing (for example, connection processing or disconnection processing) executed in the mobile phone when performing wireless communication between the mobile phone and the headset as the opposite device, and the execution status thereof, There has been a problem that it is difficult to appropriately execute processing based on the instructed request.
本発明は、このような状況に鑑みてなされたものであり、上位層から受け付けられた要求のコマンドキューへの積み込みを好適に管理することができる情報処理装置を提供することを目的とする。 The present invention has been made in view of such a situation, and an object of the present invention is to provide an information processing apparatus that can suitably manage loading of a request received from an upper layer into a command queue.
本発明の情報処理装置は、上述した課題を解決するために、対向機器との間での無線通信を物理層および論理層を制御することで行う無線通信制御手段と、前記無線通信制御手段によって前記物理層の接続および切断を制御させるためのコマンド、前記物理層および論理層を介して前記対向機器に処理を指示するためのコマンドを蓄積するコマンドキューと、コマンドが実行中の処理を中止させる要求であるか否かを判断し、実行中の処理を中止させるコマンドであると判断すると、このコマンドを前記コマンドキューに蓄積させず、前記無線通信制御手段に対して前記対向機器との物理接続を切断するように指示する強制切断制御手段とを備え、前記無線通信制御手段は、前記強制切断制御手段から前記指示を受けると、前記対向機器との間で確立している物理層の接続を、リンクロスを発生させることで切断するとともに、この物理層の切断の後に、前記論理層の切断処理を実行することを特徴とする。 In order to solve the above-described problem, an information processing apparatus according to the present invention includes a wireless communication control unit that performs wireless communication with a counterpart device by controlling a physical layer and a logical layer, and the wireless communication control unit. A command queue for storing a command for controlling connection and disconnection of the physical layer, a command for instructing processing to the opposite device via the physical layer and a logical layer, and a process being executed by the command are stopped. It is determined whether the request is a command, and if it is determined that the command is to cancel the process being executed, the command is not stored in the command queue, and the physical connection with the opposite device is made to the wireless communication control unit Forcibly disconnecting control means for instructing disconnection, and the wireless communication control means receives the instruction from the forced disconnection control means, The connection of the physical layer are established in, with cutting by generating a link loss, after cleavage of the physical layer, and executes the disconnection process of the logical layer.
本発明の情報処理装置においては、対向機器との間での無線通信が物理層および論理層を制御することで行われ、物理層の接続および切断を制御させるためのコマンド、物理層および論理層を介して対向機器に処理を指示するためのコマンドが蓄積され、コマンドが実行中の処理を中止させる要求であるか否かが判断され、実行中の処理を中止させるコマンドであると判断すると、このコマンドがコマンドキューに蓄積されず、対向機器との物理接続を切断するように指示され、指示を受けると、対向機器との間で確立している物理層の接続を、リンクロスを発生させることで切断するとともに、この物理層の切断の後に、論理層の切断処理が実行される。 In the information processing apparatus of the present invention, wireless communication with the counterpart device is performed by controlling the physical layer and the logical layer, and a command for controlling connection and disconnection of the physical layer, the physical layer and the logical layer Commands for instructing processing to the opposite device are stored, it is determined whether or not the command is a request to stop the processing being executed, and if it is determined that the command is to stop the processing being executed, If this command is not stored in the command queue and an instruction is given to disconnect the physical connection with the opposite device, and the instruction is received, the physical layer connection established with the opposite device causes a link loss. In addition, the logical layer is cut after the physical layer is cut.
本発明によれば、上位層から受け付けられた要求のコマンドキューへの積み込みを好適に管理することができる。 According to the present invention, it is possible to suitably manage loading of a request received from an upper layer into a command queue.
以下、本発明の実施の形態について、図面を参照しながら説明する。図1に示されるように、携帯電話機1の近傍には、本発明に係る対向機器として適用可能なヘッドセット2が配置されている。ヘッドセット2は、携帯電話機1から無線通信(例えばブルートゥースなど)を用いて転送されたオーディオデータを受信し、リアルタイムに再生することができる。なお、対向機器としてはヘッドセット2以外にも図示せぬ車載器を用いるようにしてもよい。
Hereinafter, embodiments of the present invention will be described with reference to the drawings. As shown in FIG. 1, in the vicinity of a mobile phone 1, a
図2は、図1の携帯電話機1の内部の構成を表している。図2に示されるように、携帯電話機1は、制御部11、表示部12、入力部13、記憶部14、無線電話通信部15、信号処理部16、PCMコーデック17、マイクロフォン18、スピーカ19、メディアプレイヤ部20、コンテンツ処理部21、近距離無線通信部22、および強制中断部23がバス24により相互に接続されて構成されている。
FIG. 2 shows an internal configuration of the mobile phone 1 of FIG. As shown in FIG. 2, the mobile phone 1 includes a
制御部11は、CPU(Central Processing Unit)、ROM(Read Only Memory)、およびRAM(Random Access Memory)などからなり、CPUは、ROMに記憶されているプログラムまたは記憶部14からRAMにロードされた各種のアプリケーションプログラムに従って各種の処理を実行するとともに、種々の制御信号を生成し、各部に供給することにより携帯電話機1を統括的に制御する。RAMは、CPUが各種の処理を実行する上において必要なデータなどを適宜記憶する。
The
表示部12は、例えばLCD(Liquid Crystal Display)などからなり、入力部13は図示せぬ操作キーや操作ボタンなどにより構成される。
The
無線電話通信部15は、図示せぬ基地局から送信された無線信号を、図示せぬアンテナを介して受信し、受信された無線信号のダウンコンバートを行って中間周波信号を求め、さらに直交復調処理、RAKE受信機(図示せず)による各パスの逆拡散及び合成処理などを行う。その後、このRAKE受信機から出力された受信パケットデータは、信号処理部16に入力される。
The radio
信号処理部16は、例えばDSP(Digital Signal Processor)などからなり、無線電話通信部15を介して送受信される音声信号の符号化・復号化を実行するスピーチコーデックを備えている。
The
そして、このような復号処理により得られたディジタル音声信号は、PCMコーデック17によりPCM復号された後、増幅されてスピーカ19により出力される。一方、マイクロフォン18から入力された音声信号はPCMコーデック17でディジタル音声信号に変調してスピーチコーデックに入力される。
The digital audio signal obtained by such decoding processing is PCM decoded by the
メディアプレイヤ部20は、例えばオーディオデータを再生するための音楽プレイヤ機能を実行する。勿論、携帯電話機1に地上波ディジタルワンセグ・ラジオ受信部などを設けるようにして、例えば地上波ディジタルワンセグ放送波を受信する際のアプリケーションプログラムを実行することによる地上波ディジタルワンセグプレイヤ機能などの各種のメディアプレイヤを実行するようにしてもよい。
The
コンテンツ処理部21は、デコーダとエンコーダからなり、デコーダは、例えばメディアプレイヤ部20が音楽プレイヤ機能を制御する際に、例えばAACやaacPlus、MP3、ATRAC、SBCなどの符号化方式で符号化(エンコード)されたオーディオデータを、一旦、その符号化方式に対応する復号化方式で復号化(デコード)する。そして、コンテンツ処理部21のエンコーダは、デコーダにより復号化(デコード)されたアナログのオーディオデータを他の符号化方式によって再符号化処理などを施す。
The
また、メディアプレイヤ部20がワンセグプレイヤ機能を実行する場合は、上記AACなどのオーディオデータの符号化、復号化処理を行う以外に、MPEG4やH.264のような符号化方式と復号化方式を用いて符号化、復号化処理を行うようにしてもよい。
In addition, when the
近距離無線通信部22は、例えばブルートゥース(Bluetooth(登録商標))による無線通信を行うモジュールなどからなり、携帯電話機1の近傍に存在するヘッドセット2などと無線通信を行う。勿論、ブルートゥース以外の無線通信(例えば赤外線通信)を用いるようにしてもよい。近距離無線通信部22は、プロトコル層制御部25、コマンドキュー26、および要求管理部27などからなる。
The short-range
プロトコル層制御部25は、対向機器であるヘッドセット2との間で近距離無線通信を行う際に用いられるプロトコル層(論理層と物理層)を制御する。特に、プロトコル層制御部25は、対向機器であるヘッドセット2との間で行われる近距離無線通信における物理層による物理接続を管理するだけでなく、対向機器であるヘッドセット2との間で行われる近距離無線通信における論理層による論理接続を管理する。
The protocol
コマンドキュー26は、プロトコル層制御部25により制御されるプロトコル層へのコマンド(要求)をキューイングし、コマンド(要求)の実行を一時的に待機させる。要求管理部27は、上位層(アプリケーション層やAPI(Application Program Interface)層)から順次要求を受け付けると、受け付けられた要求(コマンド)をコマンドキュー26に適宜積み込み、受け付けられた要求(コマンド)のコマンドキュー26への積み込みを管理する。
The
強制中断部23は、携帯電話機1とヘッドセット2との距離が大きくなったときなどの弱電界の状況下において、着信割り込みなどの強制中断要因が発生した場合に、対向機器であるヘッドセット2との間における物理接続の切断をプロトコル層制御部25に指示し、対向機器であるヘッドセット2との間における物理接続を強制的に切断させる。
The forced
ところで、携帯電話機1と対向機器としてのヘッドセット2などとの間における電界強度が低下するなどによって、携帯電話機1とヘッドセット2との間の状況が弱電界の状況となると、携帯電話機1からヘッドセット2に送信された接続要求に対する応答をなかなか受信することができなくなる場合がある(すなわち、通常1秒で応答を受信できる場合に、2,3秒の時間がかかってしまう)。このような場合、携帯電話機1側から切断要求を行いたくても、直ちに両機器間における接続を切断することができない。
By the way, when the situation between the mobile phone 1 and the
そこで、通常のプロトコル層制御部25による論理的な切断手続きを行わずに、ヘッドセット2との間における物理接続を強制的に切断する。これにより、ヘッドセット2との間で弱電界の状況下となった場合であっても、強制中断要因が発生したときには、ヘッドセット2との間における接続を直ちに切断することができる。
Therefore, the physical connection with the
しかしながら、一般に、切断処理以外の他の処理に関しては、物理層による物理接続が残存している場合にはそれを利用することで論理層による論理接続を確立してその処理を実行することができるため、前の処理の完了を待たずに実行することができるように一律にその処理に関する要求(コマンド)をコマンドキュー26にキューイングする。例えば図3に示されるように、ユーザにより入力部13が操作されることにより対向機器であるヘッドセット2に関してデバイス名の取得要求の指示がなされると、アプリケーション層、API層、論理層、および物理層を用いて近距離無線通信部22を介してヘッドセット2にデバイス名取得要求(“name-request”)が送信された後(図3のステップS1乃至S4)、ヘッドセット2のサービス検索要求の指示がなされたとき、前のデバイス名取得要求処理の完了を待たずにサービス検索要求を実行することができるようにその処理に関する要求(コマンド(“Service Search-request”))をコマンドキュー26にキューイングする(図3のステップS5乃至S8)。ところが、前の要求(例えば“Service Search-request”や“name-request”のコマンド)に基づいてすでに実行されている処理をキャンセルする要求(強制中断要求)に関してコマンドキュー26にキューイングしてしまうと、そのキャンセル処理が遅れてしまう。
However, in general, regarding processes other than the disconnection process, if a physical connection by the physical layer remains, the logical connection by the logical layer can be established and executed by using the physical connection. Therefore, requests (commands) relating to the processing are uniformly queued in the
そこで、上位層(アプリケーション層やAPI(Application Program Interface)層)から順次要求を受け付けると、受け付けられた要求(コマンド)の性質に応じてコマンドキュー26にコマンドを積み込んだり、あるいは、積み込まないようにするようにする。これにより、上位層から受け付けられた要求のコマンドキューへの積み込みを好適に管理することができる。従って、ヘッドセット2との間で無線通信を行う際に実行される処理の性質とその実行状況に応じて、指示された要求に基づく処理を好適に実行することが可能となる。以下、この方法を用いた要求管理処理について説明する。
Therefore, when a request is sequentially received from an upper layer (an application layer or an API (Application Program Interface) layer), a command is or may not be loaded into the
図4のフローチャートを参照して、図2の携帯電話機1における要求管理処理について説明する。この強制中断処理は、すでに実行中の要求に基づく処理のキャンセルの指示など強制中断指示がなされるときに、開始される。なお、図5は、図4のフローチャートを用いて説明する要求管理処理を実行する際の、携帯電話機1とヘッドセット2との間における具体的な処理のシーケンスを表している。
A request management process in the mobile phone 1 of FIG. 2 will be described with reference to the flowchart of FIG. This forced interruption process is started when a forced interruption instruction such as an instruction to cancel a process based on a request that is already being executed is given. FIG. 5 shows a specific processing sequence between the mobile phone 1 and the
ステップS11において、携帯電話機1とヘッドセット2との間で接続を確立する最中に、すでに実行中の要求に基づく処理のキャンセルの指示(強制中断指示)などの強制中断要因が発生する。具体的には、図5に示されるように、ヘッドセット2のサービス検索要求の指示がなされ、サービス検索要求が近距離無線通信部22を介してヘッドセット2へ送信されてサービス検索要求に基づく処理の実行中に(図5のステップS21乃至S27)、ユーザにより入力部13が操作されることによりその処理のキャンセルが指示されることで、その処理のキャンセルの指示(強制中断指示)などの強制中断要因が発生する(図5のステップS28)。このとき、制御部11により制御されるアプリケーションプログラムから、サービス検索要求に基づく処理のキャンセルが強制中断部23に指示される(図5のステップS29)。
In step S11, during the establishment of a connection between the mobile phone 1 and the
ステップS12において、強制中断部23は、すでに実行中の要求に基づく処理のキャンセルの指示(強制中断指示)などの強制中断要因が発生した場合に、対向機器であるヘッドセット2との間における物理接続の切断を下位層としてのプロトコル層制御部25に指示し、対向機器であるヘッドセット2との間における物理接続を強制的に切断させる(図5のステップS30)。
In step S12, the forced
このとき、ステップS13において、要求管理部27は、強制中断部23からの強制中断指示(要求)に基づく処理はキャンセル処理であることから、この強制中断指示(要求)をコマンドキュー26には積み込まない。
At this time, in step S13, the
ステップS14において、プロトコル層制御部25は、強制中断部23からの強制中断指示に従い、携帯電話機1とヘッドセット2との間における物理接続の切断を要求するための切断要求を近距離無線通信部22を介してヘッドセット2に送信させる。近距離無線通信部22は、プロトコル層制御部25の管理に従い、この切断要求(携帯電話機1とヘッドセット2との間における物理接続の切断を要求するための切断要求)をヘッドセット2に送信する(図5のステップS31)。このとき、ヘッドセット2に切断要求が送信されるとともに、この切断が正常な切断である旨の通知もヘッドセット2に送信される。これにより、強制中断部23による物理接続の強制的な中断が実行されたとしても、ヘッドセット2では、正常な切断であると認識することができる。
In step S <b> 14, the protocol
ステップS15において、近距離無線通信部22は、ヘッドセット2から、切断要求に対応する応答である切断応答を受信する。そして、ステップS16において、携帯電話機1とヘッドセット2との間における物理接続は強制的に切断される。ステップS17において、プロトコル層制御部25は、その後、ヘッドセット2との物理接続が切断された状態であるリンクロスを検出するとともに、ステップS18で、リンクロス(ヘッドセット2との物理接続が切断された状態)が検出された場合、物理接続の切断が完了した旨を上位層(論理層)としての論理層に通知する(図5のステップS33乃至S34)。
In step S <b> 15, the short-range
その後、ステップS19において、プロトコル層制御部25は、論理層からの物理接続の切断が完了した旨の通知に従い、所定の論理接続手続きを用いて、携帯電話機1とヘッドセット2との間における論理接続の切断処理を実行する(図5のステップS35)。
Thereafter, in step S19, the protocol
本発明の実施形態においては、対向機器としてのヘッドセット2との間で無線通信を行う際に用いられるプロトコル層を制御し、制御されるプロトコル層へのコマンドの実行をコマンドキュー26にて待機させ、上位層から順次受け付けられた要求のコマンドキューへの積み込みを管理するとともに、強制中断要因が発生した場合に、ヘッドセット2との間における物理接続の切断をプロトコル層制御部25に要求し、プロトコル層制御部25を用いてヘッドセット2との間における物理接続を切断させることができる。このとき、要求管理部27は、強制中断部23による強制中断要求が受け付けられたとき、強制中断要求をコマンドキュー26に積み込まずに、強制中断部23による強制中断処理を実行させるようにすることができる。
In the embodiment of the present invention, the protocol layer used when performing wireless communication with the
これにより、携帯電話機1とヘッドセット2との間で接続を確立する最中に、すでに実行中の要求に基づく処理のキャンセルの指示(強制中断指示)などの強制中断要因が発生した場合に、コマンドキュー26を経由させることなく、直ちにキャンセル処理を実行させることができ、強制中断要因が発生したときには、ヘッドセット2との間における接続を直ちに切断することができる。従って、上位層から受け付けられた要求のコマンドキューへの積み込みを好適に管理することができ、ヘッドセット2との間で無線通信を行う際に実行される処理の性質とその実行状況に応じて、指示された要求に基づく処理を好適に実行することができる。その結果、携帯電話機1とヘッドセット2との間で近距離無線通信を行う際の利便性を向上させることができる。
As a result, when a forced interruption factor such as an instruction to cancel a process based on a request that is already being executed (forced interruption instruction) occurs while establishing a connection between the mobile phone 1 and the
なお、強制中断要因としてはキャンセル指示を明示的に記載したが、このような場合に限られず、例えば着信の割り込みや停止要求などのその他の強制中断要因が発生した場合についても適用することができる。 Although the cancellation instruction is explicitly described as the forced interruption factor, it is not limited to such a case, and can be applied to the case where other forced interruption factors such as an incoming interrupt or a stop request occur. .
ところで、携帯電話機1と対向機器としてのヘッドセット2との間で切断処理を実行している最中に上位層(アプリケーションやAPI層)から次の接続要求があった場合、その接続要求に基づく接続処理を実行してしまうと、すでに実行中の切断処理と後発的に開始された接続処理とが衝突してしまい、後発的に開始された接続処理が失敗に終わってしまう可能性がある。
By the way, when the next connection request is received from the upper layer (application or API layer) while the disconnection process is being executed between the mobile phone 1 and the
そこで、上位層(アプリケーション層やAPI(Application Program Interface)層)から順次要求を受け付けると、受け付けられた要求(コマンド)の性質に応じてコマンドキュー26にコマンドを積み込んだり、あるいは、積み込まないようにするだけでなく、受け付けられた要求(コマンド)を実行状況に応じて、コマンドキュー26に積み込むことを一時的に遅延させるようにしてもよい。これにより、上位層から受け付けられた要求のコマンドキューへの積み込みをより好適に管理することができる。その結果、ヘッドセット2との間で無線通信を行う際に実行される処理の性質とその実行状況に応じて、指示された要求に基づく処理を好適に実行することが可能となる。以下、この方法を用いた要求管理処理について説明する。
Therefore, when a request is sequentially received from an upper layer (an application layer or an API (Application Program Interface) layer), a command is or may not be loaded into the
図6のフローチャートを参照して、図2の携帯電話機における他の要求管理処理について説明する。なお、図7は、図6のフローチャートを用いて説明する要求管理処理を実行する際の、携帯電話機1とヘッドセット2との間における具体的な処理のシーケンスを表している。
With reference to the flowchart of FIG. 6, another request management process in the mobile phone of FIG. 2 will be described. FIG. 7 shows a specific processing sequence between the mobile phone 1 and the
ステップS41において、ユーザにより入力部13が操作されることにより切断要求が指示されると、制御部11により制御されるアプリケーションプログラムから、プロトコル層制御部25に切断要求が指示される(図7のステップS51乃至S54)。
In step S41, when the disconnection request is instructed by the user operating the
ステップS42において、プロトコル層制御部25は、携帯電話機1とヘッドセット2との間における物理接続の切断を要求するための切断要求を近距離無線通信部22を介してヘッドセット2に送信させる。近距離無線通信部22は、プロトコル層制御部25の管理に従い、この切断要求(携帯電話機1とヘッドセット2との間における物理接続の切断を要求するための切断要求)をヘッドセット2に送信する(図7のステップS55)。
In step S <b> 42, the protocol
次に、ステップS43において、制御部11は、ユーザにより入力部13が操作されることにより接続要求の指示がなされることで、切断処理中に接続要求の指示を受け付ける(図7のステップS56)。ユーザにより入力部13が操作されることにより接続要求が指示されると、制御部11により制御されるアプリケーションプログラムから、API層に接続要求が指示される(図7のステップS57)。
Next, in step S43, the
このとき、従来ではあれば、制御部11により制御されるアプリケーションプログラムから、API層に接続要求が指示されると、直ちに接続要求の指示がAPI層からプロトコル層制御部25になされ、プロトコル層制御部25にてその接続要求に基づく接続処理が実行されてしまう(図7のステップa乃至e)。そうすると、一般に物理層では前の処理の実行完了を待って接続要求を実行するが、直前の処理が切断要求の場合には、物理接続が存在することを前提として処理完了待ちをしたとしても、直前の切断処理が完了した結果として物理接続がなくなってしまい,結局、この接続要求は前の切断処理によって間接的に失敗してしまうことになる。
At this time, if a connection request is instructed from the application program controlled by the
そこで、ステップS44において、要求管理部27は、切断要求に基づく切断処理が完了するまで接続要求のコマンドキュー26への積み込みを待ち、一時的に積み込みを遅延させる(図7のステップS59)。ステップS45において、要求管理部27は、ヘッドセット2から切断応答を近距離無線通信部22を介して受信することで切断処理が完了したか否かを判定し、切断処理が完了したと判定するまで接続要求のコマンドキューへの積み込みを待つ。
Therefore, in step S44, the
ステップS45において切断処理が完了したと判定された場合、ステップS46で制御部11により制御されるAPI層からプロトコル層制御部25に接続要求が指示され、要求管理部27はステップS47で、接続要求をコマンドキュー26に積み込む(図7のステップS60乃至S63)。
If it is determined in step S45 that the disconnection process has been completed, a connection request is instructed from the API layer controlled by the
ステップS48において、プロトコル層制御部25は、携帯電話機1とヘッドセット2との間における接続を要求するための接続要求を近距離無線通信部22を介してヘッドセット2に送信させる。近距離無線通信部22は、プロトコル層制御部25の管理に従い、この接続要求をヘッドセット2に送信する(図7のステップS64)。
In step S <b> 48, the protocol
これにより、すでに実行中の切断処理と後発的に開始された接続処理とが衝突してしまい、後発的に開始された接続処理が失敗してしまうことを回避することができ、上位層から受け付けられた要求のコマンドキューへの積み込みをより好適に管理することができる。従って、ヘッドセット2との間で無線通信を行う際に実行される処理の性質とその実行状況に応じて、指示された要求に基づく処理を好適に実行することができる。その結果、携帯電話機1とヘッドセット2との間で近距離無線通信を行う際の利便性を向上させることができる。
As a result, it can be avoided that the disconnection process that is already being executed and the connection process that has been started later collide, and the connection process that has been started later will fail. It is possible to better manage the loading of the requested request to the command queue. Therefore, the processing based on the instructed request can be suitably executed according to the nature of the processing executed when performing wireless communication with the
なお、切断処理の実行中に接続要求以外の要求を上位層から受け付けた場合、コマンドキュー26に積み込むことを一時的に遅延させずに、次の要求を下位層に指示してその要求に基づく処理を実行させるようにしてもよい。
When a request other than the connection request is received from the upper layer during the disconnection process, the next request is instructed to the lower layer without temporarily delaying loading into the
なお、本発明は、携帯電話機1以外にも、PDA(Personal Digital Assistant)、パーソナルコンピュータ、携帯型ゲーム機、携帯型音楽再生機、携帯型動画再生機、その他の情報処理情報処理装置にも適用することができる。 The present invention can be applied to a PDA (Personal Digital Assistant), a personal computer, a portable game machine, a portable music player, a portable video player, and other information processing information processing apparatuses in addition to the cellular phone 1. can do.
また、本発明の実施形態において説明した一連の処理は、ソフトウェアにより実行させることもできるが、ハードウェアにより実行させることもできる。 The series of processes described in the embodiments of the present invention can be executed by software, but can also be executed by hardware.
さらに、本発明の実施形態では、フローチャートのステップは、記載された順序に沿って時系列的に行われる処理の例を示したが、必ずしも時系列的に処理されなくとも、並列的あるいは個別実行される処理をも含むものである。 Furthermore, in the embodiment of the present invention, the steps of the flowchart show an example of processing performed in time series in the order described, but parallel or individual execution is not necessarily performed in time series. The processing to be performed is also included.
1…携帯電話機、2…ヘッドセット、11…制御部、12…表示部、13…入力部、14…記憶部、15…無線電話通信部、16…信号処理部、17…PCMコーデック、18…マイクロフォン、19…スピーカ、20…メディアプレイヤ部、21…コンテンツ処理部、22…近距離無線通信部、23…強制中断部、24…バス、25…プロトコル層制御部、26…コマンドキュー、27…要求管理部。 DESCRIPTION OF SYMBOLS 1 ... Mobile telephone, 2 ... Headset, 11 ... Control part, 12 ... Display part, 13 ... Input part, 14 ... Memory | storage part, 15 ... Radio telephone communication part, 16 ... Signal processing part, 17 ... PCM codec, 18 ... Microphone, 19 ... speaker, 20 ... media player unit, 21 ... content processing unit, 22 ... near field communication unit, 23 ... forced interruption unit, 24 ... bus, 25 ... protocol layer control unit, 26 ... command queue, 27 ... Request management department.
Claims (2)
前記無線通信制御手段によって前記物理層の接続および切断を制御させるためのコマンド、前記物理層および論理層を介して前記対向機器に処理を指示するためのコマンドを蓄積するコマンドキューと、
コマンドが実行中の処理を中止させる要求であるか否かを判断し、実行中の処理を中止させるコマンドであると判断すると、このコマンドを前記コマンドキューに蓄積させず、前記無線通信制御手段に対して前記対向機器との物理接続を切断するように指示する強制切断制御手段とを備え、
前記無線通信制御手段は、前記強制切断制御手段から前記指示を受けると、前記対向機器との間で確立している物理層の接続を、リンクロスを発生させることで切断するとともに、この物理層の切断の後に、前記論理層の切断処理を実行することを特徴とする情報処理装置。 Wireless communication control means for performing wireless communication with the opposing device by controlling the physical layer and the logical layer;
A command queue for storing a command for controlling connection and disconnection of the physical layer by the wireless communication control means, a command for instructing processing to the opposite device via the physical layer and a logical layer;
It is determined whether or not the command is a request for canceling the process being executed. If it is determined that the command is a command for canceling the process being executed, the wireless communication control unit does not store the command in the command queue. Forcibly disconnecting control means for instructing to disconnect the physical connection with the opposite device,
Upon receiving the instruction from the forced disconnection control unit, the wireless communication control unit disconnects the physical layer connection established with the opposing device by generating a link loss, and the physical layer An information processing apparatus that performs the logical layer cutting process after cutting.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007159386A JP4435209B2 (en) | 2007-06-15 | 2007-06-15 | Information processing device |
US12/113,408 US8238827B2 (en) | 2007-06-15 | 2008-05-01 | Information processing apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007159386A JP4435209B2 (en) | 2007-06-15 | 2007-06-15 | Information processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008310692A JP2008310692A (en) | 2008-12-25 |
JP4435209B2 true JP4435209B2 (en) | 2010-03-17 |
Family
ID=40238217
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007159386A Expired - Fee Related JP4435209B2 (en) | 2007-06-15 | 2007-06-15 | Information processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4435209B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2517762A (en) * | 2013-08-30 | 2015-03-04 | Nec Corp | Communications system |
-
2007
- 2007-06-15 JP JP2007159386A patent/JP4435209B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2008310692A (en) | 2008-12-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7953400B2 (en) | Automatic pairing method for Bluetooth®-enabled mobile terminal | |
US8588849B2 (en) | System and method for resuming media | |
US8977202B2 (en) | Communication apparatus having a unit to determine whether a profile is operating | |
US10542405B2 (en) | Bluetooth profile fast connect | |
JP5141546B2 (en) | Information processing device | |
JP5527355B2 (en) | Near field communication device | |
JP5278506B2 (en) | Near field communication device | |
KR20090068457A (en) | Apparatus and method for service connecting in a portable terminal | |
KR20150028588A (en) | Electronic device and method for providing streaming service | |
JP4445515B2 (en) | Information processing device | |
CN114040373A (en) | Audio service processing method and device, electronic equipment and storage medium | |
US8238827B2 (en) | Information processing apparatus | |
JP2010109929A (en) | Wireless communication terminal | |
JP2017041793A (en) | Portable radio device and transmission method | |
JP4929324B2 (en) | Portable terminal device and communication control method | |
JP4435209B2 (en) | Information processing device | |
JP4372180B2 (en) | Information processing device | |
CN109361820B (en) | Electronic equipment control method and system and electronic equipment | |
JP5692442B2 (en) | Near field communication device | |
JP2007150766A (en) | Wireless communication connection system | |
JP2008312055A (en) | Information processor | |
US20080026784A1 (en) | Method and system for rapid initiation sequence for mobile unit | |
WO2021237936A1 (en) | Ims registration method, storage medium, and electronic terminal | |
JP4796537B2 (en) | Information processing device | |
CN113053370A (en) | Method and device for awakening application |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080924 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090120 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090319 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090901 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20091030 |
|
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: 20091124 |
|
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: 20091222 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130108 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130108 Year of fee payment: 3 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313113 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130108 Year of fee payment: 3 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140108 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140108 Year of fee payment: 4 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
LAPS | Cancellation because of no payment of annual fees |