[go: up one dir, main page]

JP6140972B2 - Communication device and communication control method - Google Patents

Communication device and communication control method Download PDF

Info

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
Application number
JP2012229360A
Other languages
Japanese (ja)
Other versions
JP2014082646A (en
Inventor
雅也 川北
雅也 川北
一生 大西
一生 大西
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Corp
Original Assignee
Kyocera Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyocera Corp filed Critical Kyocera Corp
Priority to JP2012229360A priority Critical patent/JP6140972B2/en
Publication of JP2014082646A publication Critical patent/JP2014082646A/en
Application granted granted Critical
Publication of JP6140972B2 publication Critical patent/JP6140972B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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).

特開2012−85287号公報JP 2012-85287 A

例えば、通信機器が複数の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実施形態に係るスマートフォンの外観を示す斜視図である。It is a perspective view which shows the external appearance of the smart phone which concerns on 1st Embodiment. 第1実施形態に係るスマートフォンの外観を示す正面図である。It is a front view which shows the external appearance of the smart phone which concerns on 1st Embodiment. 第1実施形態に係るスマートフォンの外観を示す背面図である。It is a rear view which shows the external appearance of the smart phone which concerns on 1st Embodiment. 第1実施形態に係るスマートフォンの構成を示すブロック図である。It is a block diagram which shows the structure of the smart phone which concerns on 1st Embodiment. 第1実施形態に係るルーティングテーブルへ登録されるネットワーク情報の例を示す図である。It is a figure which shows the example of the network information registered into the routing table which concerns on 1st Embodiment. 第1実施形態に係るDUN接続処理を示すフローチャートである。It is a flowchart which shows the DUN connection process which concerns on 1st Embodiment. 第1実施形態に係るDUN接続処理を行わなかった場合のスマートフォンの動作を示すシーケンス図である。It is a sequence figure showing operation of a smart phone at the time of not performing DUN connection processing concerning a 1st embodiment. 第1実施形態に係るDUN接続処理を行った場合のスマートフォンの第1の動作を示すシーケンス図である。It is a sequence diagram which shows the 1st operation | movement of the smart phone at the time of performing the DUN connection process which concerns on 1st Embodiment. 第1実施形態に係るDUN接続処理を行った場合のスマートフォンの第2の動作を示すシーケンス図である。It is a sequence diagram which shows the 2nd operation | movement of the smart phone at the time of performing the DUN connection process which concerns on 1st Embodiment. 第1実施形態に係るDefault接続処理を示すフローチャートである。It is a flowchart which shows the Default connection process which concerns on 1st Embodiment. 第1実施形態に係るDefault接続処理を行わなかった場合のスマートフォンの動作を示すシーケンス図である。It is a sequence diagram which shows operation | movement of the smart phone when not carrying out Default connection processing concerning a 1st embodiment. 第1実施形態に係るDefault接続処理を行った場合のスマートフォンの動作を示すシーケンス図である。It is a sequence figure showing operation of a smart phone at the time of performing Default connection processing concerning a 1st embodiment. 第2実施形態に係るDUN接続処理を行った場合のスマートフォンの動作を示す第1のシーケンス図である。It is a 1st sequence diagram which shows operation | movement of the smart phone at the time of performing the DUN connection process which concerns on 2nd Embodiment. 第2実施形態に係るDUN接続処理を行った場合のスマートフォンの動作を示す第2のシーケンス図である。It is a 2nd sequence diagram which shows operation | movement of the smart phone at the time of performing the DUN connection process which concerns on 2nd Embodiment.

[第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 smartphone 1 according to the embodiment will be described with reference to FIGS. 1 to 3. As shown in FIGS. 1 to 3, the smartphone 1 has a housing 20. The housing 20 includes a front face 1A, a back face 1B, and side faces 1C1 to 1C4. The front face 1 </ b> A is the front of the housing 20. The back face 1 </ b> B is the back surface of the housing 20. The side faces 1C1 to 1C4 are side surfaces that connect the front face 1A and the back face 1B. Hereinafter, the side faces 1C1 to 1C4 may be collectively referred to as the side face 1C without specifying which face.

スマートフォン1は、タッチスクリーンディスプレイ2と、ボタン3A〜3Cと、照度センサ4と、近接センサ5と、レシーバ7と、マイク8と、カメラ12とをフロントフェイス1Aに有する。スマートフォン1は、カメラ13をバックフェイス1Bに有する。スマートフォン1は、ボタン3D〜3Fと、外部インタフェース14とをサイドフェイス1Cに有する。以下では、ボタン3A〜3Fを、どのボタンであるかを特定することなく、ボタン3と総称することがある。   The smartphone 1 includes a touch screen display 2, buttons 3A to 3C, an illuminance sensor 4, a proximity sensor 5, a receiver 7, a microphone 8, and a camera 12 on the front face 1A. The smartphone 1 has a camera 13 on the back face 1B. The smartphone 1 has buttons 3D to 3F and an external interface 14 on the side face 1C. Hereinafter, the buttons 3A to 3F may be collectively referred to as the button 3 without specifying which button.

タッチスクリーンディスプレイ2は、ディスプレイ2Aと、タッチスクリーン2Bとを有する。ディスプレイ2Aは、液晶ディスプレイ(Liquid Crystal Display)、有機ELパネル(Organic Electro−Luminescence panel)、又は無機ELパネル(Inorganic Electro−Luminescence panel)等の表示デバイスを備える。ディスプレイ2Aは、文字、画像、記号又は図形等を表示する。   The touch screen display 2 includes a display 2A and a touch screen 2B. The display 2A includes a display device such as a liquid crystal display (Liquid Crystal Display), an organic EL panel (Organic Electro-Luminescence panel), or an inorganic EL panel (Inorganic Electro-Luminescence panel). The display 2A displays characters, images, symbols, graphics, and the like.

タッチスクリーン2Bは、タッチスクリーンディスプレイ2に対する指、又はスタイラスペン等の接触を検出する。タッチスクリーン2Bは、複数の指、又はスタイラスペン等がタッチスクリーンディスプレイ2に接触した位置を検出することができる。   The touch screen 2B detects contact of a finger, a stylus pen, or the like with respect to the touch screen display 2. The touch screen 2B can detect a position where a plurality of fingers, a stylus pen, or the like is in contact with the touch screen display 2.

タッチスクリーン2Bの検出方式は、静電容量方式、抵抗膜方式、表面弾性波方式(又は超音波方式)、赤外線方式、電磁誘導方式、及び荷重検出方式等の任意の方式でよい。以下では、説明を簡単にするため、タッチスクリーン2Bがタッチスクリーンディスプレイ2に対する接触を検出する指、又はスタイラスペン等を単に「指」ということがある。   The detection method of the touch screen 2B may be any method such as a capacitance method, a resistive film method, a surface acoustic wave method (or an ultrasonic method), an infrared method, an electromagnetic induction method, and a load detection method. Hereinafter, for the sake of simplicity of explanation, a finger that the touch screen 2B detects contact with the touch screen display 2 or a stylus pen or the like may be simply referred to as a “finger”.

スマートフォン1は、タッチスクリーン2Bにより検出された接触、接触位置、接触時間又は接触回数に基づいてジェスチャの種別を判別する。ジェスチャは、タッチスクリーンディスプレイ2に対して行われる操作である。スマートフォン1によって判別されるジェスチャには、タッチ、ロングタッチ、リリース、スワイプ、タップ、ダブルタップ、ロングタップ、ドラッグ、フリック、ピンチイン、ピンチアウト等が含まれる。   The smartphone 1 determines the type of gesture based on the contact, contact position, contact time, or number of contacts detected by the touch screen 2B. The gesture is an operation performed on the touch screen display 2. The gesture discriminated by the smartphone 1 includes touch, long touch, release, swipe, tap, double tap, long tap, drag, flick, pinch in, pinch out, and the like.

タッチは、タッチスクリーンディスプレイ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 smartphone 1 determines a gesture in which a finger contacts the touch screen display 2 as a touch. The long touch is a gesture in which a finger contacts the touch screen display 2 for a predetermined time or more. The smartphone 1 determines a gesture in which a finger contacts the touch screen display 2 for a predetermined time or more as a long touch.

リリースは、指がタッチスクリーンディスプレイ2から離れるジェスチャである。スマートフォン1は、指がタッチスクリーンディスプレイ2から離れるジェスチャをリリースとして判別する。スワイプは、指がタッチスクリーンディスプレイ2上に接触したままで移動するジェスチャである。スマートフォン1は、指がタッチスクリーンディスプレイ2上に接触したままで移動するジェスチャをスワイプとして判別する。   A release is a gesture in which a finger leaves the touch screen display 2. The smartphone 1 determines a gesture in which a finger leaves the touch screen display 2 as a release. The swipe is a gesture that moves while the finger is in contact with the touch screen display 2. The smartphone 1 determines a gesture that moves while the finger is in contact with the touch screen display 2 as a swipe.

タップは、タッチに続いてリリースをするジェスチャである。スマートフォン1は、タッチに続いてリリースをするジェスチャをタップとして判別する。ダブルタップは、タッチに続いてリリースをするジェスチャが2回連続するジェスチャである。スマートフォン1は、タッチに続いてリリースをするジェスチャが2回連続するジェスチャをダブルタップとして判別する。   A tap is a gesture for releasing following a touch. The smartphone 1 determines a gesture for releasing following a touch as a tap. The double tap is a gesture in which a gesture for releasing following a touch is continued twice. The smartphone 1 determines a gesture in which a gesture for releasing following a touch is continued twice as a double tap.

ロングタップは、ロングタッチに続いてリリースをするジェスチャである。スマートフォン1は、ロングタッチに続いてリリースをするジェスチャをロングタップとして判別する。ドラッグは、移動可能なオブジェクトが表示されている領域を始点としてスワイプをするジェスチャである。スマートフォン1は、移動可能なオブジェクトが表示されている領域を始点としてスワイプをするジェスチャをドラッグとして判別する。   A long tap is a gesture for releasing following a long touch. The smartphone 1 determines a gesture for releasing following a long touch as a long tap. The drag is a gesture for performing a swipe from an area where a movable object is displayed. The smartphone 1 determines, as a drag, a gesture for performing a swipe starting from an area where a movable object is displayed.

フリックは、タッチに続いて指が一方方向へ高速で移動しながらリリースするジェスチャである。スマートフォン1は、タッチに続いて指が一方方向へ高速で移動しながらリリースするジェスチャをフリックとして判別する。フリックは、指が画面の上方向へ移動する上フリック、指が画面の下方向へ移動する下フリック、指が画面の右方向へ移動する右フリック、指が画面の左方向へ移動する左フリック等を含む。   The flick is a gesture that is released while the finger moves at high speed in one direction following the touch. The smartphone 1 determines, as a flick, a gesture that is released while the finger moves in one direction at high speed following the touch. Flick: Up flick that moves your finger up the screen, Down flick that moves your finger down the screen, Right flick that moves your finger right in the screen, Left flick that moves your finger left in the screen Etc.

ピンチインは、複数の指が互いに近付く方向にスワイプするジェスチャである。スマートフォン1は、複数の指が互いに近付く方向にスワイプするジェスチャをピンチインとして判別する。ピンチアウトは、複数の指が互いに遠ざかる方向にスワイプするジェスチャである。スマートフォン1は、複数の指が互いに遠ざかる方向にスワイプするジェスチャをピンチアウトとして判別する。   Pinch-in is a gesture that swipes in a direction in which a plurality of fingers approach each other. The smartphone 1 determines, as a pinch-in, a gesture that swipes in a direction in which a plurality of fingers approach each other. Pinch-out is a gesture that swipes a plurality of fingers away from each other. The smartphone 1 determines a gesture of swiping in a direction in which a plurality of fingers move away from each other as a pinch out.

スマートフォン1は、タッチスクリーン2Bを介して判別するこれらのジェスチャに従って動作を行う。したがって、利用者にとって直感的で使いやすい操作性が実現される。判別されるジェスチャに従ってスマートフォン1が行う動作は、タッチスクリーンディスプレイ2に表示されている画面に応じて異なる。   The smartphone 1 operates according to these gestures that are determined via the touch screen 2B. Therefore, operability that is intuitive and easy to use for the user is realized. The operation performed by the smartphone 1 according to the determined gesture differs depending on the screen displayed on the touch screen display 2.

図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 smartphone 1. The smartphone 1 includes a touch screen display 2, a button 3, an illuminance sensor 4, a proximity sensor 5, a communication unit 6, a receiver 7, a microphone 8, a storage 9, a controller 10, and cameras 12 and 13. , An external interface 14, an acceleration sensor 15, an orientation sensor 16, and a rotation detection sensor 17.

タッチスクリーンディスプレイ2は、上述したように、ディスプレイ2Aと、タッチスクリーン2Bとを有する。ディスプレイ2Aは、文字、画像、記号、又は図形等を表示する。タッチスクリーン2Bは、ジェスチャを検出する。   As described above, the touch screen display 2 includes the display 2A and the touch screen 2B. The display 2A displays characters, images, symbols, graphics, or the like. The touch screen 2B detects a gesture.

ボタン3は、利用者によって操作される。ボタン3は、ボタン3A〜ボタン3Fを有する。コントローラ10はボタン3と協働することによってボタンに対する操作を検出する。ボタンに対する操作は、例えば、クリック、ダブルクリック、プッシュ、及びマルチプッシュである。   The button 3 is operated by the user. The button 3 includes buttons 3A to 3F. The controller 10 detects an operation on the button by cooperating with the button 3. The operation on the button is, for example, click, double click, push, and multi-push.

例えば、ボタン3A〜3Cは、ホームボタン、バックボタン又はメニューボタンである。例えば、ボタン3Dは、スマートフォン1のパワーオン/オフボタンである。ボタン3Dは、スリープ/スリープ解除ボタンを兼ねてもよい。例えば、ボタン3E及び3Fは、音量ボタンである。   For example, the buttons 3A to 3C are a home button, a back button, or a menu button. For example, the button 3D is a power on / off button of the smartphone 1. The button 3D may also serve as a sleep / sleep release button. For example, the buttons 3E and 3F are volume buttons.

照度センサ4は、照度を検出する。例えば、照度とは、光の強さ、明るさ、輝度等である。照度センサ4は、例えば、ディスプレイ2Aの輝度の調整に用いられる。   The illuminance sensor 4 detects illuminance. For example, the illuminance is light intensity, brightness, luminance, or the like. The illuminance sensor 4 is used for adjusting the luminance of the display 2A, for example.

近接センサ5は、近隣の物体の存在を非接触で検出する。近接センサ5は、例えば、タッチスクリーンディスプレイ2が顔に近付けられたことを検出する。   The proximity sensor 5 detects the presence of a nearby object without contact. The proximity sensor 5 detects that the touch screen display 2 is brought close to the face, for example.

通信ユニット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 communication unit 6 communicates wirelessly. The communication method performed by the communication unit 6 is a wireless communication standard. For example, wireless communication standards include cellular phone communication standards such as 2G, 3G, and 4G. For example, communication standards for cellular phones include LTE (Long Term Evolution), W-CDMA, CDMA2000, PDC, GSM (registered trademark), PHS (Personal Handy-phone System), and the like. Examples of wireless communication standards include WiMAX (Worldwide Interoperability for Microwave Access), IEEE802.11, Bluetooth (registered trademark), IrDA, NFC (Near Field Communication), and the like. The communication unit 6 may support one or more of the communication standards described above.

レシーバ7は、コントローラ10から送信される音声信号を音声として出力する。マイク8は、利用者等の音声を音声信号へ変換してコントローラ10へ送信する。なお、スマートフォン1は、レシーバ7に加えて、スピーカをさらに有してもよい。スマートフォン1は、レシーバ7に代えて、スピーカをさらに有してもよい。   The receiver 7 outputs the audio signal transmitted from the controller 10 as audio. The microphone 8 converts the voice of the user or the like into a voice signal and transmits it to the controller 10. The smartphone 1 may further include a speaker in addition to the receiver 7. The smartphone 1 may further include a speaker instead of the receiver 7.

ストレージ9は、プログラム及びデータを記憶する。また、ストレージ9は、コントローラ10の処理結果を一時的に記憶する作業領域としても利用される。ストレージ9は、半導体記憶デバイス、及び磁気記憶デバイス等の任意の記憶デバイスを含んでよい。また、ストレージ9は、複数の種類の記憶デバイスを含んでよい。また、ストレージ9は、メモリカード等の可搬の記憶媒体と、記憶媒体の読み取り装置との組み合わせを含んでよい。   The storage 9 stores programs and data. The storage 9 is also used as a work area for temporarily storing the processing result of the controller 10. The storage 9 may include any storage device such as a semiconductor storage device and a magnetic storage device. The storage 9 may include a plurality of types of storage devices. The storage 9 may include a combination of a portable storage medium such as a memory card and a storage medium reading device.

ストレージ9に記憶されるプログラムには、フォアグランド又はバックグランドで実行されるアプリケーションと、アプリケーションの動作を支援する制御プログラムとが含まれる。アプリケーションは、例えば、ディスプレイ2Aに所定の画面を表示させ、タッチスクリーン2Bによって検出されるジェスチャに応じた処理をコントローラ10に実行させる。制御プログラムは、例えば、OSである。アプリケーション及び制御プログラムは、通信ユニット6による無線通信又は記憶媒体を介してストレージ9にインストールされてもよい。   The programs stored in the storage 9 include an application executed in the foreground or the background and a control program that supports the operation of the application. For example, the application displays a predetermined screen on the display 2A, and causes the controller 10 to execute processing according to the gesture detected by the touch screen 2B. The control program is, for example, an OS. The application and the control program may be installed in the storage 9 via wireless communication by the communication unit 6 or a storage medium.

ストレージ9は、例えば、制御プログラム9A、メールアプリケーション9B、ブラウザアプリケーション9C、設定データ9Zを記憶する。メールアプリケーション9Bは、電子メールの作成、送信、受信、及び表示等のための電子メール機能を提供する。ブラウザアプリケーション9Cは、WEBページを表示するためのWEBブラウジング機能を提供する。テーブル9Dは、キーアサインテーブル等の各種テーブルが格納されている。配置パターンデータベース9Eは、ディスプレイ2Aに表示されるアイコン等の配置パターンが格納されている。設定データ9Zは、スマートフォン1の動作に関する各種の設定機能を提供する。   The storage 9 stores, for example, a control program 9A, a mail application 9B, a browser application 9C, and setting data 9Z. The mail application 9B provides an electronic mail function for creating, transmitting, receiving, and displaying an electronic mail. The browser application 9C provides a WEB browsing function for displaying a WEB page. The table 9D stores various tables such as a key assignment table. The arrangement pattern database 9E stores arrangement patterns such as icons displayed on the display 2A. The setting data 9Z provides various setting functions related to the operation of the smartphone 1.

制御プログラム9Aは、スマートフォン1を稼働させるための各種制御に関する機能を提供する。制御プログラム9Aは、例えば、通信ユニット6、レシーバ7、及びマイク8等を制御することによって、通話を実現させる。制御プログラム9Aが提供する機能には、タッチスクリーン2Bを介して検出されたジェスチャに応じて、ディスプレイ2Aに表示されている情報を変更する等の各種制御を行う機能が含まれる。なお、制御プログラム9Aが提供する機能は、メールアプリケーション9B等の他のプログラムが提供する機能と組み合わせて利用されることがある。   The control program 9A provides functions related to various controls for operating the smartphone 1. The control program 9A realizes a call by controlling the communication unit 6, the receiver 7, the microphone 8, and the like, for example. The function provided by the control program 9A includes a function of performing various controls such as changing information displayed on the display 2A according to a gesture detected via the touch screen 2B. Note that the functions provided by the control program 9A may be used in combination with functions provided by other programs such as the mail application 9B.

コントローラ10は、例えば、CPU(Central Processing Unit)である。コントローラ10は、通信ユニット6等の他の構成要素が統合されたSoC(System−on−a−chip)等の集積回路であってもよい。コントローラ10は、スマートフォン1の動作を統括的に制御して各種の機能を実現する。   The controller 10 is, for example, a CPU (Central Processing Unit). The controller 10 may be an integrated circuit such as a SoC (System-on-a-chip) in which other components such as the communication unit 6 are integrated. The controller 10 controls various operations of the smartphone 1 to realize various functions.

具体的には、コントローラ10は、ストレージ9に記憶されているデータを必要に応じて参照しつつ、ストレージ9に記憶されているプログラムに含まれる命令を実行して、ディスプレイ2A及び通信ユニット6等を制御することによって各種機能を実現する。コントローラ10は、タッチスクリーン2B、ボタン3、加速度センサ15等の各種検出部の検出結果に応じて、制御を変更することもある。   Specifically, the controller 10 executes instructions included in the program stored in the storage 9 while referring to the data stored in the storage 9 as necessary, and the display 2A, the communication unit 6 and the like. Various functions are realized by controlling. The controller 10 may change the control according to detection results of various detection units such as the touch screen 2B, the button 3, and the acceleration sensor 15.

コントローラ10は、例えば、制御プログラム9Aを実行することにより、タッチスクリーン2Bを介して検出されたジェスチャに応じて、ディスプレイ2Aに表示されている情報を変更する等の各種制御を実行する。   For example, by executing the control program 9A, the controller 10 executes various controls such as changing information displayed on the display 2A according to a gesture detected via the touch screen 2B.

カメラ12は、フロントフェイス1Aに面している物体を撮影するインカメラである。カメラ13は、バックフェイス1Bに面している物体を撮影するアウトカメラである。   The camera 12 is an in-camera that captures an object facing the front face 1A. The camera 13 is an out camera that captures an object facing the back face 1B.

外部インタフェース14は、他の装置が接続される端子である。外部インタフェース14は、USB(Universal Serial Bus)、HDMI(High−Definition Multimedia Interface)、ライトピーク(サンダーボルト)、イヤホンマイクコネクタのような汎用的な端子であってもよい。外部インタフェース14は、Dockコネクタのような専用に設計された端子でもよい。外部インタフェース14に接続される装置には、例えば、外部ストレージ、スピーカ、通信装置が含まれる。   The external interface 14 is a terminal to which another device is connected. The external interface 14 may be a general-purpose terminal such as a universal serial bus (USB), a high-definition multimedia interface (HDMI), a light peak (thunderbolt), and an earphone microphone connector. The external interface 14 may be a dedicated terminal such as a dock connector. Devices connected to the external interface 14 include, for example, an external storage, a speaker, and a communication device.

加速度センサ15は、スマートフォン1に働く加速度の方向及び大きさを検出する。方位センサ16は、地磁気の向きを検出する。回転検出センサ17は、スマートフォン1の回転を検出する。加速度センサ15、方位センサ16及び回転検出センサ17の検出結果は、スマートフォン1の位置及び姿勢の変化を検出するために、組み合わせて利用される。   The acceleration sensor 15 detects the direction and magnitude of acceleration acting on the smartphone 1. The direction sensor 16 detects the direction of geomagnetism. The rotation detection sensor 17 detects the rotation of the smartphone 1. The detection results of the acceleration sensor 15, the orientation sensor 16, and the rotation detection sensor 17 are used in combination in order to detect changes in the position and orientation of the smartphone 1.

このように構成されるスマートフォン1は、通信ユニット6により、複数のAPNを用いて複数の接続先へ無線接続できる。具体的には、スマートフォン1は、インターネット(以下、Default)接続用のAPNと、テザリング(以下、DUN(Dial Up Network))接続用のAPNとを用いて、2つのインタフェースによって無線接続を行う。以下に、無線接続時のコントローラ10の具体的な処理について説明する。   The smartphone 1 configured as described above can be wirelessly connected to a plurality of connection destinations using the plurality of APNs by the communication unit 6. Specifically, the smartphone 1 performs wireless connection through two interfaces using an APN for Internet (hereinafter, Default) connection and an APN for tethering (hereinafter, DUN (Dial Up Network)) connection. Below, the specific process of the controller 10 at the time of wireless connection is demonstrated.

図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 smartphone 1 from the network and the DUN interface “rmnet1” The IP address “106.145.1.92” assigned to the smartphone 1 is continuous.

このとき、サブネットマスクが「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 controller 10 fails to additionally register the network information of “rmnet1” in the routing table.

ルーティングテーブルへの登録に失敗した場合でも、スマートフォン1は、無線接続を維持し続けるため、後から接続されたインタフェースでは、無線接続は確立していても通信ができない状態となる。   Even if the registration to the routing table fails, the smartphone 1 continues to maintain the wireless connection. Therefore, the interface connected later cannot communicate even if the wireless connection is established.

図6は、本実施形態に係るDUN接続処理を示すフローチャートである。
ステップS1において、コントローラ10は、無線接続の切断を実施したか否かを示すフラグをFALSEに初期化する。
FIG. 6 is a flowchart showing DUN connection processing according to the present embodiment.
In step S1, the controller 10 initializes a flag indicating whether or not the wireless connection has been disconnected to FALSE.

ステップS2において、コントローラ10は、通信ユニット6に対して、テザリングのためのDUN接続要求を行う。   In step S <b> 2, the controller 10 issues a DUN connection request for tethering to the communication unit 6.

ステップS3において、コントローラ10は、ステップS2の接続要求によってDUN接続に成功したか否かを判定する。この判定がYESの場合、処理はステップS4に移り、判定がNOの場合、処理はステップS3を継続する。   In step S3, the controller 10 determines whether or not the DUN connection has been successful by the connection request in step S2. If this determination is YES, the process proceeds to step S4, and if the determination is NO, the process continues to step S3.

ステップS4において、コントローラ10は、無線接続したDUNのネットワーク情報をルーティングテーブルへ追加することに成功したか否かを判定する。この判定がYESの場合、処理はステップS5に移り、判定がNOの場合、処理はステップS6に移る。   In step S4, the controller 10 determines whether or not the network information of the wirelessly connected DUN has been successfully added to the routing table. If this determination is YES, the process proceeds to step S5, and if the determination is NO, the process proceeds to step S6.

ステップS5において、コントローラ10は、フラグがTRUEに変化していればFALSEに初期化する。   In step S5, if the flag has changed to TRUE, the controller 10 initializes to FALSE.

ステップS6において、コントローラ10は、フラグがFALSEであるか否(TRUE)かを判定する。この判定がYES(フラグ==FALSE)の場合、処理はステップS7に移り、判定がNO(フラグ==TRUE)の場合、処理はステップS10に移る。   In step S6, the controller 10 determines whether or not the flag is FALSE (TRUE). If this determination is YES (flag == FALSE), the process proceeds to step S7. If the determination is NO (flag == TRUE), the process proceeds to step S10.

ステップS7において、コントローラ10は、フラグをTRUEに設定し、無線接続を切断することを記録する。   In step S7, the controller 10 sets a flag to TRUE and records that the wireless connection is disconnected.

ステップS8において、コントローラ10は、通信ユニット6に対して、DUNの切断要求を行う。   In step S <b> 8, the controller 10 issues a DUN disconnection request to the communication unit 6.

ステップS9において、コントローラ10は、DUNの切断が完了したか否かを判定する。この判定がYESの場合、処理はステップS2に移り、判定がNOの場合、処理はステップS9を継続する。   In step S9, the controller 10 determines whether or not the DUN has been disconnected. If this determination is YES, the process proceeds to step S2, and if the determination is NO, the process continues to step S9.

ステップS10において、コントローラ10は、Defaultの無線接続が切断されたか否かを判定する。この判定がYESの場合、処理はステップS11に移り、判定がNOの場合、処理はステップS10を継続する。   In step S10, the controller 10 determines whether or not the Default wireless connection has been disconnected. If this determination is YES, the process proceeds to step S11, and if the determination is NO, the process continues to step S10.

ステップS11において、コントローラ10は、フラグがTRUEであるか否(FALSE)かを判定する。この判定がYES(フラグ==TRUE)の場合、処理はステップS12に移り、判定がNO(フラグ==FALSE)の場合、処理は終了する。   In step S11, the controller 10 determines whether or not the flag is TRUE (FALSE). If this determination is YES (flag == TRUE), the process proceeds to step S12. If the determination is NO (flag == FALSE), the process ends.

ステップS12において、コントローラ10は、フラグをFALSEに初期化する。その後、処理はステップS8に移り、DUNの切断が行われる。   In step S12, the controller 10 initializes a flag to FALSE. Thereafter, the process proceeds to step S8, and the DUN is cut.

図7は、本実施形態との比較のため、DUN接続処理(図6)を行わなかった場合のスマートフォン1の動作を示すシーケンス図である。   FIG. 7 is a sequence diagram illustrating the operation of the smartphone 1 when the DUN connection process (FIG. 6) is not performed for comparison with the present embodiment.

コントローラ10の通信制御部(NC/Telephony)は、ステップS21において、テザリング要求を受けると、ステップS23において、テザリング処理部(Tethering)に対して、テザリング起動通知を行う。   When the communication control unit (NC / Telephony) of the controller 10 receives the tethering request in step S21, the tethering activation notification is sent to the tethering processing unit (Tethering) in step S23.

通信制御部は、ステップ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 communication unit 6 in step S25. Thereafter, the wireless unit (Modem) of the communication unit 6 transmits a wireless connection request to the network.

無線部は、ネットワークから無線接続要求に対して接続完了通知を受ける。その後、通信制御部は、ステップ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 smartphone 1 when the DUN connection process (FIG. 6) according to the present embodiment is performed.

通信制御部は、ステップ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 controller 10 disconnects the wireless connection when it succeeds in the DUN wireless connection and fails to register the network information assigned at the time of the wireless connection in the routing table. Due to reasons such as an IP address being assigned to another communication device before reconnection, the smartphone 1 is assigned a different IP address from the previous time when reconnecting to the DUN, and succeeds in adding to the routing table. Communication via is now possible.

図9は、本実施形態に係るDUN接続処理(図6)を行った場合のスマートフォン1の第2の動作を示すシーケンス図である。   FIG. 9 is a sequence diagram illustrating a second operation of the smartphone 1 when the DUN connection process (FIG. 6) according to the present embodiment is performed.

ステップ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 controller 10 disconnects the DUN and tries to reconnect after failing to register the network information allocated at the time of the wireless connection in the routing table after the wireless connection of the DUN is successful. did. When the smartphone 1 reconnects to the DUN that has disconnected the wireless connection and fails to register again the network information assigned at the time of the reconnection in the routing table, the smartphone 1 does not disconnect the wireless connection to the DUN. Thereby, it is suppressed that the process of a cutting | disconnection and connection is repeated.

さらに、コントローラ10は、再接続したDUNに対する無線接続を切断しなかった場合、その後、DUNよりも優先度が高い接続先であるDefaultに対する無線接続が切断されると、DUNに対する無線接続を切断して、DUNの再接続を試みる。したがって、スマートフォン1は、DUNでの通信ができない状態が継続されるのを抑制できる。   Furthermore, if the controller 10 does not disconnect the wireless connection to the reconnected DUN, then the controller 10 disconnects the wireless connection to the DUN when the wireless connection to the default destination that is higher in priority than the DUN is disconnected. And try to reconnect DUN. Therefore, the smartphone 1 can suppress a state in which communication with DUN cannot be continued.

図10は、本実施形態に係るDefault接続処理を示すフローチャートである。
ステップS51において、コントローラ10は、Defaultの接続要求を行う。
FIG. 10 is a flowchart showing the Default connection process according to the present embodiment.
In step S51, the controller 10 issues a default connection request.

ステップS52において、コントローラ10は、Defaultに対する無線接続に成功したか否かを判定する。この判定がYESの場合、処理はステップS53に移り、判定がNOの場合、処理はステップS51に移る。   In step S52, the controller 10 determines whether or not the wireless connection to the Default has been successful. If this determination is YES, the process proceeds to step S53, and if the determination is NO, the process proceeds to step S51.

ステップS53において、コントローラ10は、Defaultのネットワーク情報をルーティングテーブルに追加することに成功したか否かを判定する。この判定がYESの場合、処理は終了し、判定がNOの場合、処理はステップS54に移る。   In step S53, the controller 10 determines whether the default network information has been successfully added to the routing table. If this determination is YES, the process ends. If the determination is NO, the process proceeds to step S54.

ステップS54において、コントローラ10は、スマートフォン1が対応している全てのネットワークに対して以下のステップS55〜S58の処理を繰り返す。   In step S54, the controller 10 repeats the following steps S55 to S58 for all networks supported by the smartphone 1.

ステップS55において、コントローラ10は、対象のネットワークがWiFi及びWiMAXを除く無線通信ネットワークであるか否かを判定する。この判定がYESの場合、処理はステップS56に移り、判定がNOの場合、ステップS56〜S58を実行せず、ステップS54のループ判定に移る。   In step S55, the controller 10 determines whether the target network is a wireless communication network excluding WiFi and WiMAX. If this determination is YES, the process proceeds to step S56, and if the determination is NO, steps S56 to S58 are not executed, and the process proceeds to a loop determination in step S54.

ステップS56において、コントローラ10は、対象のネットワークに接続されている、又は接続試行中の状態であるか否かを判定する。この判定がYESの場合、処理はステップS57に移る。一方、判定がNOの場合、コントローラ10は、接続していないネットワークへ切断要求する必要がないので、ステップS57〜S58を実行せず、ステップS54のループ判定に移る。
判定がNOとなるのは、例えば、ルーティングテーブルへの追加に失敗した後、すぐに圏外になった場合等である。
In step S56, the controller 10 determines whether it is connected to the target network or is in a connection trial state. If this determination is YES, the process proceeds to step S57. On the other hand, when the determination is NO, the controller 10 does not need to make a disconnection request to a network that is not connected, and thus the process proceeds to loop determination in step S54 without executing steps S57 to S58.
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 controller 10 determines whether or not a disconnection request has not yet been made to the target network. If this determination is YES, the process proceeds to step S58. On the other hand, if the determination is NO, a disconnection request has already been made, and the controller 10 does not need to request a disconnection again. Therefore, step S58 is not executed, and the process proceeds to loop determination in step S54.
The determination is NO when, for example, the addition to the routing table has failed, but the smartphone 1 is connected via WiFi and requests disconnection through another route.

ステップS58において、コントローラ10は、対象のネットワークへ切断要求を行う。そして、処理は、ステップS54のループ判定に移る。   In step S58, the controller 10 issues a disconnection request to the target network. Then, the process proceeds to loop determination in step S54.

ステップS59において、コントローラ10は、本処理フローのステップS58において切断要求を実施したか否かを判定する。この判定がYESの場合、処理はステップS60に移り、判定がNOの場合、処理は終了する。
なお、スマートフォン1は、ステップS58において切断要求を実施していない場合、例えば、ルーティングテーブルへの追加に失敗したがWiFi接続した場合は、再接続する必要がなく、また、ルーティングテーブルへの追加に失敗したが圏外になった場合は、圏内に復帰することで自動的に再接続される。
In step S59, the controller 10 determines whether or not a disconnection request has been made in step S58 of the processing flow. If this determination is YES, the process proceeds to step S60, and if the determination is NO, the process ends.
If the smartphone 1 has not made a disconnection request in step S58, for example, if the addition to the routing table has failed but the WiFi connection has been made, there is no need to reconnect, and the addition to the routing table is also possible. If it fails but goes out of service area, it automatically reconnects by returning to service area.

ステップS60において、コントローラ10は、切断要求後1秒が経過したか否かを判定する。この判定がYESの場合、処理はステップS51に移り、コントローラ10は、Defaultの再接続要求を行う。一方、判定がNOの場合、処理はステップS60を継続する。   In step S60, the controller 10 determines whether 1 second has elapsed after the disconnection request. If this determination is YES, the process moves to step S51, and the controller 10 makes a default reconnection request. On the other hand, if the determination is no, the process continues with step S60.

図11は、本実施形態との比較のため、Default接続処理(図10)を行わなかった場合のスマートフォン1の動作を示すシーケンス図である。   FIG. 11 is a sequence diagram illustrating the operation of the smartphone 1 when the default connection process (FIG. 10) is not performed for comparison with the present embodiment.

通信制御部は、ステップ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 smartphone 1 when performing the Default connection process (FIG. 10) according to the present embodiment.

ステップ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 controller 10 succeeds in wireless connection to the Default and DUN and fails to register the network information assigned at the time of wireless connection to the Default in the routing table, the wireless connection to the Default and DUN. Was cut off.
By reconnecting the Default and DUN, the smartphone 1 is assigned an IP address sufficiently separated from each other, successfully added both network information to the routing table, and can communicate with each other. became.

さらに、コントローラ10は、再接続を行う際には、接続先(Default又はDUN)に応じた所定時間の経過後に再接続を行った。スマートフォン1は、双方の接続先に対して所定の時間差で再接続を行うことにより、互いに十分に離れたIPアドレスが割り当てられ、双方のネットワーク情報をルーティングテーブルへ追加することに成功し、双方での通信が可能となった。   Furthermore, when reconnecting, the controller 10 reconnected after a predetermined time according to the connection destination (Default or DUN). The smartphone 1 is reconnected to both connection destinations at a predetermined time difference so that IP addresses sufficiently separated from each other are assigned, and both network information is successfully added to the routing table. Communication became possible.

以上のように、本実施形態によれば、スマートフォン1は、無線接続に成功した後に、当該無線接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録することに失敗した場合、当該無線接続を切断する。
したがって、スマートフォン1は、切断後の再接続によってルーティングテーブルへの登録に成功すると、無駄な無線接続状態を維持することを回避できる。
As described above, according to the present embodiment, the smartphone 1 disconnects the wireless connection when it succeeds in wireless connection and fails to register the network information assigned at the time of the wireless connection in the routing table. .
Therefore, if the smartphone 1 succeeds in registration in the routing table by reconnection after disconnection, it can avoid maintaining a useless wireless connection state.

また、スマートフォン1は、複数の接続先(例えば、Default及びDUN)に対する無線接続に成功した後に、当該複数の接続先のうち、いずれかの接続先(例えば、Default)に対する無線接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録することに失敗した場合、複数の接続先に対する無線接続を切断する。
したがって、スマートフォン1は、複数の接続先に対する再接続によってルーティングテーブルへの登録に成功すると、無駄な無線接続状態を維持することを回避できる。
In addition, the smartphone 1 is assigned at the time of wireless connection to any one of the plurality of connection destinations (for example, Default) after successful wireless connection to the plurality of connection destinations (for example, Default and DUN). When registration of network information in the routing table fails, wireless connection to a plurality of connection destinations is disconnected.
Therefore, when the smartphone 1 succeeds in registration in the routing table by reconnection to a plurality of connection destinations, it can avoid maintaining a useless wireless connection state.

また、スマートフォン1は、複数の接続先(例えば、Default及びDUN)に対する無線接続に成功した後に、当該複数の接続先のうち、いずれかの接続先(例えば、Default)に対する無線接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録することに失敗した場合、複数の接続先のうち、ルーティングテーブルへの登録に失敗した接続先(例えば、Default)、及び当該接続先よりも優先度が低い接続先(例えば、DUN)に対する無線接続を切断する。
したがって、スマートフォン1は、ルーティングテーブルへの登録に失敗した接続先と共に、優先度が低い接続先に対する無線接続を切断するので、優先度が高い接続先のネットワーク情報をルーティングテーブルへ登録できる可能性を高められる。
In addition, the smartphone 1 is assigned at the time of wireless connection to any one of the plurality of connection destinations (for example, Default) after successful wireless connection to the plurality of connection destinations (for example, Default and DUN). If the network information fails to be registered in the routing table, among the plurality of connection destinations, the connection destination that failed to be registered in the routing table (for example, Default), and the connection destination having a lower priority than the connection destination ( For example, the wireless connection to DUN) is disconnected.
Therefore, since the smartphone 1 disconnects the wireless connection to the connection destination having a low priority together with the connection destination that has failed to be registered in the routing table, there is a possibility that the network information of the connection destination having a high priority can be registered in the routing table. Enhanced.

また、スマートフォン1は、無線接続を切断した接続先(例えば、DUN)に対して再接続した際に、当該再接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録することに再度失敗した場合、当該再接続した接続先に対する無線接続を切断しない。
したがって、スマートフォン1は、再接続によっても同一のIPアドレスが割り当てられる場合等に、切断及び接続の処理が繰り返され、処理負荷及びネットワーク負荷が増大するのを抑制できる。
In addition, when the smartphone 1 reconnects to the connection destination (for example, DUN) that has disconnected the wireless connection, when the network information assigned at the time of the reconnection fails to be registered again in the routing table, the smartphone 1 Do not disconnect the wireless connection to the reconnected destination.
Therefore, when the same IP address is assigned even by reconnection, the smartphone 1 can suppress an increase in processing load and network load due to repeated disconnection and connection processing.

また、スマートフォン1は、再接続した接続先(例えば、DUN)に対する無線接続を切断しなかった場合、当該接続先よりも優先度が高い接続先(例えば、Default)に対する無線接続が切断されると、無線接続を切断しなかった接続先(例えば、DUN)に対する無線接続を切断する。
したがって、スマートフォン1は、優先度が高い接続先(例えば、Default)の切断を契機として、再接続によりネットワーク情報をルーティングテーブルへ登録できる可能性がある。
In addition, when the smartphone 1 does not disconnect the wireless connection to the reconnected connection destination (for example, DUN), the wireless connection to the connection destination (for example, Default) having a higher priority than the connection destination is disconnected. The wireless connection to the connection destination (for example, DUN) that did not disconnect the wireless connection is disconnected.
Therefore, there is a possibility that the smartphone 1 can register network information in the routing table by reconnection when a connection destination (for example, Default) having a high priority is disconnected.

また、スマートフォン1は、無線接続を切断した接続先(例えば、Default及びDUN)に対して、当該接続先に応じた所定時間の経過後に再接続を行う。具体的には、スマートフォン1は、例えば、Defaultは1秒後に接続要求を行い、DUNは3秒後に切断完了通知を行って接続要求を待つことにより時間差が生じるので、双方のネットワーク情報をルーティングテーブルへ登録できる可能性を高められる。   In addition, the smartphone 1 performs reconnection to a connection destination (for example, Default and DUN) that has been disconnected from the wireless connection after a predetermined time corresponding to the connection destination has elapsed. Specifically, for example, the smartphone 1 makes a connection request after 1 second by default, and the DUN issues a disconnection completion notification after 3 seconds and waits for the connection request. The possibility of registering to is increased.

[第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 controller 10 increases the time until a reconnection is attempted with respect to the connection destination that has been disconnected from the wireless connection, according to the number of consecutive failures to register the network information in the routing table. .

図13A及び図13Bは、本実施形態に係るDUN接続処理を行った場合のスマートフォン1の動作を示すシーケンス図である。なお、図13Bは、図13Aに続く動作を示している。   13A and 13B are sequence diagrams illustrating the operation of the smartphone 1 when the DUN connection process according to the present embodiment is performed. FIG. 13B shows the operation following FIG. 13A.

通信制御部は、ステップ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 smartphone 1 continuously fails to register the network information in the routing table until the connection destination that has disconnected the wireless connection tries to reconnect. Increase according to the number of times.
Therefore, since the smartphone 1 can be expected to change the assigned IP address by extending the time until reconnection, if the registration to the routing table is successful by reconnection, the useless wireless connection state is maintained. Can be avoided.

以上、本発明の実施形態について説明したが、本発明は前述した実施形態に限るものではない。また、本発明の実施形態に記載された効果は、本発明から生じる最も好適な効果を列挙したに過ぎず、本発明による効果は、前述の実施形態に記載されたものに限定されるものではない。   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 smartphone 1 illustrated in FIG. 4 is an example, and may be appropriately changed within a range that does not impair the gist of the present invention.

図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 communication unit 6. 4 may be stored in a storage medium that can be read by a reading device included in the storage 9. 4 is stored in a storage medium such as a CD, DVD, or Blu-ray that can be read by a reader connected to the external interface 14. May be.
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 Communication unit 10 Controller

Claims (9)

複数の接続先に対する無線接続に成功した後に、当該複数の接続先のうち、いずれかの接続先に対する無線接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録することに失敗した場合、前記複数の接続先に対する無線接続を切断する通信機器。   After successful wireless connection to a plurality of connection destinations, 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, the plurality of connections A communication device that disconnects the wireless connection to the destination. 複数の接続先に対する無線接続に成功した後に、当該複数の接続先のうち、いずれかの接続先に対する無線接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録することに失敗した場合、前記複数の接続先のうち、前記ルーティングテーブルへの登録に失敗した接続先、及び当該接続先よりも優先度が低い接続先に対する無線接続を切断する通信機器。   After successful wireless connection to a plurality of connection destinations, 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, the plurality of connections A communication device that disconnects a wireless connection to a connection destination that failed to be registered in the routing table and a connection destination having a lower priority than the connection destination. 前記ネットワーク情報は、少なくともIPアドレス及びネットワークアドレスを含む請求項1又は請求項に記載の通信機器。 The network information, the communication device according to claim 1 or claim 2 comprising at least IP address and network address. 前記無線接続を切断した接続先に対して再接続した際に、当該再接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録することに再度失敗した場合、当該再接続した接続先に対する無線接続を切断しない請求項1から請求項のいずれか1項に記載の通信機器。 When reconnecting to a connection destination that has disconnected the wireless connection, if it fails again to register the network information assigned at the time of the reconnection in the routing table, the wireless connection to the reconnected connection destination is disconnected. The communication device according to any one of claims 1 to 3 . 前記再接続した接続先に対する無線接続を切断しなかった場合、当該接続先よりも優先度が高い接続先に対する無線接続が切断されると、前記無線接続を切断しなかった接続先に対する無線接続を切断する請求項に記載の通信機器。 If the wireless connection to the reconnected connection destination is not disconnected, and the wireless connection to the connection destination having a higher priority than the connection destination is disconnected, the wireless connection to the connection destination that has not disconnected the wireless connection is performed. The communication device according to claim 4 , wherein the communication device is disconnected. 前記無線接続を切断した接続先に対して、当該接続先に応じた所定時間の経過後に再接続を行う請求項1から請求項のいずれか1項に記載の通信機器。 The communication device according to any one of claims 1 to 3 , wherein a reconnection is performed on a connection destination that has disconnected the wireless connection after a predetermined time corresponding to the connection destination has elapsed. 前記無線接続を切断した接続先に対して再接続を試行するまでの時間を、前記ネットワーク情報をルーティングテーブルへ登録することに連続して失敗した回数に応じて増加させる請求項1から請求項のいずれか1項に記載の通信機器。 The wireless time before attempting to reconnect to the connection to cut the connection destination, the claims 1 to 3 that increases according to the network information on the number of consecutive failed to be registered to the routing table The communication device according to any one of the above. 通信機器が、
複数の接続先に対する無線接続を行うステップと、
前記無線接続に成功した後に、当該複数の接続先のうち、いずれかの接続先に対する無線接続時に割り当てられたネットワーク情報をルーティングテーブルへ登録することに失敗した場合、前記複数の接続先に対する無線接続を切断するステップと、を実行する通信制御方法。
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.
通信機器が、Communication equipment
複数の接続先に対する無線接続を行うステップと、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.
JP2012229360A 2012-10-16 2012-10-16 Communication device and communication control method Expired - Fee Related JP6140972B2 (en)

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)

* Cited by examiner, † Cited by third party
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

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