JP5405617B2 - Mobile communication terminal and program - Google Patents
Mobile communication terminal and program Download PDFInfo
- Publication number
- JP5405617B2 JP5405617B2 JP2012096872A JP2012096872A JP5405617B2 JP 5405617 B2 JP5405617 B2 JP 5405617B2 JP 2012096872 A JP2012096872 A JP 2012096872A JP 2012096872 A JP2012096872 A JP 2012096872A JP 5405617 B2 JP5405617 B2 JP 5405617B2
- Authority
- JP
- Japan
- Prior art keywords
- communication
- router
- control device
- address
- wireless communication
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000010295 mobile communication Methods 0.000 title claims description 84
- 238000004891 communication Methods 0.000 claims description 177
- 230000004044 response Effects 0.000 claims description 6
- 238000000034 method Methods 0.000 description 17
- 230000006870 function Effects 0.000 description 16
- 238000012986 modification Methods 0.000 description 7
- 230000004048 modification Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000000060 site-specific infrared dichroism spectroscopy Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
- Telephonic Communication Services (AREA)
- Selective Calling Equipment (AREA)
Description
本発明は、移動通信端末から遠隔で電気機器を操作するための技術に関する。 The present invention relates to a technique for operating an electrical device remotely from a mobile communication terminal.
ユーザの自宅やオフィスなどの建物の内部(以下、宅内という)において、様々な電気機器をLAN(Local Area Network)やそれに付随するネットワークで接続しておき、ユーザが携帯電話機やタブレット端末などの移動通信端末を用いてLAN経由で電気機器を遠隔操作するという技術が知られている(例えば特許文献1)。図1にこの種の技術の一構成例を示す。図1において、移動通信端末20は、例えばLTE(Long Term Evolution)やいわゆる3G、またはGSM(登録商標)(Global System for Mobile Communications)などに準拠した各種移動通信と、IEEE802.11nなどのいわゆる無線LANの規格に準拠した通信を行う。宅内には、宅内制御装置40のほかに種々の装置を含むLANが構築されている。宅内制御装置40は、例えばZigBee(登録商標)に準拠した無線を用い、制御アダプタ50を介して各種の電気機器30を制御する。ルータ70は、LANで接続された宅内制御装置40と通信を行うほか、無線LANの通信方式で移動通信端末20と通信を行う。ユーザは、移動通信端末20を用いて、宅外から移動通信網10及びインターネット60を介して宅内の電気機器30を遠隔操作することもできるし、これら移動通信網10及びインターネット60を介さずに、無線LAN経由で宅内の電気機器を遠隔操作することもできる。
Inside the building of the user's home or office (hereinafter referred to as “home”), various electrical devices are connected via a LAN (Local Area Network) or a network attached thereto, and the user moves a mobile phone or tablet terminal. A technique of remotely operating an electrical device via a LAN using a communication terminal is known (for example, Patent Document 1). FIG. 1 shows an example of the configuration of this type of technology. In FIG. 1, a
ところで近年は、移動通信網10の通信速度の高速化が進んでいるが、それでも例えば3Gに準拠した移動通信網における通信速度よりも、IEEE802.11nなどに準拠した無線LANにおける通信速度のほうが速い。このような通信速度の違いから、ユーザは、宅外にいるときは移動通信網10を介して例えばWEBブラウジングなどを行うが、宅内に居るときは、無線LANを介してWEBブラウジングなどを行うというような使い分けをすることがある。
By the way, in recent years, the communication speed of the
ここで、電気機器30を遠隔操作するときの手順は、移動通信端末20が電気機器30の遠隔操作用のアプリケーションプログラムを起動してから、宅内制御装置40にアクセスすることから始まる。移動通信端末20が移動通信網10経由で宅内制御装置40にアクセスするときに宛先となる通信アドレスは、いわゆるブックマーク機能によって移動通信端末20に保持されている。この通信アドレスを、アクセス先URL(Uniform Resource Locator)という。このアクセス先URLは、DNS(Domain Name System)により、ルータ70に割り当てられたグローバルIP(Internet Protocol)アドレス(WAN(Wide Area Network)側IPアドレス)に変換される。移動通信端末20が、このグローバルIPアドレスを宛先としてルータ70にアクセスすると、このアクセスはルータ70のNAPT(Network Address Port Translation)機能により、宅内制御装置40へとルーティングされる。NAPT機能は、WAN側からのアクセスをLAN側にルーティングするべく、グローバルIPアドレスとローカルIPアドレス(プライベートIPアドレス)とを変換する機能である。この後、宅内制御装置40から移動通信端末20に対し、図6に例示するような画面を表示するための画面データが送信される。ユーザはこの画面上で所望する電気機器30に対する操作を行う。
Here, the procedure for remotely operating the
これに対し、移動通信端末20が無線LAN経由で宅内制御装置にアクセスするときに宛先となる通信アドレスは、この無線LANにおいて宅内制御装置40に割り当てられたローカルIPアドレスである。この場合、NAPT機能によるアドレス変換はなされない。以降は、上記の例と同様に、宅内制御装置40から移動通信端末20に対し、図6の画面を表示するための画面データが送信され、ユーザはこの画面上で所望する電気機器30に対する操作を行う。
On the other hand, the communication address that is the destination when the
さて、上述したブックマーク機能によって宅内制御装置40のアクセス先URLが保持されている状態で、移動通信端末20が宅内から無線LAN経由で宅内制御装置40にアクセスしようとした場合を想定する。このアクセス先URLもDNSによりルータ70のグローバルIPアドレスに変換されるから、移動通信端末20はまずルータにアクセスすることになる。ただし、このアクセスは、無線LAN内部の通信ノードからのアクセスであるから、ルータ70のNAPT機能が働かない。その結果、移動通信端末20からルータそのものへのアクセスとみなされ、ルータ70から宅内制御装置40へルーティングされない。この場合、移動通信端末20においては、図6のような画面ではなく、ルータ70における各種の設定画面や、接続不可を意味する画面が表示されるだけとなり、宅内制御装置40へのアクセスができない。
Now, a case is assumed where the
そこで、移動通信端末20が宅内に居る場合に限り、ユーザが移動通信端末20を操作して、宅内制御装置40のアクセス先URLではなく、宅内制御装置40のローカルIPアドレスにアクセスするよう指示する、という解決策が考えられる。しかし、この方法では、ユーザは、自身が宅内に居るか否かに応じて異なる通信アドレスを移動通信端末20に都度、指示しなければならず、その手間が煩雑であるという問題がある。
Therefore, only when the
また、無線LAN内部の通信ノードからルータ70に割り当てられているグローバルIPアドレスにアクセスされた場合にも、NAPT機能により宅内制御装置40へルーティングするようなルーティング規則を新たにルータ70に設定するという方法も考えられる。しかし、この方法では、そのような特殊な設定を行い得るルータを開発せねばならないし、また、ユーザがルータを新たに交換する度に、同様の設定を行わなければならないという問題がある。特にユーザはルータの利用開始時にその設定作業を行う機会がある程度で、通常の使用期間中はルータに触れることもなく、基本的にルータの取り扱いに不慣れであるから、この方法はユーザに強いる負担が大きいと考えられる。
In addition, when a global IP address assigned to the
さらに別の方法として、もう1つのグローバルIPアドレスを用意しておき、そのグローバルIPアドレスからプロキシサーバ装置経由でルータ70にアクセスするという方法も考えられる。しかし、このような方法は、通信技術に詳しくないユーザが行うのには困難である。
As another method, another global IP address is prepared and the
そこで、本発明は、遠隔操作の対象となる電気機器を含むLANが設置された場所にユーザが居る場合であっても居ない場合であっても、そのユーザがより簡便に電気機器を遠隔操作できるようにすることを目的とする。 Therefore, the present invention makes it easier for a user to remotely operate an electric device regardless of whether the user is present or not at a location where the LAN including the electric device to be remotely operated is installed. The purpose is to be able to.
上記課題を達成するために、本発明は、電気機器を制御する制御装置にLANを介して接続されたルータと、WAN経由で通信を行う第1無線通信手段と、前記ルータと通信を行う第2無線通信手段と、前記WANにおいて前記制御装置に割り当てられた通信アドレスであるアクセス先アドレスと、前記LANにおいて前記制御装置に割り当てられた通信アドレスであるローカルアドレスと、前記ルータが前記第2無線通信手段と通信を行うために当該ルータに割り当てられた識別子とを記憶する記憶手段と、前記第2無線通信手段の通信相手である前記ルータに割り当てられた識別子が、前記記憶手段に記憶されている前記識別子と一致する場合には、前記第2無線通信手段を用いて前記ローカルアドレスを宛先とした第1の通信を行い、それ以外の場合には、前記第1無線通信手段または前記第2無線通信手段を用いて前記アクセス先アドレスを宛先とした第2の通信を行い、前記第1の通信から前記第2の通信へ切り替えた際及び前記第2の通信から前記第1の通信へ切り替えた際に、当該切り替えの前における前記制御装置との間の通信セッションに関する情報を当該切り替えの後に利用して、前記制御装置と通信を行う通信制御手段とを備えることを特徴とする移動通信端末を提供する。 In order to achieve the above object, the present invention provides a router connected via a LAN to a control device that controls an electrical device, first wireless communication means for communicating via a WAN, and first router for communicating with the router. Two wireless communication means, an access destination address which is a communication address assigned to the control device in the WAN, a local address which is a communication address assigned to the control device in the LAN, and the router Storage means for storing an identifier assigned to the router for communicating with the communication means, and an identifier assigned to the router that is a communication partner of the second wireless communication means are stored in the storage means. when matching the identifiers are the the local address performed first communication destined using the second wireless communication unit, In cases other than that performs a second communication with the access destination address by using the first radio communication means or the second wireless communication means as a destination, to the second communication from the first communication When switching and when switching from the second communication to the first communication, the information regarding the communication session with the control device before the switching is used after the switching, and the control device There is provided a mobile communication terminal comprising a communication control means for performing communication.
前記第2無線通信手段が前記ルータと行う通信は、無線LANの規格に準拠した通信であり、前記ルータに割り当てられた識別子はSSID(Service Set Identifier)であってもよい。 The communication performed by the second wireless communication unit with the router may be communication based on a wireless LAN standard, and the identifier assigned to the router may be an SSID (Service Set Identifier).
前記通信制御手段は、無線LANにおける接続に関するインタフェースを用いて、前記第2無線通信手段の通信相手である前記ルータのSSIDを取得し、前記記憶手段に記憶されている前記識別子との比較を行うようにしてもよい。 The communication control unit acquires an SSID of the router that is a communication partner of the second wireless communication unit using an interface related to connection in a wireless LAN, and compares the SSID with the identifier stored in the storage unit You may do it.
前記第2無線通信手段を用いて、前記制御装置に割り当てられた前記ローカルアドレスを要求するリクエストを送信し、当該リクエストに応答して前記制御装置から送信されてくる前記ローカルアドレスを受信するアドレス取得手段を備え、前記記憶手段は、前記アドレス取得手段によって取得されたローカルアドレスを記憶するようにしてもよい。 Using the second wireless communication means, an address acquisition is performed for transmitting a request for the local address assigned to the control device and receiving the local address transmitted from the control device in response to the request. The storage means may store the local address acquired by the address acquisition means.
また、本発明は、電気機器を制御する制御装置にLANを介して接続されたルータと、WAN経由で通信を行う第1無線通信手段と、前記ルータと通信を行う第2無線通信手段とを備えたコンピュータを、前記WANにおいて前記制御装置に割り当てられた通信アドレスであるアクセス先アドレスと、前記LANにおいて前記制御装置に割り当てられた通信アドレスであるローカルアドレスと、前記ルータが前記第2無線通信手段と通信を行うために当該ルータに割り当てられた識別子とを記憶する記憶手段と、前記第2無線通信手段の通信相手である前記ルータに割り当てられた識別子が、前記記憶手段に記憶されている前記識別子と一致する場合には、前記第2無線通信手段を用いて前記ローカルアドレスを宛先とした第1の通信を行い、それ以外の場合には、前記第1無線通信手段または前記第2無線通信手段を用いて前記アクセス先アドレスを宛先とした第2の通信を行い、前記第1の通信から前記第2の通信へ切り替えた際及び前記第2の通信から前記第1の通信へ切り替えた際に、当該切り替えの前における前記制御装置との間の通信セッションに関する情報を当該切り替えの後に利用して、前記制御装置と通信を行う通信制御手段として機能させるためのプログラムを提供する。 The present invention also includes a router connected via a LAN to a control device that controls an electrical device, a first wireless communication unit that communicates via a WAN, and a second wireless communication unit that communicates with the router. A computer having an access destination address that is a communication address assigned to the control device in the WAN, a local address that is a communication address assigned to the control device in the LAN, and the router that performs the second wireless communication. Storage means for storing an identifier assigned to the router to communicate with the means, and an identifier assigned to the router that is a communication partner of the second wireless communication means is stored in the storage means when matching the identifier, performs a first communication to the local address and the destination by using the second wireless communication means Otherwise, the said access address using the first radio communication means or the second wireless communication means performs the second communication destined, the first from the communication the second to the communication When switching and when switching from the second communication to the first communication, the information regarding the communication session with the control device before the switching is used after the switching, and the control device A program for causing communication to function as communication control means is provided.
本発明によれば、遠隔操作の対象となる電気機器を含むLANが設置された場所にユーザが居る場合であっても居ない場合であっても、そのユーザがより簡便に電気機器を遠隔操作できるようになる。 According to the present invention, even when a user is present or not at a location where a LAN including an electrical device to be remotely operated is installed, the user can remotely operate the electrical device more easily. become able to.
(構成)
図1は、本発明の一実施形態に係る通信システム1の構成を示すブロック図である。移動通信網10は、例えば、LTEやいわゆる3G、またはGSM(登録商標)などに準拠したネットワークである。移動通信網10は、図示せぬゲートウェイ設備を介してインターネット60と接続されている。ユーザの自宅やオフィスなどの宅内には、宅内制御装置40などを含むLANが構築されている。宅内制御装置40は、近距離無線通信規格の一つであるZigBee(登録商標)に準拠して、制御アダプタ50と無線通信を行う。各々の制御アダプタ50は電気機器30と1対1で接続されており、宅内制御装置40から無線送信されてくるデータに基づき、電気機器30が行うべき動作をその電気機器30に指示する。ルータ70は、インターネット60とLANとを接続する。ルータ70は、無線LAN機能も有しており、LANで接続された宅内制御装置40などと通信を行うほか、IEEE802.11nなどのいわゆる無線LANの規格に準拠して移動通信端末20と無線通信を行う。移動通信端末20は、携帯電話機やタブレット端末であり、移動通信網10を介した通信と、無線LANを介した通信と行うことができるようになっている。ユーザは、移動通信端末20を用い、移動通信網10及びインターネット60を介して電気機器30を遠隔操作することもできるし、無線LAN経由で電気機器30を遠隔操作することも可能である。
(Constitution)
FIG. 1 is a block diagram showing a configuration of a communication system 1 according to an embodiment of the present invention. The
ルータ70には、WAN側IPアドレスとして、グローバルIPアドレスが割り当てられている。宅内制御装置40には、インターネット60上におけるアクセス先URLと、LANにおけるローカルIPアドレスが割り当てられている。移動通信端末20は、宅外から電気機器30を遠隔操作する場合、宅内制御装置40に割り当てられたアクセス先URLにアクセスする。このアクセス先URLは、DNSにより、ルータ70に割り当てられたグローバルIPアドレスに変換される。移動通信端末20が、このグローバルIPアドレスを宛先としてルータ70にアクセスすると、このアクセスはルータ70のNAPT機能により、宅内制御装置40へとルーティングされる。これに対し、移動通信端末20が、宅内において電気機器30を遠隔操作する場合、宅内制御装置40に割り当てられたローカルIPアドレスへアクセスする。
A global IP address is assigned to the
宅外からのアクセス及び宅内におけるアクセスのいずれの場合においても、宅内制御装置40から移動通信端末20に対し、操作画面を表示するための画面データが送信される。ユーザはこの画面上で所望する電気機器30を選択し、さらにその電気機器30の動作を指定する操作を行う。この操作に応じた指示が、移動通信端末20からルータ70を介して宅内制御装置40へと送信される。宅内制御装置40は、ユーザによって選択された電気機器30に対応する制御アダプタ50に対し、上記の指示を意味するデータを無線で送信する。制御アダプタ50は、宅内制御装置40から無線送信されてくるデータに基づき、電気機器30が行うべき動作をその電気機器30に指示する。電気機器30はその指示に従って動作する。
In both cases of access from outside the house and access from within the house, screen data for displaying the operation screen is transmitted from the
図2は、移動通信端末20のハードウェア構成を示すブロック図であり、ここでは移動通信端末20が携帯電話機である場合を例示している。移動通信端末20は、制御部21と、記憶部22と、第1無線通信部23と、音声入出力部24と、操作部25と、表示部26と、第2無線通信部27とを備えたコンピュータである。制御部21は、CPU(Central Processing Unit)などの演算装置と、ROM(Read Only Memory)およびRAM(Random Access Memory)などの記憶装置とを備えている。CPUは、RAMをワークエリアとして用いてROMや記憶部22に記憶されたプログラムを実行することによって、移動通信端末20の各部の動作を制御する。第1無線通信部23は、無線用のアンテナや通信回路を備えており、移動通信網10の基地局と無線通信を行う。音声入出力部24は、スピーカ、マイクロホンおよび音声処理回路などを備えており、通話に係る音声の入出力を行う。操作部25は、複数のキーやタッチセンサなどの操作子を備え、ユーザの操作に応じた操作信号を制御部21に供給する。制御部21は、この操作信号に応じた処理を行う。表示部26は、液晶パネルや液晶駆動回路を備えており、制御部21からの指示に応じて画像を表示する。第2無線通信部27は、無線用のアンテナや通信回路を備えており、ルータ70と無線通信を行う。
FIG. 2 is a block diagram showing a hardware configuration of the
記憶部22は、書き込み可能な不揮発性の記憶手段であり、例えばEEPROM(Electronically Erasable and Programmable ROM)やバックアップ電源を備えたSRAM(Static Random Access Memory)である。記憶部22には、Android(登録商標)と呼ばれるコンピュータ環境で実行されるアプリケーションプログラムなどのほか、上述したアクセス先URLと、ローカルIPアドレスと、無線LANにおいてルータに割り当てられた識別子であるSSID(Service Set Identifier)とが記憶されている。アクセス先URLは、電気機器30の遠隔操作用のアプリケーションプログラムによって設定されている。SSIDは、ユーザにより、そのユーザ自身の自宅に設置されたルータ70(つまり、ユーザが遠隔操作したい電気機器30が属するLAN内のルータ70)のSSIDである。このSSIDは、ユーザが操作部25を用いて移動通信端末20に入力したものであってもよいし、移動通信端末20が能動的に取得したものであってもよい。ローカルIPアドレスは、ユーザが操作部25を用いて移動通信端末20に入力したものであってもよいし、移動通信端末20が能動的に取得したものであってもよいが、この実施形態では、移動通信端末20が能動的に取得する例で説明する。
The
図3は、移動通信端末20の機能構成を示すブロック図である。移動通信端末20は、第1無線通信部23と、第2無線通信部27と、アドレス取得部210と、記憶部22と、通信制御部220とを備える。アドレス取得部210および通信制御部220は制御部21(図2)によって実現される。第1無線通信部23は、WANであるインターネット60を介してルータ70と通信を行う。第2無線通信部27は、WANであるインターネット60を経由してルータ70と通信を行う場合もあるし、WANであるインターネット60を経由せずにルータ70と通信を行う場合もある。
FIG. 3 is a block diagram showing a functional configuration of the
アドレス取得部210は、第2無線通信部27を用いて、宅内制御装置40(制御装置)に割り当てられたローカルアドレスを要求するリクエストを送信し、当該リクエストに応答して宅内制御装置40から送信されてくるローカルIPアドレス(ローカルアドレス)を受信する。
The
記憶部22は、WANであるインターネット60において宅内制御装置40(制御装置)に割り当てられた通信アドレスであるアクセス先アドレスと、LANにおいて宅内制御装置40(制御装置)に割り当てられ、アドレス取得部210によって取得された通信アドレスであるローカルIPアドレス(ローカルアドレス)と、ルータ70が第2無線通信部27と通信を行うために当該ルータ70に割り当てられた識別子であるSSIDとを記憶する。
The
通信制御部220は、第2無線通信部27の通信相手であるルータ70に割り当てられた識別子であるSSIDが、記憶部22に記憶されているSSIDと一致する場合には、第2無線通信部27を用いてローカルIPアドレス(ローカルアドレス)を宛先とした通信を行い、それ以外の場合には、第1無線通信部23または第2無線通信部27を用いてアクセス先アドレスを宛先とした通信を行う。
When the SSID that is the identifier assigned to the
(動作)
次に、本実施形態の動作を説明する。以下の動作は、移動通信端末20においてアプリケーションプログラムが実行されることで実現される。
図4は、移動通信端末20に対し宅内制御装置40のローカルIPアドレスを登録するときの、制御部21の手順を示すフローチャートである。まず、ユーザが操作部25を用いて、宅内制御装置40のローカルIPアドレスを登録することを意味する操作を行うと、制御部21はその操作を受け付け、ローカルIPアドレスの初期登録の指示があったと判断する(ステップS1;YES)。次に、制御部21は、無線LANを介した通信が可能なエリアに居るか否かを判断する(ステップS2)。具体的には、制御部21は、無線LANにおける接続に関するインタフェース(例えば無線LANの規格のうち所定の認証試験を経たWiFi(登録商標)接続に関するインタフェース)を用いて、通信可能な範囲にある少なくとも1つのルータ(アクセスポイントとも言う)から、SSIDを含むブロードキャストメッセージを第2無線通信部27で受信する。そして、制御部21は、事前の設定に基づいて接続するアクセスポイントを選択するか、または、新規のSSIDを受信した場合には表示部26に表示されたSSIDのリストからユーザがいずれかを選択することにより、無線LANを介した通信が可能かを判断する。このとき、ユーザ制限や暗号化等の制限条件が予め設定されている場合は、制御部21は周知の無線LANに関する技術を用いて接続設定を行う。
(Operation)
Next, the operation of this embodiment will be described. The following operations are realized by executing an application program in the
FIG. 4 is a flowchart showing a procedure of the
このとき、制御部21は、例えばAndroid(登録商標)と呼ばれるコンピュータ環境において定義されているWifiManager及びWifiInfoのクラスを用いて、ルータ70のSSIDや無線LANの無線チャネルを取得することができるので、これらの取得の有無によって、無線LANを介した通信が可能なエリアに居るか否かを判断することが可能である。なお、WifiManagerは、無線LANを介した通信が可能になったことを特定し得るクラスであり、WifiInfoは、無線ルータのSSIDを取得し得るクラスである。具体的には、Android developersのWEBサイト(http://developer.android.com/reference/android/net/wifi/WifiManager.html
http://developer.android.com/reference/android/net/wifi/WifiInfo.html)を参照されたい。
At this time, the
Refer to http://developer.android.com/reference/android/net/wifi/WifiInfo.html).
無線LANを介した通信が可能なエリアに居る場合には(ステップS2;YES)、制御部21は、予め決められたフォーマットの制御パケットを第2無線通信部27から送出する(ステップS3)。この制御パケットは、宅内制御装置40のローカルIPアドレスを要求するリクエストとしての意味を持つ。送出された制御パケットは、無線LAN内の各通信ノードに到達する。宅内制御装置40においては、この制御パケットを受信すると、自身のローカルIPアドレスを含む応答パケットを送信するという設定がなされている。よって、制御部21は、第2無線通信部27が宅内制御装置40からローカルIPアドレスを含む応答パケットを受信すると(ステップS4;YES)、そのローカルIPアドレスを記憶部22に記憶する(ステップS5)。なお、ステップS4において、制御部21は、第2無線通信部27が宅内制御装置40からローカルIPアドレスを含む応答パケットを受信しない場合には(ステップS4;NO)、処理を終了する。例えば、宅内制御装置40の電源が切れていた場合や、宅内ではない無線LANに移動通信端末20が接続していた場合などが、このケースに該当する。
When in an area where communication via a wireless LAN is possible (step S2; YES), the
図5は、移動通信端末20が宅内制御装置40にアクセスして通信を行うときの、制御部21の手順を示すフローチャートである。まず、ユーザが操作部25を用いて、電気機器30を遠隔操作することを意味する操作を行うと、制御部21はその操作を受け付け、遠隔操作の指示があったと判断する(ステップS11;YES)。次に、制御部21は、無線LANを介した通信が可能なエリアに居るか否かを判断する(ステップS12)。このとき、制御部21は、前述したWifiManager及びWifiInfoのクラスを用いて、ルータ70のSSIDを取得しておく。
FIG. 5 is a flowchart illustrating a procedure of the
なお、無線LANを介した通信が可能なエリアに居ない場合には(ステップS12;NO)、移動通信端末20が無線LANのエリア外に居るということであるから、制御部21は、移動通信網10を介した通信を行うべく、第1無線通信部23を用いて、記憶部22から読み出したアクセス先URLにアクセスする(ステップS15)。このアクセス先URLは、DNSにより、ルータ70に割り当てられたグローバルIPアドレスに変換される。制御部21が、このグローバルIPアドレスを宛先としてルータ70にアクセスすると、このアクセスはルータ70のNAPT機能により、宅内制御装置40へとルーティングされる。
If the
さて、制御部21は、無線LANを介した通信が可能なエリアに居ると判断した場合(ステップS12;YES)、ルータ70から取得したSSIDと、記憶部22に記憶しているSSIDとが一致しているか否かを判断する(ステップS13)。両者が一致していれば(ステップS13;YES)、移動通信端末20が宅内(つまり、遠隔操作の対象となる電気機器30が属するLANが設けられた場所)に居るということであるから、制御部21は、第2無線通信部27を用いて、記憶部22から読み出したローカルIPアドレスを宛先としたアクセスを行う(ステップS14)。このアクセスはルータ70により、宅内制御装置40へとルーティングされる。
When the
一方、両者が一致していなければ(ステップS13;NO)、移動通信端末20が自宅以外の無線LANの通信可能エリア(つまり、遠隔操作の対象となる電気機器30が属するLANが設けられていないが、別の無線LANが設けられている場所)に居るということであるから、制御部21は、第2無線通信部27を用いて、記憶部22から読み出したアクセス先URLにアクセスする(ステップS15)。このアクセス先URLは、DNSにより、ルータ70に割り当てられたグローバルIPアドレスに変換される。制御部21が、このグローバルIPアドレスを宛先としてルータ70にアクセスすると、このアクセスはルータ70にとってWAN側からのアクセスになるから、NAPT機能により宅内制御装置40へとルーティングされる。
On the other hand, if the two do not match (step S13; NO), the
上記のように、制御部21は、第2無線通信部27の通信相手であるルータ70に割り当てられたSSIDが、記憶部22に記憶されているSSIDと一致する場合には(ステップS13;YES)、第2無線通信部を用いてローカルIDアドレスを宛先とした通信を行い、それ以外の場合には(ステップS12;NO、ステップS13;NO)、第1無線通信部23または第2無線通信部27を用いてアクセス先アドレスを宛先とした通信を行う。
As described above, when the SSID assigned to the
そして、宅外からのアクセス及び宅内におけるアクセスのいずれの場合においても、宅内制御装置40から移動通信端末20に対し、図6に例示するような操作画面を表示するための画面データが送信される。ユーザはこの画面上で所望する電気機器30を選択し、さらにその電気機器30の動作を指定する操作を行う。この操作に応じた指示が、移動通信端末20からルータ70を介して宅内制御装置40へと送信される。宅内制御装置40は、ユーザによって選択された電気機器30に対応する制御アダプタ50に対し、上記指示を意味するデータを無線で送信する。制御アダプタ50は、宅内制御装置40から無線送信されてくるデータに基づき、電気機器30が行うべき動作をその電気機器30に指示する。電気機器30はその指示に従って動作する。
Then, in both cases of access from outside the house and access from within the house, screen data for displaying an operation screen as illustrated in FIG. 6 is transmitted from the
以上の実施形態によれば、遠隔操作の対象となる電気機器30を含むLANが設置された場所にユーザが居る場合であっても居ない場合であっても、そのユーザがより簡便に電気機器30を遠隔操作できるようになる。より具体的には、例えばユーザが宅内に居るか否かに応じて異なる通信アドレスを移動通信端末20に指示する方法に比べると、上記実施形態のほうがユーザの手間がかからない。また、無線LAN内部の通信ノードからルータ70に割り当てられているグローバルIPアドレスにアクセスされた場合にも宅内制御装置40へルーティングするようなルーティング規則を新たにルータ70に設定する方法と比べると、上記実施形態ではそのようなルータに対する設定作業が不要となる。さらに、別に用意したグローバルIPアドレスからプロキシサーバ装置経由でルータ70にアクセスするという方法に比べても、上記実施形態のほうがユーザの手間やコストがかからない。
According to the above embodiment, even if the user is present or not present at the place where the LAN including the
(変形例)
本発明は上述した実施形態に限定されず、次のような変形が可能である。また、以下の変形例を相互に組み合わせてもよい。
(変形例1)
例えばユーザが宅内において移動通信端末20を操作して電気機器30を遠隔操作しながら、そのまま宅外に出ていくことがある。また、これとは逆に、ユーザが宅外において移動通信端末20を操作して電気機器30を遠隔操作しながら、そのまま宅内に入ることもある。この場合、移動通信端末20において、第2無線通信部27を用いたローカルIPアドレス宛の通信と、第1無線通信部23または第2無線通信部27を用いたアクセス先アドレス宛の通信とが切り替えられることになる。制御部21は、この切り替えの前における宅内制御装置40との間の通信セッションに関する情報を記憶部22に記憶させておき、切り替えの後にこの記憶部から読み出して利用しながら、宅内制御装置40と通信を行う。このようにすれば、切り替えの前後において通信が途切れることがない。
(Modification)
The present invention is not limited to the above-described embodiment, and the following modifications are possible. Further, the following modifications may be combined with each other.
(Modification 1)
For example, the user may go out of the house as it is while operating the
(変形例2)
図1の例では、ルータ70と電気機器30との間に介在する宅内制御装置40が電気機器30の制御を行っていたが、電気機器30そのものがルータ70からの指示に従って動作してもよい。この場合、ルータ70と電気機器30が、宅内制御装置40を介さずに直接接続されることになる。そして、この場合、電気機器を制御する制御装置は、その電気機器に内蔵されている制御回路である。
また、図1の例では、宅内制御装置40と電気機器30とは制御アダプタ50を介して通信を行っていたが、宅内制御装置40と電気機器30が直接通信する形態であってもよい。
また、宅内制御装置40と電気機器30との間の通信は無線である必要はなし、宅内制御装置40とルータ70との間の通信は有線である必要もない。
(Modification 2)
In the example of FIG. 1, the
In the example of FIG. 1, the
Further, the communication between the
(変形例3)
実施形態では、記憶部22に記憶されたSSIDが、移動通信端末20が能動的に取得したものであったが、これは既述のとおり、ユーザが操作部25を用いて移動通信端末20に入力したものであってもよい。このようにユーザが移動通信端末20にSSIDを入力する場合、実施形態のように移動通信端末20がSSIDを取得することができるように宅内制御装置40側の機能を改変、追加する必要がないという利点がある。
(Modification 3)
In the embodiment, the SSID stored in the
(変形例4)
上記実施形態は、Androidと呼ばれるコンピュータ環境の例で説明したが、これに限らず、例えばiOSやシンビアン、Windows(登録商標)モバイルその他のOS(Operation System)を搭載した他のコンピュータ環境や、OS自体がネットワーク側に存在してユーザへ各種情報を提供するシンクライアント環境で適用されるあらゆるコンピュータ環境であってもよい。
また、上記実施形態で、制御部21は、Androidで定義されているWifiManager及びWifiInfoのクラスを用いてルータ70のSSIDを取得していた。ただし、前述したように、Android以外のコンピュータ環境を使用する場合には、制御部21は、このAndroidにおけるWifiManager及びWifiInfoのクラスのように、ルータ70のSSIDを取得し得る機能を持つ、無線LANにおける接続に関するインタフェースを用いればよい。
上述した移動通信端末20において実行されるプログラムは、磁気テープ、磁気ディスク、フロッピー(登録商標)ディスク、光記録媒体、光磁気記録媒体、CD(Compact Disk)、DVD(Digital Versatile Disk)、RAMなどの記録媒体に記録した状態で提供し得る。
(Modification 4)
The above embodiment has been described with reference to an example of a computer environment called Android. However, the present invention is not limited to this, and other computer environments such as iOS, Symbian, Windows (registered trademark) mobile, and other OS (Operation System) are installed. It may be any computer environment applied in a thin client environment that itself exists on the network side and provides various information to the user.
In the above embodiment, the
The programs executed in the
1・・・通信システム、10・・・移動通信網、20・・・移動通信端末、21・・・制御部、22・・・記憶部、23・・・第1無線通信部、24・・・音声入出力部、25・・・操作部、26・・・表示部、27・・・第2無線通信部、210・・・アドレス取得部、220・・・通信制御部、30・・・電気機器、40・・・宅内制御装置、50・・・制御アダプタ、60・・・インターネット、70・・・ルータ DESCRIPTION OF SYMBOLS 1 ... Communication system, 10 ... Mobile communication network, 20 ... Mobile communication terminal, 21 ... Control part, 22 ... Memory | storage part, 23 ... 1st radio | wireless communication part, 24 ... Voice input / output unit, 25 ... operation unit, 26 ... display unit, 27 ... second wireless communication unit, 210 ... address acquisition unit, 220 ... communication control unit, 30 ... Electrical equipment, 40 ... home control device, 50 ... control adapter, 60 ... Internet, 70 ... router
Claims (5)
前記ルータと通信を行う第2無線通信手段と、
前記WANにおいて前記制御装置に割り当てられた通信アドレスであるアクセス先アドレスと、前記LANにおいて前記制御装置に割り当てられた通信アドレスであるローカルアドレスと、前記ルータが前記第2無線通信手段と通信を行うために当該ルータに割り当てられた識別子とを記憶する記憶手段と、
前記第2無線通信手段の通信相手である前記ルータに割り当てられた識別子が、前記記憶手段に記憶されている前記識別子と一致する場合には、前記第2無線通信手段を用いて前記ローカルアドレスを宛先とした第1の通信を行い、それ以外の場合には、前記第1無線通信手段または前記第2無線通信手段を用いて前記アクセス先アドレスを宛先とした第2の通信を行い、前記第1の通信から前記第2の通信へ切り替えた際及び前記第2の通信から前記第1の通信へ切り替えた際に、当該切り替えの前における前記制御装置との間の通信セッションに関する情報を当該切り替えの後に利用して、前記制御装置と通信を行う通信制御手段と
を備えることを特徴とする移動通信端末。 A router connected to a control device for controlling electrical equipment via a LAN (Local Area Network), first wireless communication means for communicating via a WAN (Wide Area Network),
Second wireless communication means for communicating with the router;
An access destination address that is a communication address assigned to the control device in the WAN, a local address that is a communication address assigned to the control device in the LAN, and the router communicates with the second wireless communication means Storage means for storing an identifier assigned to the router for
If the identifier assigned to the router that is the communication partner of the second wireless communication means matches the identifier stored in the storage means, the local address is set using the second wireless communication means. In other cases, the first communication is performed, and otherwise, the second communication is performed using the first wireless communication unit or the second wireless communication unit as the destination, and the second communication is performed. When switching from the first communication to the second communication and when switching from the second communication to the first communication, the information related to the communication session with the control device before the switching is switched. A mobile communication terminal comprising: a communication control unit that communicates with the control device after use .
前記ルータに割り当てられた識別子はSSID(Service Set Identifier)である
ことを特徴とする請求項1記載の移動通信端末。 The communication performed by the second wireless communication unit with the router is communication based on a wireless LAN standard,
The mobile communication terminal according to claim 1, wherein the identifier assigned to the router is an SSID (Service Set Identifier).
ことを特徴とする請求項2記載の移動通信端末。 The communication control unit acquires an SSID of the router that is a communication partner of the second wireless communication unit using an interface related to connection in a wireless LAN, and compares the SSID with the identifier stored in the storage unit The mobile communication terminal according to claim 2.
前記記憶手段は、前記アドレス取得手段によって取得されたローカルアドレスを記憶する
ことを特徴とする請求項1〜3のいずれか1項に記載の移動通信端末。 Using the second wireless communication means, an address acquisition is performed for transmitting a request for the local address assigned to the control device and receiving the local address transmitted from the control device in response to the request. With means,
The mobile communication terminal according to any one of claims 1 to 3, wherein the storage unit stores a local address acquired by the address acquisition unit.
前記WANにおいて前記制御装置に割り当てられた通信アドレスであるアクセス先アドレスと、前記LANにおいて前記制御装置に割り当てられた通信アドレスであるローカルアドレスと、前記ルータが前記第2無線通信手段と通信を行うために当該ルータに割り当てられた識別子とを記憶する記憶手段と、
前記第2無線通信手段の通信相手である前記ルータに割り当てられた識別子が、前記記憶手段に記憶されている前記識別子と一致する場合には、前記第2無線通信手段を用いて前記ローカルアドレスを宛先とした第1の通信を行い、それ以外の場合には、前記第1無線通信手段または前記第2無線通信手段を用いて前記アクセス先アドレスを宛先とした第2の通信を行い、前記第1の通信から前記第2の通信へ切り替えた際及び前記第2の通信から前記第1の通信へ切り替えた際に、当該切り替えの前における前記制御装置との間の通信セッションに関する情報を当該切り替えの後に利用して、前記制御装置と通信を行う通信制御手段と
して機能させるためのプログラム。 A computer comprising a router connected to a control device for controlling electrical equipment via a LAN, first wireless communication means for communicating via a WAN, and second wireless communication means for communicating with the router;
An access destination address that is a communication address assigned to the control device in the WAN, a local address that is a communication address assigned to the control device in the LAN, and the router communicates with the second wireless communication means Storage means for storing an identifier assigned to the router for
If the identifier assigned to the router that is the communication partner of the second wireless communication means matches the identifier stored in the storage means, the local address is set using the second wireless communication means. In other cases, the first communication is performed, and otherwise, the second communication is performed using the first wireless communication unit or the second wireless communication unit as the destination, and the second communication is performed. When switching from the first communication to the second communication and when switching from the second communication to the first communication, the information related to the communication session with the control device before the switching is switched. A program that is used after the program to function as communication control means for communicating with the control device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012096872A JP5405617B2 (en) | 2012-04-20 | 2012-04-20 | Mobile communication terminal and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012096872A JP5405617B2 (en) | 2012-04-20 | 2012-04-20 | Mobile communication terminal and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2013225754A JP2013225754A (en) | 2013-10-31 |
JP5405617B2 true JP5405617B2 (en) | 2014-02-05 |
Family
ID=49595547
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012096872A Active JP5405617B2 (en) | 2012-04-20 | 2012-04-20 | Mobile communication terminal and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5405617B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6346204B2 (en) * | 2014-01-29 | 2018-06-20 | 京セラ株式会社 | Control apparatus and control method |
JPWO2015115572A1 (en) * | 2014-01-29 | 2017-03-23 | 京セラ株式会社 | Operating device and operating method |
JP6694461B2 (en) * | 2018-03-14 | 2020-05-13 | 日立グローバルライフソリューションズ株式会社 | Connection router determination method and device control system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3803654B2 (en) * | 2003-05-20 | 2006-08-02 | Necアクセステクニカ株式会社 | LAN connection device and UPnP device disclosure method |
JP4600992B2 (en) * | 2005-08-17 | 2010-12-22 | Kddi株式会社 | Home appliance remote control system and operation method thereof |
FR2904175A1 (en) * | 2006-07-18 | 2008-01-25 | France Telecom | TOGGLE OF MULTIMEDIA SESSIONS OF A MOBILE TERMINAL ON AN EQUIPMENT OF A DOMESTIC LOCAL NETWORK |
JP2009147517A (en) * | 2007-12-12 | 2009-07-02 | Sharp Corp | Communication terminal apparatus, data repeating apparatus, cellular phone, communication system, method for controlling communication terminal apparatus, method for controlling data repeating apparatus, communication terminal apparatus control program, data repeating apparatus control program, and computer readable recording medium with the program recorded |
JP5457052B2 (en) * | 2009-03-06 | 2014-04-02 | ソフトバンクモバイル株式会社 | Remote control method and remote control system for electrical equipment, and communication terminal device and small base station device used in the remote control system |
-
2012
- 2012-04-20 JP JP2012096872A patent/JP5405617B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2013225754A (en) | 2013-10-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3384725B1 (en) | Method for device-to-device communication between a local device and a remote device | |
JP5943860B2 (en) | Device device setting method in gateway device, device device setting system, and device device setting program | |
JP2017038235A (en) | Communication device and control method of the same, program, and recording medium | |
EP3320722B1 (en) | Network access technology indication | |
EP3291509A1 (en) | Information processing device and non-transitory recording medium | |
KR20140117107A (en) | Method and System for Executing IoT Service with Shortrange Communication Tag | |
US10405244B2 (en) | Communication method, system, and device | |
JP5405617B2 (en) | Mobile communication terminal and program | |
KR20130028316A (en) | Remote access device and method for device in home network | |
KR101853398B1 (en) | Method and system for registering server connection of IoT device using smartphone application | |
Boškov et al. | Time-to-provision evaluation of IoT devices using automated zero-touch provisioning | |
JP6067322B2 (en) | Mobile terminal, communication system, and mobile terminal program | |
JP2012239120A (en) | Network system | |
US11122124B2 (en) | Method and apparatus for controlling wireless communication for installing wireless internet in IoT devices | |
JP5894482B2 (en) | Wireless LAN setting method and program, and recording medium therefor | |
JP2011248673A (en) | Service disclosure device, method and program | |
JP6255468B2 (en) | Mobile terminal, communication system, and mobile terminal program | |
US9485801B1 (en) | Mobile communication device connected to home digital network | |
KR101676432B1 (en) | Discovery and Access System of Internet of Things board and Application Server under wireless WiFi Environment and method at the same | |
JP2019054391A (en) | Information processing unit and control method and program thereof | |
JP5853972B2 (en) | Network system, communication terminal, method, program, and recording medium | |
JP2015091109A (en) | Electronic apparatus and program | |
JP2013187768A (en) | Mobile communication terminal and communication control method | |
JP2006319873A (en) | Vpn(virtual private network) connecting method, virtual private network connection apparatus utilizing the same, radio terminal and virtual private network system | |
JP6882966B2 (en) | Servers, communication systems, communication control methods, and programs |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130903 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130930 |
|
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: 20131022 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20131030 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5405617 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |