JP6140972B2 - Communication device and communication control method - Google Patents
Communication device and communication control method Download PDFInfo
- Publication number
- JP6140972B2 JP6140972B2 JP2012229360A JP2012229360A JP6140972B2 JP 6140972 B2 JP6140972 B2 JP 6140972B2 JP 2012229360 A JP2012229360 A JP 2012229360A JP 2012229360 A JP2012229360 A JP 2012229360A JP 6140972 B2 JP6140972 B2 JP 6140972B2
- Authority
- JP
- Japan
- Prior art keywords
- connection
- wireless connection
- dun
- routing table
- wireless
- 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
- Mobile Radio Communication Systems (AREA)
Description
本発明は、ルーティングテーブル(又は経路表ともいう)を用いて無線通信を行う通信機器及び通信制御方法に関する。 The present invention relates to a communication device and a communication control method for performing wireless communication using a routing table (also referred to as a route table).
従来、APN(Access Point Name)を用いて、このAPNに対応するネットワークへ接続する通信機器が知られている(例えば、特許文献1参照)。 Conventionally, there has been known a communication device that uses an APN (Access Point Name) to connect to a network corresponding to the APN (see, for example, Patent Document 1).
例えば、通信機器が複数のAPNを用いて複数の接続先に接続する場合、これら複数の接続先にそれぞれ対応するIPアドレスが連続又は接近して割り当てられると、後に割り当てられたIPアドレスに対応するネットワークアドレスが前に割り当てられたIPアドレスに対応するネットワークアドレスと同一になってしまう。すると、通信機器は、後に割り当てられたIPアドレスに関する情報をルーティングテーブルに対して登録することに失敗してしまう。このような場合、通信機器は、後に割り当てられたIPアドレスに対応する接続先への無線接続は維持し続けるため、この接続先については、無線接続は維持していても、通信ができない状態となってしまう。 For example, when a communication device connects to a plurality of connection destinations using a plurality of APNs, if IP addresses corresponding to the plurality of connection destinations are assigned consecutively or close to each other, it corresponds to the IP address assigned later. The network address will be the same as the network address corresponding to the previously assigned IP address. Then, the communication device fails to register information related to the IP address assigned later in the routing table. In such a case, since the communication device continues to maintain the wireless connection to the connection destination corresponding to the IP address assigned later, the connection destination is in a state where communication is not possible even if the wireless connection is maintained. turn into.
本発明は、無駄な無線接続状態を維持することを回避できる通信機器及び通信制御方法を提供することを目的とする。 An object of this invention is to provide the communication apparatus and communication control method which can avoid maintaining a useless wireless connection state.
本発明に係る通信機器は、無線接続に成功した後に、当該無線接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録することに失敗した場合、当該無線接続を切断する。 If the communication device according to the present invention fails to register the network information assigned at the time of the wireless connection in the routing table after the wireless connection is successful, the communication device disconnects the wireless connection.
本発明に係る通信機器は、複数の接続先に対する無線接続に成功した後に、当該複数の接続先のうち、いずれかの接続先に対する無線接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録することに失敗した場合、前記複数の接続先に対する無線接続を切断する。 The communication device according to the present invention registers the network information assigned at the time of wireless connection to one of the plurality of connection destinations in the routing table after successful wireless connection to the plurality of connection destinations. If it fails, the wireless connection to the plurality of connection destinations is disconnected.
本発明に係る通信機器は、複数の接続先に対する無線接続に成功した後に、当該複数の接続先のうち、いずれかの接続先に対する無線接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録することに失敗した場合、前記複数の接続先のうち、前記ルーティングテーブルへの登録に失敗した接続先、及び当該接続先よりも優先度が低い接続先に対する無線接続を切断する。 The communication device according to the present invention registers the network information assigned at the time of wireless connection to one of the plurality of connection destinations in the routing table after successful wireless connection to the plurality of connection destinations. If the connection fails, the wireless connection to the connection destination that failed to be registered in the routing table among the plurality of connection destinations and the connection destination having a lower priority than the connection destination is disconnected.
前記ネットワーク情報は、少なくともIPアドレス及びネットワークアドレスを含んでもよい。 The network information may include at least an IP address and a network address.
本発明に係る通信機器は、前記無線接続を切断した接続先に対して再接続した際に、当該再接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録することに再度失敗した場合、当該再接続した接続先に対する無線接続を切断しなくてもよい。 When the communication device according to the present invention reconnects to the connection destination that has disconnected the wireless connection, if the network information assigned at the time of the reconnection fails to be registered again in the routing table, the reconnection It is not necessary to disconnect the wireless connection to the connection destination.
本発明に係る通信機器は、前記再接続した接続先に対する無線接続を切断しなかった場合、当該接続先よりも優先度が高い接続先に対する無線接続が切断されると、前記無線接続を切断しなかった接続先に対する無線接続を切断してもよい。 The communication device according to the present invention disconnects the wireless connection when the wireless connection to the connection destination having a higher priority than the connection destination is disconnected when the wireless connection to the reconnected connection destination is not disconnected. The wireless connection to the connection destination that did not exist may be disconnected.
本発明に係る通信機器は、前記無線接続を切断した接続先に対して、当該接続先に応じた所定時間の経過後に再接続を行ってもよい。 The communication device according to the present invention may perform reconnection to a connection destination that has disconnected the wireless connection after a predetermined time corresponding to the connection destination has elapsed.
本発明に係る通信機器は、前記無線接続を切断した接続先に対して再接続を試行するまでの時間を、前記ネットワーク情報をルーティングテーブルへ登録することに連続して失敗した回数に応じて増加させてもよい。 The communication device according to the present invention increases the time until a reconnection is attempted with respect to the connection destination that has disconnected the wireless connection according to the number of consecutive failures to register the network information in the routing table. You may let them.
本発明に係る通信制御方法は、通信機器が、無線接続を行うステップと、前記無線接続に成功した後に、当該無線接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録するステップと、前記ネットワーク情報をルーティングテーブルへ登録することに失敗した場合、前記無線接続を切断するステップと、を実行する。 The communication control method according to the present invention includes a step in which a communication device performs wireless connection, a step of registering network information assigned at the time of wireless connection after successful wireless connection in a routing table, and the network information. Disconnecting the wireless connection if registration to the routing table fails.
本発明によれば、通信機器は、無駄な無線接続状態を維持することを回避できる。 According to the present invention, the communication device can avoid maintaining a useless wireless connection state.
[第1実施形態]
本発明を実施するための第1実施形態を、図面を参照しつつ詳細に説明する。以下では、通信機器の一例として、スマートフォンについて説明する。
[First Embodiment]
A first embodiment for carrying out the present invention will be described in detail with reference to the drawings. Hereinafter, a smartphone will be described as an example of a communication device.
図1から図3を参照しながら、実施形態に係るスマートフォン1の外観について説明する。図1から図3に示すように、スマートフォン1は、ハウジング20を有する。ハウジング20は、フロントフェイス1Aと、バックフェイス1Bと、サイドフェイス1C1〜1C4とを有する。フロントフェイス1Aは、ハウジング20の正面である。バックフェイス1Bは、ハウジング20の背面である。サイドフェイス1C1〜1C4は、フロントフェイス1Aとバックフェイス1Bとを接続する側面である。以下では、サイドフェイス1C1〜1C4を、どの面であるかを特定することなく、サイドフェイス1Cと総称することがある。
The external appearance of the
スマートフォン1は、タッチスクリーンディスプレイ2と、ボタン3A〜3Cと、照度センサ4と、近接センサ5と、レシーバ7と、マイク8と、カメラ12とをフロントフェイス1Aに有する。スマートフォン1は、カメラ13をバックフェイス1Bに有する。スマートフォン1は、ボタン3D〜3Fと、外部インタフェース14とをサイドフェイス1Cに有する。以下では、ボタン3A〜3Fを、どのボタンであるかを特定することなく、ボタン3と総称することがある。
The
タッチスクリーンディスプレイ2は、ディスプレイ2Aと、タッチスクリーン2Bとを有する。ディスプレイ2Aは、液晶ディスプレイ(Liquid Crystal Display)、有機ELパネル(Organic Electro−Luminescence panel)、又は無機ELパネル(Inorganic Electro−Luminescence panel)等の表示デバイスを備える。ディスプレイ2Aは、文字、画像、記号又は図形等を表示する。
The
タッチスクリーン2Bは、タッチスクリーンディスプレイ2に対する指、又はスタイラスペン等の接触を検出する。タッチスクリーン2Bは、複数の指、又はスタイラスペン等がタッチスクリーンディスプレイ2に接触した位置を検出することができる。
The
タッチスクリーン2Bの検出方式は、静電容量方式、抵抗膜方式、表面弾性波方式(又は超音波方式)、赤外線方式、電磁誘導方式、及び荷重検出方式等の任意の方式でよい。以下では、説明を簡単にするため、タッチスクリーン2Bがタッチスクリーンディスプレイ2に対する接触を検出する指、又はスタイラスペン等を単に「指」ということがある。
The detection method of the
スマートフォン1は、タッチスクリーン2Bにより検出された接触、接触位置、接触時間又は接触回数に基づいてジェスチャの種別を判別する。ジェスチャは、タッチスクリーンディスプレイ2に対して行われる操作である。スマートフォン1によって判別されるジェスチャには、タッチ、ロングタッチ、リリース、スワイプ、タップ、ダブルタップ、ロングタップ、ドラッグ、フリック、ピンチイン、ピンチアウト等が含まれる。
The
タッチは、タッチスクリーンディスプレイ2(例えば、表面)に指が接触するジェスチャである。スマートフォン1は、タッチスクリーンディスプレイ2に指が接触するジェスチャをタッチとして判別する。ロングタッチとは、タッチスクリーンディスプレイ2に指が一定時間以上接触するジェスチャである。スマートフォン1は、タッチスクリーンディスプレイ2に指が一定時間以上接触するジェスチャをロングタッチとして判別する。
A touch is a gesture in which a finger contacts the touch screen display 2 (for example, a surface). The
リリースは、指がタッチスクリーンディスプレイ2から離れるジェスチャである。スマートフォン1は、指がタッチスクリーンディスプレイ2から離れるジェスチャをリリースとして判別する。スワイプは、指がタッチスクリーンディスプレイ2上に接触したままで移動するジェスチャである。スマートフォン1は、指がタッチスクリーンディスプレイ2上に接触したままで移動するジェスチャをスワイプとして判別する。
A release is a gesture in which a finger leaves the
タップは、タッチに続いてリリースをするジェスチャである。スマートフォン1は、タッチに続いてリリースをするジェスチャをタップとして判別する。ダブルタップは、タッチに続いてリリースをするジェスチャが2回連続するジェスチャである。スマートフォン1は、タッチに続いてリリースをするジェスチャが2回連続するジェスチャをダブルタップとして判別する。
A tap is a gesture for releasing following a touch. The
ロングタップは、ロングタッチに続いてリリースをするジェスチャである。スマートフォン1は、ロングタッチに続いてリリースをするジェスチャをロングタップとして判別する。ドラッグは、移動可能なオブジェクトが表示されている領域を始点としてスワイプをするジェスチャである。スマートフォン1は、移動可能なオブジェクトが表示されている領域を始点としてスワイプをするジェスチャをドラッグとして判別する。
A long tap is a gesture for releasing following a long touch. The
フリックは、タッチに続いて指が一方方向へ高速で移動しながらリリースするジェスチャである。スマートフォン1は、タッチに続いて指が一方方向へ高速で移動しながらリリースするジェスチャをフリックとして判別する。フリックは、指が画面の上方向へ移動する上フリック、指が画面の下方向へ移動する下フリック、指が画面の右方向へ移動する右フリック、指が画面の左方向へ移動する左フリック等を含む。
The flick is a gesture that is released while the finger moves at high speed in one direction following the touch. The
ピンチインは、複数の指が互いに近付く方向にスワイプするジェスチャである。スマートフォン1は、複数の指が互いに近付く方向にスワイプするジェスチャをピンチインとして判別する。ピンチアウトは、複数の指が互いに遠ざかる方向にスワイプするジェスチャである。スマートフォン1は、複数の指が互いに遠ざかる方向にスワイプするジェスチャをピンチアウトとして判別する。
Pinch-in is a gesture that swipes in a direction in which a plurality of fingers approach each other. The
スマートフォン1は、タッチスクリーン2Bを介して判別するこれらのジェスチャに従って動作を行う。したがって、利用者にとって直感的で使いやすい操作性が実現される。判別されるジェスチャに従ってスマートフォン1が行う動作は、タッチスクリーンディスプレイ2に表示されている画面に応じて異なる。
The
図4は、スマートフォン1の構成を示すブロック図である。スマートフォン1は、タッチスクリーンディスプレイ2と、ボタン3と、照度センサ4と、近接センサ5と、通信ユニット6と、レシーバ7と、マイク8と、ストレージ9と、コントローラ10と、カメラ12及び13と、外部インタフェース14と、加速度センサ15と、方位センサ16と、回転検出センサ17とを有する。
FIG. 4 is a block diagram illustrating the configuration of the
タッチスクリーンディスプレイ2は、上述したように、ディスプレイ2Aと、タッチスクリーン2Bとを有する。ディスプレイ2Aは、文字、画像、記号、又は図形等を表示する。タッチスクリーン2Bは、ジェスチャを検出する。
As described above, the
ボタン3は、利用者によって操作される。ボタン3は、ボタン3A〜ボタン3Fを有する。コントローラ10はボタン3と協働することによってボタンに対する操作を検出する。ボタンに対する操作は、例えば、クリック、ダブルクリック、プッシュ、及びマルチプッシュである。
The
例えば、ボタン3A〜3Cは、ホームボタン、バックボタン又はメニューボタンである。例えば、ボタン3Dは、スマートフォン1のパワーオン/オフボタンである。ボタン3Dは、スリープ/スリープ解除ボタンを兼ねてもよい。例えば、ボタン3E及び3Fは、音量ボタンである。
For example, the
照度センサ4は、照度を検出する。例えば、照度とは、光の強さ、明るさ、輝度等である。照度センサ4は、例えば、ディスプレイ2Aの輝度の調整に用いられる。
The
近接センサ5は、近隣の物体の存在を非接触で検出する。近接センサ5は、例えば、タッチスクリーンディスプレイ2が顔に近付けられたことを検出する。
The
通信ユニット6は、無線により通信する。通信ユニット6によって行われる通信方式は、無線通信規格である。例えば、無線通信規格として、2G、3G、4G等のセルラーフォンの通信規格がある。例えば、セルラーフォンの通信規格としては、LTE(Long Term Evolution)、W−CDMA、CDMA2000、PDC、GSM(登録商標)、PHS(Personal Handy−phone System)等がある。例えば、無線通信規格として、WiMAX(Worldwide Interoperability for Microwave Access)、IEEE802.11、Bluetooth(登録商標)、IrDA、NFC(Near Field Communication)等がある。通信ユニット6は、上述した通信規格の1つ又は複数をサポートしていてもよい。
The
レシーバ7は、コントローラ10から送信される音声信号を音声として出力する。マイク8は、利用者等の音声を音声信号へ変換してコントローラ10へ送信する。なお、スマートフォン1は、レシーバ7に加えて、スピーカをさらに有してもよい。スマートフォン1は、レシーバ7に代えて、スピーカをさらに有してもよい。
The
ストレージ9は、プログラム及びデータを記憶する。また、ストレージ9は、コントローラ10の処理結果を一時的に記憶する作業領域としても利用される。ストレージ9は、半導体記憶デバイス、及び磁気記憶デバイス等の任意の記憶デバイスを含んでよい。また、ストレージ9は、複数の種類の記憶デバイスを含んでよい。また、ストレージ9は、メモリカード等の可搬の記憶媒体と、記憶媒体の読み取り装置との組み合わせを含んでよい。
The
ストレージ9に記憶されるプログラムには、フォアグランド又はバックグランドで実行されるアプリケーションと、アプリケーションの動作を支援する制御プログラムとが含まれる。アプリケーションは、例えば、ディスプレイ2Aに所定の画面を表示させ、タッチスクリーン2Bによって検出されるジェスチャに応じた処理をコントローラ10に実行させる。制御プログラムは、例えば、OSである。アプリケーション及び制御プログラムは、通信ユニット6による無線通信又は記憶媒体を介してストレージ9にインストールされてもよい。
The programs stored in the
ストレージ9は、例えば、制御プログラム9A、メールアプリケーション9B、ブラウザアプリケーション9C、設定データ9Zを記憶する。メールアプリケーション9Bは、電子メールの作成、送信、受信、及び表示等のための電子メール機能を提供する。ブラウザアプリケーション9Cは、WEBページを表示するためのWEBブラウジング機能を提供する。テーブル9Dは、キーアサインテーブル等の各種テーブルが格納されている。配置パターンデータベース9Eは、ディスプレイ2Aに表示されるアイコン等の配置パターンが格納されている。設定データ9Zは、スマートフォン1の動作に関する各種の設定機能を提供する。
The
制御プログラム9Aは、スマートフォン1を稼働させるための各種制御に関する機能を提供する。制御プログラム9Aは、例えば、通信ユニット6、レシーバ7、及びマイク8等を制御することによって、通話を実現させる。制御プログラム9Aが提供する機能には、タッチスクリーン2Bを介して検出されたジェスチャに応じて、ディスプレイ2Aに表示されている情報を変更する等の各種制御を行う機能が含まれる。なお、制御プログラム9Aが提供する機能は、メールアプリケーション9B等の他のプログラムが提供する機能と組み合わせて利用されることがある。
The
コントローラ10は、例えば、CPU(Central Processing Unit)である。コントローラ10は、通信ユニット6等の他の構成要素が統合されたSoC(System−on−a−chip)等の集積回路であってもよい。コントローラ10は、スマートフォン1の動作を統括的に制御して各種の機能を実現する。
The
具体的には、コントローラ10は、ストレージ9に記憶されているデータを必要に応じて参照しつつ、ストレージ9に記憶されているプログラムに含まれる命令を実行して、ディスプレイ2A及び通信ユニット6等を制御することによって各種機能を実現する。コントローラ10は、タッチスクリーン2B、ボタン3、加速度センサ15等の各種検出部の検出結果に応じて、制御を変更することもある。
Specifically, the
コントローラ10は、例えば、制御プログラム9Aを実行することにより、タッチスクリーン2Bを介して検出されたジェスチャに応じて、ディスプレイ2Aに表示されている情報を変更する等の各種制御を実行する。
For example, by executing the
カメラ12は、フロントフェイス1Aに面している物体を撮影するインカメラである。カメラ13は、バックフェイス1Bに面している物体を撮影するアウトカメラである。
The
外部インタフェース14は、他の装置が接続される端子である。外部インタフェース14は、USB(Universal Serial Bus)、HDMI(High−Definition Multimedia Interface)、ライトピーク(サンダーボルト)、イヤホンマイクコネクタのような汎用的な端子であってもよい。外部インタフェース14は、Dockコネクタのような専用に設計された端子でもよい。外部インタフェース14に接続される装置には、例えば、外部ストレージ、スピーカ、通信装置が含まれる。
The
加速度センサ15は、スマートフォン1に働く加速度の方向及び大きさを検出する。方位センサ16は、地磁気の向きを検出する。回転検出センサ17は、スマートフォン1の回転を検出する。加速度センサ15、方位センサ16及び回転検出センサ17の検出結果は、スマートフォン1の位置及び姿勢の変化を検出するために、組み合わせて利用される。
The
このように構成されるスマートフォン1は、通信ユニット6により、複数のAPNを用いて複数の接続先へ無線接続できる。具体的には、スマートフォン1は、インターネット(以下、Default)接続用のAPNと、テザリング(以下、DUN(Dial Up Network))接続用のAPNとを用いて、2つのインタフェースによって無線接続を行う。以下に、無線接続時のコントローラ10の具体的な処理について説明する。
The
図5は、本実施形態に係るルーティングテーブルへ登録されるネットワーク情報の例を示す図である。 FIG. 5 is a diagram illustrating an example of network information registered in the routing table according to the present embodiment.
ネットワーク情報は、少なくともIPアドレス及びネットワークアドレスを含む。
この例では、Defaultのインタフェースである「rmnet0」に対して、ネットワークからスマートフォン1に割り当てられたIPアドレス「106.145.1.93」と、DUNのインタフェースである「rmnet1」に対して、ネットワークからスマートフォン1に割り当てられたIPアドレス「106.145.1.92」とが連続している。
The network information includes at least an IP address and a network address.
In this example, for the default interface “rmnet0”, the IP address “106.145.1.93” assigned to the
このとき、サブネットマスクが「255.255.255.252」であると、ネットワークアドレスは、両インタフェースで共通の「106.145.1.92」となる。すると、例えば、「rmnet0」のネットワーク情報をルーティングテーブルに登録した後、「rmnet1」のネットワーク情報をルーティングテーブルに追加登録する場合、同一のネットワークアドレスに対して複数のIPアドレスを登録できないという制約によって、コントローラ10は、「rmnet1」のネットワーク情報をルーティングテーブルへ追加登録することに失敗する。
At this time, if the subnet mask is “255.255.255.252”, the network address is “106.145.1.92” common to both interfaces. Then, for example, when the network information “rmnet1” is registered in the routing table after the network information “rmnet0” is registered in the routing table, a plurality of IP addresses cannot be registered for the same network address. The
ルーティングテーブルへの登録に失敗した場合でも、スマートフォン1は、無線接続を維持し続けるため、後から接続されたインタフェースでは、無線接続は確立していても通信ができない状態となる。
Even if the registration to the routing table fails, the
図6は、本実施形態に係るDUN接続処理を示すフローチャートである。
ステップS1において、コントローラ10は、無線接続の切断を実施したか否かを示すフラグをFALSEに初期化する。
FIG. 6 is a flowchart showing DUN connection processing according to the present embodiment.
In step S1, the
ステップS2において、コントローラ10は、通信ユニット6に対して、テザリングのためのDUN接続要求を行う。
In step S <b> 2, the
ステップS3において、コントローラ10は、ステップS2の接続要求によってDUN接続に成功したか否かを判定する。この判定がYESの場合、処理はステップS4に移り、判定がNOの場合、処理はステップS3を継続する。
In step S3, the
ステップS4において、コントローラ10は、無線接続したDUNのネットワーク情報をルーティングテーブルへ追加することに成功したか否かを判定する。この判定がYESの場合、処理はステップS5に移り、判定がNOの場合、処理はステップS6に移る。
In step S4, the
ステップS5において、コントローラ10は、フラグがTRUEに変化していればFALSEに初期化する。
In step S5, if the flag has changed to TRUE, the
ステップS6において、コントローラ10は、フラグがFALSEであるか否(TRUE)かを判定する。この判定がYES(フラグ==FALSE)の場合、処理はステップS7に移り、判定がNO(フラグ==TRUE)の場合、処理はステップS10に移る。
In step S6, the
ステップS7において、コントローラ10は、フラグをTRUEに設定し、無線接続を切断することを記録する。
In step S7, the
ステップS8において、コントローラ10は、通信ユニット6に対して、DUNの切断要求を行う。
In step S <b> 8, the
ステップS9において、コントローラ10は、DUNの切断が完了したか否かを判定する。この判定がYESの場合、処理はステップS2に移り、判定がNOの場合、処理はステップS9を継続する。
In step S9, the
ステップS10において、コントローラ10は、Defaultの無線接続が切断されたか否かを判定する。この判定がYESの場合、処理はステップS11に移り、判定がNOの場合、処理はステップS10を継続する。
In step S10, the
ステップS11において、コントローラ10は、フラグがTRUEであるか否(FALSE)かを判定する。この判定がYES(フラグ==TRUE)の場合、処理はステップS12に移り、判定がNO(フラグ==FALSE)の場合、処理は終了する。
In step S11, the
ステップS12において、コントローラ10は、フラグをFALSEに初期化する。その後、処理はステップS8に移り、DUNの切断が行われる。
In step S12, the
図7は、本実施形態との比較のため、DUN接続処理(図6)を行わなかった場合のスマートフォン1の動作を示すシーケンス図である。
FIG. 7 is a sequence diagram illustrating the operation of the
コントローラ10の通信制御部(NC/Telephony)は、ステップS21において、テザリング要求を受けると、ステップS23において、テザリング処理部(Tethering)に対して、テザリング起動通知を行う。
When the communication control unit (NC / Telephony) of the
通信制御部は、ステップS24において、テザリング処理部からDUNの接続要求を受けると、ステップS25において、通信ユニット6の無線部(Modem)に対して、DUNの接続要求を行う。その後、通信ユニット6の無線部(Modem)は、ネットワークに対して無線接続要求を送信する。
When the communication control unit receives a DUN connection request from the tethering processing unit in step S24, the communication control unit issues a DUN connection request to the radio unit (Modem) of the
無線部は、ネットワークから無線接続要求に対して接続完了通知を受ける。その後、通信制御部は、ステップS26において、無線部からDUNの接続完了通知を受けると、ステップS27において、IP処理部に対してDUNのネットワーク情報をルーティングテーブルへ追加する要求を行う。 The wireless unit receives a connection completion notification from the network in response to a wireless connection request. Thereafter, when receiving a DUN connection completion notification from the radio unit in step S26, the communication control unit requests the IP processing unit to add the DUN network information to the routing table in step S27.
通信制御部は、ステップS28において、ルーティングテーブルへの追加に失敗した通知を受けるものの、ステップS29において、テザリング処理部へDUNの接続完了通知を行う。
すると、ルーティングテーブルには、DUNに関する接続先の情報がないため、DUNのインタフェースでデータ通信ができない状態となる。
In step S28, the communication control unit receives a notification that the addition to the routing table has failed, but in step S29, the communication control unit notifies the tethering processing unit of the completion of the DUN connection.
Then, since there is no connection destination information regarding the DUN in the routing table, data communication cannot be performed with the DUN interface.
図8は、本実施形態に係るDUN接続処理(図6)を行った場合のスマートフォン1の第1の動作を示すシーケンス図である。
FIG. 8 is a sequence diagram illustrating a first operation of the
通信制御部は、ステップS21において、テザリング要求を受けると、ステップS22において、フラグをFALSEに初期化する。
ステップS23〜S29は、図7と共通である。
When receiving a tethering request in step S21, the communication control unit initializes a flag to FALSE in step S22.
Steps S23 to S29 are the same as those in FIG.
通信制御部は、ステップS30において、フラグがFALSEであるか否(TRUE)かを判定する。ステップS22でフラグが初期化されてから更新されていないので、判定はYES(フラグ==FALSE)となる。 In step S30, the communication control unit determines whether the flag is FALSE (TRUE). Since the flag has not been updated since it was initialized in step S22, the determination is YES (flag == FALSE).
通信制御部は、フラグがFALSEであり、一度もDUNの切断を行っていないので、ルーティングテーブルへの登録に失敗したDUNを切断するために、ステップS31において、フラグをTRUEに設定し、ステップS32において、無線部に対してDUNの切断要求を行う。切断要求を受けた無線部は、ネットワークに対して切断要求を送信する。 Since the flag is FALSE and the DUN has not been disconnected, the communication control unit sets the flag to TRUE in step S31 in order to disconnect the DUN that failed to be registered in the routing table, and in step S32 , A DUN disconnection request is made to the radio unit. The wireless unit that has received the disconnect request transmits a disconnect request to the network.
無線部は、ネットワークから、切断要求に対して切断完了通知を受ける。その後、通信制御部は、ステップS33において、無線部からDUNの切断完了通知を受けると、ステップS34において、テザリング処理部へDUNの切断完了通知を行う。
テザリング処理部は、所定のタイミングで、例えば、10秒周期でDUNの切断を検出し、ステップS35において、再び通信制御部に対してDUNの接続要求を行う。
The wireless unit receives a disconnection completion notification from the network in response to the disconnection request. After that, when the communication control unit receives a DUN disconnection completion notification from the wireless unit in step S33, the communication control unit notifies the tethering processing unit of the DUN disconnection completion in step S34.
The tethering processing unit detects the disconnection of the DUN at a predetermined timing, for example, in a cycle of 10 seconds, and requests the communication control unit to connect the DUN again in step S35.
通信制御部は、ステップS36において、無線部へDUNの接続要求を行い、ステップS37においてDUNの接続完了通知を受けると、ステップS38において、IP処理部に対してDUNのネットワーク情報をルーティングテーブルへ追加する要求を行う。 In step S36, the communication control unit makes a DUN connection request to the wireless unit. Upon receiving a DUN connection completion notification in step S37, the communication control unit adds the DUN network information to the IP processing unit in step S38. Make a request to
通信制御部は、ステップS39において、ルーティングテーブルへの追加に成功した通知を受けると、ステップS40において、フラグをFALSEに初期化する。 When the communication control unit receives a notification of successful addition to the routing table in step S39, the communication control unit initializes the flag to FALSE in step S40.
このように、本動作では、コントローラ10は、DUNの無線接続に成功した後に、当該無線接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録することに失敗すると、当該無線接続を切断した。再接続までの間に他の通信機器へIPアドレスが割り当てられる等の理由により、スマートフォン1は、DUNへの再接続で前回と異なるIPアドレスが割り当てられ、ルーティングテーブルへの追加に成功し、DUNでの通信が可能となった。
As described above, in this operation, the
図9は、本実施形態に係るDUN接続処理(図6)を行った場合のスマートフォン1の第2の動作を示すシーケンス図である。
FIG. 9 is a sequence diagram illustrating a second operation of the
ステップS21〜S38は、第1の動作(図8)と共通である。
第2の動作では、通信制御部は、DUNへの再接続によっても、ステップS41において、ルーティングテーブルへの追加失敗通知を受けた。
Steps S21 to S38 are common to the first operation (FIG. 8).
In the second operation, the communication control unit has received an addition failure notification to the routing table in step S41 even by reconnection to the DUN.
通信制御部は、ステップS42において、テザリング処理部へDUNの接続完了通知を行った後、ステップS43において、フラグがFALSEか否(TRUE)かを判定する。ステップS31においてフラグはTRUEに設定されているので、判定はNO(フラグ==TRUE)となる。 In step S42, the communication control unit notifies the tethering processing unit of the completion of DUN connection, and then determines whether the flag is FALSE (TRUE) in step S43. Since the flag is set to TRUE in step S31, the determination is NO (flag == TRUE).
フラグがTRUEなので、通信制御部は、再びDUNの切断要求は行わない。以降、ルーティングテーブルに接続先の情報がないため、DUNのインタフェースでデータ通信ができない状態となる。 Since the flag is TRUE, the communication control unit does not make a DUN disconnection request again. Thereafter, since there is no connection destination information in the routing table, data communication cannot be performed with the DUN interface.
通信制御部は、ステップS44において、Defaultの切断完了通知を受けると、再度DUNへの接続を試みるために、ステップS45において、フラグをFALSEに初期化し、ステップS46において、無線部に対してDUNの切断要求を行う。 Upon receiving the default disconnection completion notification in step S44, the communication control unit initializes the flag to FALSE in step S45 in order to try to connect to the DUN again. In step S46, the communication control unit initializes the DUN to the radio unit. Make a disconnect request.
このように、本動作では、コントローラ10は、DUNの無線接続に成功した後に、当該無線接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録することに失敗すると、DUNを切断し、再接続を試行した。スマートフォン1は、無線接続を切断したDUNに対して再接続した際に、当該再接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録することに再度失敗した場合、DUNに対する無線接続を切断しない。これにより、切断及び接続の処理が繰り返されるのが抑制される。
As described above, in this operation, the
さらに、コントローラ10は、再接続したDUNに対する無線接続を切断しなかった場合、その後、DUNよりも優先度が高い接続先であるDefaultに対する無線接続が切断されると、DUNに対する無線接続を切断して、DUNの再接続を試みる。したがって、スマートフォン1は、DUNでの通信ができない状態が継続されるのを抑制できる。
Furthermore, if the
図10は、本実施形態に係るDefault接続処理を示すフローチャートである。
ステップS51において、コントローラ10は、Defaultの接続要求を行う。
FIG. 10 is a flowchart showing the Default connection process according to the present embodiment.
In step S51, the
ステップS52において、コントローラ10は、Defaultに対する無線接続に成功したか否かを判定する。この判定がYESの場合、処理はステップS53に移り、判定がNOの場合、処理はステップS51に移る。
In step S52, the
ステップS53において、コントローラ10は、Defaultのネットワーク情報をルーティングテーブルに追加することに成功したか否かを判定する。この判定がYESの場合、処理は終了し、判定がNOの場合、処理はステップS54に移る。
In step S53, the
ステップS54において、コントローラ10は、スマートフォン1が対応している全てのネットワークに対して以下のステップS55〜S58の処理を繰り返す。
In step S54, the
ステップS55において、コントローラ10は、対象のネットワークがWiFi及びWiMAXを除く無線通信ネットワークであるか否かを判定する。この判定がYESの場合、処理はステップS56に移り、判定がNOの場合、ステップS56〜S58を実行せず、ステップS54のループ判定に移る。
In step S55, the
ステップS56において、コントローラ10は、対象のネットワークに接続されている、又は接続試行中の状態であるか否かを判定する。この判定がYESの場合、処理はステップS57に移る。一方、判定がNOの場合、コントローラ10は、接続していないネットワークへ切断要求する必要がないので、ステップS57〜S58を実行せず、ステップS54のループ判定に移る。
判定がNOとなるのは、例えば、ルーティングテーブルへの追加に失敗した後、すぐに圏外になった場合等である。
In step S56, the
The determination is NO when, for example, the user immediately becomes out of service after failing to add to the routing table.
ステップS57において、コントローラ10は、対象のネットワークに対して切断要求を未だ実施していないか否かを判定する。この判定がYESの場合、処理はステップS58に移る。一方、判定がNOの場合、既に切断要求が実施されており、コントローラ10は、改めて切断要求する必要がないので、ステップS58を実行せず、ステップS54のループ判定に移る。
判定がNOとなるのは、例えば、ルーティングテーブルへの追加に失敗したが、スマートフォン1は、WiFi接続し、別の経路を通って切断要求した場合等である。
In step S57, the
The determination is NO when, for example, the addition to the routing table has failed, but the
ステップS58において、コントローラ10は、対象のネットワークへ切断要求を行う。そして、処理は、ステップS54のループ判定に移る。
In step S58, the
ステップS59において、コントローラ10は、本処理フローのステップS58において切断要求を実施したか否かを判定する。この判定がYESの場合、処理はステップS60に移り、判定がNOの場合、処理は終了する。
なお、スマートフォン1は、ステップS58において切断要求を実施していない場合、例えば、ルーティングテーブルへの追加に失敗したがWiFi接続した場合は、再接続する必要がなく、また、ルーティングテーブルへの追加に失敗したが圏外になった場合は、圏内に復帰することで自動的に再接続される。
In step S59, the
If the
ステップS60において、コントローラ10は、切断要求後1秒が経過したか否かを判定する。この判定がYESの場合、処理はステップS51に移り、コントローラ10は、Defaultの再接続要求を行う。一方、判定がNOの場合、処理はステップS60を継続する。
In step S60, the
図11は、本実施形態との比較のため、Default接続処理(図10)を行わなかった場合のスマートフォン1の動作を示すシーケンス図である。
FIG. 11 is a sequence diagram illustrating the operation of the
通信制御部は、ステップS61及びステップS62において、無線部に対して、Default及びDUNの接続要求を行う。 In step S61 and step S62, the communication control unit makes a default and DUN connection request to the radio unit.
通信制御部は、ステップS63において、無線部からDUNの接続完了通知を受けると、ステップS64において、IP処理部に対してDUNのネットワーク情報をルーティングテーブルへ追加する要求を行う。 Upon receiving a DUN connection completion notification from the wireless unit in step S63, the communication control unit requests the IP processing unit to add the DUN network information to the routing table in step S64.
通信制御部は、ステップS65において、ルーティングテーブルへの追加に成功した通知を受けると、ステップS66において、テザリング処理部へDUNの接続完了通知を行う。 When the communication control unit receives a notification of successful addition to the routing table in step S65, the communication control unit notifies the tethering processing unit of the completion of DUN connection in step S66.
通信制御部は、ステップS67において、無線部からDefaultの接続完了通知を受けると、ステップS68において、IP処理部に対してDefaultのネットワーク情報をルーティングテーブルへ追加する要求を行う。 When the communication control unit receives a default connection completion notification from the wireless unit in step S67, the communication control unit requests the IP processing unit to add default network information to the routing table in step S68.
通信制御部は、ステップS69おいて、ルーティングテーブルへの追加に失敗した通知を受ける。
すると、ルーティングテーブルには、Defaultに関する接続先の情報がないため、Defaultのインタフェースでデータ通信ができない状態となる。
In step S69, the communication control unit receives a notification that the addition to the routing table has failed.
Then, since there is no connection destination information regarding the Default in the routing table, data communication cannot be performed with the Default interface.
図12は、本実施形態に係るDefault接続処理(図10)を行った場合のスマートフォン1の動作を示すシーケンス図である。
FIG. 12 is a sequence diagram illustrating the operation of the
ステップS61〜S69は、図11と共通である。
通信制御部は、Defaultのネットワーク情報をルーティングテーブルへ追加することに失敗すると、ステップS70及びS71において、無線部に対して、Default及びDUNの切断要求を行う。
Steps S61 to S69 are the same as those in FIG.
If the communication control unit fails to add the default network information to the routing table, in steps S70 and S71, the communication control unit requests the radio unit to disconnect the default and DUN.
通信制御部は、切断要求を行ってから所定時間(例えば、1秒)が経過すると、ステップS72及びS73でDefault及びDUNの切断完了通知を受けた後、ステップS74において、無線部に対してDefaultの接続要求を行う。 When a predetermined time (for example, 1 second) has elapsed since the communication control unit made the disconnection request, the communication control unit receives a default and DUN disconnection completion notification in steps S72 and S73, and then in step S74, the default is transmitted to the radio unit. Make a connection request.
通信制御部は、ステップS75において、無線部からDefaultの接続完了通知を受けると、ステップS76において、IP処理部に対してDefaultのネットワーク情報をルーティングテーブルへ追加する要求を行う。 When the communication control unit receives a default connection completion notification from the wireless unit in step S75, in step S76, the communication control unit requests the IP processing unit to add the default network information to the routing table.
通信制御部は、ステップS77において、ルーティングテーブルへの追加に成功した通知を受け、データ通信可能な状態となる。 In step S77, the communication control unit receives a notification of successful addition to the routing table and enters a state where data communication is possible.
通信制御部は、ステップS73でDUNの切断完了通知を受けてから所定時間(例えば、3秒)後に、ステップS78において、テザリング処理部にDUNの切断完了を通知する。 In step S78, the communication control unit notifies the tethering processing unit of the completion of the DUN disconnection after a predetermined time (for example, 3 seconds) after receiving the DUN disconnection completion notification in step S73.
通信制御部は、ステップS79において、テザリング処理部からDUNへの再接続要求を受けると、ステップS80において、無線部に対して、DUNの接続要求を行う。 When the communication control unit receives a reconnection request to the DUN from the tethering processing unit in step S79, the communication control unit makes a DUN connection request to the radio unit in step S80.
通信制御部は、ステップS81において、無線部からDUNの接続完了通知を受けると、ステップS82において、IP処理部に対してDUNのネットワーク情報をルーティングテーブルへ追加する要求を行う。
そして、通信制御部は、ステップS83において、ルーティングテーブルへの追加に成功した通知を受け、データ通信可能な状態となる。
When the communication control unit receives a DUN connection completion notification from the wireless unit in step S81, the communication control unit requests the IP processing unit to add the DUN network information to the routing table in step S82.
Then, in step S83, the communication control unit receives a notification of successful addition to the routing table and enters a state where data communication is possible.
このように、本動作では、コントローラ10は、Default及びDUNに対する無線接続に成功した後に、Defaultに対する無線接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録することに失敗すると、Default及びDUNに対する無線接続を切断した。
スマートフォン1は、Default及びDUNに対して再接続を行うことにより、互いに十分に離れたIPアドレスが割り当てられ、双方のネットワーク情報をルーティングテーブルへ追加することに成功し、双方での通信が可能となった。
As described above, in this operation, if the
By reconnecting the Default and DUN, the
さらに、コントローラ10は、再接続を行う際には、接続先(Default又はDUN)に応じた所定時間の経過後に再接続を行った。スマートフォン1は、双方の接続先に対して所定の時間差で再接続を行うことにより、互いに十分に離れたIPアドレスが割り当てられ、双方のネットワーク情報をルーティングテーブルへ追加することに成功し、双方での通信が可能となった。
Furthermore, when reconnecting, the
以上のように、本実施形態によれば、スマートフォン1は、無線接続に成功した後に、当該無線接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録することに失敗した場合、当該無線接続を切断する。
したがって、スマートフォン1は、切断後の再接続によってルーティングテーブルへの登録に成功すると、無駄な無線接続状態を維持することを回避できる。
As described above, according to the present embodiment, the
Therefore, if the
また、スマートフォン1は、複数の接続先(例えば、Default及びDUN)に対する無線接続に成功した後に、当該複数の接続先のうち、いずれかの接続先(例えば、Default)に対する無線接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録することに失敗した場合、複数の接続先に対する無線接続を切断する。
したがって、スマートフォン1は、複数の接続先に対する再接続によってルーティングテーブルへの登録に成功すると、無駄な無線接続状態を維持することを回避できる。
In addition, the
Therefore, when the
また、スマートフォン1は、複数の接続先(例えば、Default及びDUN)に対する無線接続に成功した後に、当該複数の接続先のうち、いずれかの接続先(例えば、Default)に対する無線接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録することに失敗した場合、複数の接続先のうち、ルーティングテーブルへの登録に失敗した接続先(例えば、Default)、及び当該接続先よりも優先度が低い接続先(例えば、DUN)に対する無線接続を切断する。
したがって、スマートフォン1は、ルーティングテーブルへの登録に失敗した接続先と共に、優先度が低い接続先に対する無線接続を切断するので、優先度が高い接続先のネットワーク情報をルーティングテーブルへ登録できる可能性を高められる。
In addition, the
Therefore, since the
また、スマートフォン1は、無線接続を切断した接続先(例えば、DUN)に対して再接続した際に、当該再接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録することに再度失敗した場合、当該再接続した接続先に対する無線接続を切断しない。
したがって、スマートフォン1は、再接続によっても同一のIPアドレスが割り当てられる場合等に、切断及び接続の処理が繰り返され、処理負荷及びネットワーク負荷が増大するのを抑制できる。
In addition, when the
Therefore, when the same IP address is assigned even by reconnection, the
また、スマートフォン1は、再接続した接続先(例えば、DUN)に対する無線接続を切断しなかった場合、当該接続先よりも優先度が高い接続先(例えば、Default)に対する無線接続が切断されると、無線接続を切断しなかった接続先(例えば、DUN)に対する無線接続を切断する。
したがって、スマートフォン1は、優先度が高い接続先(例えば、Default)の切断を契機として、再接続によりネットワーク情報をルーティングテーブルへ登録できる可能性がある。
In addition, when the
Therefore, there is a possibility that the
また、スマートフォン1は、無線接続を切断した接続先(例えば、Default及びDUN)に対して、当該接続先に応じた所定時間の経過後に再接続を行う。具体的には、スマートフォン1は、例えば、Defaultは1秒後に接続要求を行い、DUNは3秒後に切断完了通知を行って接続要求を待つことにより時間差が生じるので、双方のネットワーク情報をルーティングテーブルへ登録できる可能性を高められる。
In addition, the
[第2実施形態]
本発明を実施するための第2実施形態を、図面を参照しつつ詳細に説明する。なお、第1実施形態と同様の構成については同一の符号を付し、説明を省略又は簡略化する。
[Second Embodiment]
A second embodiment for carrying out the present invention will be described in detail with reference to the drawings. In addition, the same code | symbol is attached | subjected about the structure similar to 1st Embodiment, and description is abbreviate | omitted or simplified.
本実施形態では、コントローラ10は、無線接続を切断した接続先に対して再接続を試行するまでの時間を、ネットワーク情報をルーティングテーブルへ登録することに連続して失敗した回数に応じて増加させる。
In the present embodiment, the
図13A及び図13Bは、本実施形態に係るDUN接続処理を行った場合のスマートフォン1の動作を示すシーケンス図である。なお、図13Bは、図13Aに続く動作を示している。
13A and 13B are sequence diagrams illustrating the operation of the
通信制御部は、ステップS91において、テザリング要求を受けると、ステップS92において、テザリング処理部に対して、テザリング起動通知を行う。 When the communication control unit receives the tethering request in step S91, the communication control unit issues a tethering activation notification to the tethering processing unit in step S92.
通信制御部は、ステップS93において、テザリング処理部からDUNの接続要求を受けると、ステップS94において、無線部に対して、DUNの接続要求を行う。 When the communication control unit receives a DUN connection request from the tethering processing unit in step S93, the communication control unit issues a DUN connection request to the radio unit in step S94.
通信制御部は、ステップS95において、無線部からDUNの接続完了通知を受けると、ステップS96において、IP処理部に対してDUNのネットワーク情報をルーティングテーブルへ追加する要求を行う。 When the communication control unit receives the DUN connection completion notification from the wireless unit in step S95, the communication control unit requests the IP processing unit to add the DUN network information to the routing table in step S96.
通信制御部は、ステップS97において、ルーティングテーブルへの追加に失敗した通知を受けるものの、ステップS98において、テザリング処理部へDUNの接続完了通知を行う。
このとき、通信制御部は、ルーティングテーブルへの追加に失敗したか否かを示すフラグ(addFail)を併せて通知する。本シーケンスでは、ルーティングテーブルへの追加に失敗したので、「addFail=TRUE」となる。
In step S97, the communication control unit receives a notification that the addition to the routing table has failed, but in step S98, the communication control unit notifies the tethering processing unit of the completion of the DUN connection.
At this time, the communication control unit also notifies a flag (addFail) indicating whether or not the addition to the routing table has failed. In this sequence, the addition to the routing table has failed, so “addFail = TRUE”.
通信制御部は、DUNへの再接続を行うために、ステップS99において、無線部に対してDUNの切断要求を行う。
通信制御部は、ステップS100において、無線部からDUNの切断完了通知を受けると、ステップS101において、テザリング処理部へDUNの切断完了通知を行う。
In step S99, the communication control unit issues a DUN disconnection request to the wireless unit in order to reconnect to the DUN.
When the communication control unit receives a DUN disconnection completion notification from the wireless unit in step S100, the communication control unit notifies the tethering processing unit of the DUN disconnection completion in step S101.
テザリング処理部は、addFailがTRUEであることを確認すると、5秒間のタイマを起動し、タイマが満了すると、ステップS102において、通信制御部に対してDUNの再接続要求を行う。 When the tethering processing unit confirms that addFail is TRUE, the tethering processing unit starts a 5-second timer. When the timer expires, in step S102, the tethering processing unit issues a DUN reconnection request to the communication control unit.
ステップS103〜S110は、ステップS94〜S101と同様であり、テザリング処理部は、通信制御部から「addFail=TRUE」の通知を受けた後、DUNの切断完了通知を受ける。 Steps S103 to S110 are the same as steps S94 to S101. The tethering processing unit receives a notification of “addfail = TRUE” from the communication control unit, and then receives a DUN disconnection completion notification.
テザリング処理部は、addFailがTRUEであることを確認すると、1回目のルーティングテーブルへの登録失敗時よりもタイマを延長し、10秒間に設定する。タイマが満了すると、テザリング処理部は、ステップS111において、通信制御部に対してDUNの再接続要求を行う。 When the tethering processing unit confirms that addFail is TRUE, the tethering processing unit extends the timer from the time of the first registration failure to the routing table and sets it to 10 seconds. When the timer expires, the tethering processing unit issues a DUN reconnection request to the communication control unit in step S111.
ステップS112〜S119は、ステップS94〜S101、又はステップS103〜S110と同様であり、テザリング処理部は、通信制御部から「addFail=TRUE」の通知を受けた後、DUNの切断完了通知を受ける。 Steps S112 to S119 are the same as steps S94 to S101 or steps S103 to S110. The tethering processing unit receives a notification of “addfail = TRUE” from the communication control unit, and then receives a DUN disconnection completion notification.
テザリング処理部は、addFailがTRUEであることを確認すると、2回目のルーティングテーブルへの登録失敗時よりもタイマを延長し、20秒間に設定する。タイマが満了すると、テザリング処理部は、ステップS120において、通信制御部に対してDUNの再接続要求を行う。 When the tethering processing unit confirms that addFail is TRUE, the tethering processing unit extends the timer and sets it to 20 seconds compared to the second registration failure in the routing table. When the timer expires, in step S120, the tethering processing unit makes a DUN reconnection request to the communication control unit.
通信制御部は、ステップS121において、無線部へDUNの接続要求を行い、ステップS122においてDUNの接続完了通知を受けると、ステップS123において、IP処理部に対してDUNのネットワーク情報をルーティングテーブルへ追加する要求を行う。 In step S121, the communication control unit makes a DUN connection request to the wireless unit. Upon receiving the DUN connection completion notification in step S122, the communication control unit adds DUN network information to the routing table to the IP processing unit in step S123. Make a request to
通信制御部は、ステップS124において、ルーティングテーブルへの追加に成功した通知を受けると、ステップS125において、テザリング処理部へDUNの接続完了通知を行う。
このとき、ルーティングテーブルへの追加に成功したので、「addFail=FALSE」となる。さらに、タイマは5秒間に初期化される。
When the communication control unit receives a notification of successful addition to the routing table in step S124, the communication control unit notifies the tethering processing unit of the completion of DUN connection in step S125.
At this time, since the addition to the routing table was successful, “addFail = FALSE”. In addition, the timer is initialized for 5 seconds.
このように、テザリング処理部は、ルーティングテーブルへ登録することに連続して失敗した回数に応じて、例えば、1回目は5秒、2回目は10秒、3回目は20秒、4回目以降は30秒のように、DUNの切断完了通知から再接続要求までの時間を増加させる。 In this way, the tethering processing unit, for example, according to the number of consecutive failures to register in the routing table, for example, 5 seconds for the first time, 10 seconds for the second time, 20 seconds for the third time, The time from the DUN disconnection completion notification to the reconnection request is increased as in 30 seconds.
以上のように、本実施形態によれば、スマートフォン1は、無線接続を切断した接続先に対して再接続を試行するまでの時間を、ネットワーク情報をルーティングテーブルへ登録することに連続して失敗した回数に応じて増加させる。
したがって、スマートフォン1は、再接続までの時間を延長することにより、割り当てられるIPアドレスが変更されることが期待できるので、再接続によってルーティングテーブルへの登録が成功すると、無駄な無線接続状態を維持することを回避できる。
As described above, according to the present embodiment, the
Therefore, since the
以上、本発明の実施形態について説明したが、本発明は前述した実施形態に限るものではない。また、本発明の実施形態に記載された効果は、本発明から生じる最も好適な効果を列挙したに過ぎず、本発明による効果は、前述の実施形態に記載されたものに限定されるものではない。 As mentioned above, although embodiment of this invention was described, this invention is not restricted to embodiment mentioned above. Further, the effects described in the embodiments of the present invention only list the most preferable effects resulting from the present invention, and the effects of the present invention are not limited to those described in the above-described embodiments. Absent.
第1実施形態では、DUNのネットワーク情報をルーティングテーブルへ追加することに失敗した場合にも、テザリング処理部へ接続の完了が通知されたが、これには限られない。ルーティングテーブルへの追加に失敗した場合には、通信制御部は、DUNの接続完了通知を行わなくてもよい。 In the first embodiment, even when the addition of DUN network information to the routing table fails, the tethering processing unit is notified of the completion of connection, but the present invention is not limited to this. When the addition to the routing table fails, the communication control unit does not need to notify the DUN connection completion.
第2実施形態では、通信制御部は、テザリング処理部へのDUNの接続完了通知時に、ルーティングテーブルへの追加に失敗したか否かのフラグ(addFail)を通知したが、これには限られない。例えば、DUNの切断完了通知の際にフラグ(addFail)を通知してもよい。
この場合、通信制御部は、ルーティングテーブルへの追加に失敗した場合には、テザリング処理部へのDUNの接続完了通知を行わなくてもよい。
In the second embodiment, the communication control unit notifies the flag (addFail) whether or not the addition to the routing table has failed when the DUN connection completion notification to the tethering processing unit is notified, but is not limited thereto. . For example, a flag (addFail) may be notified at the time of DUN disconnection completion notification.
In this case, if the communication control unit fails to add to the routing table, the communication control unit does not have to send a DUN connection completion notification to the tethering processing unit.
図4に示したスマートフォン1の構成は一例であり、本発明の要旨を損なわない範囲において適宜変更してよい。
The configuration of the
図4においてストレージ9が記憶することとしたプログラムの一部又は全部は、通信ユニット6による無線通信で他の装置からダウンロードされてもよい。また、図4においてストレージ9が記憶することとしたプログラムの一部又は全部は、ストレージ9に含まれる読み取り装置が読み取り可能な記憶媒体に記憶されていてもよい。また、図4においてストレージ9が記憶することとしたプログラムの一部又は全部は、外部インタフェース14に接続される読み取り装置が読み取り可能なCD、DVD、又はBlu−ray等の記憶媒体に記憶されていてもよい。
また、図4に示した各プログラムは、複数のモジュールに分割されていてもよいし、他のプログラムと結合されていてもよい。
4 may be downloaded from another device through wireless communication by the
Each program shown in FIG. 4 may be divided into a plurality of modules or may be combined with other programs.
また、前述の実施形態では、通信機器の一例として、スマートフォンについて説明したが、通信機器は、スマートフォンに限定されない。例えば、通信機器は、モバイルフォン、携帯型パソコン、デジタルカメラ、メディアプレイヤ、電子書籍リーダ、ナビゲータ又はゲーム機等の携帯電子機器、あるいは通信機能に特化した通信専用モジュールであってもよい。また、通信機器は、デスクトップパソコン、テレビ受像器等の据え置き型の電子機器であってもよい。 Moreover, although the above-mentioned embodiment demonstrated a smart phone as an example of a communication apparatus, a communication apparatus is not limited to a smart phone. For example, the communication device may be a mobile phone, a portable personal computer, a digital camera, a media player, an electronic book reader, a portable electronic device such as a navigator or a game machine, or a communication-dedicated module specialized for a communication function. The communication device may be a stationary electronic device such as a desktop personal computer or a television receiver.
1 スマートフォン(通信機器)
6 通信ユニット
10 コントローラ
1 Smartphone (communication equipment)
6
Claims (9)
複数の接続先に対する無線接続を行うステップと、
前記無線接続に成功した後に、当該複数の接続先のうち、いずれかの接続先に対する無線接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録することに失敗した場合、前記複数の接続先に対する無線接続を切断するステップと、を実行する通信制御方法。 Communication equipment
Performing wireless connection to a plurality of connection destinations ;
After successfully to the wireless connection, with respect to the plurality of connection destination, any one of when the network information assigned when wireless connection fails and Turkey be registered to the routing table for the destination, the plurality of connection destination And a step of disconnecting the wireless connection.
複数の接続先に対する無線接続を行うステップと、Performing wireless connection to a plurality of connection destinations;
前記無線接続に成功した後に、当該複数の接続先のうち、いずれかの接続先に対する無線接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録することに失敗した場合、前記複数の接続先のうち、前記ルーティングテーブルへの登録に失敗した接続先、及び当該接続先よりも優先度が低い接続先に対する無線接続を切断するステップと、を実行する通信制御方法。After the wireless connection is successful, if the network information assigned at the time of wireless connection to any one of the plurality of connection destinations fails to be registered in the routing table, among the plurality of connection destinations, And a step of disconnecting a wireless connection to a connection destination that has failed to be registered in the routing table and a connection destination having a lower priority than the connection destination.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012229360A JP6140972B2 (en) | 2012-10-16 | 2012-10-16 | Communication device and communication control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012229360A JP6140972B2 (en) | 2012-10-16 | 2012-10-16 | Communication device and communication control method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2014082646A JP2014082646A (en) | 2014-05-08 |
JP6140972B2 true JP6140972B2 (en) | 2017-06-07 |
Family
ID=50786451
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012229360A Expired - Fee Related JP6140972B2 (en) | 2012-10-16 | 2012-10-16 | Communication device and communication control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6140972B2 (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1653676B1 (en) * | 2003-08-08 | 2017-12-27 | Sony Corporation | Communication system, communication method and program |
JP2005064848A (en) * | 2003-08-12 | 2005-03-10 | Kddi Corp | Method and apparatus for detecting duplicate addresses in ad hoc networks |
JP4407658B2 (en) * | 2006-03-22 | 2010-02-03 | 日本電気株式会社 | Multi-hop network system, route control method thereof, relay terminal and program constituting the same |
JP2011055139A (en) * | 2009-08-31 | 2011-03-17 | Brother Industries Ltd | Information communication system, node device and program therefor, and content acquiring method |
-
2012
- 2012-10-16 JP JP2012229360A patent/JP6140972B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2014082646A (en) | 2014-05-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5902556B2 (en) | Electronic device, control method, and control program | |
JP2013137750A (en) | Device, method, and program | |
JP2013080345A (en) | Device, method, and program | |
JP5773961B2 (en) | Portable electronic devices | |
JP2013110519A (en) | Portable electronic apparatus, control method, and control program | |
US20130107779A1 (en) | Wireless terminal device, communication control method, and recording medium | |
JP5547766B2 (en) | COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM | |
JP6399729B2 (en) | Mobile communication device and communication control method | |
JP5702271B2 (en) | Wireless terminal apparatus and communication control method | |
JP5837705B2 (en) | Communication terminal and storage medium | |
JP6140972B2 (en) | Communication device and communication control method | |
JP2013135239A (en) | Radio terminal device and radio communication method | |
JP2013239979A (en) | Communication apparatus, communication method, and communication program | |
JP6059256B2 (en) | Communication terminal and storage medium | |
JP5979636B2 (en) | Communication apparatus and communication control method | |
JP6275942B2 (en) | COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM | |
JP5967899B2 (en) | Wireless terminal apparatus and communication control method | |
JP5955129B2 (en) | Wireless terminal apparatus and communication control method | |
WO2014057940A1 (en) | Wireless communication apparatus and communication control method | |
JP5917264B2 (en) | COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM | |
JP2013135240A (en) | Radio terminal device and communication control method | |
JP2013110497A (en) | Radio terminal device and communication control method | |
JP2016226025A (en) | Electronic apparatus | |
JP2014011494A (en) | Radio communication device and communication control method | |
JP5979716B2 (en) | Communication equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20150810 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20160608 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20160809 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20161006 |
|
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: 20170404 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20170502 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6140972 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |