JP4961826B2 - Server apparatus, device association registration method, program, and recording medium - Google Patents

Server apparatus, device association registration method, program, and recording medium Download PDF

Info

Publication number
JP4961826B2
JP4961826B2 JP2006132350A JP2006132350A JP4961826B2 JP 4961826 B2 JP4961826 B2 JP 4961826B2 JP 2006132350 A JP2006132350 A JP 2006132350A JP 2006132350 A JP2006132350 A JP 2006132350A JP 4961826 B2 JP4961826 B2 JP 4961826B2
Authority
JP
Japan
Prior art keywords
server
direct access
identification information
password
service
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
JP2006132350A
Other languages
Japanese (ja)
Other versions
JP2007316678A (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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP2006132350A priority Critical patent/JP4961826B2/en
Publication of JP2007316678A publication Critical patent/JP2007316678A/en
Application granted granted Critical
Publication of JP4961826B2 publication Critical patent/JP4961826B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Telephonic Communication Services (AREA)

Description

本発明は、第1の機器からネットワークを通じて第2の機器をアクセスすることを可能にするために、各機器を制御機器および被制御機器として関連付けて登録するサーバ装置、機器の登録方法、プログラム、および記録媒体に関するものである。   The present invention relates to a server device that registers and associates each device as a control device and a controlled device in order to allow the first device to access the second device through the network, a device registration method, a program, And a recording medium.

インターネット上の制御機器から家庭内の被制御機器にアクセスする方法として、DDNS(Dynamic Domain Name System)方式や、メール方式が挙げられる。   Examples of a method for accessing a controlled device in the home from a control device on the Internet include a DDNS (Dynamic Domain Name System) method and a mail method.

DDNS方式は、家庭内の被制御機器が、DDNSサーバに自分のアドレスを登録しておき、インターネット側の制御機器からドメイン名およびポート番号の指定を受信することで、この制御機器のアクセスを可能とする仕組みである。   In the DDNS system, a controlled device in the home can access this controlled device by registering its own address on the DDNS server and receiving the designation of the domain name and port number from the control device on the Internet side. It is a mechanism.

リアルタイムのコミュニケーションを実現するためのプロトコルとしてXMPP(eXtensible Messaging and Presence Protocol)がある(非特許文献1を参照)。このXMPPを用いたリアルタイム・コミュニケーションの形態の1つがインスタント・メッセージング(IM)である(非特許文献2を参照)。インスタント・メッセージング(IM)では、インターネット上でIMクライアント(IM交換を行うことのできる仲間)がオンラインかどうかを調べ、オンラインであれば、そのIMクライアントとの間で、チャットやファイル交換などを行うことができる。   There is XMPP (eXtensible Messaging and Presence Protocol) as a protocol for realizing real-time communication (see Non-Patent Document 1). One form of real-time communication using XMPP is instant messaging (IM) (see Non-Patent Document 2). Instant messaging (IM) checks whether an IM client (a friend who can exchange IM) is online on the Internet, and if it is online, chats or exchanges files with that IM client be able to.

また、他のコンピュータにあるデータやサービスを呼び出すためのプロトコルとしては、SOAP(Simple Object Access Protocol)がある(非特許文献3を参照)。SOAPによる通信では、XML(eXtensible Markup Language)文書にエンベロープと呼ばれる付帯情報が付いたメッセージをHTTP(Hyper Text Transfer Protocol)などのプロトコルで交換する。サービスを利用するクライアントとサービスを提供するサーバの双方がSOAPの生成・解釈エンジンを持つことで、異なる環境間でのオブジェクトの呼び出しを可能にしている。
「Extensible Messaging and Presence Protocol (XMPP): Core」, RFC3920, The Internet Engineering Task Force(IETF), 2004年10月 「Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence」, RFC3921, The Internet Engineering Task Force (IETF), 2004年10月 「SOAP Version 1.2」, W3C Recommendation, World Wide Web Consortium (W3C), 2003年6月
Further, as a protocol for calling data and services in other computers, there is SOAP (Simple Object Access Protocol) (see Non-Patent Document 3). In SOAP communication, messages with accompanying information called envelopes are exchanged in XML (eXtensible Markup Language) documents using protocols such as HTTP (Hyper Text Transfer Protocol). Both the client that uses the service and the server that provides the service have SOAP generation / interpretation engines that allow objects to be called between different environments.
"Extensible Messaging and Presence Protocol (XMPP): Core", RFC3920, The Internet Engineering Task Force (IETF), October 2004 "Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence", RFC3921, The Internet Engineering Task Force (IETF), October 2004 "SOAP Version 1.2", W3C Recommendation, World Wide Web Consortium (W3C), June 2003

DDNS方式では、あらかじめ制御機器に、アプリケーションに応じてドメイン名とポート番号との組み合わせを登録しておく必要がある。また、複数の被制御機器が家庭内に存在する場合、インターネット側に公開しているポートを固定的にするために、家庭内の被制御機器に対するアドレスおよびポートへのポートフォワードを、たとえば被制御機器などに対応するアプリケーション毎に固定的に設定する必要がある。この設定にかなりの手間がかかるという問題もある。さらに、ポートフォワードが設定されたポートは、常に開放されているので、セキュリティの脆弱を生む。   In the DDNS method, it is necessary to register a combination of a domain name and a port number in advance in a control device according to an application. In addition, when there are multiple controlled devices in the home, in order to fix the ports that are open to the Internet, the address for the controlled devices in the home and the port forwarding to the ports are controlled, for example It is necessary to set a fixed value for each application corresponding to the device. There is also the problem that this setting takes considerable effort. Furthermore, since the port for which port forwarding is set is always open, it creates a security vulnerability.

すなわち、DDNS方式は、制御機器から家庭内の単一ポートにのみアクセスするWebサーバのようなアプリケーションを提供する装置が、1台しか存在しないような環境でしか有効ではない。   In other words, the DDNS method is effective only in an environment where there is only one device that provides an application such as a Web server that accesses only a single port in the home from a control device.

メール方式は、制御機器から既存のメールクライアントのソフトで手軽に被制御機器にアクセスできるものの、被制御機器はメールサーバにポーリングを行ってメールを取得するため、最短でも数分程度のポーリング間隔が生じ、リアルタイム性が損なわれる。また、スパムメールなどのメールの脆弱性への対応を行う必要がある。   In the mail method, the controlled device can easily access the controlled device with the software of the existing mail client, but the controlled device polls the mail server to obtain the mail, so there is a minimum polling interval of several minutes. And real-time property is impaired. In addition, it is necessary to deal with email vulnerabilities such as spam emails.

本発明は、かかる実情を鑑み、第1の機器からネットワークを通じて第2の機器を制御するネットワークシステムにおいて、各機器の登録を簡単に行うことのできるサーバ装置、機器の登録方法、プログラム、および記録媒体を提供することを目的としている。   In view of such circumstances, the present invention provides a server device, a device registration method, a program, and a recording that can easily register each device in a network system that controls the second device from the first device through the network. The purpose is to provide a medium.

上記の課題を解決するために、この発明のサーバ装置は、ネットワークを介して接続された第1の機器と第2の機器とを互いに関連付けて登録する処理を行うサーバ装置であって、情報を記憶する記憶手段と、前記第1の機器からのパスワード発行要求に応じて第1のパスワードを生成し、前記第1の機器に関連する第1の識別情報と対応付けて前記第1のパスワードを前記記憶手段に記憶し、前記第1のパスワードを前記第1の機器に送信する第1の処理手段と、前記第2の機器から送信された第2のパスワードを受信し、この受信した第2のパスワードが前記記憶部に記憶されているかを確認し、前記第2のパスワードが前記記憶手段に記憶されている場合に、前記第2の機器に関連する第2の識別情報を前記第1の識別情報に関連付けて前記記憶手段に記憶する第2の処理手段とを具備する。   In order to solve the above-described problem, a server device according to the present invention is a server device that performs a process of registering a first device and a second device connected via a network in association with each other. A first password is generated in response to a password issuance request from the storage device and the first device, and the first password is associated with first identification information related to the first device. The first processing means for storing in the storage means and transmitting the first password to the first device and the second password transmitted from the second device are received, and the received second If the second password is stored in the storage means, the second identification information related to the second device is obtained as the first identification information. Associate with identification information ; And a second processing means for storing in the storage means.

この発明のサーバ装置は、第1の機器に対して第1のパスワードを発行し、この第1のパスワードと、第1の機器に関連する第1の識別情報と対応付けて記憶手段に記憶する。第1の機器に対して発行した第1のパスワードは第1の機器から第2の機器へと転送される第2の機器に第2のパスワードとして保持される。サーバ装置は、第2の機器から送信された第2のパスワードを受信し、この受信した第2のパスワードが記憶手段に記憶されているかを確認し、第2のパスワードが記憶手段に記憶されている場合に、第2の機器に関連する第2の識別情報を第1の識別情報に関連付けて記憶手段に記憶する。したがって、この発明によれば、第1の機器はサーバ装置に対してパスワード発行要求を与え、第2の機器は第1の機器から第1のパスワードを取得してこれを第2のパスワードとしてサーバ装置に送信するだけで、第1の機器とこの第1の機器の制御対象である第2の機器とを関連付けて記憶することができる。   The server device according to the present invention issues a first password to the first device, and stores the first password in association with the first identification information related to the first device in the storage means. . The first password issued to the first device is held as a second password in the second device transferred from the first device to the second device. The server device receives the second password transmitted from the second device, confirms whether the received second password is stored in the storage means, and stores the second password in the storage means. If there is, the second identification information related to the second device is stored in the storage means in association with the first identification information. Therefore, according to the present invention, the first device gives a password issuance request to the server device, and the second device acquires the first password from the first device and uses this as the second password as the server. By only transmitting to the apparatus, the first device and the second device that is the control target of the first device can be stored in association with each other.

また、本発明のサーバ装置において、第1の処理手段は、第1の機器に関連する第1の識別情報を生成し、生成した第1の識別情報と第1のパスワードとを対応付けて、記憶手段に記憶することとしてもよい。   In the server device of the present invention, the first processing means generates first identification information related to the first device, associates the generated first identification information with the first password, It is good also as memorize | storing in a memory | storage means.

本発明のサーバ装置において、第1の機器は、第1の機器へのサービスを提供するサービスサーバ装置を介してサーバ装置に接続され、第1の処理手段は、第1の識別情報として、第1の機器とサービスサーバ装置に関連する識別情報を生成するようにしてもかまわない。この場合において、第1の処理手段は、第1の識別情報として、第1の機器とサービスサーバ装置で提供されるサービスとの組み合わせに対する識別情報を生成する。   In the server device of the present invention, the first device is connected to the server device via a service server device that provides a service to the first device, and the first processing means uses the first identification information as the first identification information. You may make it produce | generate the identification information relevant to 1 apparatus and a service server apparatus. In this case, the first processing means generates identification information for the combination of the first device and the service provided by the service server device as the first identification information.

本発明のサーバ装置において、前記第2の装置の正当性を認証する機器認証処理を実行し、前記第2の機器の認証に必要な認証情報と関連付けた認証識別情報を生成し、生成した前記認証識別情報を前記第2の装置に対して送信する手段を更に具備し、前記第2の処理手段は、前記認証識別情報を、前記第2の識別情報として前記第1の識別情報に関連付けて前記記憶手段に記憶する。
本発明のサーバ装置において、前記第1の処理手段は、生成した前記第1のパスワードに有効期限を設定し、前記第2の処理手段は、前記有効期限をチェックし、前記有効期限が切れている場合には、前記第2の識別情報を前記第1の識別情報に関連付ける処理を行わない。
In the server device of the present invention, device authentication processing for authenticating the validity of the second device is executed, and authentication identification information associated with authentication information necessary for authentication of the second device is generated and generated. Means for transmitting authentication identification information to the second device, wherein the second processing means associates the authentication identification information with the first identification information as the second identification information; Store in the storage means.
In the server device of the present invention, the first processing unit sets an expiration date for the generated first password, and the second processing unit checks the expiration date, and the expiration date has expired. If there is, the process of associating the second identification information with the first identification information is not performed.

本発明のサーバ装置において、前記第1の処理手段は、生成した前記第1のパスワードと前記第1のパスワードに設定された有効期限の情報とを前記第1の機器に送信する。
本発明のサーバ装置において、前記サーバ装置は、前記第1の識別情報に対して複数の前記第2の識別情報を関連付ける。
本発明のサーバ装置において、前記サーバ装置は、複数の前記第1の識別情報を前記第2の識別情報に関連付ける。
In the server device of the present invention, the first processing means transmits the generated first password and information on an expiration date set in the first password to the first device.
In the server device according to the present invention, the server device associates a plurality of the second identification information with the first identification information.
In the server device according to the present invention, the server device associates a plurality of the first identification information with the second identification information.

本発明のサーバ装置において、前記第2の処理手段は、前記第2の識別情報を前記第1の識別情報に関連付けて記憶する際に、前記記憶手段に記憶されている前記第1のパスワードを消去する。
本発明のサーバ装置において、前記記憶手段に記憶された前記第1の識別情報と前記第2の識別情報との関連付けをもとに、前記第1の識別情報に関連付けられている前記第2の識別情報のリストを生成し、前記第1の機器に送信する手段をさらに具備する。
In the server device according to the present invention, the second processing means stores the first password stored in the storage means when storing the second identification information in association with the first identification information. to erase.
In the server device according to the present invention, the second information associated with the first identification information based on the association between the first identification information and the second identification information stored in the storage unit. The information processing apparatus further includes means for generating a list of identification information and transmitting the list to the first device.

本発明のサーバ装置において、前記第1の装置から、前記第2の装置への要求を受信したとき、前記第1の装置に関連する情報が前記第1の識別情報が前記第2の識別情報に関連付けて前記記憶手段に記憶されているかを判別し、前記前記第1の識別情報が前記第2の識別情報に関連付けて記憶されていない場合には、前記第1の装置にエラーを送信する。   In the server device of the present invention, when a request to the second device is received from the first device, the information related to the first device is the first identification information is the second identification information. Whether the first identification information is stored in association with the second identification information, and an error is transmitted to the first device. .

本発明のサーバ装置において、前記第1の装置から、前記第2の装置への要求を受信したとき、前記第1の装置に関連する情報が前記第1の識別情報が前記第2の識別情報に関連付けて前記記憶手段に記憶されているかを判別し、前記前記第1の識別情報が前記第2の識別情報に関連付けて記憶されている場合には、前記第2の装置に前記第1の装置からの要求を送信する。   In the server device of the present invention, when a request to the second device is received from the first device, the information related to the first device is the first identification information is the second identification information. If the first identification information is stored in association with the second identification information, the first device stores the first identification information in the second device. Send a request from the device.

本発明によれば、第1の機器からネットワークを通じて第2の機器を制御するネットワークシステムにおいて、各機器の登録を簡単に行うことのできるサーバ装置、機器の登録方法、プログラム、および記憶媒体を提供することができる。   According to the present invention, in a network system that controls a second device from a first device through a network, a server device that can easily register each device, a device registration method, a program, and a storage medium are provided. can do.

以下、本発明の実施の形態を図面に基づき説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

(第1の実施形態)
図1は本発明の一の実施形態にかかるネットワークシステムの全体的な構成を示す図である。
(First embodiment)
FIG. 1 is a diagram showing an overall configuration of a network system according to an embodiment of the present invention.

このネットワークシステムは、制御機器としての携帯電話10、被制御機器としてのDVR(Digital Video Recorder)20、サービスサーバ30、ダイレクトアクセス管理サーバ40、およびルータ50を有している。   This network system includes a mobile phone 10 as a control device, a DVR (Digital Video Recorder) 20 as a controlled device, a service server 30, a direct access management server 40, and a router 50.

携帯電話10は、被制御機器を制御する制御機器として動作するものである。制御機器は、被制御機器を制御するものであれば何でもよく、たとえば、PC(Personal Computer)、PDA(Personal Digital Assistance)などであってよい。   The mobile phone 10 operates as a control device that controls the controlled device. The control device may be anything as long as it controls the controlled device, and may be, for example, a PC (Personal Computer), a PDA (Personal Digital Assistance), or the like.

携帯電話10は、電話機能部のほか、プログラムなどを記憶するメインメモリ、メインメモリに記憶されたプログラムを実行して各種の演算処理を行うCPU(Central Processing Unit)、ネットワークとのインタフェース部、DVR20とのインタフェース部、キー入力部や表示部などのユーザインタフェース部、不揮発性の記憶部11などを備える。この記憶部11には、この携帯電話10に登録されているユーザ識別情報が記憶されている。メインメモリには、電話機能部を動作させるためのプログラムのほか、サービスサーバ30への自機器の登録、コンテンツのリモート録画予約、コンテンツ取得などに関する処理を行うためのプログラムなどが記憶されている。   In addition to the telephone function unit, the mobile phone 10 includes a main memory that stores programs, a CPU (Central Processing Unit) that executes programs stored in the main memory and performs various arithmetic processes, an interface unit with a network, a DVR 20 Interface unit, a user interface unit such as a key input unit and a display unit, a nonvolatile storage unit 11 and the like. The storage unit 11 stores user identification information registered in the mobile phone 10. In addition to a program for operating the telephone function unit, the main memory stores a program for performing processing related to registration of the device to the service server 30, remote recording reservation of content, content acquisition, and the like.

DVR20は、放送番組などのコンテンツをメディアに録画したり再生したりする録画再生機能部のほか、プログラムなどを記憶するメインメモリ、メインメモリに記憶されたプログラムを実行して各種の演算処理を行うCPU、ネットワークとのインタフェース部、携帯電話10とのインタフェース部、不揮発性の記憶部21、リモコン受信部、TVなどを接続するためのインタフェース部などを備える。この記憶部21には、被制御機器に固定的に割り当てられた機器認証情報が予め記憶されている。メインメモリには、DVR20の録画再生機能部を制御するためのプログラムのほか、ダイレクトアクセス管理サーバ40への被制御機器の登録、コンテンツのリモート録画予約、コンテンツ取得などに関する処理を行うためのプログラムなどが記憶されている。なお、この実施の形態ではDVR20を被制御機器としたが、ネットワーク接続機能を有する機器であれば何でもよい。たとえば、テレビでもよい。   In addition to a recording / playback function unit that records and plays back content such as broadcast programs on media, the DVR 20 executes various arithmetic processes by executing a main memory that stores programs and programs stored in the main memory. A CPU, an interface unit with a network, an interface unit with a mobile phone 10, a non-volatile storage unit 21, a remote control receiving unit, an interface unit for connecting a TV and the like are provided. In the storage unit 21, device authentication information fixedly assigned to the controlled device is stored in advance. In the main memory, in addition to a program for controlling the recording / playback function unit of the DVR 20, a program for performing processing related to registration of controlled devices in the direct access management server 40, reservation of remote recording of content, content acquisition, etc. Is remembered. In this embodiment, the DVR 20 is a controlled device, but any device having a network connection function may be used. For example, a television may be used.

サービスサーバ30は、携帯電話10などの制御機器に対してネットワーク越しに被制御機器にアクセスする各種のサービスを提供するサーバである。このサービスサーバ30は、たとえば、キーボード・マウスなどの入力部と、表示部と、プログラムなどを記憶するメインメモリと、メインメモリに記憶されたプログラムを実行して各種の演算処理を行うCPUと、ネットワークとの通信部と、記憶部31とを備えた、たとえば定型的なコンピュータシステムを用いて実現される。メインメモリには、コンピュータシステムを動作させるために必要な基本的なプログラムのほか、サービスを実行するために必要なプログラムなどが記憶されている。記憶部31には、サービスサーバ30が提供する個々のサービスごとにサービスサーバ及びサービスを識別するためのServiceIDが記憶されている。   The service server 30 is a server that provides various services for accessing a controlled device via a network to a control device such as the mobile phone 10. The service server 30 includes, for example, an input unit such as a keyboard / mouse, a display unit, a main memory that stores programs, a CPU that executes programs stored in the main memory and performs various arithmetic processes, This is realized using, for example, a typical computer system including a communication unit with a network and a storage unit 31. The main memory stores a basic program necessary for operating the computer system, a program necessary for executing the service, and the like. The storage unit 31 stores a service ID for identifying a service server and a service for each service provided by the service server 30.

ダイレクトアクセス管理サーバ40は、制御機器と、サービスサーバ30のサービスとの組み合わせと被制御機器との対応を管理するサーバである。このダイレクトアクセス管理サーバ40は、たとえば、キーボード・マウスなどの入力部と、表示部と、プログラムなどを記憶するメインメモリと、メインメモリに記憶されたプログラムを実行して各種の演算処理を行うCPUと、ネットワークとのインタフェース部と、記憶部41とを備えた、たとえば定型的なコンピュータシステムを用いて実現される。メインメモリには、コンピュータシステムを動作させるために必要な基本的なプログラムのほか、コンピュータシステムをダイレクトアクセス管理サーバとして機能させるためのプログラムなどが記憶されている。   The direct access management server 40 is a server that manages the correspondence between the control device and the service of the service server 30 and the controlled device. The direct access management server 40 includes, for example, an input unit such as a keyboard / mouse, a display unit, a main memory that stores programs, and a CPU that executes various arithmetic processes by executing programs stored in the main memory. For example, a typical computer system including a network interface unit and a storage unit 41 is realized. The main memory stores a basic program necessary for operating the computer system, a program for causing the computer system to function as a direct access management server, and the like.

ダイレクトアクセス管理サーバ40には、SOAP(Simple Object Access Protocol)サーバ42およびXMPP(eXtensible Messaging and Presence Protocol)サーバ43が設けられている。SOAPサーバ42は、制御機器とサービスの組み合わせの登録、被制御機器の登録、サービスサーバに対するダイレクトアクセスを行うための情報の授受などに関する処理を行うためのサーバである。XMPPサーバ43は、被制御機器であるDVR20との間で双方向の常時接続セッションを設定するためのサーバである。なお、SOAPサーバ及びXMPPサーバは、一実施例を示したものであり、SOAPサーバは他のAPI呼び出し方式を用いたサーバに、XMPPサーバは他のIMの方式を用いたサーバに、それぞれ置き換え可能である。   The direct access management server 40 includes a SOAP (Simple Object Access Protocol) server 42 and an XMPP (eXtensible Messaging and Presence Protocol) server 43. The SOAP server 42 is a server for performing processing related to registration of a combination of a control device and a service, registration of a controlled device, exchange of information for performing direct access to the service server, and the like. The XMPP server 43 is a server for setting a bidirectional always-on session with the DVR 20 that is a controlled device. Note that the SOAP server and XMPP server are just examples. The SOAP server can be replaced with a server using another API call method, and the XMPP server can be replaced with a server using another IM method. It is.

次に、各機器のインタフェースについて説明する。図1において[IF-**]はインタフェース番号を示している。   Next, the interface of each device will be described. In FIG. 1, [IF-**] indicates an interface number.

ダイレクトアクセス管理サーバ40のSOAPサーバ42は、サービスサーバ30からアクセスされるインタフェース[IF-02]と、DVR20からアクセスされるインタフェース[IF-00,IF-04]とを有する。SOAPサーバ42にはSOAPクライアント機能も含まれており、サービスサーバ30側のインタフェース[IF-05]へのアクセスを行う。XMPPサーバ43のインタフェースは、XMPPセッションの確立を行う際にXMPPクライアントからアクセスされる。本システム構成例では、DVR20からアクセスされるインタフェース[IF-06]がこれに該当し、XMPPセッション確立後はこのインタフェース[IF-06]を用いて双方向にメッセージをやり取りできるため、XMPPサーバ43からもDVR20のインタフェース[IF-07]にアクセスすることができる。また、ダイレクトアクセス管理サーバ40は、サービスサーバ30に対して、後述するXMPPトンネリング時に提供するダイレクトアクセス用URI(Uniform Resource Identifier)のインタフェース[IF-10]も有する。   The SOAP server 42 of the direct access management server 40 has an interface [IF-02] accessed from the service server 30 and an interface [IF-00, IF-04] accessed from the DVR 20. The SOAP server 42 also includes a SOAP client function, and accesses the interface [IF-05] on the service server 30 side. The interface of the XMPP server 43 is accessed from an XMPP client when establishing an XMPP session. In this system configuration example, the interface [IF-06] accessed from the DVR 20 corresponds to this, and after the XMPP session is established, messages can be exchanged bidirectionally using this interface [IF-06]. Can also access the interface [IF-07] of DVR20. The direct access management server 40 also has a direct access URI (Uniform Resource Identifier) interface [IF-10] provided to the service server 30 during XMPP tunneling described later.

サービスサーバ30は、携帯電話10からアクセスされるインタフェース[IF-01]とダイレクトアクセス管理サーバ40からアクセスされるインタフェース[IF-05]を有する。   The service server 30 has an interface [IF-01] accessed from the mobile phone 10 and an interface [IF-05] accessed from the direct access management server 40.

なお、このシステム構成例では、サービスサーバ30はダイレクトアクセス管理サーバ40のXMPPサーバ43と直接インタフェースしていないが、もちろん直接インタフェースするように構成してもよい。   In this system configuration example, the service server 30 is not directly interfaced with the XMPP server 43 of the direct access management server 40, but may of course be configured to interface directly.

DVR20は、ダイレクトアクセス管理サーバ40からアクセスされるXMPPセッション確立後のインタフェース[IF-07]と、携帯電話10との間で例えば赤外線やUSB(Universal Serial Bus)などでデータを送受信するためのインタフェース[IF-03]と、サービスサーバ30もしくは携帯電話10からアクセスされるダイレクトアクセス用URIに対応したインタフェース[IF-09]とを有している。   The DVR 20 is an interface for transmitting and receiving data between the interface [IF-07] after the XMPP session established accessed from the direct access management server 40 and the mobile phone 10 using, for example, infrared or USB (Universal Serial Bus). [IF-03] and an interface [IF-09] corresponding to the direct access URI accessed from the service server 30 or the mobile phone 10.

ルータ50は、DVR20からアクセスされる、UPnP(Universal Plug and Play)IGD(Internet Gateway Device)機能のインタフェース[IF-08]を有する。   The router 50 has a UPnP (Universal Plug and Play) IGD (Internet Gateway Device) function interface [IF-08] accessed from the DVR 20.

次に、この実施形態のネットワークシステムの動作を説明する。以下の説明において<X-XX>は要求、<X-XXR>は<X-XX>に対する応答を示す。   Next, the operation of the network system of this embodiment will be described. In the following description, <X-XX> indicates a request, and <X-XXR> indicates a response to <X-XX>.

[1.制御機器・サービス、被制御機器の登録]   [1. Registration of controlled devices / services and controlled devices]

最初に、携帯電話10(制御機器)とサービスとの組み合わせ毎に発行される制御機器・サービス管理IDと、ダイレクトアクセス管理サーバ40内で個々のDVR20(被制御機器)に対してユニークに発行される被制御機器管理IDとの紐付けを行う動作を説明する。   First, a control device / service management ID issued for each combination of the mobile phone 10 (control device) and service, and a unique issuance for each DVR 20 (controlled device) within the direct access management server 40 The operation for associating with the controlled device management ID will be described.

図2は携帯電話10とサービスとの組み合わせの登録とDVR20の登録を行う際の情報の流れを示すシーケンス図である。図3はこの登録時の携帯電話10のフローチャートである。図4はこの登録時のサービスサーバ30のフローチャートである。図5は登録時のダイレクトアクセス管理サーバ40のフローチャートである。図6はこの登録時のDVR20のフローチャートである。   FIG. 2 is a sequence diagram showing the flow of information when registering the combination of the mobile phone 10 and the service and registering the DVR 20. FIG. 3 is a flowchart of the cellular phone 10 at the time of registration. FIG. 4 is a flowchart of the service server 30 at the time of registration. FIG. 5 is a flowchart of the direct access management server 40 at the time of registration. FIG. 6 is a flowchart of the DVR 20 at the time of registration.

[1-1.制御機器とサービスとの組み合わせの登録]   [1-1. Registration of combination of control device and service]

まず、携帯電話10は、ユーザからの被制御機器登録の指示を受け(図3:ステップS301)、ユーザ識別情報を含む被制御機器登録要求<R-1>をサービスサーバ30に発行する(図3:ステップS302)。   First, the mobile phone 10 receives a controlled device registration instruction from the user (FIG. 3: step S301), and issues a controlled device registration request <R-1> including user identification information to the service server 30 (FIG. 3: Step S302).

サービスサーバ30は、ユーザ識別情報を含む被制御機器登録要求<R-1>を受信すると(図4:ステップS401)、そのユーザ識別情報に対応する制御機器・サービス管理IDが記憶部31に記憶されているかどうかを判断する(図4:ステップS402)。   When the service server 30 receives the controlled device registration request <R-1> including the user identification information (FIG. 4: step S401), the control device / service management ID corresponding to the user identification information is stored in the storage unit 31. It is determined whether it has been performed (FIG. 4: Step S402).

ユーザ識別情報に対応する制御機器・サービス管理IDが記憶されていない場合、サービスサーバ30は、ユーザ識別情報を記憶部31に保存し(図4:ステップS403)、あらかじめ自身に割り当てられているServiceIDを含む制御機器・サービス管理ID取得要求<R-2>をダイレクトアクセス管理サーバ40内のSOAPサーバ42に対して発行する(図4:ステップS404)。制御機器・サービス管理IDは、サービス事業者が提供する個々のサービスと制御機器との組み合わせに対してユニークに割り当てられるIDである。   When the control device / service management ID corresponding to the user identification information is not stored, the service server 30 stores the user identification information in the storage unit 31 (FIG. 4: step S403), and the Service ID assigned to itself in advance. Is issued to the SOAP server 42 in the direct access management server 40 (FIG. 4: step S404). The control device / service management ID is an ID uniquely assigned to a combination of an individual service provided by a service provider and a control device.

SOAPサーバ42は、制御機器・サービス管理ID取得要求<R-2>を受信すると(図5:ステップS501)、これに含まれているServiceIDが、ダイレクトアクセス管理サーバ40の記憶部41にあらかじめ登録されているServiceIDと一致するかどうかを調べ(図5:ステップS502)、一致しない場合には、サービスサーバ30にServiceIDが未登録であることを示すエラーコードを制御機器・サービス管理ID取得応答<R-2R>として送信する(図5:ステップS506)。ServiceIDが一致する場合には、SOAPサーバ42は、新規の制御機器・サービス管理IDを発行して(図5:ステップS503)、この制御機器・サービス管理IDとServiceIDとの対応関係を記憶部41に登録し(図5:ステップS504)、その制御機器・サービス管理IDをサービスサーバ30に制御機器・サービス管理ID取得応答<R-2R>として送信する(図5:ステップS505)。これにより、ダイレクトアクセス管理サーバ40は、ダイレクトアクセス管理サーバ40からみて制御側を、制御機器である携帯電話10と、携帯電話10が利用するサービスサーバ30のサービスとを組み合わせで識別することができるようになる。   When the SOAP server 42 receives the control device / service management ID acquisition request <R-2> (FIG. 5: step S501), the Service ID included in this is registered in advance in the storage unit 41 of the direct access management server 40. If it does not match (Figure 5: Step S502), if it does not match, an error code indicating that the ServiceID has not been registered in the service server 30 is sent to the control device / service management ID acquisition response < R-2R> is transmitted (FIG. 5: Step S506). If the Service IDs match, the SOAP server 42 issues a new control device / service management ID (FIG. 5: Step S503), and stores the correspondence between the control device / service management ID and Service ID in the storage unit 41. (FIG. 5: Step S504), and transmits the control device / service management ID to the service server 30 as a control device / service management ID acquisition response <R-2R> (FIG. 5: Step S505). Thereby, the direct access management server 40 can identify the control side as seen from the direct access management server 40 by combining the mobile phone 10 that is the control device and the service of the service server 30 used by the mobile phone 10. It becomes like this.

サービスサーバ30は、制御機器・サービス管理ID取得応答<R-2R>として制御機器・サービス管理IDを受信すると(図4:ステップS405)、この制御機器・サービス管理IDをユーザ識別情報と対応付けて記憶部31に登録する(図4:ステップS406)。制御機器・サービス管理IDをユーザ識別情報と対応付けて記憶することにより、サービスサーバ30は、以降、携帯電話10からアクセスされた際に、携帯電話10のユーザ識別情報に対応する制御機器・サービス管理IDを用いて、ダイレクトアクセス管理サーバ40に処理を要求することにより、制御機器である携帯電話10とサービスサーバ30のサービスとの組み合わせの制御側として、ダイレクトアクセス管理サーバ40に制御要求元を一意に識別させることが可能となる。   Upon receiving the control device / service management ID as the control device / service management ID acquisition response <R-2R> (FIG. 4: step S405), the service server 30 associates the control device / service management ID with the user identification information. To the storage unit 31 (FIG. 4: step S406). By storing the control device / service management ID in association with the user identification information, the service server 30 subsequently controls the device / service corresponding to the user identification information of the mobile phone 10 when accessed from the mobile phone 10. By using the management ID to request processing from the direct access management server 40, the control request source is sent to the direct access management server 40 as the control side of the combination of the mobile phone 10 that is the control device and the service of the service server 30. It is possible to uniquely identify them.

サービスサーバ30は、制御機器・サービス管理IDをユーザ識別情報と対応付けて記憶部31に登録した後、または、携帯電話10から受信した被制御機器登録要求<R-1>に含まれるユーザ識別情報に対応する制御機器・サービス管理IDが記憶部31に登録されている場合、それら制御機器・サービス管理IDおよびServiceIDを含む被制御機器登録用パスワード取得要求<R-3>をダイレクトアクセス管理サーバ40内のSOAPサーバ42に対して発行する(図4:ステップS407)。   The service server 30 associates the control device / service management ID with the user identification information in the storage unit 31, or the user identification included in the controlled device registration request <R-1> received from the mobile phone 10 If the control device / service management ID corresponding to the information is registered in the storage unit 31, the controlled device registration password acquisition request <R-3> including the control device / service management ID and Service ID is sent to the direct access management server. It is issued to the SOAP server 42 within 40 (FIG. 4: Step S407).

ダイレクトアクセス管理サーバ40内のSOAPサーバ42は、被制御機器登録用パスワード取得要求<R-3>を受信すると(図5:ステップS507)、これに含まれている制御機器・サービス管理IDおよびServiceIDの組み合わせが記憶部41に登録されているかどうかを判断する(図5:ステップS508)。登録されていない場合、SOAPサーバ42は、サービスサーバ30に制御機器・サービス管理IDとServiceIDの組み合わせが未登録であることを示すエラーコードを被制御機器登録用パスワード取得応答<R-3R>として送信する(図5:ステップS512)。また、被制御機器登録用パスワード取得要求<R-3>に含まれている制御機器・サービス管理IDおよびServiceIDの組み合わせが記憶部41に既に登録されている場合、SOAPサーバ42は、被制御機器登録用パスワードを新たに生成し(図5:ステップS509)、この被制御機器登録用パスワードとこの被制御機器登録用パスワードに対して決められた有効期限に関する情報を被制御機器登録用パスワード取得要求<R-3>に含まれていた制御機器・サービス管理IDおよびServiceIDと対応付けて記憶部41に登録する(図5:ステップS510)。この後、SOAPサーバ42は、被制御機器登録用パスワードと、この被制御機器登録用パスワードの有効期限の情報を被制御機器登録用パスワード取得応答<R-3R>としてサービスサーバ30に送信する(図5:ステップS511)。   When the SOAP server 42 in the direct access management server 40 receives the controlled device registration password acquisition request <R-3> (FIG. 5: Step S507), the control device / service management ID and ServiceID included in this request are received. It is determined whether or not the combination is registered in the storage unit 41 (FIG. 5: step S508). If not registered, the SOAP server 42 sets an error code indicating that the combination of the control device / service management ID and ServiceID is not registered in the service server 30 as the controlled device registration password acquisition response <R-3R>. Transmit (FIG. 5: Step S512). If the combination of the control device / service management ID and Service ID included in the controlled device registration password acquisition request <R-3> is already registered in the storage unit 41, the SOAP server 42 A new registration password is generated (Fig. 5: Step S509), and the controlled device registration password acquisition request is issued for the controlled device registration password and information regarding the expiration date determined for the controlled device registration password. The control device / service management ID and Service ID included in <R-3> are associated with each other and registered in the storage unit 41 (FIG. 5: step S510). Thereafter, the SOAP server 42 transmits the controlled device registration password and the expiration date information of the controlled device registration password to the service server 30 as a controlled device registration password acquisition response <R-3R> ( FIG. 5: Step S511).

サービスサーバ30は、被制御機器登録用パスワード取得応答<R-3R>を受信すると(図4:ステップS408)、この被制御機器登録用パスワード取得応答<R-3R>に含まれている被制御機器登録用パスワードとその有効期限の情報を被制御機器登録応答<R-4>として携帯電話10に送信する(図4:ステップS409)。   Upon receiving the controlled device registration password acquisition response <R-3R> (FIG. 4: step S408), the service server 30 receives the controlled device registration password acquisition response <R-3R>. The device registration password and its expiration date information are transmitted to the mobile phone 10 as a controlled device registration response <R-4> (FIG. 4: step S409).

携帯電話10は、この被制御機器登録応答<R-4>を受信すると(図3:ステップS303)、これに含まれている被制御機器登録用パスワードとその有効期限の情報を記憶部11に保存する(図3:ステップS304)。   When receiving the controlled device registration response <R-4> (FIG. 3: step S303), the mobile phone 10 stores the controlled device registration password and the expiration date information included in the response to the storage unit 11. Save (FIG. 3: Step S304).

以上により、携帯電話10とサービスとの組み合わせに対する制御機器・サービス管理IDの登録処理と被制御機器を制御機器に関連付けるために用いられる被制御機器登録用パスワードの発行処理が完了となる。   Thus, the control device / service management ID registration process for the combination of the mobile phone 10 and the service and the controlled device registration password issuance process used to associate the controlled device with the controlled device are completed.

[1-2.被制御機器の登録]    [1-2. Registration of controlled device]

次に被制御機器であるDVR20の登録時の動作を説明する。   Next, the operation at the time of registration of the controlled device DVR 20 will be described.

DVR20は、ユーザによる利用前にダイレクトアクセス管理サーバ40において自身の機器認証を次のように行う。   The DVR 20 performs its own device authentication in the direct access management server 40 before use by the user as follows.

まず、DVR20は自動接続フラグの値をチェックする(図6:ステップS601)。被制御機器のダイレクトアクセス管理サーバ40への登録前には自動接続フラグの値はオフである。この場合DVR20は自身に予め設定されている認証方式の情報および機器認証情報を含む機器認証要求<R-0>をダイレクトアクセス管理サーバ40内のSOAPサーバ42に送信する(図6:ステップS602)。   First, the DVR 20 checks the value of the automatic connection flag (FIG. 6: step S601). Before the controlled device is registered in the direct access management server 40, the value of the automatic connection flag is off. In this case, the DVR 20 transmits a device authentication request <R-0> including the authentication method information set in advance and device authentication information to the SOAP server 42 in the direct access management server 40 (FIG. 6: Step S602). .

ダイレクトアクセス管理サーバ40内のSOAPサーバ42は、DVR20からの機器認証要求<R-0>を受信すると(図5:ステップS513)、このDVR20が正当な機器であるかどうかを、機器認証要求<R-0>に含まれる認証方式の情報および機器認証情報に基づき判定する(図5:ステップS514)。不当な機器として判定された場合、すなわち、認証方式があらかじめ決められている認証方式と異なる場合や機器認証情報があらかじめ決められている認証方式の形式と異なる場合等には、SOAPサーバ42は、機器認証に失敗したことを示すエラーコードを機器認証応答<R-0R>としてDVR20に送信する(図5:ステップS515)。正当な機器であることが判定された場合、すなわち、認証方式があらかじめ決められている認証方式と一致し、かつ機器認証情報があらかじめ決められている認証方式の形式である場合には、SOAPサーバ42は、そのDVR20に対して割り当てる機器認証継続IDを生成して(図5:ステップS516)、この機器認証継続IDと、機器認証要求<R-0>に含まれる機器認証情報とを対応付けて記憶部41に保存する(図5:ステップS517)。この後、SOAPサーバ42は、上記の生成した機器認証継続IDとその有効期限の情報を含む機器認証応答<R-0R>をDVR20へ送信する(図5:ステップS518)。機器認証継続IDは、ダイレクトアクセス管理サーバ40で機器認証が完了している機器に対して割り当てられる識別情報であり、この識別情報によって、ダイレクトアクセス管理サーバ40は、被制御機器であるDVR20の機器の認証状況を確認することが可能となる。   When the SOAP server 42 in the direct access management server 40 receives the device authentication request <R-0> from the DVR 20 (FIG. 5: Step S513), it determines whether or not this DVR 20 is a valid device < Determination is made based on the authentication method information and device authentication information included in R-0> (FIG. 5: step S514). When it is determined as an unauthorized device, that is, when the authentication method is different from a predetermined authentication method or when the device authentication information is different from the predetermined authentication method format, the SOAP server 42 An error code indicating that the device authentication has failed is transmitted to the DVR 20 as a device authentication response <R-0R> (FIG. 5: Step S515). If it is determined that the device is a legitimate device, that is, if the authentication method matches the predetermined authentication method and the device authentication information is in the predetermined authentication method format, the SOAP server 42 generates a device authentication continuation ID to be assigned to the DVR 20 (FIG. 5: step S516), and associates this device authentication continuation ID with the device authentication information included in the device authentication request <R-0>. To the storage unit 41 (FIG. 5: step S517). Thereafter, the SOAP server 42 transmits a device authentication response <R-0R> including the generated device authentication continuation ID and information on its expiration date to the DVR 20 (FIG. 5: step S518). The device authentication continuation ID is identification information assigned to a device for which device authentication has been completed by the direct access management server 40. By this identification information, the direct access management server 40 uses the device of the DVR 20 that is the controlled device. It is possible to confirm the authentication status of

DVR20は、ダイレクトアクセス管理サーバ40内のSOAPサーバ42から、機器認証継続IDとその有効期限の情報とを含む機器認証応答<R-0R>を受信すると(図6:ステップS603)、この機器認証応答<R-0R>に含まれる機器認証継続ID、その有効期限の情報を機器認証情報と対応付けて記憶部21に保存する(図6:ステップS604)。   When the DVR 20 receives a device authentication response <R-0R> including the device authentication continuation ID and information on its expiration date from the SOAP server 42 in the direct access management server 40 (FIG. 6: Step S603), this device authentication The device authentication continuation ID and the expiration date information included in the response <R-0R> are stored in the storage unit 21 in association with the device authentication information (FIG. 6: step S604).

この後、DVR20は、記憶部21に被制御機器登録用パスワードが保存されているかどうかを判断する(図6:ステップS605)。被制御機器登録用パスワードが保存されていない場合には動作を終了し、被制御機器登録用パスワードが保存されている場合にはステップS609へ移行する。機器認証継続IDを取得した直後は被制御機器登録用パスワードが保存されていないので、この場合には動作を終了することとなる。ここまでにおいて、被制御機器であるDVR20は機器認証継続ID、機器認証継続IDの有効期限の情報、機器認証情報の組み合わせを記憶部21に記憶し、ダイレクトアクセス管理サーバ40は機器認証継続IDと機器認証情報との組み合わせを記憶部41に記憶している。   Thereafter, the DVR 20 determines whether the controlled device registration password is stored in the storage unit 21 (FIG. 6: step S605). If the controlled device registration password is not stored, the operation is terminated, and if the controlled device registration password is stored, the process proceeds to step S609. Immediately after acquiring the device authentication continuation ID, the controlled device registration password is not saved, and in this case, the operation is terminated. Up to this point, the DVR 20 that is the controlled device stores the device authentication continuation ID, the expiration date information of the device authentication continuation ID, and the combination of the device authentication information in the storage unit 21, and the direct access management server 40 has the device authentication continuation ID and A combination with the device authentication information is stored in the storage unit 41.

[1-3.制御機器・サービス管理IDと被制御機器管理IDとの紐付け]   [1-3. Linking Control Device / Service Management ID and Controlled Device Management ID]

次に、制御機器・サービス管理IDと被制御機器管理IDとを関連付けてダイレクトアクセス管理サーバ40に登録する動作を行う。携帯電話10において、ユーザからのワンタイムパスワード送信要求が入力される(図3:ステップS305)。携帯電話10は、このユーザからのワンタイムパスワード送信要求を受けると記憶部11に記憶されている被制御機器登録用パスワードを、例えば、赤外線やUSBなどのインタフェース[IF-03]を使って、被制御機器であるDVR20にワンタイムパスワード<R-5>として渡す(図3:ステップS306)。被制御機器登録用パスワードの渡し方は、他にも、非接触ICカードを介した受け渡し、Bluetooth(商標)、無線LANなどによる無線伝送など様々な方式が想定されるが、制御機器である携帯電話10から被制御機器であるDVR20に対して被制御機器登録用パスワードを渡すことができさえすればどのような渡し方であっても構わない。この後、携帯電話10は記憶部11から被制御機器登録用パスワードを消去する(図3:ステップS307)。   Next, the control device / service management ID and the controlled device management ID are associated with each other and registered in the direct access management server 40. In the mobile phone 10, a one-time password transmission request from the user is input (FIG. 3: step S305). When the mobile phone 10 receives a one-time password transmission request from the user, the controlled device registration password stored in the storage unit 11, for example, using an interface [IF-03] such as infrared or USB, A one-time password <R-5> is passed to the DVR 20 that is the controlled device (FIG. 3: step S306). There are various other ways to pass the password for registering the controlled device, such as passing through a non-contact IC card, wireless transmission using Bluetooth (trademark), wireless LAN, etc. As long as the controlled device registration password can be passed from the telephone 10 to the DVR 20 that is the controlled device, any method may be used. Thereafter, the mobile phone 10 deletes the controlled device registration password from the storage unit 11 (FIG. 3: step S307).

DVR20は、携帯電話10から被制御機器登録用パスワード<R-5>を受信すると(図6:ステップS607)、この被制御機器登録用パスワードを記憶部21に保存する(図6:ステップS608)。続いて、DVR20は、記憶部21に記憶されている機器認証継続IDと、携帯電話10より受信した被制御機器登録用パスワードを含む被制御機器登録要求<R-6>をダイレクトアクセス管理サーバ40内のSOAPサーバ42に送信する(図6:ステップS609)。これによりDVR20は、ダイレクトアクセス管理サーバ40に、被制御機器登録用パスワードを送信してきた携帯電話10と関連付けて登録することを要求する。   Upon receiving the controlled device registration password <R-5> from the mobile phone 10 (FIG. 6: Step S607), the DVR 20 stores the controlled device registration password in the storage unit 21 (FIG. 6: Step S608). . Subsequently, the DVR 20 sends the controlled device registration request <R-6> including the device authentication continuation ID stored in the storage unit 21 and the controlled device registration password received from the mobile phone 10 to the direct access management server 40. To the SOAP server 42 (FIG. 6: step S609). As a result, the DVR 20 requests the direct access management server 40 to register in association with the mobile phone 10 that has transmitted the controlled device registration password.

ダイレクトアクセス管理サーバ40内のSOAPサーバ42は、DVR20から被制御機器登録要求<R-6>を受信すると(図5:ステップS519)、この被制御機器登録要求<R-6>に含まれる機器認証継続IDが記憶部41に保存されているものと一致するかどうかのチェックと機器認証継続IDの有効期限のチェックを行う(図5:ステップS520)。これらのチェックでNGが判定された場合、すなわち機器認証継続IDが一致しないか、もしくは機器認証継続IDの有効期限が切れている場合には、機器認証が必要であることを示すエラーコードを含む被制御機器登録応答<R-6R>をDVR20へ送信する(図5:ステップS528)。DVR20は、このエラーコードを含む被制御機器登録応答<R-6R>を受信すると(図6:ステップS622)、ステップS602に戻って機器認証のための処理を繰り返す。   When the SOAP server 42 in the direct access management server 40 receives the controlled device registration request <R-6> from the DVR 20 (FIG. 5: step S519), the devices included in the controlled device registration request <R-6> A check is made to see if the authentication continuation ID matches that stored in the storage unit 41 and the validity period of the device authentication continuation ID is checked (FIG. 5: step S520). If NG is determined by these checks, that is, if the device authentication continuation ID does not match or the device authentication continuation ID has expired, an error code indicating that device authentication is required is included A controlled device registration response <R-6R> is transmitted to the DVR 20 (FIG. 5: step S528). Upon receiving the controlled device registration response <R-6R> including this error code (FIG. 6: step S622), the DVR 20 returns to step S602 and repeats the device authentication process.

また、SOAPサーバ42は、ステップS520のチェック結果がOKの場合、すなわち機器認証継続IDが記憶部41に記憶されているものと一致し、かつ機器認証継続IDの有効期限が切れていない場合、DVR20から受信した被制御機器登録要求<R-6>に含まれる被制御機器登録用パスワードが記憶部41に保存されているものと一致するかどうかのチェックとその被制御機器登録用パスワードの有効期限のチェックを行う(図5:ステップS521)。これらのチェックでNGが判定された場合、すなわち被制御機器登録用パスワードが一致しないか、もしくは被制御機器登録用パスワードの有効期限が切れている場合、SOAPサーバ42は、被制御機器登録要求<R-6>に含まれる被制御機器登録用パスワードが無効であることを示すエラーコードを被制御機器登録応答<R-6R>としてDVR20へ送信する(図5:ステップS527)。DVR20は、このエラーコードを被制御機器登録応答<R-6R>として受信すると(図6:ステップS620)、DVR20に接続されたTVの画面等を通して、被制御機器登録用パスワードの再取得を行うように、ユーザに対してエラーメッセージの表示を行って(図6:ステップS621)、処理を終了する。   Further, if the check result in step S520 is OK, that is, the SOAP server 42 matches the device authentication continuation ID stored in the storage unit 41, and the device authentication continuation ID has not expired, Check whether the controlled device registration password included in the controlled device registration request <R-6> received from the DVR 20 matches the one stored in the storage unit 41 and the validity of the controlled device registration password The deadline is checked (FIG. 5: step S521). If NG is determined by these checks, that is, the controlled device registration password does not match or the controlled device registration password has expired, the SOAP server 42 sends a controlled device registration request < An error code indicating that the controlled device registration password included in R-6> is invalid is transmitted to the DVR 20 as a controlled device registration response <R-6R> (FIG. 5: step S527). When the DVR 20 receives this error code as a controlled device registration response <R-6R> (FIG. 6: step S620), the DVR 20 re-acquires the controlled device registration password through the TV screen connected to the DVR 20 or the like. As described above, an error message is displayed to the user (FIG. 6: step S621), and the process is terminated.

また、SOAPサーバ42は、ステップS521のチェック結果がOKの場合、すなわち被制御機器登録用パスワードが記憶部41に記憶されているものと一致し、かつ被制御機器登録用パスワードの有効期限が切れていない場合には、記憶部41に記憶されている情報を参照して、被制御機器登録要求<R-6>に含まれている機器認証継続IDに被制御機器管理IDが割り当てられているかどうかの判断を行う(図5:ステップS521-1)。機器認証継続IDに対応する被制御機器管理IDがまだ割り当てられていない場合、SOAPサーバ42は、そのDVR20に対して被制御機器管理IDを割り当て(図5:ステップS522)、この割り当てた被制御機器管理IDを、そのDVR20の機器認証情報および機器認証継続IDと対応付けて記憶部41に保存する(図5:ステップS523)。被制御機器登録要求<R-6>に含まれている機器認証継続IDに被制御機器管理IDがすでに割り当てられている場合には、SOAPサーバ42は被制御機器管理IDを、記憶部41に該被制御機器登録用パスワードと対応付けられて保存されている制御機器・サービス管理IDと関連付けて記憶部41に保存する(図5:ステップS523-1)。ここで、被制御機器管理IDとは、被制御機器に対してダイレクトアクセス管理サーバ40内でユニークに割り当てられる識別情報である。これによって、制御機器とサービスとの組み合わせに対して割り当てられた制御機器・サービス管理IDと、被制御機器に対して割り当てられた被制御機器管理IDとの紐付けが行われる。この紐付けは、1つの制御機器・サービス管理IDに対して複数の被制御機器管理IDが紐付けされても、逆に複数の制御機器・サービス管理IDが1つの被制御機器管理IDに紐付けされても構わない。   In addition, the SOAP server 42 determines that the check result in step S521 is OK, that is, the controlled device registration password matches that stored in the storage unit 41, and the controlled device registration password has expired. If not, whether the controlled device management ID is assigned to the device authentication continuation ID included in the controlled device registration request <R-6> with reference to the information stored in the storage unit 41 Judgment is made (FIG. 5: step S521-1). If the controlled device management ID corresponding to the device authentication continuation ID is not yet allocated, the SOAP server 42 allocates the controlled device management ID to the DVR 20 (FIG. 5: step S522), and this allocated controlled device The device management ID is stored in the storage unit 41 in association with the device authentication information and device authentication continuation ID of the DVR 20 (FIG. 5: step S523). If the controlled device management ID is already assigned to the device authentication continuation ID included in the controlled device registration request <R-6>, the SOAP server 42 stores the controlled device management ID in the storage unit 41. The control device / service management ID stored in association with the controlled device registration password is stored in the storage unit 41 (FIG. 5: step S523-1). Here, the controlled device management ID is identification information uniquely assigned to the controlled device in the direct access management server 40. As a result, the control device / service management ID assigned to the combination of the control device and the service is associated with the controlled device management ID assigned to the controlled device. In this connection, even if multiple controlled device management IDs are linked to one controlled device / service management ID, multiple controlled devices / service management IDs are linked to one controlled device management ID. It may be attached.

次にSOAPサーバ42は、現在紐付けが完了しているサービスの数を被制御機器登録応答<R-6R>としてDVR20へ送信する(図5:ステップS524)。次に、SOAPサーバ42は、記憶部41に保存されているServiceID、制御機器・サービス管理ID、被制御機器登録用パスワードを含む被制御機器登録完了通知<R-7>をサービスサーバ30に送信する(図5:ステップS525)。この後、SOAPサーバ42は、記憶部41の被制御機器登録用パスワードを消去し(図5:ステップS526)、処理を終了する。また、サービスサーバ30は、SOAPサーバ42より被制御機器登録完了通知<R-7>を受信すると(図4:ステップS410)、被制御機器の登録が完了したことを携帯電話10に通知する(図4:ステップS411)。被制御機器の登録が完了したことをサービスサーバ30から携帯電話10に通知する方法としては、たとえば、電子メールや、携帯電話10との間でその他の方法で通信を行うために用意されたアプリケーション等がある。   Next, the SOAP server 42 transmits the number of services that are currently associated to the DVR 20 as a controlled device registration response <R-6R> (FIG. 5: step S524). Next, the SOAP server 42 sends a controlled device registration completion notification <R-7> including the ServiceID, control device / service management ID, and controlled device registration password stored in the storage unit 41 to the service server 30. (FIG. 5: Step S525). Thereafter, the SOAP server 42 deletes the controlled device registration password in the storage unit 41 (FIG. 5: step S526), and ends the process. When the service server 30 receives the controlled device registration completion notification <R-7> from the SOAP server 42 (FIG. 4: step S410), the service server 30 notifies the mobile phone 10 that the controlled device registration is completed ( FIG. 4: Step S411). Examples of a method for notifying the cellular phone 10 from the service server 30 that registration of the controlled device has been completed include, for example, e-mail and applications prepared for communicating with the cellular phone 10 by other methods. Etc.

DVR20は、SOAPサーバ42より現在紐付けが完了しているサービスの数を被制御機器登録応答<R-6R>として受信すると(図6:ステップS610)、自動接続フラグをオンにセットし(図6:ステップS611)、被制御機器の登録が完了したことを表すメッセージを表示する(図6:ステップS612)。続いて、DVR20は、記憶部21に保存されている被制御機器登録用パスワードを消去する(図6:ステップS613)。その後、DVR20は、ダイレクトアクセス管理サーバ40のXMPPサーバ43との間で常時接続セッションを確立するために、機器認証継続IDを含むXMPPログイン情報取得要求<D-0-1>をダイレクトアクセス管理サーバ40内のSOAPサーバ42に送信する(図6:ステップS614)。   When the DVR 20 receives from the SOAP server 42 the number of services that are currently associated as a controlled device registration response <R-6R> (Fig. 6: step S610), it sets the automatic connection flag to on (Fig. 6: Step S611), a message indicating that registration of the controlled device is completed is displayed (FIG. 6: Step S612). Subsequently, the DVR 20 deletes the controlled device registration password stored in the storage unit 21 (FIG. 6: step S613). After that, the DVR 20 sends an XMPP login information acquisition request <D-0-1> including the device authentication continuation ID to the direct access management server 40 in order to establish a constant connection session with the XMPP server 43 of the direct access management server 40. The information is transmitted to the SOAP server 42 within 40 (FIG. 6: step S614).

[2.被制御機器のXMPPログイン]   [2.XMPP login of controlled device]

このネットワークシステムでは、ダイレクトアクセス管理サーバ40に、被制御機器との間で双方向の常時接続セッションを設定するためのXMPPサーバ43を置いている。制御機器である携帯電話10から被制御機器であるDVR20にネットワークを通じてアクセスするために、その前にDVR20がXMPPサーバ43にログインしてXMPPサーバ43の間で常時接続セッションを確立しておく。これにより、サービスサーバ30や携帯電話10は、必要なときには、DVR20から必要な情報を取得できる。また、この際のサービスサーバ30の設計を簡単にするために、XMPPプロトコルをダイレクトアクセス管理サーバ40内に隠蔽し、SOAPインタフェースだけで、DVR20と双方向の常時接続セッションを設定しているXMPPサーバ43との情報のやり取りを行えるようにしている。   In this network system, the direct access management server 40 is provided with an XMPP server 43 for setting a bidirectional always-connected session with a controlled device. In order to access the DVR 20 that is the controlled device through the network from the mobile phone 10 that is the controlling device, the DVR 20 logs into the XMPP server 43 and establishes a constant connection session between the XMPP servers 43 before that. Thereby, the service server 30 and the mobile phone 10 can acquire necessary information from the DVR 20 when necessary. In order to simplify the design of the service server 30 at this time, the XMPP server that conceals the XMPP protocol in the direct access management server 40 and sets a bidirectional always-on session with the DVR 20 using only the SOAP interface. It is possible to exchange information with 43.

図7の一部は被制御機器のXMPPログインに関する情報の流れを示すシーケンス図、図10の一部は被制御機器のXMPPログインに関するダイレクトアクセス管理サーバ40の動作を示すフローチャートである。   7 is a sequence diagram showing a flow of information related to the XMPP login of the controlled device, and FIG. 10 is a flowchart showing an operation of the direct access management server 40 related to the XMPP login of the controlled device.

これらの図に示されるように、ダイレクトアクセス管理サーバ40は、DVR20より機器認証継続IDを含むXMPPログイン情報取得要求<D-0-1>を受信すると(図10:ステップS1001)、このXMPPログイン情報取得要求<D-0-1>に含まれている機器認証継続IDと機器認証継続IDの有効期限のチェックを行う(図10:ステップS1002)。このチェックでXMPPログイン情報取得要求<D-0-1>に含まれている機器認証継続IDが、ダイレクトアクセス管理サーバ40の記憶部41に記憶されているものと一致しない場合、もしくは、有効期限が切れている場合には、DVR20が正常にダイレクトアクセス管理サーバ40に登録されていないか、もしくは、過去に登録されていたが登録時の機器認証継続IDの有効期限が切れているのかであるため、機器認証が必要であることを示すエラーコードをXMPPログイン情報取得応答<D-0-1R>としてDVR20に送信する(図10:ステップS1003)。機器認証継続IDが記憶部41に記憶されており、かつ機器認証継続IDの有効期限が切れていない場合、ダイレクトアクセス管理サーバ40は、記憶部41から、当該機器認証継続IDに紐付けられている被制御機器管理ID及び機器認証情報を検索し(図10:ステップS1004)、これら被制御機器管理IDと機器認証情報から、DVR20がXMPPサーバ43にログインするために必要なXMPPログインIDであるFull JID(D)、XMPPログインパスワードおよびXMPPログインパスワードの有効期限の情報を生成し(図10:ステップS1005)、これらを記憶部41に保存する(図10:ステップS1006)。そして、ダイレクトアクセス管理サーバ40は、生成したFull JID(D)、XMPPログインパスワードおよびその有効期限の情報に、XMPPアドレスおよびポート番号、認証方式の情報、SSL(Secure Socket Layer)オプションを加えた情報をXMPPログイン情報取得応答<D-0-1R>としてDVR20に送信する(図10:ステップS1007)。   As shown in these figures, when the direct access management server 40 receives the XMPP login information acquisition request <D-0-1> including the device authentication continuation ID from the DVR 20 (FIG. 10: step S1001), this XMPP login The device authentication continuation ID included in the information acquisition request <D-0-1> and the expiration date of the device authentication continuation ID are checked (FIG. 10: Step S1002). If this check does not match the device authentication continuation ID included in the XMPP login information acquisition request <D-0-1> with that stored in the storage unit 41 of the direct access management server 40, or the expiration date If it is expired, it means that the DVR 20 is not properly registered in the direct access management server 40, or it has been registered in the past, but the device authentication continuation ID at the time of registration has expired Therefore, an error code indicating that device authentication is required is transmitted to the DVR 20 as an XMPP login information acquisition response <D-0-1R> (FIG. 10: step S1003). When the device authentication continuation ID is stored in the storage unit 41 and the device authentication continuation ID has not expired, the direct access management server 40 is associated with the device authentication continuation ID from the storage unit 41. Is the XMPP login ID required for the DVR 20 to log in to the XMPP server 43 based on the controlled device management ID and device authentication information (see FIG. 10: Step S1004). Full JID (D), XMPP login password, and expiration date information of the XMPP login password are generated (FIG. 10: step S1005) and stored in the storage unit 41 (FIG. 10: step S1006). The direct access management server 40 adds the XMPP address and port number, authentication method information, and SSL (Secure Socket Layer) option to the generated Full JID (D), XMPP login password, and expiration date information. Is transmitted to the DVR 20 as an XMPP login information acquisition response <D-0-1R> (FIG. 10: step S1007).

DVR20は、ダイレクトアクセス管理サーバ40内のSOAPサーバ42からFull JID(D)、XMPPログインパスワード等を含むXMPPログイン情報取得応答<D-0-1R>を受信すると(図6:ステップS615)、Full JID(D)、XMPPログインパスワードを含むXMPPログイン認証要求<D-0-2>を、ダイレクトアクセス管理サーバ40内のXMPPサーバ43に送信する(図6:ステップS616)。   When the DVR 20 receives the XMPP login information acquisition response <D-0-1R> including the Full JID (D), the XMPP login password, etc. from the SOAP server 42 in the direct access management server 40 (FIG. 6: Step S615), the Full An XMPP login authentication request <D-0-2> including JID (D) and XMPP login password is transmitted to the XMPP server 43 in the direct access management server 40 (FIG. 6: step S616).

ダイレクトアクセス管理サーバ40内のXMPPサーバ43は、DVR20よりXMPPログイン認証要求<D-0-2>を受信すると(図10:ステップS1008)、このXMPPログイン認証要求<D-0-2>に含まれているFull JID(D)、XMPPログインパスワードおよびXMPPログインパスワードの有効期限のチェックを行い(図10:ステップS1009)、Full JID(D)が記憶部41に記憶されているものと一致しない、または、XMPPログインパスワードが記憶部41に記憶されているものと一致しない、または、XMPPログインパスワードの有効期限が切れている場合には、XMPPログイン失敗を示すエラーコードをXMPPログイン認証応答<D-0-1R>としてDVR20に送信する(図10:ステップS1010)。また、Full JID(D)。XMPPログインパスワードおよび有効期限のチェックがすべてOKならば、ダイレクトアクセス管理サーバ40内のXMPPサーバ43は、XMPPログイン許可を示すコードをXMPPログイン認証応答<D-0-2R>としてDVR20に送信する(図10:ステップS1011)。   When the XMPP server 43 in the direct access management server 40 receives the XMPP login authentication request <D-0-2> from the DVR 20 (FIG. 10: Step S1008), it is included in this XMPP login authentication request <D-0-2>. The full JID (D), XMPP login password and XMPP login password expiration date are checked (Fig. 10: Step S1009), and the Full JID (D) does not match the one stored in the storage unit 41. Or, if the XMPP login password does not match that stored in the storage unit 41, or if the XMPP login password has expired, an error code indicating XMPP login failure is displayed as the XMPP login authentication response <D- 0-1R> is transmitted to the DVR 20 (FIG. 10: Step S1010). Full JID (D). If the XMPP login password and the expiration date check are all OK, the XMPP server 43 in the direct access management server 40 transmits a code indicating XMPP login permission to the DVR 20 as an XMPP login authentication response <D-0-2R> ( FIG. 10: Step S1011).

DVR20は、ダイレクトアクセス管理サーバ40よりXMPPログイン失敗を示すエラーコードをXMPPログイン認証応答<D-0-2R>として受信すると(図6:ステップS619)、ステップS614に戻って、再度XMPPログイン情報の取得要求を行う。すなわち、XMPPログインパスワードの有効期限が切れている可能性があるため、再度、XMPPログイン情報の取得要求処理を行う。また、ダイレクトアクセス管理サーバ40よりXMPPログイン許可を示すコードをXMPPログイン認証応答<D-0-2R>として受信すると(図6:ステップS618)、DVR20は、XMPPログイン処理が完了する。   When the DVR 20 receives an error code indicating failure of XMPP login from the direct access management server 40 as the XMPP login authentication response <D-0-2R> (FIG. 6: step S619), the DVR 20 returns to step S614 and again returns the XMPP login information. Make an acquisition request. That is, since the XMPP login password may expire, XMPP login information acquisition request processing is performed again. Further, when the code indicating XMPP login permission is received from the direct access management server 40 as the XMPP login authentication response <D-0-2R> (FIG. 6: step S618), the DVR 20 completes the XMPP login process.

なお、DVR20は、ダイレクトアクセス管理サーバ40内のSOAPサーバ42より、機器認証が必要であることを示すエラーコードをXMPPログイン情報取得応答<D-0-1R>として受信した場合には(図6:ステップS617)、自機が正常にダイレクトアクセス管理サーバ40に登録されていないか、もしくは、機器認証継続IDの有効期限が切れている可能性があるため、再度、自身に予め設定されている認証方式の情報および機器認証情報を含む機器認証要求<R-0>をダイレクトアクセス管理サーバ40内のSOAPサーバ42に送信して自身の機器認証をやりなおす(図6:ステップS602)。   The DVR 20 receives an error code indicating that device authentication is required from the SOAP server 42 in the direct access management server 40 as an XMPP login information acquisition response <D-0-1R> (FIG. 6). : Step S617) Since the device itself is not normally registered in the direct access management server 40 or the device authentication continuation ID may have expired, it is set in advance again. The device authentication request <R-0> including the authentication method information and device authentication information is transmitted to the SOAP server 42 in the direct access management server 40, and the device authentication is performed again (FIG. 6: step S602).

上記のように、このネットワークシステムでは、ダイレクトアクセス管理サーバ40にて、DVR20がXMPPサーバ43にログインするために必要なXMPPログインID(Full JID(D))及びXMPPログインパスワードをそれぞれ生成し、DVR20へ配布している。このFull JID(D)は、たとえば図24に示すように、Bare JID部とResource部とで構成される。Bare JID部には被制御機器に割り当てられた被制御機器管理IDが用いられ、Resource部には機器認証情報から得た製品コード及びシリアルナンバーが用いられている。また、図25に示すように、Resource部には制御機器とサービスの組み合わせを識別するための制御機器・サービス管理IDを用いてもよい。   As described above, in this network system, the direct access management server 40 generates an XMPP login ID (Full JID (D)) and an XMPP login password necessary for the DVR 20 to log in to the XMPP server 43, and the DVR 20 It is distributed to. This Full JID (D) is composed of a Bare JID part and a Resource part, for example, as shown in FIG. A controlled device management ID assigned to the controlled device is used for the Bare JID portion, and a product code and a serial number obtained from the device authentication information are used for the Resource portion. Further, as shown in FIG. 25, a control device / service management ID for identifying a combination of a control device and a service may be used in the Resource portion.

ところで、ステップS611で自動接続フラグがオンにセットされることにより、DVR20は次回の接続時、例えばDVR20の電源が一旦オフされその後に再投入された時、或いはXMPPサーバ43とのセッション切断後のセッションの再確立の時には、ステップS601の自動接続フラグのチェックの後、ステップS614のXMPPログイン情報取得要求<D-0-1>の送信から処理を開始する。すなわち、DVR20は再接続時には機器認証のための処理、携帯電話10からの被制御機器登録用パスワードの取得、被制御機器登録のための処理をスキップしてXMPPログインのための処理に入る。これにより、DVR20は再接続時には、XMPPログインのための処理を行うだけで、XMPPサーバ43の間での接続セッションを確立することができる。   By the way, when the automatic connection flag is set to ON in step S611, the DVR 20 is connected at the next connection, for example, when the power of the DVR 20 is once turned off and then turned on again, or after the session with the XMPP server 43 is disconnected. When the session is re-established, after the automatic connection flag is checked in step S601, the process starts from transmission of the XMPP login information acquisition request <D-0-1> in step S614. That is, the DVR 20 skips processing for device authentication, acquisition of a controlled device registration password from the mobile phone 10 and processing for controlled device registration when reconnecting, and enters processing for XMPP login. As a result, the DVR 20 can establish a connection session between the XMPP servers 43 simply by performing processing for XMPP login at the time of reconnection.

以上で、制御機器である携帯電話10の制御対象として、被制御機器であるDVR20を関連付けるための処理が完了する。以下では、関連付けられた2つの機器の間で、携帯電話10がDVR20を制御する際の具体的な処理に関して説明する。   This completes the process for associating the DVR 20 that is the controlled device as the control target of the mobile phone 10 that is the controlling device. Hereinafter, specific processing when the mobile phone 10 controls the DVR 20 between two associated devices will be described.

[3.リモート録画予約]   [3. Remote recording reservation]

DVR20へのリモート録画予約の動作を説明する。   The operation of remote recording reservation to the DVR 20 will be described.

図7の一部はリモート録画予約時の情報の流れを示すシーケンス図、図8はリモート録画予約に関する携帯電話10の動作を示すフローチャート、図9はリモート録画予約に関するサービスサーバ30の動作を示すフローチャート、図10と図11はリモート録画予約およびコンテンツ取得に関するダイレクトアクセス管理サーバ40の動作を示すフローチャート、図12はリモート録画予約およびコンテンツ取得に関するDVR20の動作を示すフローチャートである。   7 is a sequence diagram showing the flow of information at the time of remote recording reservation, FIG. 8 is a flowchart showing the operation of the mobile phone 10 related to remote recording reservation, and FIG. 9 is a flowchart showing the operation of the service server 30 related to remote recording reservation. FIGS. 10 and 11 are flowcharts showing the operation of the direct access management server 40 related to remote recording reservation and content acquisition, and FIG. 12 is a flowchart showing the operation of the DVR 20 related to remote recording reservation and content acquisition.

携帯電話10のユーザから、リモート録画予約サービスを受信するために、ダイレクトアクセス利用開始の指示が携帯電話10に与えられると(図8:ステップS801)、携帯電話10は自身に予め設定されているユーザ識別情報を含む被制御機器リスト取得要求<D-1>をサービスサーバ30に送信する(図8:ステップS802)。   When an instruction to start using direct access is given to the mobile phone 10 in order to receive the remote recording reservation service from the user of the mobile phone 10 (FIG. 8: Step S801), the mobile phone 10 is preset in itself. A controlled device list acquisition request <D-1> including user identification information is transmitted to the service server 30 (FIG. 8: step S802).

サービスサーバ30は、携帯電話10より被制御機器リスト取得要求<D-1>を受信すると(図9:ステップS901)、この被制御機器リスト取得要求<D-1>に含まれるユーザ識別情報に対応する制御機器・サービス管理IDが記憶部31に記憶されているかどうかを判定する(図9:ステップS902)。ユーザ識別情報に対応する制御機器・サービス管理IDが記憶部31に記憶されていない場合、サービスサーバ30は、被制御機器の登録が必要であることを示すエラーコードを被制御機器リスト取得応答<D-3>として携帯電話10に送信する(図9:ステップS903)。ユーザ識別情報に対応する制御機器・サービス管理IDが記憶部31に記憶されている場合は、ダイレクトアクセス管理サーバ40に管理されている制御機器・サービス管理IDに関連付けられている被制御機器の一覧を取得するために、サービスサーバ30は、サービスを識別する情報であるServiceIDおよび制御機器・サービス管理IDを含む被制御機器リスト取得要求<D-2>をダイレクトアクセス管理サーバ40に送信する(図9:ステップS904)。   When the service server 30 receives the controlled device list acquisition request <D-1> from the mobile phone 10 (FIG. 9: Step S901), the service server 30 includes the user identification information included in the controlled device list acquisition request <D-1>. It is determined whether or not the corresponding control device / service management ID is stored in the storage unit 31 (FIG. 9: Step S902). If the control device / service management ID corresponding to the user identification information is not stored in the storage unit 31, the service server 30 sends an error code indicating that the controlled device needs to be registered to the controlled device list acquisition response < D-3> is transmitted to the mobile phone 10 (FIG. 9: Step S903). When the control device / service management ID corresponding to the user identification information is stored in the storage unit 31, a list of controlled devices associated with the control device / service management ID managed by the direct access management server 40 The service server 30 transmits a controlled device list acquisition request <D-2> including a Service ID that is information for identifying a service and a control device / service management ID to the direct access management server 40 (see FIG. 9: Step S904).

ダイレクトアクセス管理サーバ40は、サービスサーバ30からの被制御機器リスト取得要求<D-2>を受信すると(図10:ステップS1012)、この被制御機器リスト取得要求<D-2>に含まれるServiceIDおよび制御機器・サービス管理IDの組み合わせが記憶部41に記憶されているかどうかを判定し(図10:ステップS1013)、もし記憶されていない場合には、未登録であることを示すエラーコードを被制御機器リスト取得応答<D-2R>としてサービスサーバ30に送信する(図10:ステップS1014)。サービスサーバ30は、ダイレクトアクセス管理サーバ40から未登録であることを示すエラーコードを被制御機器リスト取得応答<D-2R>として受信した場合は(図9:ステップS905)、被制御機器の登録が必要であることを示すエラーコードを被制御機器リスト取得応答<D-3>として携帯電話10に送信する(図9:ステップS906)。携帯電話10は、サービスサーバ30よりエラーコードを被制御機器リスト取得応答<D-3>として受信する場合(図8:ステップS803)、サービス対象の被制御機器の登録が必要であることを示すエラーメッセージを、表示部を通じてユーザに表示する(図8:ステップS804)。   When the direct access management server 40 receives the controlled device list acquisition request <D-2> from the service server 30 (FIG. 10: step S1012), the ServiceID included in the controlled device list acquisition request <D-2> Then, it is determined whether or not the combination of the control device / service management ID is stored in the storage unit 41 (FIG. 10: Step S1013), and if it is not stored, an error code indicating that it has not been registered is received. A control device list acquisition response <D-2R> is transmitted to the service server 30 (FIG. 10: step S1014). If the service server 30 receives an unregistered error code from the direct access management server 40 as a controlled device list acquisition response <D-2R> (FIG. 9: Step S905), the controlled device registration Is transmitted to the mobile phone 10 as a controlled device list acquisition response <D-3> (FIG. 9: step S906). When the mobile phone 10 receives the error code from the service server 30 as a controlled device list acquisition response <D-3> (FIG. 8: step S803), it indicates that registration of the controlled device to be serviced is necessary. An error message is displayed to the user through the display unit (FIG. 8: Step S804).

また、ステップS1013の判定で、被制御機器リスト取得要求<D-2>に含まれるServiceIDおよび制御機器・サービス管理IDの組み合わせが記憶部41に記憶されていることが判定された場合、ダイレクトアクセス管理サーバ40は、記憶部41に記憶されている制御機器・サービス管理IDと被制御機器管理IDとの紐付け内容に従って、携帯電話10から制御可能な被制御機器の被制御機器管理IDに対して改めて振り直した番号と被制御機器の機器認証情報に含まれる機器名称等からなる一覧を被制御機器リストとして生成し、この被制御機器リストを制御機器・サービス管理IDと対応付けて記憶部41に保存するとともに、この被制御機器リストを含む被制御機器リスト取得応答<D-2R>をサービスサーバ30に送信する(図10:ステップS1015)。サービスサーバ30が、ダイレクトアクセス管理サーバ40から被制御機器リストを含む被制御機器リスト取得応答<D-2R>を受信した場合は(図9:ステップS907)、この被制御機器リストを含む被制御機器リスト取得応答<D-3>を携帯電話10に送信する(図9:ステップS908)。   If it is determined in step S1013 that the combination of ServiceID and control device / service management ID included in the controlled device list acquisition request <D-2> is stored in the storage unit 41, direct access is performed. The management server 40 controls the controlled device management ID of the controlled device that can be controlled from the mobile phone 10 according to the contents of the control device / service management ID stored in the storage unit 41 and the controlled device management ID. A list composed of the re-assigned number and the device name included in the device authentication information of the controlled device is generated as a controlled device list, and this controlled device list is associated with the control device / service management ID to store At the same time, the controlled device list acquisition response <D-2R> including this controlled device list is transmitted to the service server 30 (FIG. 10: step S1015). When the service server 30 receives the controlled device list acquisition response <D-2R> including the controlled device list from the direct access management server 40 (FIG. 9: step S907), the controlled device including this controlled device list Device list acquisition response <D-3> is transmitted to mobile phone 10 (FIG. 9: step S908).

携帯電話10は、被制御機器リストを含む被制御機器リスト取得応答<D-3>を受信した場合は(図8:ステップS805)、その被制御機器リストに複数の被制御機器の番号が存在するかどうかを判定する(図8:ステップS806)。複数の被制御機器の番号が存在する場合には、携帯電話10は、その被制御機器リストの内容を表示部に表示して(図8:ステップS807)、ユーザにその中から1つの被制御機器の番号を選択させ(図8:ステップS808)、その選択された被制御機器の番号を記憶部11に保存する(図8:ステップS809,S811)。複数の被制御機器が存在しない場合には、その一つの被制御機器の番号を記憶部11に保存する(図8:ステップS810,S811)。   When the mobile phone 10 receives the controlled device list acquisition response <D-3> including the controlled device list (FIG. 8: step S805), there are multiple controlled device numbers in the controlled device list. It is determined whether or not to perform (FIG. 8: step S806). When there are a plurality of controlled device numbers, the mobile phone 10 displays the contents of the controlled device list on the display unit (FIG. 8: step S807), and the user controls one controlled device from the list. The device number is selected (FIG. 8: step S808), and the selected controlled device number is stored in the storage unit 11 (FIG. 8: steps S809 and S811). If a plurality of controlled devices do not exist, the number of the one controlled device is stored in the storage unit 11 (FIG. 8: steps S810 and S811).

次に、携帯電話10は、これから利用するサービス(リモート録画予約)が携帯電話10から被制御機器に対してダイレクトアクセス可能なサービスか否かによって処理を分岐する(図8:ステップS812)。携帯電話10からダイレクトアクセス可能なサービスを利用する場合は、携帯電話10は、記憶部11に記憶されているユーザ識別情報、被制御機器の番号、携帯ダイレクトフラグ(オン)を含む新規リモート録画予約要求<D-4>をサービスサーバ30に送信する(図8:ステップS813)。ここで、携帯ダイレクトフラグの値は、携帯電話10からダイレクトアクセス可能なサービスを利用する場合にはオンにセットされ、携帯電話10からダイレクトアクセスが不可なサービスを利用する場合にはオフにセットされる。したがって、携帯電話10からダイレクトアクセス不可なサービスを利用する場合は、携帯電話10は、ユーザ識別情報、録画予約番組情報、被制御機器の番号、携帯ダイレクトフラグ(オフ)を含む新規リモート録画予約要求<D-4>をサービスサーバ30に送信する(図8:ステップS814)。録画予約番組情報は、たとえば、録画開始時間、番組長、放送種別、チャンネル、強制予約フラグなどの情報で構成される。   Next, the mobile phone 10 branches the process depending on whether the service to be used (remote recording reservation) is a service that allows direct access from the mobile phone 10 to the controlled device (FIG. 8: step S812). When using a service that can be directly accessed from the mobile phone 10, the mobile phone 10 uses the new remote recording reservation including the user identification information stored in the storage unit 11, the number of the controlled device, and the mobile direct flag (ON). The request <D-4> is transmitted to the service server 30 (FIG. 8: Step S813). Here, the value of the mobile direct flag is set to ON when using a service that can be directly accessed from the mobile phone 10, and set to OFF when using a service that cannot be directly accessed from the mobile phone 10. The Therefore, when using a service that cannot be directly accessed from the mobile phone 10, the mobile phone 10 uses the new remote recording reservation request including the user identification information, the recording reservation program information, the number of the controlled device, and the mobile direct flag (off). <D-4> is transmitted to the service server 30 (FIG. 8: step S814). The scheduled recording program information includes, for example, information such as a recording start time, a program length, a broadcast type, a channel, and a forced reservation flag.

サービスサーバ30は、携帯電話10から新規リモート録画予約要求<D-4>を受信すると(図9:ステップS909)、利用可能なXMPPセッションID、すなわち新規リモート録画予約要求<D-4>に含まれる携帯電話10のユーザ識別情報に関連付けられてXMPPサーバ43との間で確立されている接続セッションを識別するIDが記憶部31に記憶されているか否かを調べる(図9:ステップS910)。利用可能なXMPPセッションIDが記憶されていない場合には、サービスサーバ30は、XMPPサーバ43とXMPPセッションを確立するために、ServiceID、制御機器・サービス管理ID、被制御機器の番号を含むXMPPログイン要求<D-5>をダイレクトアクセス管理サーバ40に送信する(図9:ステップS912)。   When the service server 30 receives the new remote recording reservation request <D-4> from the mobile phone 10 (FIG. 9: Step S909), it is included in the available XMPP session ID, that is, the new remote recording reservation request <D-4> Whether or not an ID for identifying a connection session established with the XMPP server 43 associated with the user identification information of the mobile phone 10 is stored in the storage unit 31 (FIG. 9: step S910). If an available XMPP session ID is not stored, the service server 30 establishes an XMPP session with the XMPP server 43, and includes an XMPP login that includes the ServiceID, control device / service management ID, and controlled device number. The request <D-5> is transmitted to the direct access management server 40 (FIG. 9: Step S912).

ダイレクトアクセス管理サーバ40は、サービスサーバ30からのXMPPログイン要求<D-5>を受信すると(図10:ステップS1016)、このXMPPログイン要求<D-5>に含まれるServiceID、制御機器・サービス管理ID、および被制御機器の番号の組み合わせが記憶部41に記憶されているかどうかを判定する(図10:ステップS1017)。記憶されていない場合、ダイレクトアクセス管理サーバ40は、対応するサービス対象の被制御機器が存在しないことを示すエラーコードをXMPPログイン応答<D-5R>としてサービスサーバ30に送信する(図10:ステップS1018)。この後、ダイレクトアクセス管理サーバ40の動作は終了となる。対応するサービス対象の被制御機器が記憶部41に記憶されている場合、ダイレクトアクセス管理サーバ40は、XMPPセッションIDを生成し、このXMPPセッションIDをServiceID、制御機器・サービス管理ID、被制御機器の番号と対応付けて記憶部41に保存し(図10:ステップS1019)、このXMPPセッションIDを含むXMPPログイン応答<D-5R>をサービスサーバ30に送信する(図10:ステップS1020)。   When the direct access management server 40 receives the XMPP login request <D-5> from the service server 30 (FIG. 10: Step S1016), the Service ID, control device / service management included in the XMPP login request <D-5> It is determined whether the combination of the ID and the number of the controlled device is stored in the storage unit 41 (FIG. 10: Step S1017). If not stored, the direct access management server 40 sends an error code indicating that the corresponding controlled device to be serviced does not exist as an XMPP login response <D-5R> to the service server 30 (FIG. 10: Step S1018). Thereafter, the operation of the direct access management server 40 ends. When the corresponding controlled device to be serviced is stored in the storage unit 41, the direct access management server 40 generates an XMPP session ID, and this XMPP session ID is ServiceID, control device / service management ID, controlled device. The XMPP login response <D-5R> including this XMPP session ID is transmitted to the service server 30 (FIG. 10: step S1020).

サービスサーバ30は、ダイレクトアクセス管理サーバ40からXMPPセッションIDを含むXMPPログイン応答<D-5R>を受信すると(図9:ステップS913)、このXMPPログイン応答<D-5R>に含まれるXMPPセッションIDおよび、ステップS909の新規リモート録画予約要求<D-4>に含まれる携帯ダイレクトフラグの値をServiceID、制御機器・サービス管理ID、被制御機器リスト番号と対応付けて記憶部31に保存する(図9:ステップS914)。   When the service server 30 receives the XMPP login response <D-5R> including the XMPP session ID from the direct access management server 40 (FIG. 9: Step S913), the XMPP session ID included in the XMPP login response <D-5R> Then, the value of the portable direct flag included in the new remote recording reservation request <D-4> in step S909 is stored in the storage unit 31 in association with the Service ID, the control device / service management ID, and the controlled device list number (FIG. 9: Step S914).

一方、サービスサーバ30によるステップS910の判定の結果、利用可能なXMPPセッションIDが既に記憶部31に記憶されていれば、サービスサーバ30は、新規リモート録画予約要求<D-4>に含まれる携帯ダイレクトフラグの値をServiceID、制御機器・サービス管理ID、被制御機器の番号と対応付けて記憶部31に保存する(図9:ステップS911)。   On the other hand, as a result of the determination in step S910 by the service server 30, if an available XMPP session ID has already been stored in the storage unit 31, the service server 30 includes the mobile phone included in the new remote recording reservation request <D-4>. The value of the direct flag is stored in the storage unit 31 in association with the Service ID, the control device / service management ID, and the controlled device number (FIG. 9: Step S911).

このステップS911またはステップS914の携帯ダイレクトフラグの保存後、サービスサーバ30はServiceID、制御機器・サービス管理ID、サービスURN (Uniform Resource Name)、XMPPセッションIDを含むダイレクトアクセス開始要求<D-6>をダイレクトアクセス管理サーバ40に送信する(図9:ステップS915)。ここで、サービスURNは、被制御機器が提供可能なサービス(アプリケーション)の一つを指定する情報である。ここでは、携帯電話10からDVR20に対してリモート録画予約を行おうとしているので、サービスURNはリモート録画予約サービスを指定する情報となる。   After storing the mobile direct flag in step S911 or step S914, the service server 30 sends a direct access start request <D-6> including ServiceID, control device / service management ID, service URN (Uniform Resource Name), and XMPP session ID. The data is transmitted to the direct access management server 40 (FIG. 9: Step S915). Here, the service URN is information specifying one of services (applications) that can be provided by the controlled device. Here, since the mobile phone 10 is going to make a remote recording reservation for the DVR 20, the service URN is information for designating the remote recording reservation service.

ダイレクトアクセス管理サーバ40は、サービスサーバ30からのダイレクトアクセス開始要求<D-6>を受信すると(図11:ステップS1101)、このダイレクトアクセス開始要求<D-6>に含まれているServiceIDと制御機器・サービス管理IDの組み合わせが記憶部41に記憶されているかどうかを判定し(図11:ステップS1102)、記憶されていない場合、被制御機器の登録が必要であることを示すエラーコードをダイレクトアクセス開始応答<D-10>としてサービスサーバ30に送信する(図11:ステップS1103)。ダイレクトアクセス開始要求<D-6>に含まれているServiceIDと制御機器・サービス管理IDの組み合わせが記憶部41に記憶されている場合には、ダイレクトアクセス管理サーバ40は、ダイレクトアクセス開始要求<D-6>に含まれているXMPPセッションIDが、ダイレクトアクセス開始要求<D-6>に含まれているServiceIDと制御機器・サービス管理IDとの組み合わせに対応付けられて記憶部41に記憶されているかどうかを判定する(図11:ステップS1104)。記憶されていない場合、ダイレクトアクセス管理サーバ40は、不正XMPPセッションIDであることを示すエラーコードをダイレクトアクセス開始応答<D-10>としてサービスサーバ30に送信する(図11:ステップS1105)。サービスサーバ30は、ダイレクトアクセス管理サーバ40より、不正XMPPセッションIDであることを示すエラーコードをダイレクトアクセス開始応答<D-10>として受信すると(図9:ステップS916)、ステップS912に戻ってXMPPログイン要求<D-5>をダイレクトアクセス管理サーバ40に送信して、再度XMPPセッションの確立を行う。   Upon receiving the direct access start request <D-6> from the service server 30 (FIG. 11: Step S1101), the direct access management server 40 controls the ServiceID included in this direct access start request <D-6>. It is determined whether the combination of device / service management ID is stored in the storage unit 41 (FIG. 11: Step S1102), and if it is not stored, an error code indicating that registration of the controlled device is required is directly performed. The access start response <D-10> is transmitted to the service server 30 (FIG. 11: Step S1103). When the combination of ServiceID and control device / service management ID included in the direct access start request <D-6> is stored in the storage unit 41, the direct access management server 40 sends the direct access start request <D XMPP session ID included in -6> is stored in the storage unit 41 in association with the combination of Service ID and control device / service management ID included in the direct access start request <D-6>. It is determined whether or not (FIG. 11: step S1104). If not stored, the direct access management server 40 transmits an error code indicating an unauthorized XMPP session ID as a direct access start response <D-10> to the service server 30 (FIG. 11: step S1105). When the service server 30 receives an error code indicating an illegal XMPP session ID from the direct access management server 40 as a direct access start response <D-10> (FIG. 9: step S916), the service server 30 returns to step S912 and returns to XMPP. The login request <D-5> is transmitted to the direct access management server 40, and the XMPP session is established again.

またステップS1104で、ダイレクトアクセス開始要求<D-6>に含まれているXMPPセッションIDが、ダイレクトアクセス開始要求<D-6>に含まれているServiceIDと制御機器・サービス管理IDとの組み合わせに対応付けられて記憶部41に記憶されている場合は、ダイレクトアクセス管理サーバ40は、ダイレクトアクセス開始要求<D-6>で指定されているサービスを識別する情報であるサービスURNの指定情報を含むダイレクトアクセス用URI取得要求<D-7>を被制御機器であるDVR20にXMPPサーバ43とDVR20との間で確立されている常時接続セッションを通じて送信する(図11:ステップS1106)。   In step S1104, the XMPP session ID included in the direct access start request <D-6> is combined with the Service ID and control device / service management ID included in the direct access start request <D-6>. When stored in the storage unit 41 in association with each other, the direct access management server 40 includes designation information of the service URN that is information for identifying the service designated by the direct access start request <D-6>. The direct access URI acquisition request <D-7> is transmitted to the controlled device DVR 20 through the always-on session established between the XMPP server 43 and the DVR 20 (FIG. 11: step S1106).

DVR20は、ダイレクトアクセス管理サーバ40より、サービスURNの指定情報を含むダイレクトアクセス用URI取得要求<D-7>を受信すると(図12:ステップS1201)、ダイレクトアクセス用のローカルポートの割り当てを行う(図12:ステップS1202)。次に、DVR20は、DVR20にあらかじめ割り当てられたローカルIPアドレスおよびダイレクトアクセス用のローカルポートのポート番号を含む、ダイレクトアクセス用ポートのNAT(Network Address Translation)設定要求<D-8>をルータ50に送信して、ローカルIPアドレス及びポート番号に、インターネットからアクセス可能なグローバルIPアドレスおよびポート番号をマッピングすることをルータ50に要求する(図12:ステップS1203)。たとえば、DVR20は、ダイレクトアクセス用URIの割り当てを行うために、ルータ50にUPnP IGD DCP(Device Control Protocol)などによってアクセスし、インターネットからアクセス可能なグローバルIPアドレスおよびポート番号をあらかじめ確保しておく。   Upon receiving the direct access URI acquisition request <D-7> including the service URN designation information from the direct access management server 40 (FIG. 12: step S1201), the DVR 20 assigns a local port for direct access ( FIG. 12: Step S1202). Next, the DVR 20 sends a direct access port NAT (Network Address Translation) setting request <D-8> to the router 50, including the local IP address pre-assigned to the DVR 20 and the port number of the local port for direct access. The router 50 is requested to map the global IP address and port number accessible from the Internet to the local IP address and port number (FIG. 12: step S1203). For example, in order to assign a direct access URI, the DVR 20 accesses the router 50 by UPnP IGD DCP (Device Control Protocol) or the like, and reserves a global IP address and a port number accessible from the Internet in advance.

DVR20は、ステップS1203のダイレクトアクセス用ポートのNAT設定要求<D-8>に対して、ルータ50より、DVR20のローカルIPアドレス及びポート番号に対応付けられたグローバルIPアドレスおよびポート番号をNAT設定応答<D-8R>として受信した場合には(図12:ステップS1208)、これらのグローバルIPアドレスおよびポート番号を用いてダイレクトアクセス用URIリストを作成し、このダイレクトアクセス用URIリストをダイレクトアクセス用URI取得応答<D-9>としてダイレクトアクセス管理サーバ40に送信する(図12:ステップS1209)。ダイレクトアクセス用URIリストとは、サービスサーバ30または携帯電話10からネットワークを通じてその機器に直接アクセスするためのURIのリストである。   In response to the NAT setting request <D-8> for the direct access port in step S1203, the DVR 20 sends a NAT setting response from the router 50 with the global IP address and port number associated with the local IP address and port number of the DVR 20. If it is received as <D-8R> (Figure 12: Step S1208), a direct access URI list is created using these global IP addresses and port numbers, and this direct access URI list is used as the direct access URI. An acquisition response <D-9> is transmitted to the direct access management server 40 (FIG. 12: step S1209). The direct access URI list is a list of URIs for directly accessing the device from the service server 30 or the mobile phone 10 through the network.

ダイレクトアクセス管理サーバ40のXMPPサーバ43は、ダイレクトアクセス用URIリストをダイレクトアクセス用URI取得応答<D-9>として受信すると(図11:ステップS1107)、そのダイレクトアクセス用URIリストをダイレクトアクセス開始応答<D-10>としてサービスサーバ30に送信する(図11:ステップS1111)。   When the XMPP server 43 of the direct access management server 40 receives the direct access URI list as a direct access URI acquisition response <D-9> (FIG. 11: step S1107), the direct access URI list is sent as a direct access start response. It is transmitted to the service server 30 as <D-10> (FIG. 11: Step S1111).

また、DVR20は、ルータ50より、グローバルIPアドレスおよびポート番号の取得エラーをダイレクトアクセス用ポートのNAT設定応答<D-8R>として受信した場合(図12:ステップS1204)にはステップS1201にて取得したサービスURNの指定情報に基づき、そのサービスURNがトンネリング可能なものであるかどうかを判定する(図12:ステップS1205)。ここで、提供されるサービスのうち特定のサービスがトンネリング可能なサービスとしてあらかじめ決められている。例えば、リモート録画のように通信するデータ量が比較的少ないサービスはトンネリング可能なサービスとして決められており、コンテンツ取得サービスのように通信するデータ量の比較的大きいサービスはトンネリンクが不可なサービスとして決められている。したがって、DVR20は、ダイレクトアクセス用URI取得要求<D-7>に含まれているサービスURNの指定情報が新規リモート録画予約であることを判定した場合には、トンネリングを指示するエラーコードをダイレクトアクセス用URI取得応答<D-9>としてダイレクトアクセス管理サーバ40に送信する(図12:ステップS1206)。トンネリングの指示は、例えば、ダイレクトアクセス用URIのアドレス部分をすべて"0"で埋めることによって行われる。   The DVR 20 receives the global IP address and port number acquisition error from the router 50 as a direct access port NAT setting response <D-8R> (FIG. 12: step S1204), and acquires it in step S1201. Based on the designated information of the service URN, it is determined whether or not the service URN can be tunneled (FIG. 12: step S1205). Here, a specific service among the provided services is determined in advance as a tunnelable service. For example, a service with a relatively small amount of data to be communicated such as remote recording is determined as a tunnelable service, and a service with a relatively large amount of data to be communicated such as a content acquisition service is a service that cannot be tunneled. It has been decided. Therefore, if the DVR 20 determines that the specified service URN information included in the direct access URI acquisition request <D-7> is a new remote recording reservation, the DVR 20 directly accesses the error code instructing tunneling. A URI acquisition response <D-9> is transmitted to the direct access management server 40 (FIG. 12: step S1206). The tunneling instruction is performed by, for example, filling all address parts of the direct access URI with “0”.

ダイレクトアクセス管理サーバ40のXMPPサーバ43は、トンネリングを指示するエラーコードをダイレクトアクセス用URI取得応答<D-9>として受信した場合には(図11:ステップS1109)、ダイレクトアクセス管理サーバ40内のトンネリング用ポートの割り当てを行い(図11:ステップS1110)、この割り当てたダイレクトアクセス管理サーバ40内トンネリング用ポートのポート番号とダイレクトアクセス管理サーバ40のグローバルIPアドレスを用いてダイレクトアクセス用URIリストを作成し、このダイレクトアクセス用URIリストを含むダイレクトアクセス開始応答<D-10>をサービスサーバ30へ送信する(図11:ステップS1111)。これによって、サービスサーバ30や携帯電話10からは、トンネリングされていることを意識することなくDVR20に対してアクセスを行うことができる。   When the XMPP server 43 of the direct access management server 40 receives an error code instructing tunneling as a direct access URI acquisition response <D-9> (FIG. 11: step S1109), the XMPP server 43 in the direct access management server 40 Assign a tunneling port (Figure 11: Step S1110), and create a direct access URI list using the assigned port number of the tunneling port in the direct access management server 40 and the global IP address of the direct access management server 40. Then, a direct access start response <D-10> including this direct access URI list is transmitted to the service server 30 (FIG. 11: step S1111). As a result, the service server 30 and the mobile phone 10 can access the DVR 20 without being conscious of being tunneled.

ステップS1205の判定で、ダイレクトアクセス用URI取得要求<D-7>に含まれているサービスURNの指定情報がトンネリング不可なサービスURNであることが判定された場合には、DVR20は、空きポート獲得失敗を示すエラーコードをダイレクトアクセス用URI取得応答<D-9>としてダイレクトアクセス管理サーバ40に送信する(図12:ステップS1207)。   If it is determined in step S1205 that the service URN specified information included in the direct access URI acquisition request <D-7> is a non-tunable service URN, the DVR 20 acquires a free port. An error code indicating failure is transmitted to the direct access management server 40 as a direct access URI acquisition response <D-9> (FIG. 12: step S1207).

サービスサーバ30は、ダイレクトアクセス管理サーバ40からダイレクトアクセス用URIリストを含むダイレクトアクセス開始応答<D-10>を受信すると(図9:ステップS917)、携帯ダイレクトフラグがオンかオフかを判断する(図9:ステップS918)。携帯ダイレクトフラグがオンである場合には、携帯電話10から直接ダイレクトアクセス用URIで指定される機器にアクセスするために、サービスサーバ30は、ダイレクトアクセス用URIを含む新規リモート録画予約応答<D-13>を携帯電話10に送信する(図9:ステップS919)。携帯ダイレクトフラグがオフの場合は、サービスサーバ30は、ダイレクトアクセス用URIに対して、ダイレクトアクセス用URIと、携帯電話10より新規リモート録画予約要求<D-4>によって取得した録画予約番組情報とを含む新規リモート録画予約要求を送信する(図9:ステップS920)。   When receiving the direct access start response <D-10> including the direct access URI list from the direct access management server 40 (FIG. 9: Step S917), the service server 30 determines whether the mobile direct flag is on or off ( FIG. 9: Step S918). When the mobile direct flag is on, in order to access the device specified by the direct access URI directly from the mobile phone 10, the service server 30 sends a new remote recording reservation response including the direct access URI <D- 13> is transmitted to the mobile phone 10 (FIG. 9: step S919). When the mobile direct flag is off, the service server 30 compares the direct access URI and the scheduled recording program information acquired from the mobile phone 10 by the new remote recording reservation request <D-4> with respect to the direct access URI. A new remote recording reservation request including is transmitted (FIG. 9: step S920).

以下において、携帯電話10がDVR20に対して録画予約要求を行う際の、いくつかの具体的な例を説明する。   Hereinafter, some specific examples when the mobile phone 10 makes a recording reservation request to the DVR 20 will be described.

[3-1.サービスサーバ30での代理アクセスでのリモート録画予約:図7]   [3-1. Remote recording reservation by proxy access in service server 30: Fig. 7]

サービスサーバ30が、携帯電話10から指示を受け、代理でDVR20に対してリモート録画予約を行う場合の動作を説明する。図7の一部は、携帯電話10から指示を受けたサービスサーバ30が、代理でDVR20に対してリモート録画予約を行う場合の情報の流れを示すシーケンス図である。   An operation when the service server 30 receives an instruction from the mobile phone 10 and makes a remote recording reservation for the DVR 20 on behalf of the service server 30 will be described. A part of FIG. 7 is a sequence diagram showing a flow of information when the service server 30 receiving an instruction from the mobile phone 10 makes a remote recording reservation for the DVR 20 on behalf of the user.

携帯電話10、DVR20、サービスサーバ30、ダイレクトアクセス管理サーバ40及びルータ50間の情報の流れで、ダイレクトアクセス開始応答<D-10>までの各装置での処理は、上述した通りである。   The processing in each device up to the direct access start response <D-10> in the information flow among the mobile phone 10, the DVR 20, the service server 30, the direct access management server 40, and the router 50 is as described above.

携帯電話10から指示を受けたサービスサーバ30が、代理でDVR20に対してリモート録画予約を行う場合とは、ステップS918において携帯ダイレクトフラグがオフであると判断され、更に、ステップS917でサービスサーバ30が受信したダイレクトアクセス開始応答<D-10>に、DVR20がステップS1209でダイレクトアクセス用URI取得応答<D-9>として送信したURIが含まれている場合である。なお、既に説明したように、サービスサーバ30は、ダイレクトアクセス開始応答<D-10>として受信したダイレクトアクセス用URIにアクセスするだけであるため、ダイレクトアクセス用URIがDVR20に対応するのか、ダイレクトアクセス管理サーバ40のトンネリングに対応するものなのかは、特には判断を行う必要はない。   When the service server 30 that has received an instruction from the mobile phone 10 makes a remote recording reservation for the DVR 20 on behalf of the mobile phone 10, it is determined in step S918 that the mobile direct flag is off, and in step S917, the service server 30 Is included in the direct access start response <D-10> received by the DVR 20 as the direct access URI acquisition response <D-9> in step S1209. As already described, since the service server 30 only accesses the direct access URI received as the direct access start response <D-10>, whether the direct access URI corresponds to the DVR 20 or not. It is not particularly necessary to determine whether the management server 40 corresponds to tunneling.

サービスサーバ30は、ステップS917でダイレクトアクセス開始応答<D-10>として受信したダイレクトアクセス用URIに含まれるDVR20のアドレスにアクセスして、携帯電話10より新規リモート録画予約要求<D-4>によって取得した録画予約番組情報を含む新規リモート録画予約要求<D-11>を送信する(図9:ステップS920)。   The service server 30 accesses the address of the DVR 20 included in the direct access URI received as the direct access start response <D-10> in step S917, and makes a new remote recording reservation request <D-4> from the mobile phone 10. A new remote recording reservation request <D-11> including the acquired recording reservation program information is transmitted (FIG. 9: step S920).

DVR20は、サービスサーバ30より、新規リモート録画予約要求<D-11>を受信すると(図12:ステップS1210)、この新規リモート録画予約要求<D-11>に含まれるダイレクトアクセス用URIの正当性チェックを行い(図12:ステップS1211)、不正なURIであるなら、その旨を示すエラーコードを新規リモート録画予約応答<D-11R>としてサービスサーバ30に送信する(図12:ステップS1212)。ここで、ダイレクトアクセス用URIの正当性チェックは、例えば、ダイレクトアクセス用URIの発行時に容易に真似のできない乱数を付加し、この乱数が新規リモート録画予約要求<D-11>のダイレクトアクセス用URIに含まれているかどうかをチェックする方法などがある。正当なURIである場合には、DVR20は、録画予約番組情報に基づいて、サービスサーバ30から要求された録画予約が既にスケジュールされている録画予約と録画日時が重複するか否かを判断する。重複する録画予約がない場合には、DVR20は、録画予約番組情報に基づく録画予約を行い、予約重複なしを示す予約重複番組リストを作成する。重複する録画予約が見つかった場合には、DVR20は、重複する録画予約の録画日時、チャンネル、番組タイトルなど含む予約重複番組リストを作成する。その後、DVR20は、予約重複番組リストを含む新規リモート録画予約応答<D-11R>をサービスサーバ30に送信する(図12:ステップS1213)。   When the DVR 20 receives the new remote recording reservation request <D-11> from the service server 30 (FIG. 12: Step S1210), the validity of the direct access URI included in the new remote recording reservation request <D-11> A check is performed (FIG. 12: Step S1211). If the URI is invalid, an error code indicating that is transmitted to the service server 30 as a new remote recording reservation response <D-11R> (FIG. 12: Step S1212). Here, for the validity check of the direct access URI, for example, a random number that cannot be easily imitated is added when the direct access URI is issued, and this random number is the direct access URI of the new remote recording reservation request <D-11>. There is a method to check whether or not it is included. If the URI is valid, the DVR 20 determines whether or not the recording reservation requested by the service server 30 and the recording reservation date and time are overlapped based on the recording reservation program information. When there is no overlapping recording reservation, the DVR 20 makes a recording reservation based on the recording reservation program information, and creates a reservation overlapping program list indicating no reservation overlapping. If a duplicate recording reservation is found, the DVR 20 creates a reservation duplicate program list including the recording date / time, channel, program title, etc. of the duplicate recording reservation. Thereafter, the DVR 20 transmits a new remote recording reservation response <D-11R> including the reserved duplicate program list to the service server 30 (FIG. 12: step S1213).

サービスサーバ30は、新規リモート録画予約応答<D-11R>を受信すると(図9:ステップS921)、新規リモート録画予約応答<D-11R>の予約重複番組リストを、新規リモート録画予約応答<D-12>として携帯電話10に送信する(図9:ステップS922)。また、サービスサーバ30は、不正URIのエラーコードを新規リモート録画予約応答<D-11R>として受信した場合には(図9:ステップS923)、そのエラーコードを新規リモート録画予約応答<D-12>として携帯電話10に送信する(図9:ステップS924)。   When the service server 30 receives the new remote recording reservation response <D-11R> (FIG. 9: Step S921), the service server 30 displays the reserved duplicate program list of the new remote recording reservation response <D-11R> as a new remote recording reservation response <D -12> is transmitted to the mobile phone 10 (FIG. 9: Step S922). In addition, when the service server 30 receives the error code of the illegal URI as a new remote recording reservation response <D-11R> (FIG. 9: Step S923), the service server 30 receives the error code as a new remote recording reservation response <D-12 > Is transmitted to the mobile phone 10 (FIG. 9: Step S924).

携帯電話10は、サービスサーバ30より予約重複番組リストを含む新規リモート録画予約応答<D-12>を受信した場合には(図8:ステップS823)、予約重複番組リストから予約重複番組の有無を判定し(図8:ステップS824)、予約重複番組が存在するならば、表示部を通じて予約重複番組の情報をユーザに表示する(図8:ステップS825)。また、予約重複番組が存在しないならば、携帯電話10は、表示部を通じてリモート録画予約の成功を示すメッセージをユーザに表示する(図8:ステップS826)。   When the mobile phone 10 receives a new remote recording reservation response <D-12> including the reserved duplicate program list from the service server 30 (FIG. 8: step S823), the mobile phone 10 determines whether there is a reserved duplicate program from the reserved duplicate program list. If it is determined (FIG. 8: step S824) and there is a reserved duplicate program, information of the reserved duplicate program is displayed to the user through the display unit (FIG. 8: step S825). If there is no reserved duplicate program, the mobile phone 10 displays a message indicating the success of the remote recording reservation to the user through the display unit (FIG. 8: step S826).

また、携帯電話10は、サービスサーバ30より不正URIのエラーコードを新規リモート録画予約応答<D-12>として受信した場合には(図8:ステップS827)、表示部を通じてダイレクトアクセス失敗のエラーメッセージをユーザに表示する(図8:ステップS828)。   In addition, when the mobile phone 10 receives an error code of an illegal URI from the service server 30 as a new remote recording reservation response <D-12> (FIG. 8: Step S827), an error message indicating a direct access failure through the display unit Is displayed to the user (FIG. 8: step S828).

[3-2.携帯電話10からのダイレクトでのリモート録画予約:図13]   [3-2. Remote recording reservation directly from mobile phone 10: Fig. 13]

次に、携帯電話10がサービスサーバ30を介さずにダイレクトにDVR20に対してリモート録画予約を行う場合の動作を説明する。図13は携帯電話10からダイレクトにDVR20に対してリモート録画予約を行う場合の情報の流れを示すシーケンス図である。   Next, an operation when the mobile phone 10 directly makes a remote recording reservation to the DVR 20 without going through the service server 30 will be described. FIG. 13 is a sequence diagram showing the flow of information when a remote recording reservation is made directly to the DVR 20 from the mobile phone 10.

図13に示した携帯電話10、DVR20、サービスサーバ30、ダイレクトアクセス管理サーバ40及びルータ50間の情報の流れで、ダイレクトアクセス開始応答<D-10>までの各装置での処理は図7を用いて説明した流れと同じであるため説明を省略する。   In the flow of information between the mobile phone 10, DVR 20, service server 30, direct access management server 40 and router 50 shown in FIG. 13, the processing in each device up to the direct access start response <D-10> is as shown in FIG. Since the flow is the same as that described with reference to FIG.

携帯電話10からダイレクトにDVR20に対してリモート録画予約を行う場合とは、ステップS918において携帯ダイレクトフラグがオンであると判断され、更に、ステップS919でサービスサーバ30から携帯電話10に送信される新規リモート録画予約応答<D-13>に、DVR20がステップS1209でダイレクトアクセス用URI取得応答<D-9>として送信したURIが含まれている場合である。なお、既に説明したように、携帯電話10は、新規リモート録画予約応答<D-13>として受信したダイレクトアクセス用URIにアクセスするだけであるため、ダイレクトアクセス用URIがDVR20に対応するのか、ダイレクトアクセス管理サーバ40のトンネリングに対応するものなのかは、特には判断を行う必要はない。   In the case where the remote recording reservation is made directly to the DVR 20 from the mobile phone 10, it is determined in step S918 that the mobile direct flag is ON, and further, a new message transmitted from the service server 30 to the mobile phone 10 in step S919 This is a case where the remote recording reservation response <D-13> includes the URI transmitted by the DVR 20 as the direct access URI acquisition response <D-9> in step S1209. As already explained, since the mobile phone 10 only accesses the direct access URI received as the new remote recording reservation response <D-13>, whether the direct access URI corresponds to the DVR 20 or not. It is not particularly necessary to determine whether the access management server 40 corresponds to tunneling.

携帯電話10は、サービスサーバ30よりダイレクトアクセス用URIを含む新規リモート録画予約応答<D-13>を受信した場合には(図8:ステップS815)、そのダイレクトアクセス用URIに含まれるDVR20のアドレスにアクセスして、ダイレクトアクセス用URIおよび録画予約番組情報を含む新規リモート録画予約要求<D-14>をDVR20に送信する(図8:ステップS816)。   When the mobile phone 10 receives a new remote recording reservation response <D-13> including the direct access URI from the service server 30 (FIG. 8: step S815), the address of the DVR 20 included in the direct access URI To transmit a new remote recording reservation request <D-14> including the URI for direct access and the recording reservation program information to the DVR 20 (FIG. 8: step S816).

DVR20は、携帯電話10より、新規リモート録画予約要求<D-14>を受信すると(図12:ステップS1210)、この新規リモート録画予約要求<D-14>に含まれるダイレクトアクセス用URIの正当性チェックを行い(図12:ステップS1211)、不正なURIであるなら、その旨を示すエラーコードを新規リモート録画予約応答<D-14R>として携帯電話10に送信する(図12:ステップS1212)。ここで、ダイレクトアクセス用URIの正当性チェックは、例えば、ダイレクトアクセス用URIの発行時に容易に真似のできない乱数を付加し、この乱数が新規リモート録画予約要求<D-14>のダイレクトアクセス用URIに含まれているかどうかをチェックする方法などがある。正当なURIである場合には、DVR20は、録画予約番組情報に基づいて、携帯電話10から要求された録画予約が既にスケジュールされている録画予約と録画日時が重複するか否かを判断する。重複する録画予約がない場合には、DVR20は、録画予約番組情報に基づく録画予約を行い、予約重複なしを示す予約重複番組リストを作成する。重複する録画予約が見つかった場合には、DVR20は、重複する録画予約の録画日時、チャンネル、番組タイトルなど含む予約重複番組リストを作成する。その後、DVR20は、予約重複番組リストを含む新規リモート録画予約応答<D-14R>を携帯電話10に送信する(図12:ステップS1213)。   When the DVR 20 receives the new remote recording reservation request <D-14> from the mobile phone 10 (FIG. 12: Step S1210), the validity of the direct access URI included in the new remote recording reservation request <D-14> A check is performed (FIG. 12: Step S1211), and if the URI is invalid, an error code indicating that fact is transmitted to the mobile phone 10 as a new remote recording reservation response <D-14R> (FIG. 12: Step S1212). Here, for the validity check of the direct access URI, for example, a random number that cannot be easily imitated is added when the direct access URI is issued, and this random number is the direct access URI of the new remote recording reservation request <D-14>. There is a method to check whether or not it is included. If the URI is a valid URI, the DVR 20 determines whether or not the recording reservation requested by the mobile phone 10 and the recording reservation date and time are overlapped based on the recording reservation program information. When there is no overlapping recording reservation, the DVR 20 makes a recording reservation based on the recording reservation program information, and creates a reservation overlapping program list indicating no reservation overlapping. If a duplicate recording reservation is found, the DVR 20 creates a reservation duplicate program list including the recording date / time, channel, program title, etc. of the duplicate recording reservation. Thereafter, the DVR 20 transmits a new remote recording reservation response <D-14R> including the reserved duplicate program list to the mobile phone 10 (FIG. 12: Step S1213).

携帯電話10は、新規リモート録画予約応答<D-14R>を受信すると(図8:ステップS817)、予約重複番組リストから予約重複番組の有無を判定し (図8:ステップS818)、予約重複番組が存在するならば、表示部を通じて予約重複番組の情報をユーザに表示する(図8:ステップS819)。また、予約重複番組が存在しないならば、携帯電話10は、表示部を通じてリモート録画予約の成功を示すメッセージをユーザに表示する(図8:ステップS820)。   When the mobile phone 10 receives the new remote recording reservation response <D-14R> (FIG. 8: Step S817), it determines the presence or absence of the reservation duplicate program from the reservation duplicate program list (FIG. 8: Step S818). Is present, the information of the reserved duplicate program is displayed to the user through the display unit (FIG. 8: step S819). If there is no reserved duplicate program, the mobile phone 10 displays a message indicating the success of the remote recording reservation to the user through the display unit (FIG. 8: step S820).

また、携帯電話10は、不正URIのエラーコードを新規リモート録画予約応答<D-14R>として受信した場合には(図8:ステップS821)、表示部を通じてダイレクトアクセス失敗を示すエラーメッセージをユーザに表示する(図8:ステップS822)。   In addition, when the mobile phone 10 receives the error code of the illegal URI as a new remote recording reservation response <D-14R> (FIG. 8: Step S821), an error message indicating a direct access failure is displayed to the user through the display unit. This is displayed (FIG. 8: Step S822).

[3-3.サービスサーバ30からのトンネリングを利用したリモート録画予約:図14]   [3-3. Remote recording reservation using tunneling from service server 30: Fig. 14]

次に、サービスサーバ30が、携帯電話10から指示を受け、ダイレクトアクセス管理サーバ40のXMPPサーバ43によるトンネリングを利用してDVR20に対してリモート録画予約を行う場合の動作を説明する。図14は携帯電話10からの指示を受けたサービスサーバ30が、XMPPサーバ43によるトンネリングを利用してDVR20に対してのリモート録画予約を行う場合の情報の流れを示すシーケンス図である。   Next, an operation when the service server 30 receives an instruction from the mobile phone 10 and makes a remote recording reservation for the DVR 20 using tunneling by the XMPP server 43 of the direct access management server 40 will be described. FIG. 14 is a sequence diagram showing a flow of information when the service server 30 receiving an instruction from the mobile phone 10 makes a remote recording reservation for the DVR 20 using tunneling by the XMPP server 43.

図14に示した携帯電話10、DVR20、サービスサーバ30、ダイレクトアクセス管理サーバ40及びルータ50間の情報の流れで、ダイレクトアクセス開始応答<D-10>までの各装置での処理は図7を用いて説明した流れと同じであるため説明を省略する。   In the flow of information between the mobile phone 10, DVR 20, service server 30, direct access management server 40 and router 50 shown in FIG. 14, the processing in each device up to the direct access start response <D-10> is as shown in FIG. Since the flow is the same as that described with reference to FIG.

携帯電話10から指示を受けたサービスサーバ30が、XMPPサーバ43によるトンネリングを利用してDVR20に対してリモート録画予約を行う場合とは、ステップS918において携帯ダイレクトフラグがオフであると判断され、更に、ステップS917でサービスサーバ30が受信したダイレクトアクセス開始応答<D-10>に、ダイレクトアクセス管理サーバ40がステップS1110で割り当てたトンネリングのためのURIが含まれている場合である。なお、既に説明したように、サービスサーバ30は、ダイレクトアクセス開始応答<D-10>として受信したダイレクトアクセス用URIにアクセスするだけであるため、ダイレクトアクセス用URIがDVR20に対応するのか、ダイレクトアクセス管理サーバ40のトンネリングに対応するものなのかは、特には判断を行う必要はない。   When the service server 30 receiving the instruction from the mobile phone 10 performs remote recording reservation for the DVR 20 using tunneling by the XMPP server 43, it is determined that the mobile direct flag is OFF in step S918, and This is a case where the direct access start response <D-10> received by the service server 30 in step S917 includes the tunneling URI assigned by the direct access management server 40 in step S1110. As already described, since the service server 30 only accesses the direct access URI received as the direct access start response <D-10>, whether the direct access URI corresponds to the DVR 20 or not. It is not particularly necessary to determine whether the management server 40 corresponds to tunneling.

サービスサーバ30は、ステップS917でダイレクトアクセス開始応答<D-10>として受信したダイレクトアクセス用URIに含まれるダイレクトアクセス管理サーバ40のアドレスにアクセスして、ダイレクトアクセス用URIと、携帯電話10より新規リモート録画予約要求<D-4>によって取得した録画予約番組情報とを含む新規リモート録画予約要求<D-15>を送信する(図9:ステップS920)。   The service server 30 accesses the address of the direct access management server 40 included in the direct access URI received as the direct access start response <D-10> in step S917. A new remote recording reservation request <D-15> including the recording reservation program information acquired by the remote recording reservation request <D-4> is transmitted (FIG. 9: Step S920).

ダイレクトアクセス管理サーバ40は、ダイレクトアクセス用URIと録画予約番組情報を含む新規リモート録画予約要求<D-15>を受信した場合(図11:ステップS1112)、この新規リモート録画予約要求<D-15>に含まれるダイレクトアクセス用URIをチェックし(図11:ステップS1113)、不正なダイレクトアクセス用URIである場合は、不正URIである旨を示すエラーコードを新規リモート録画予約応答<D-17>としてサービスサーバ30に送信する(図11:ステップS1114)。正当なダイレクトアクセス用URIであれば、ダイレクトアクセス管理サーバ40は、XMPPサーバ43を通じて、録画予約番組情報を含む新規リモート録画予約要求<D-16>をDVR20に送信する(図11:ステップS1115)。この際、DVR20でダイレクトアクセス管理サーバ40内のXMPPサーバ43を介したトンネリングによるアクセスであることがわかるように、例えば、ダイレクトアクセス用URIのアドレス部分をすべて"0"で埋める。   When the direct access management server 40 receives the new remote recording reservation request <D-15> including the URI for direct access and the recording reservation program information (FIG. 11: Step S1112), the new remote recording reservation request <D-15 > Is checked (Figure 11: Step S1113), and if it is an illegal direct access URI, an error code indicating that it is an illegal URI will be sent to the new remote recording reservation response <D-17> To the service server 30 (FIG. 11: step S1114). If it is a valid direct access URI, the direct access management server 40 transmits a new remote recording reservation request <D-16> including recording reservation program information to the DVR 20 through the XMPP server 43 (FIG. 11: step S1115). . At this time, for example, the address portion of the direct access URI is filled with “0” so that the DVR 20 can recognize that the access is by tunneling via the XMPP server 43 in the direct access management server 40.

DVR20は、ダイレクトアクセス管理サーバ40より、新規リモート録画予約要求<D-16>を受信すると(図12:ステップS1210)、この新規リモート録画予約要求<D-16>に含まれるダイレクトアクセス用URIの正当性チェックを行い(図12:ステップS1211)、不正なURIであるなら、その旨を示すエラーコードを新規リモート録画予約応答<D-16R>としてダイレクトアクセス管理サーバ40に送信する(図12:ステップS1212)。正当なURIである場合には、DVR20は、予約重複番組リストを含む情報を新規リモート録画予約応答<D-16R>としてダイレクトアクセス管理サーバ40に送信する(図12:ステップS1213)。   When the DVR 20 receives the new remote recording reservation request <D-16> from the direct access management server 40 (FIG. 12: step S1210), the DVR 20 includes the URI for direct access included in the new remote recording reservation request <D-16>. A validity check is performed (FIG. 12: Step S1211), and if the URI is invalid, an error code indicating that is sent to the direct access management server 40 as a new remote recording reservation response <D-16R> (FIG. 12: Step S1212). If the URI is valid, the DVR 20 transmits information including the reserved duplicate program list to the direct access management server 40 as a new remote recording reservation response <D-16R> (FIG. 12: step S1213).

ダイレクトアクセス管理サーバ40は、DVR20からの予約重複番組リストを含む新規リモート録画予約応答<D-16R>を受信すると(図11:ステップS1116)、この予約重複番組リストを含む新規リモート録画予約応答<D-17>をサービスサーバ30に送信する(図11:ステップS1117)。   When the direct access management server 40 receives the new remote recording reservation response <D-16R> including the reserved duplicate program list from the DVR 20 (FIG. 11: Step S1116), the new remote recording reservation response including the reserved duplicate program list < D-17> is transmitted to the service server 30 (FIG. 11: Step S1117).

サービスサーバ30は、この予約重複番組リストを含む新規リモート録画予約応答<D-17>を受信すると(図9:ステップS921)、この予約重複番組リストを含む新規リモート録画予約応答<D-18>を携帯電話10へ送信する(図9:ステップS922)。また、サービスサーバ30は、ダイレクトアクセス管理サーバ40からエラーコードを新規リモート録画予約応答<D-17>として受信した場合は(図9:ステップS923)、このエラーコードを新規リモート録画予約応答<D-18>として携帯電話10へ送信する(図9:ステップS924)。その後の、サービスサーバ30及び携帯電話10における処理は上述した通りである。   When the service server 30 receives the new remote recording reservation response <D-17> including the reserved duplicate program list (FIG. 9: Step S921), the new remote recording reservation response including the reserved duplicate program list <D-18> Is transmitted to the mobile phone 10 (FIG. 9: step S922). In addition, when the service server 30 receives the error code from the direct access management server 40 as a new remote recording reservation response <D-17> (FIG. 9: Step S923), the service server 30 receives this error code as a new remote recording reservation response <D-17. -18> is transmitted to the mobile phone 10 (FIG. 9: Step S924). The subsequent processing in the service server 30 and the mobile phone 10 is as described above.

[3-4.携帯電話からのトンネリングを利用したリモート録画予約:図32]   [3-4. Remote recording reservation using tunneling from mobile phone: Fig. 32]

次に、携帯電話10が、サービスサーバ30を介さずにダイレクトアクセス管理サーバ40のXMPPサーバ43によるトンネリングを利用してDVR20に対してリモート録画予約を行う場合の動作を説明する。図32はサービスサーバ30を介さないで携帯電話10からXMPPサーバ43によるトンネリングを利用してDVR20に対してリモート録画予約を行う場合の情報の流れを示すシーケンス図である。   Next, an operation when the mobile phone 10 makes a remote recording reservation to the DVR 20 using tunneling by the XMPP server 43 of the direct access management server 40 without using the service server 30 will be described. FIG. 32 is a sequence diagram showing the flow of information when making a remote recording reservation for the DVR 20 from the mobile phone 10 using the tunneling by the XMPP server 43 without using the service server 30.

図32に示した携帯電話10、DVR20、サービスサーバ30、ダイレクトアクセス管理サーバ40及びルータ50間の情報の流れで、ダイレクトアクセス開始応答<D-10>までの各装置での処理は図7を用いて説明した流れと同じであるため説明を省略する。   In the flow of information between the mobile phone 10, DVR 20, service server 30, direct access management server 40 and router 50 shown in FIG. 32, the processing in each device up to the direct access start response <D-10> is as shown in FIG. Since the flow is the same as that described with reference to FIG.

携帯電話10が、サービスサーバ30を介さずにXMPPサーバ43によるトンネリングを利用してDVR20に対してリモート録画予約を行う場合とは、ステップS918において携帯ダイレクトフラグがオンであると判断され、更に、ステップS919でサービスサーバ30から携帯電話10に送信される新規リモート録画予約応答<D-13>に、ダイレクトアクセス管理サーバ40がステップS1110で割り当てたトンネリングのためのURIが含まれている場合である。なお、既に説明したように、携帯電話10は、新規リモート録画予約応答<D-13>として受信したダイレクトアクセス用URIにアクセスするだけであるため、ダイレクトアクセス用URIがDVR20に対応するのか、ダイレクトアクセス管理サーバ40のトンネリングに対応するものなのかは、特には判断を行う必要はない。   When the mobile phone 10 performs remote recording reservation for the DVR 20 using tunneling by the XMPP server 43 without going through the service server 30, it is determined in step S918 that the mobile direct flag is on, and This is a case where the new remote recording reservation response <D-13> transmitted from the service server 30 to the mobile phone 10 in step S919 includes the URI for tunneling assigned by the direct access management server 40 in step S1110. . As already explained, since the mobile phone 10 only accesses the direct access URI received as the new remote recording reservation response <D-13>, whether the direct access URI corresponds to the DVR 20 or not. It is not particularly necessary to determine whether the access management server 40 corresponds to tunneling.

まず、携帯電話10は、サービスサーバ30よりダイレクトアクセス用URIを含む新規リモート録画予約応答<D-13>を受信した場合には(図8:ステップS815)、そのダイレクトアクセス用URIに含まれるダイレクトアクセス管理サーバ40のアドレスにアクセスして、ダイレクトアクセス用URIと録画予約番組情報とを含む新規リモート録画予約要求<D-55>をダイレクトアクセス管理サーバ40に送信する(図8:ステップS816)。   First, when the mobile phone 10 receives a new remote recording reservation response <D-13> including the direct access URI from the service server 30 (FIG. 8: step S815), the direct access included in the direct access URI The address of the access management server 40 is accessed, and a new remote recording reservation request <D-55> including the URI for direct access and the recording reservation program information is transmitted to the direct access management server 40 (FIG. 8: Step S816).

ダイレクトアクセス管理サーバ40は、携帯電話10から新規リモート録画予約要求<D-55>を受信すると(図11:ステップS1112)、この新規リモート録画予約要求<D-55>に含まれるダイレクトアクセス用URIをチェックし(図11:ステップS1113)、不正なダイレクトアクセス用URIである場合は、不正URIである旨を示すエラーコードを新規リモート録画予約応答<D-57R>として携帯電話10に送信する(図11:ステップS1114)。正当なダイレクトアクセス用URIであれば、ダイレクトアクセス管理サーバ40は、XMPPサーバ43を通じて、録画予約番組情報を含む新規リモート録画予約要求<D-16>をDVR20に送信する(図11:ステップS1115)。この際、DVR20でダイレクトアクセス管理サーバ40内のXMPPサーバ43を介したトンネリングによるアクセスであることがわかるように、例えば、ダイレクトアクセス用URIのアドレス部分をすべて"0"で埋める。   When the direct access management server 40 receives the new remote recording reservation request <D-55> from the mobile phone 10 (FIG. 11: step S1112), the direct access URI included in the new remote recording reservation request <D-55> (FIG. 11: Step S1113), if it is an illegal direct access URI, an error code indicating that it is an illegal URI is sent to the mobile phone 10 as a new remote recording reservation response <D-57R> ( FIG. 11: Step S1114). If it is a valid direct access URI, the direct access management server 40 transmits a new remote recording reservation request <D-16> including recording reservation program information to the DVR 20 through the XMPP server 43 (FIG. 11: step S1115). . At this time, for example, the address portion of the direct access URI is filled with “0” so that the DVR 20 can recognize that the access is by tunneling via the XMPP server 43 in the direct access management server 40.

DVR20は、ダイレクトアクセス管理サーバ40より、新規リモート録画予約要求<D-16>を受信すると(図12:ステップS1210)、この新規リモート録画予約要求<D-16>に含まれるダイレクトアクセス用URIの正当性チェックを行い(図12:ステップS1211)、不正なURIであるなら、その旨を示すエラーコードを新規リモート録画予約応答<D-16R>としてダイレクトアクセス管理サーバ40に送信する(図12:ステップS1212)。正当なURIである場合には、DVR20は、予約重複番組リストを含む情報を新規リモート録画予約応答<D-16R>としてダイレクトアクセス管理サーバ40に送信する(図12:ステップS1213)。   When the DVR 20 receives the new remote recording reservation request <D-16> from the direct access management server 40 (FIG. 12: step S1210), the DVR 20 includes the URI for direct access included in the new remote recording reservation request <D-16>. A validity check is performed (FIG. 12: Step S1211), and if the URI is invalid, an error code indicating that is sent to the direct access management server 40 as a new remote recording reservation response <D-16R> (FIG. 12: Step S1212). If the URI is valid, the DVR 20 transmits information including the reserved duplicate program list to the direct access management server 40 as a new remote recording reservation response <D-16R> (FIG. 12: step S1213).

ダイレクトアクセス管理サーバ40は、DVR20から予約重複番組リストを含む新規リモート録画予約応答<D-16R>を受信すると(図11:ステップS1116)、この予約重複番組リストを含む新規リモート録画予約応答<D-57R>を携帯電話10に送信する(図11:ステップS1117)。また、ダイレクトアクセス管理サーバ40は、DVR20からエラーコードを新規リモート録画予約応答<D-16R>として受信した場合には、このエラーコードを新規リモート録画予約応答<D-57R>として携帯電話10へ送信する。その後の携帯電話10における処理は上述した通りである。   When the direct access management server 40 receives the new remote recording reservation response <D-16R> including the reserved duplicate program list from the DVR 20 (FIG. 11: step S1116), the new remote recording reservation response including the reserved duplicate program list <D -57R> is transmitted to the mobile phone 10 (FIG. 11: step S1117). In addition, when the direct access management server 40 receives an error code from the DVR 20 as a new remote recording reservation response <D-16R>, the error code is sent to the mobile phone 10 as a new remote recording reservation response <D-57R>. Send. The subsequent processing in the mobile phone 10 is as described above.

以上で説明したように、携帯電話10は、DVR20へのダイレクトなアクセスのみならず、サービスサーバ30による代理アクセス、ダイレクトアクセス管理サーバ40によるXMPPを用いたトンネリングなどを利用して、DVR20への録画予約処理を実行することが可能である。   As described above, the mobile phone 10 uses not only direct access to the DVR 20 but also proxy access by the service server 30 and tunneling using XMPP by the direct access management server 40 to record to the DVR 20. It is possible to execute a reservation process.

[4.コンテンツ取得]   [4. Content acquisition]

次に、携帯電話10が、DVR20からコンテンツを取得する場合の動作を説明する。図15は携帯電話10からのDVR20へのダイレクトアクセスによるコンテンツ取得時の情報の流れを示すシーケンス図である。図17はコンテンツ取得時の携帯電話10の動作を示すフローチャート、図18および図19はコンテンツ取得時のサービスサーバ30の動作を示すフローチャートである。   Next, an operation when the mobile phone 10 acquires content from the DVR 20 will be described. FIG. 15 is a sequence diagram showing a flow of information at the time of content acquisition by direct access from the mobile phone 10 to the DVR 20. FIG. 17 is a flowchart showing the operation of the mobile phone 10 at the time of content acquisition, and FIGS. 18 and 19 are flowcharts showing the operation of the service server 30 at the time of content acquisition.

携帯電話10のユーザから、コンテンツ取得サービスを受信するために、ダイレクトアクセス利用開始の指示が携帯電話10に与えられると(図17:ステップS1701)、携帯電話10は自身に予め設定されているユーザ識別情報を含む被制御機器リスト取得要求<D-1>をサービスサーバ30に送信する(図17:ステップS1702)。   When an instruction to start using direct access is given to the mobile phone 10 in order to receive the content acquisition service from the user of the mobile phone 10 (FIG. 17: Step S1701), the mobile phone 10 is a user preset in itself A controlled device list acquisition request <D-1> including identification information is transmitted to the service server 30 (FIG. 17: step S1702).

サービスサーバ30は、携帯電話10より被制御機器リスト取得要求<D-1>を受信すると(図9:ステップS901)、この被制御機器リスト取得要求<D-1>に含まれるユーザ識別情報に対応する制御機器・サービス管理IDが記憶部31に記憶されているかどうかを判定する(図9:ステップS902)。ユーザ識別情報に対応する制御機器・サービス管理IDが記憶部31に記憶されていない場合、サービスサーバ30は、サービス対象の被制御機器の登録が必要であることを示すエラーコードを被制御機器リスト取得応答<D-3>として携帯電話10に送信する(図9:ステップS903)。ユーザ識別情報に対応する制御機器・サービス管理IDが記憶部31に記憶されている場合は、ダイレクトアクセス管理サーバ40に管理されている制御機器・サービス管理IDに関連付けられている被制御機器の一覧を取得するために、サービスサーバ30は、サービスを識別する情報であるServiceIDおよび制御機器・サービス管理IDを含む被制御機器リスト取得要求<D-2>をダイレクトアクセス管理サーバ40に送信する(図9:ステップS904)。   When the service server 30 receives the controlled device list acquisition request <D-1> from the mobile phone 10 (FIG. 9: Step S901), the service server 30 includes the user identification information included in the controlled device list acquisition request <D-1>. It is determined whether or not the corresponding control device / service management ID is stored in the storage unit 31 (FIG. 9: Step S902). If the control device / service management ID corresponding to the user identification information is not stored in the storage unit 31, the service server 30 displays an error code indicating that registration of the controlled device to be serviced is required. An acquisition response <D-3> is transmitted to the mobile phone 10 (FIG. 9: Step S903). When the control device / service management ID corresponding to the user identification information is stored in the storage unit 31, a list of controlled devices associated with the control device / service management ID managed by the direct access management server 40 The service server 30 transmits a controlled device list acquisition request <D-2> including a Service ID that is information for identifying a service and a control device / service management ID to the direct access management server 40 (see FIG. 9: Step S904).

ダイレクトアクセス管理サーバ40は、サービスサーバ30からの被制御機器リスト取得要求<D-2>を受信すると(図10:ステップS1012)、この被制御機器リスト取得要求<D-2>に含まれるServiceIDおよび制御機器・サービス管理IDの組み合わせが記憶部41に記憶されているものと一致するかどうかを判定し(図10:ステップS1013)、もし記憶されていない場合には、未登録であることを示すエラーコードを被制御機器リスト取得応答<D-2R>としてサービスサーバ30に送信する(図10:ステップS1014)。また、被制御機器リスト取得要求<D-2>に含まれるServiceIDおよび制御機器・サービス管理IDの組み合わせが記憶部41に記憶されていることが判定された場合、ダイレクトアクセス管理サーバ40は、記憶部41に記憶されている制御機器・サービス管理IDと被制御機器管理IDとの紐付け内容に従って、携帯電話10から制御可能な被制御機器の被制御機器管理IDに対して改めて振り直した番号と被制御機器の機器認証情報に含まれる機器名称等からなる一覧を被制御機器リストとして生成し、この被制御機器リストを制御機器・サービス管理IDと対応付けて記憶部41に保存するとともに、この被制御機器リストを含む被制御機器リスト取得応答<D-2R>をサービスサーバ30に送信する(図10:ステップS1015)。   When the direct access management server 40 receives the controlled device list acquisition request <D-2> from the service server 30 (FIG. 10: step S1012), the ServiceID included in the controlled device list acquisition request <D-2> And whether the combination of the control device / service management ID matches the one stored in the storage unit 41 (FIG. 10: step S1013). The error code shown is transmitted to the service server 30 as a controlled device list acquisition response <D-2R> (FIG. 10: step S1014). If it is determined that the combination of ServiceID and control device / service management ID included in the controlled device list acquisition request <D-2> is stored in the storage unit 41, the direct access management server 40 stores Number re-assigned to the controlled device management ID of the controlled device that can be controlled from the mobile phone 10 according to the content of the control device / service management ID stored in the unit 41 and the controlled device management ID And a list of device names included in the device authentication information of the controlled device is generated as a controlled device list, and this controlled device list is stored in the storage unit 41 in association with the control device / service management ID, A controlled device list acquisition response <D-2R> including this controlled device list is transmitted to the service server 30 (FIG. 10: step S1015).

サービスサーバ30は、ダイレクトアクセス管理サーバ40から未登録であることを示すエラーコードを被制御機器リスト取得応答<D-2R>として受信した場合は (図9:ステップS905)、被制御機器の登録が必要であることを示すエラーコードを被制御機器リスト取得応答<D-3>として携帯電話10に送信する(図9:ステップS906)。また、サービスサーバ30が、ダイレクトアクセス管理サーバ40から被制御機器リストを含む被制御機器リスト取得応答<D-2R>を受信した場合は(図9:ステップS907)、この被制御機器リストを含む被制御機器リスト取得応答<D-3>を携帯電話10に送信する(図9:ステップS908)。   If the service server 30 receives an unregistered error code from the direct access management server 40 as a controlled device list acquisition response <D-2R> (FIG. 9: Step S905), the controlled device registration Is transmitted to the mobile phone 10 as a controlled device list acquisition response <D-3> (FIG. 9: step S906). When the service server 30 receives the controlled device list acquisition response <D-2R> including the controlled device list from the direct access management server 40 (FIG. 9: step S907), the controlled device list is included. A controlled device list acquisition response <D-3> is transmitted to the mobile phone 10 (FIG. 9: Step S908).

携帯電話10は、サービスサーバ30よりエラーコードを被制御機器リスト取得応答<D-3>として受信した場合(図17:ステップS1703)、被制御機器の登録が必要であることを示すエラーメッセージを、表示部を通じてユーザに表示する(図17:ステップS1704)。また、携帯電話10は、被制御機器リストを含む被制御機器リスト取得応答<D-3>を受信した場合は(図17:ステップS1705)、その被制御機器リストに複数の被制御機器の番号が存在するかどうかを判定する(図17:ステップS1706)。複数の被制御機器の番号が存在する場合には、携帯電話10は、その被制御機器リストの内容を表示部に表示して(図17:ステップS1707)、ユーザにその中から1つの被制御機器の番号を選択させ(図17:ステップS1708)、その選択された被制御機器の番号を記憶部11に保存する(図17:ステップS1709, 1710)。複数の被制御機器が存在しない場合には、その一つの被制御機器の番号を記憶部11に保存する(図17:ステップS1711,S1710)。   When the mobile phone 10 receives the error code from the service server 30 as the controlled device list acquisition response <D-3> (FIG. 17: step S1703), the mobile phone 10 displays an error message indicating that the controlled device needs to be registered. Then, it is displayed to the user through the display unit (FIG. 17: step S1704). In addition, when the mobile phone 10 receives the controlled device list acquisition response <D-3> including the controlled device list (FIG. 17: Step S1705), the number of the controlled devices in the controlled device list Is determined (FIG. 17: step S1706). When there are a plurality of controlled device numbers, the mobile phone 10 displays the contents of the controlled device list on the display unit (FIG. 17: step S1707), and the user controls one controlled device from among them. The number of the device is selected (FIG. 17: step S1708), and the selected number of the controlled device is stored in the storage unit 11 (FIG. 17: steps S1709 and 1710). If a plurality of controlled devices do not exist, the number of the one controlled device is stored in the storage unit 11 (FIG. 17: steps S1711, S1710).

次に、携帯電話10は、自身に予め設定された携帯ダイレクトフラグを基に、DVR20のコンテンツ取得サービスに携帯電話10からダイレクトにアクセスするか、サービスサーバ30を介してアクセスするかを判断して処理を分岐する(図17:ステップS1712)。   Next, the mobile phone 10 determines whether to access the content acquisition service of the DVR 20 directly from the mobile phone 10 or via the service server 30 based on the mobile direct flag preset in itself. The process branches (FIG. 17: step S1712).

携帯電話10からダイレクトにDVR20のコンテンツ取得サービスにアクセスする場合、携帯電話10は、ユーザ識別情報、検索条件、被制御機器の番号、携帯ダイレクトフラグ(オン)を含むコンテンツ検索要求<D-44>をサービスサーバ30に送信する(図17:ステップS1713)。また、携帯電話10がサービスサーバ30を介してコンテンツを取得する場合、携帯電話10は、ユーザ識別情報、検索条件、被制御機器の番号、携帯ダイレクトフラグ(オフ)を含むコンテンツ検索要求<D-44>をサービスサーバ30に送信する(図17:ステップS1724)。ここで、検索条件とは、コンテンツを検索する条件であり、例えば、コンテンツが静止画データであるという条件や、コンテンツが録画済の映像データであるなどを指定する情報である。検索条件として日付、データサイズなどの項目を加えて、更に詳細な検索条件を設定できるようにしてもよい。   When accessing the content acquisition service of the DVR 20 directly from the mobile phone 10, the mobile phone 10 sends a content search request including user identification information, search conditions, controlled device number, mobile direct flag (on) <D-44> Is transmitted to the service server 30 (FIG. 17: step S1713). Further, when the mobile phone 10 acquires content via the service server 30, the mobile phone 10 sends a content search request including user identification information, search conditions, controlled device number, mobile direct flag (off) <D- 44> is transmitted to the service server 30 (FIG. 17: step S1724). Here, the search condition is a condition for searching for content. For example, the search condition is information that specifies that the content is still image data or that the content is recorded video data. More detailed search conditions may be set by adding items such as date and data size as search conditions.

サービスサーバ30は、携帯電話10から、コンテンツ検索要求<D-44>を受信すると(図18:ステップS1801)、利用可能なXMPPセッションIDが記憶部31に記憶されているか否かを調べる(図18:ステップS1802)。利用可能なXMPPセッションIDが既に記憶部31に記憶されていれば、サービスサーバ30はコンテンツ検索要求<D-44>に含まれる携帯ダイレクトフラグの値をServiceID、制御機器・サービス管理ID、被制御機器の番号と対応付けて記憶部31に保存する(図18:ステップS1803)。利用可能なXMPPセッションIDが記憶されていない場合には、サービスサーバ30は、XMPPサーバ43とXMPPセッションを確立するために、ServiceID、制御機器・サービス管理ID、被制御機器の番号を含むXMPPログイン要求<D-5>をダイレクトアクセス管理サーバ40に送信する(図18:ステップS1804)。   Upon receiving the content search request <D-44> from the mobile phone 10 (FIG. 18: step S1801), the service server 30 checks whether an available XMPP session ID is stored in the storage unit 31 (FIG. 18: Step S1802). If an available XMPP session ID is already stored in the storage unit 31, the service server 30 sets the value of the mobile direct flag included in the content search request <D-44> to ServiceID, control device / service management ID, controlled The information is stored in the storage unit 31 in association with the device number (FIG. 18: step S1803). If an available XMPP session ID is not stored, the service server 30 establishes an XMPP session with the XMPP server 43, and includes an XMPP login that includes the ServiceID, control device / service management ID, and controlled device number. The request <D-5> is transmitted to the direct access management server 40 (FIG. 18: Step S1804).

ダイレクトアクセス管理サーバ40は、サービスサーバ30からのXMPPログイン要求<D-5>を受信すると(図10:ステップS1016)、このXMPPログイン要求<D-5>に含まれるServiceID、制御機器・サービス管理ID、および被制御機器の番号の組み合わせが記憶部41に記憶されているかどうかを判定する(図10:ステップS1017)。記憶されていない場合、ダイレクトアクセス管理サーバ40は、対応するサービス対象の被制御機器が存在しないことを示すエラーコードをXMPPログイン応答<D-5R>としてサービスサーバ30に送信する(図10:ステップS1018)。また、対応するサービス対象の被制御機器が記憶部41に記憶されている場合は、ダイレクトアクセス管理サーバ40は、XMPPセッションIDの生成および保存を行い(図10:ステップS1019)、このXMPPセッションIDを含むXMPPログイン応答<D-5R>をサービスサーバ30に送信する(図10:ステップS1020)。   When the direct access management server 40 receives the XMPP login request <D-5> from the service server 30 (FIG. 10: Step S1016), the Service ID, control device / service management included in the XMPP login request <D-5> It is determined whether the combination of the ID and the number of the controlled device is stored in the storage unit 41 (FIG. 10: Step S1017). If not stored, the direct access management server 40 sends an error code indicating that the corresponding controlled device to be serviced does not exist as an XMPP login response <D-5R> to the service server 30 (FIG. 10: Step S1018). If the corresponding controlled device to be serviced is stored in the storage unit 41, the direct access management server 40 generates and stores an XMPP session ID (FIG. 10: step S1019), and this XMPP session ID An XMPP login response <D-5R> including is transmitted to the service server 30 (FIG. 10: step S1020).

サービスサーバ30は、ダイレクトアクセス管理サーバ40からXMPPセッションIDを含むXMPPログイン応答<D-5R>を受信すると(図18:ステップS1805)、これに含まれているXMPPセッションIDおよびステップS1801のコンテンツ検索要求<D-44>に含まれる携帯ダイレクトフラグの値をServiceID、制御機器・サービス管理ID、被制御機器リスト番号と対応付けて記憶部31に保存する(図18:ステップS1806)。   When the service server 30 receives the XMPP login response <D-5R> including the XMPP session ID from the direct access management server 40 (FIG. 18: step S1805), the XMPP session ID included therein and the content search in step S1801 The value of the portable direct flag included in the request <D-44> is stored in the storage unit 31 in association with the Service ID, the control device / service management ID, and the controlled device list number (FIG. 18: Step S1806).

ステップS1803またはステップS1806の携帯ダイレクトフラグの保存後、サービスサーバ30はServiceID、制御機器・サービス管理ID、サービスURN、XMPPセッションIDを含むダイレクトアクセス開始要求<D-6>をダイレクトアクセス管理サーバ40に送信する(図18:ステップS1807)。ここでは、携帯電話10からDVR20に対してコンテンツ取得を行おうとしているので、サービスURNはコンテンツ取得サービスを指定する情報となる。   After storing the portable direct flag in step S1803 or step S1806, the service server 30 sends a direct access start request <D-6> including the Service ID, control device / service management ID, service URN, and XMPP session ID to the direct access management server 40. Transmit (FIG. 18: Step S1807). Here, since the mobile phone 10 is about to acquire content from the DVR 20, the service URN is information for designating the content acquisition service.

ダイレクトアクセス管理サーバ40は、サービスサーバ30からのダイレクトアクセス開始要求<D-6>を受信すると(図11:ステップS1101)、このダイレクトアクセス開始要求<D-6>に含まれているServiceIDと制御機器・サービス管理IDの組み合わせが記憶部41に記憶されているかどうかを判定し(図11:ステップS1102)、記憶されていない場合、被制御機器の登録が必要であることを示すエラーコードをダイレクトアクセス開始応答<D-10>としてサービスサーバ30に送信する(図11:ステップS1103)。ダイレクトアクセス開始要求<D-6>に含まれているServiceIDと制御機器・サービス管理IDの組み合わせが記憶部41に記憶されている場合には、ダイレクトアクセス管理サーバ40は、ダイレクトアクセス開始要求<D-6>に含まれているXMPPセッションIDが、ダイレクトアクセス開始要求<D-6>に含まれているServiceIDと制御機器・サービス管理IDとの組み合わせに対応付けられて記憶部41に記憶されているかどうかを判定する(図11:ステップS1104)。それが記憶されていない場合、ダイレクトアクセス管理サーバ40は、不正XMPPセッションIDであることを示すエラーコードをダイレクトアクセス開始応答<D-10>としてサービスサーバ30に送信する(図11:ステップS1105)。ダイレクトアクセス開始要求<D-6>に含まれているXMPPセッションIDが、ダイレクトアクセス開始要求<D-6>に含まれているServiceIDと制御機器・サービス管理IDとの組み合わせに対応付けられて記憶部41に記憶されている場合は、ダイレクトアクセス管理サーバ40は、ダイレクトアクセス開始要求<D-6>で指定されているサービスURNの指定情報を含むダイレクトアクセス用URI取得要求<D-7>を、ダイレクトアクセス管理サーバ40内のXMPPサーバ43を介して、DVR20に送信する(図11:ステップS1106)。   Upon receiving the direct access start request <D-6> from the service server 30 (FIG. 11: Step S1101), the direct access management server 40 controls the ServiceID included in this direct access start request <D-6>. It is determined whether the combination of device / service management ID is stored in the storage unit 41 (FIG. 11: Step S1102), and if it is not stored, an error code indicating that registration of the controlled device is required is directly performed. The access start response <D-10> is transmitted to the service server 30 (FIG. 11: Step S1103). When the combination of ServiceID and control device / service management ID included in the direct access start request <D-6> is stored in the storage unit 41, the direct access management server 40 sends the direct access start request <D XMPP session ID included in -6> is stored in the storage unit 41 in association with the combination of Service ID and control device / service management ID included in the direct access start request <D-6>. It is determined whether or not (FIG. 11: step S1104). If it is not stored, the direct access management server 40 transmits an error code indicating an unauthorized XMPP session ID to the service server 30 as a direct access start response <D-10> (FIG. 11: step S1105). . The XMPP session ID included in the direct access start request <D-6> is stored in association with the combination of the Service ID and control device / service management ID included in the direct access start request <D-6>. If it is stored in the unit 41, the direct access management server 40 sends a direct access URI acquisition request <D-7> including the specification information of the service URN specified in the direct access start request <D-6>. Then, the data is transmitted to the DVR 20 via the XMPP server 43 in the direct access management server 40 (FIG. 11: Step S1106).

サービスサーバ30は、ダイレクトアクセス管理サーバ40より、不正XMPPセッションIDであることを示すエラーコードをダイレクトアクセス開始応答<D-10>として受信すると(図18:ステップS1808)、ステップS1804に戻って、再びXMPPログイン要求<D-5>をダイレクトアクセス管理サーバ40に送信して、再度XMPPセッションの確立を行う。   When the service server 30 receives an error code indicating an illegal XMPP session ID from the direct access management server 40 as a direct access start response <D-10> (FIG. 18: step S1808), the service server 30 returns to step S1804, The XMPP login request <D-5> is transmitted again to the direct access management server 40, and the XMPP session is established again.

DVR20は、ダイレクトアクセス管理サーバ40より、サービスURNの指定情報を含むダイレクトアクセス用URI取得要求<D-7>を受信したとき(図12:ステップS1201)、ダイレクトアクセス用のローカルポートの割当てを行う(図12:ステップS1202)。次に、DVR20は、DVR20にあらかじめ割り当てられたローカルIPアドレスおよびダイレクトアクセス用のローカルポートのポート番号を含む、ダイレクトアクセス用ポートのNAT設定要求<D-8>をルータ50に送信して、ローカルIPアドレス及びポート番号に、インターネットからアクセス可能なグローバルIPアドレスおよびポート番号をマッピングすることをルータ50に要求する(図12:ステップS1203)。   When the DVR 20 receives a direct access URI acquisition request <D-7> including the service URN specification information from the direct access management server 40 (FIG. 12: step S1201), the DVR 20 allocates a local port for direct access. (FIG. 12: Step S1202). Next, the DVR 20 sends a direct access port NAT setting request <D-8> including the local IP address assigned in advance to the DVR 20 and the port number of the local port for direct access to the router 50 to The router 50 is requested to map the global IP address and port number accessible from the Internet to the IP address and port number (FIG. 12: step S1203).

DVR20は、ステップS1203のダイレクトアクセス用ポートのNAT設定要求<D-8>に対して、ルータ50より、グローバルIPアドレスおよびポート番号の取得エラーをダイレクトアクセス用ポートのNAT設定応答<D-8R>として受信した場合(図12:ステップS1204)、ステップS1201にて取得したサービスURNの指定情報に基づき、そのサービスURNがトンネリング可能なものであるかどうかを判定する(図12:ステップS1205)。DVR20は、ダイレクトアクセス用URI取得要求<D-7>に含まれているサービスURNがトンネリング可能なサービスURNであることを判定した場合には、トンネリングを指示するエラーコードをダイレクトアクセス用URI取得応答<D-9>としてダイレクトアクセス管理サーバ40に送信する(図12:ステップS1206)。ダイレクトアクセス用URI取得要求<D-7>に含まれているサービスURNの指定情報がトンネリング可能なサービスURNでない場合には、DVR20は、空きポート獲得失敗を示すエラーコードをダイレクトアクセス用URI取得応答<D-9>としてダイレクトアクセス管理サーバ40に送信する(図12:ステップS1207)。ここで、コンテンツ取得サービスはリモート録画予約のサービスに比べて転送されるデータ量が大きいので、トンネリング不可のサービスURNとしているが、これに限定される必要はない。トンネリングの可否に関しては、サービス提供者が、ダイレクトアクセス管理サーバ40の能力に応じて適宜設定することが可能である。   In response to the direct access port NAT setting request <D-8> in step S1203, the DVR 20 sends a global IP address and port number acquisition error from the router 50 to the direct access port NAT setting response <D-8R>. (FIG. 12: step S1204), based on the service URN designation information acquired in step S1201, it is determined whether or not the service URN can be tunneled (FIG. 12: step S1205). If the DVR 20 determines that the service URN included in the direct access URI acquisition request <D-7> is a tunnelable service URN, the DVR 20 sends an error code indicating tunneling to the direct access URI acquisition response. It is transmitted to the direct access management server 40 as <D-9> (FIG. 12: Step S1206). If the specified service URN information included in the direct access URI acquisition request <D-7> is not a tunnelable service URN, the DVR 20 sends an error code indicating failure to acquire a free port as a direct access URI acquisition response. It is transmitted to the direct access management server 40 as <D-9> (FIG. 12: Step S1207). Here, since the amount of data transferred in the content acquisition service is larger than that in the remote recording reservation service, the service URN cannot be tunneled. However, the content acquisition service is not limited to this. Whether or not tunneling is possible can be appropriately set by the service provider according to the capability of the direct access management server 40.

また、DVR20は、ダイレクトアクセス用ポートのNAT設定要求<D-8>に対して、ルータ50より、DVR20のローカルIPアドレス及びポート番号に対応付けられたグローバルIPアドレスおよびポート番号をNAT設定応答<D-8R>として受信した場合には(図12:ステップS1208)、これらのグローバルIPアドレスおよびポート番号を用いてダイレクトアクセス用URIリストを作成し、このダイレクトアクセス用URIリストをダイレクトアクセス用URI取得応答<D-9>としてダイレクトアクセス管理サーバ40に送信する(図12:ステップS1209)。   In response to the NAT setting request <D-8> for the direct access port, the DVR 20 sends the global IP address and port number associated with the local IP address and port number of the DVR 20 from the router 50 to the NAT setting response < If it is received as D-8R> (Figure 12: Step S1208), a direct access URI list is created using these global IP addresses and port numbers, and this direct access URI list is obtained. The response <D-9> is transmitted to the direct access management server 40 (FIG. 12: step S1209).

ダイレクトアクセス管理サーバ40のXMPPサーバ43は、ダイレクトアクセス用URIリストをダイレクトアクセス用URI取得応答<D-9>として受信すると(図11:ステップS1107)、そのダイレクトアクセス用URIリストをダイレクトアクセス開始応答<D-10>としてサービスサーバ30に送信する(図11:ステップS1111)。   When the XMPP server 43 of the direct access management server 40 receives the direct access URI list as a direct access URI acquisition response <D-9> (FIG. 11: step S1107), the direct access URI list is sent as a direct access start response. It is transmitted to the service server 30 as <D-10> (FIG. 11: Step S1111).

また、ダイレクトアクセス管理サーバ40は、トンネリングによるコンテンツ取得を指示するエラーコードをダイレクトアクセス用URI取得応答<D-9>として受信した場合には(図11:ステップS1109)、ダイレクトアクセス管理サーバ40内トンネリング用ポートの割当てを行い(図11:ステップS1110)、この割り当てたダイレクトアクセス管理サーバ40内トンネリング用ポートのポート番号とダイレクトアクセス管理サーバ40のグローバルIPアドレスを用いてダイレクトアクセス用URIリストを作成し、このダイレクトアクセス用URIリストを含むダイレクトアクセス開始応答<D-10>をサービスサーバ30へ送信する(図11:ステップS1111)。   When the direct access management server 40 receives an error code instructing content acquisition by tunneling as a direct access URI acquisition response <D-9> (FIG. 11: step S1109), the direct access management server 40 Assign a tunneling port (Figure 11: Step S1110), and create a direct access URI list using the assigned port number of the tunneling port in the direct access management server 40 and the global IP address of the direct access management server 40. Then, a direct access start response <D-10> including this direct access URI list is transmitted to the service server 30 (FIG. 11: step S1111).

サービスサーバ30は、ダイレクトアクセス管理サーバ40からのダイレクトアクセス開始応答<D-10>を受信すると(図18:ステップS1809)、携帯ダイレクトフラグがオンかオフかを判断する(図18:ステップS1810)。携帯ダイレクトフラグがオンである場合には、サービスサーバ30は、携帯電話10から直接ダイレクトアクセス用URIで指定される機器にアクセスするために、ダイレクトアクセス用URIを含むコンテンツ検索応答<D-20>を携帯電話10に送信する(図18:ステップS1811)。携帯ダイレクトフラグがオフである場合には、サービスサーバ30は、ダイレクトアクセス用URIに対して、ダイレクトアクセス用URIと、携帯電話10よりコンテンツ検索要求<D-44>によって取得した検索条件とを含むコンテンツ検索要求<D-19>をDVR20に送信する(図18:ステップS1812)。   Upon receiving the direct access start response <D-10> from the direct access management server 40 (FIG. 18: Step S1809), the service server 30 determines whether the mobile direct flag is on or off (FIG. 18: Step S1810). . When the mobile direct flag is on, the service server 30 directly accesses the device specified by the direct access URI from the mobile phone 10 to search the content search response including the direct access URI <D-20> Is transmitted to the mobile phone 10 (FIG. 18: step S1811). When the mobile direct flag is off, the service server 30 includes the direct access URI and the search condition acquired by the content search request <D-44> from the mobile phone 10 with respect to the direct access URI. The content search request <D-19> is transmitted to the DVR 20 (FIG. 18: Step S1812).

以下において、携帯電話10がDVR20に対してコンテンツ取得要求を行う際の、いくつかの具体的な例を説明する。   Hereinafter, some specific examples when the mobile phone 10 makes a content acquisition request to the DVR 20 will be described.

[4-1.携帯電話10からダイレクトにアクセス:図15]   [4-1. Direct access from mobile phone 10: Fig. 15]

携帯電話10が、サービスサーバ30を介さずにダイレクトにDVR20からコンテンツ取得を行う場合の動作を説明する。図15は携帯電話10からダイレクトにDVR20からコンテンツ取得を行う場合の情報の流れを示すシーケンス図である。   The operation when the mobile phone 10 directly acquires content from the DVR 20 without going through the service server 30 will be described. FIG. 15 is a sequence diagram showing the flow of information when content is acquired directly from the DVR 20 from the mobile phone 10.

図15に示した携帯電話10、DVR20、サービスサーバ30、ダイレクトアクセス管理サーバ40及びルータ50間の情報の流れで、ダイレクトアクセス開始応答<D-10>までの各装置での処理は、上述した通りである。   In the flow of information between the mobile phone 10, DVR 20, service server 30, direct access management server 40 and router 50 shown in FIG. 15, the processing in each device up to the direct access start response <D-10> has been described above. Street.

なお、携帯電話10からダイレクトにDVR20に対してコンテンツ取得を行う場合とは、ステップS1810において携帯ダイレクトフラグがオンであると判断され、更に、ダイレクトアクセス管理サーバ40におけるトンネリングを行わない場合である。   The case where content is directly acquired from the mobile phone 10 to the DVR 20 is a case where it is determined in step S1810 that the mobile direct flag is on, and further, tunneling in the direct access management server 40 is not performed.

まず、携帯電話10からダイレクトにDVR20に対してコンテンツの検索を要求し、検索条件に合致するコンテンツのタイトルリストを取得する流れについて説明する。   First, a flow of requesting content search directly from the mobile phone 10 to the DVR 20 and acquiring a title list of content that matches the search condition will be described.

携帯電話10は、サービスサーバ30よりダイレクトアクセス用URIを含むコンテンツ検索応答<D-20>を受信すると(図17:ステップS1714)、そのダイレクトアクセス用URIに含まれるDVR20のアドレスにアクセスして、ダイレクトアクセス用URIおよび検索条件を含むコンテンツ検索要求<D-29>をDVR20に送信する(図17:ステップS1715)。   When the mobile phone 10 receives the content search response <D-20> including the direct access URI from the service server 30 (FIG. 17: Step S1714), the mobile phone 10 accesses the address of the DVR 20 included in the direct access URI, A content search request <D-29> including the direct access URI and search conditions is transmitted to the DVR 20 (FIG. 17: step S1715).

DVR20は、携帯電話10より、ダイレクトアクセス用URIおよび検索条件を含むコンテンツ検索要求<D-29>を受信すると(図12:ステップS1214)、このコンテンツ検索要求<D-29>に含まれるダイレクトアクセス用URIの正当性チェックを行い(図12:ステップS1215)、不正なURIであるなら、不正なURIであることを示すエラーコードをコンテンツ検索応答<D-29R>として携帯電話10に送信する(図12:ステップS1216)。正当なURIである場合は、DVR20は、コンテンツ検索要求<D-29>内の検索条件に従って記憶部21の中から検索条件に合致するコンテンツを検索して、検索結果のコンテンツのタイトルリストとLocal URIリストを生成する。その後、DVR20は、生成したタイトルリストとLocal URIリストとをコンテンツ検索応答<D-29R>として携帯電話10に送信する(図12:ステップS1217)。ここで、Lacal URIとは、コンテンツのローカルな保存場所を示す情報(URI)である。例えば、DVR20内でローカルな指定方法で特定される記憶部21内で保存場所を示す情報であったり、DVR20が接続されている家庭内のネットワークでのローカルなアドレスで特定される家庭内ネットワーク内での保存場所を指し示す情報などである。   When the DVR 20 receives the content search request <D-29> including the URI for direct access and the search condition from the mobile phone 10 (FIG. 12: Step S1214), the direct access included in the content search request <D-29> The URI is checked for validity (Fig. 12: Step S1215) .If the URI is invalid, an error code indicating that it is invalid is sent to the mobile phone 10 as a content search response <D-29R> ( FIG. 12: Step S1216). If the URI is valid, the DVR 20 searches the storage unit 21 for content that matches the search condition according to the search condition in the content search request <D-29>, and searches the title list of the search result content and Local Generate a URI list. Thereafter, the DVR 20 transmits the generated title list and Local URI list to the mobile phone 10 as a content search response <D-29R> (FIG. 12: step S1217). Here, the Lacal URI is information (URI) indicating a local storage location of content. For example, information indicating a storage location in the storage unit 21 specified by a local designation method in the DVR 20, or in a home network specified by a local address in a home network to which the DVR 20 is connected Information indicating the storage location in

携帯電話10は、DVR20から不正なURIであることを示すエラーコードをコンテンツ検索応答<D-29R>として受信すると(図17:ステップS1722)、ダイレクトアクセスの失敗を示すメッセージを表示部を通してユーザに表示する(図17:ステップS1723)。   When the mobile phone 10 receives an error code indicating that it is an invalid URI from the DVR 20 as a content search response <D-29R> (FIG. 17: step S1722), a message indicating a direct access failure is sent to the user through the display unit. It is displayed (FIG. 17: Step S1723).

また、携帯電話10は、DVR20から、コンテンツのタイトルリスト、Local URIリストを含むコンテンツ検索応答<D-29R>を受信した場合には(図17:ステップS1716)、コンテンツ取得のための処理に進む。   Further, when the mobile phone 10 receives a content search response <D-29R> including a content title list and a Local URI list from the DVR 20 (FIG. 17: step S1716), the mobile phone 10 proceeds to processing for content acquisition. .

次に、携帯電話10がDVR20からダイレクトにコンテンツ取得するための処理の流れについて説明する。   Next, a process flow for the mobile phone 10 to directly acquire content from the DVR 20 will be described.

携帯電話10は、DVR20から、コンテンツのタイトルリスト、Local URIリストを含むコンテンツ検索応答<D-29R>を受信した場合(図17:ステップS1716)、受信したコンテンツのタイトルの一覧を表示部に表示し、表示されたタイトルの中からユーザによって選択されたコンテンツに対応するLocal URIを抽出してコンテンツの取得を要求するためのLocal URIリストを作成する。その後、携帯電話10は、ユーザ識別情報、選択コンテンツのLocal URIリスト、被制御機器の番号を含むURI取得要求<D-30>をサービスサーバ30に送信する(図17:ステップS1717)。ここで、携帯電話10が、再度、DVR20へのダイレクトアクセス用URIを取得するのは、ステップS1716で取得したLocal URIはインターネットから直接アクセスできない場所を指し示しているためである。   When receiving a content search response <D-29R> including a content title list and a Local URI list from the DVR 20 (FIG. 17: Step S1716), the mobile phone 10 displays a list of received content titles on the display unit. Then, a Local URI list for extracting the Local URI corresponding to the content selected by the user from the displayed title and requesting acquisition of the content is created. Thereafter, the mobile phone 10 transmits a URI acquisition request <D-30> including the user identification information, the Local URI list of the selected content, and the number of the controlled device to the service server 30 (FIG. 17: Step S1717). Here, the reason why the mobile phone 10 acquires the URI for direct access to the DVR 20 again is that the Local URI acquired in step S1716 points to a location that cannot be directly accessed from the Internet.

サービスサーバ30は、URI取得要求<D-30>を受信すると(図19:ステップS1901)、利用可能なXMPPセッションIDが記憶部31に記憶されているか否かを調べる(図19:ステップS1902)。利用可能なXMPPセッションIDが記憶されていない場合、サービスサーバ30は、ダイレクトアクセス管理サーバ40に対してXMPPログイン要求<D-5>を送信する(図19:ステップS1903)。サービスサーバ30は、ダイレクトアクセス管理サーバ40からのXMPPログイン応答<D-5R>を受信して(図19:ステップS1904)、受信したXMPPログイン応答<D-5R>に含まれるXMPPセッションIDを記憶部31に保存する(図19:ステップS1905)。その後、サービスサーバ30は、ServiceID、制御機器・サービス管理ID、サービスURN、XMPPセッションID、コンテンツのLocal URIリストを含むダイレクトアクセス開始要求<D-31>をダイレクトアクセス管理サーバ40に送信する(図19:ステップS1906)。また、利用可能なXMPPセッションIDが既に記憶されている場合にも、サービスサーバ30は、ダイレクトアクセス開始要求<D-31>をダイレクトアクセス管理サーバ40に送信する(図19:ステップS1906)。ここでは、携帯電話10からDVR20に対してコンテンツ取得を行おうとしているので、サービスURNはコンテンツ取得サービスを指定する情報となる。   Upon receiving the URI acquisition request <D-30> (FIG. 19: Step S1901), the service server 30 checks whether or not an available XMPP session ID is stored in the storage unit 31 (FIG. 19: Step S1902). . If the available XMPP session ID is not stored, the service server 30 transmits an XMPP login request <D-5> to the direct access management server 40 (FIG. 19: step S1903). The service server 30 receives the XMPP login response <D-5R> from the direct access management server 40 (FIG. 19: Step S1904), and stores the XMPP session ID included in the received XMPP login response <D-5R>. The data is stored in the unit 31 (FIG. 19: Step S1905). Thereafter, the service server 30 transmits a direct access start request <D-31> including the Service ID, the control device / service management ID, the service URN, the XMPP session ID, and the content local URI list to the direct access management server 40 (FIG. 19: Step S1906). Even when an available XMPP session ID is already stored, the service server 30 transmits a direct access start request <D-31> to the direct access management server 40 (FIG. 19: step S1906). Here, since the mobile phone 10 is about to acquire content from the DVR 20, the service URN is information for designating the content acquisition service.

ダイレクトアクセス管理サーバ40は、このダイレクトアクセス開始要求<D-31>を受信すると(図11:ステップS1101)、これに含まれているServiceIDと制御機器・サービス管理IDの組み合わせが記憶部41に記憶されているかどうかを判定し(図11:ステップS1102)、記憶されていない場合には、被制御機器の登録が必要であることを示すエラーコードをダイレクトアクセス開始応答<D-35>としてサービスサーバ30に送信する(図11:ステップS1103)。ServiceIDと制御機器・サービス管理IDの組み合わせが記憶部41に記憶されている場合には、ダイレクトアクセス管理サーバ40は、ダイレクトアクセス開始要求<D-31>に含まれているXMPPセッションIDが、ダイレクトアクセス開始要求<D-31>に含まれているServiceIDと制御機器・サービス管理IDとの組み合わせに対応付けられて記憶部41に記憶されているかどうかを判定する(図11:ステップS1104)。それが記憶されていない場合、ダイレクトアクセス管理サーバ40は、不正XMPPセッションIDであることを示すエラーコードをダイレクトアクセス開始応答<D-35>としてサービスサーバ30に送信する(図11:ステップS1105)。XMPPセッションIDがServiceIDと制御機器・サービス管理IDとの組み合わせに対応付けられて記憶部41に記憶されている場合、ダイレクトアクセス管理サーバ40は、ダイレクトアクセス開始要求<D-31>で指定されているサービスURNおよびLocal URIリストを含むダイレクトアクセス用URI取得要求<D-32>をDVR20に送信する(図11:ステップS1106)。   Upon receiving this direct access start request <D-31> (FIG. 11: Step S1101), the direct access management server 40 stores the combination of ServiceID and control device / service management ID included in the storage unit 41. (FIG. 11: Step S1102), and if it is not stored, an error code indicating that the controlled device needs to be registered is sent as a direct access start response <D-35> to the service server 30 (FIG. 11: Step S1103). When the combination of ServiceID and control device / service management ID is stored in the storage unit 41, the direct access management server 40 determines that the XMPP session ID included in the direct access start request <D-31> It is determined whether or not the service ID and the control device / service management ID included in the access start request <D-31> are stored in the storage unit 41 in association with each other (FIG. 11: step S1104). If it is not stored, the direct access management server 40 transmits an error code indicating an unauthorized XMPP session ID to the service server 30 as a direct access start response <D-35> (FIG. 11: Step S1105). . When the XMPP session ID is stored in the storage unit 41 in association with the combination of the Service ID and the control device / service management ID, the direct access management server 40 is designated by the direct access start request <D-31>. A direct access URI acquisition request <D-32> including the service URN and the Local URI list is transmitted to the DVR 20 (FIG. 11: step S1106).

サービスサーバ30は、ダイレクトアクセス管理サーバ40から、不正XMPPセッションIDであることを示すエラーコードをダイレクトアクセス開始応答<D-35>として受信すると(図19:ステップS1907)、ステップS1903に戻って、ダイレクトアクセス管理サーバ40に対してXMPPログイン要求<D-5>を再度行い、ダイレクトアクセス管理サーバ40からのXMPPログイン応答<D-5R>を受信して(図19:ステップS1904)、これに含まれるXMPPセッションIDを記憶部41に保存する(図19:ステップS1905)。   When the service server 30 receives from the direct access management server 40 an error code indicating an illegal XMPP session ID as a direct access start response <D-35> (FIG. 19: step S1907), the service server 30 returns to step S1903, The XMPP login request <D-5> is made again to the direct access management server 40, and the XMPP login response <D-5R> is received from the direct access management server 40 (FIG. 19: Step S1904). The stored XMPP session ID is stored in the storage unit 41 (FIG. 19: step S1905).

DVR20は、ダイレクトアクセス管理サーバ40よりダイレクトアクセス用URI取得要求<D-32>を受信すると(図12:ステップS1201)、ダイレクトアクセス用のローカルポートの割当てを行う(図12:ステップS1202)。次に、DVR20は、ローカルIPアドレスおよびダイレクトアクセス用のローカルポートのポート番号を含む、ダイレクトアクセス用ポートのNAT設定要求<D-33>をルータ50に送信する(図12:ステップS1203)。   Upon receiving the direct access URI acquisition request <D-32> from the direct access management server 40 (FIG. 12: step S1201), the DVR 20 assigns a local port for direct access (FIG. 12: step S1202). Next, the DVR 20 transmits a direct access port NAT setting request <D-33> including the local IP address and the port number of the direct access local port to the router 50 (FIG. 12: step S1203).

DVR20は、ルータ50より、グローバルIPアドレスおよびポート番号の取得エラーをサービスサーバ30からのNAT設定応答<D-33R>として受信した場合(図12:ステップS1204)、ステップS1201にて取得したサービスURNの指定情報に基づき、そのサービスURNがトンネリング可能なものであるかどうかを判定する(図12:ステップS1205)。DVR20は、トンネリング可能なサービスURNであると判定した場合には、トンネリングを指示するエラーコードをダイレクトアクセス用URI取得応答<D-34>としてダイレクトアクセス管理サーバ40に送信する(図12:ステップS1206)。サービスURNの指定情報がトンネリング可能なサービスURNではない場合には、空きポート獲得失敗を示すエラーコードをダイレクトアクセス用URI取得応答<D-34>としてダイレクトアクセス管理サーバ40に送信する(図12:ステップS1207)。   When the DVR 20 receives an acquisition error of the global IP address and port number from the router 50 as the NAT setting response <D-33R> from the service server 30 (FIG. 12: step S1204), the service URN acquired in step S1201 Based on the designation information, it is determined whether or not the service URN can be tunneled (FIG. 12: step S1205). If the DVR 20 determines that the service is a tunnelable service URN, the DVR 20 transmits an error code instructing tunneling to the direct access management server 40 as a direct access URI acquisition response <D-34> (FIG. 12: step S1206). ). If the specified service URN information is not a tunnelable service URN, an error code indicating failure to acquire a free port is sent to the direct access management server 40 as a direct access URI acquisition response <D-34> (FIG. 12: Step S1207).

また、DVR20は、ダイレクトアクセス用ポートのNAT設定要求<D-33>に対して、ルータ50より、DVR20のローカルIPアドレス及びポート番号に対応付けられたグローバルIPアドレスおよびポート番号を、NAT設定応答<D-33R>として受信した場合には(図12:ステップS1208)、これらのグローバルIPアドレスおよびポート番号を用いてダイレクトアクセス用URIリストを作成し、このダイレクトアクセス用URIリストをダイレクトアクセス用URI取得応答<D-34>としてダイレクトアクセス管理サーバ40に送信する(図12:ステップS1209)。   Also, in response to the NAT setting request <D-33> for the direct access port, the DVR 20 sends the global IP address and port number associated with the local IP address and port number of the DVR 20 from the router 50 as a NAT setting response. If it is received as <D-33R> (Figure 12: Step S1208), a direct access URI list is created using these global IP addresses and port numbers, and this direct access URI list is used as the direct access URI. An acquisition response <D-34> is transmitted to the direct access management server 40 (FIG. 12: step S1209).

ダイレクトアクセス管理サーバ40のXMPPサーバ43は、ダイレクトアクセス用URIリストをダイレクトアクセス用URI取得応答<D-34>として受信すると(図11:ステップS1107)、そのダイレクトアクセス用URIリストをダイレクトアクセス開始応答<D-35>としてサービスサーバ30に送信する(図11:ステップS1111)。   When the XMPP server 43 of the direct access management server 40 receives the direct access URI list as a direct access URI acquisition response <D-34> (FIG. 11: Step S1107), the direct access URI list is sent as a direct access start response. It is transmitted to the service server 30 as <D-35> (FIG. 11: Step S1111).

また、ダイレクトアクセス管理サーバ40は、トンネリングによるコンテンツ取得を指示するエラーコードをダイレクトアクセス用URI取得応答<D-34>として受信した場合には(図11:ステップS1109)、ダイレクトアクセス管理サーバ40内トンネリング用ポートの割当てを行い(図11:ステップS1110)、この割り当てたダイレクトアクセス管理サーバ40内トンネリング用ポートのポート番号とダイレクトアクセス管理サーバ40のグローバルIPアドレスを用いてダイレクトアクセス用URIリストを作成し、このダイレクトアクセス用URIリストを含むダイレクトアクセス開始応答<D-35>をサービスサーバ30へ送信する(図11:ステップS1111)。   Also, when the direct access management server 40 receives an error code instructing content acquisition by tunneling as a direct access URI acquisition response <D-34> (FIG. 11: step S1109), the direct access management server 40 Assign a tunneling port (Figure 11: Step S1110), and create a direct access URI list using the assigned port number of the tunneling port in the direct access management server 40 and the global IP address of the direct access management server 40. Then, a direct access start response <D-35> including this direct access URI list is transmitted to the service server 30 (FIG. 11: step S1111).

サービスサーバ30は、ダイレクトアクセス管理サーバ40から、ダイレクトアクセス用URIリストを含むダイレクトアクセス開始応答<D-35>を受信した場合には(図19:ステップS1908)、そのダイレクトアクセス用URIリストを含むURI取得応答<D-36>を携帯電話10へ送信する(図19:ステップS1909)。   When the service server 30 receives a direct access start response <D-35> including the direct access URI list from the direct access management server 40 (FIG. 19: step S1908), the service server 30 includes the direct access URI list. The URI acquisition response <D-36> is transmitted to the mobile phone 10 (FIG. 19: step S1909).

以上により、携帯電話10は、DVR20からダイレクトにコンテンツを取得するためのダイレクトアクセスURIを取得したので、DVR20から選択されたコンテンツを取得する処理を開始する。なお、ここでは、携帯電話10がURI取得応答<D-36>として受信したダイレクトアクセス用URIリストには、ユーザによって選択されたコンテンツのそれぞれに対応するダイレクトアクセスURIが格納されている。   As described above, since the mobile phone 10 has acquired the direct access URI for directly acquiring the content from the DVR 20, the process of acquiring the selected content from the DVR 20 is started. Here, in the direct access URI list received by the mobile phone 10 as the URI acquisition response <D-36>, the direct access URI corresponding to each content selected by the user is stored.

携帯電話10は、ダイレクトアクセス用URIリストを含むURI取得応答<D-36>を受信すると(図17:ステップS1718)、そのダイレクトアクセス用URIリストの中から取得処理を行うコンテンツに関するダイレクトアクセス用URIを選択し、そのダイレクトアクセス用URIを含むコンテンツ取得要求<D-37>をDVR20にダイレクトに送信する(図17:ステップS1719)。   When the mobile phone 10 receives the URI acquisition response <D-36> including the direct access URI list (FIG. 17: step S1718), the direct access URI for the content to be acquired from the direct access URI list. The content acquisition request <D-37> including the direct access URI is directly transmitted to the DVR 20 (FIG. 17: step S1719).

DVR20は、携帯電話10からダイレクトアクセス用URIを含むコンテンツ取得要求<D-37>を受信すると(図12:ステップS1218)、このコンテンツ取得要求<D-37>に含まれるダイレクトアクセス用URIの正当性チェックを行い(図12:ステップS1219)、不正なURIであるなら、不正なURIであることを示すエラーコードをコンテンツ取得応答<D-37R>として携帯電話10に送信する(図12:ステップS1220)。正当なURIである場合は、DVR20は、そのダイレクトアクセス用URIで指定されているコンテンツをコンテンツ取得応答<D-37R>として携帯電話10に送信する(図12:ステップS1221)。   Upon receiving the content acquisition request <D-37> including the direct access URI from the mobile phone 10 (FIG. 12: Step S1218), the DVR 20 validates the direct access URI included in the content acquisition request <D-37>. (Figure 12: Step S1219), if it is an invalid URI, an error code indicating that the URI is invalid is sent to the mobile phone 10 as a content acquisition response <D-37R> (Figure 12: Step S1220). If the URI is valid, the DVR 20 transmits the content specified by the direct access URI to the mobile phone 10 as a content acquisition response <D-37R> (FIG. 12: step S1221).

携帯電話10は、DVR20からコンテンツをコンテンツ取得応答<D-37R>として受信すると(図17:ステップS1720)、ダイレクトアクセス用URIリストに格納されているすべてのコンテンツの取得が完了するまで(図17:ステップS1721)、ステップS1719のコンテンツ取得要求<D-37>をDVR20に送信することを繰り返す。また、携帯電話10は、DVR20から不正なURIであることを示すエラーコードをコンテンツ取得応答<D-37R>として受信した場合には、ダイレクトアクセスの失敗を示すメッセージを表示部を通してユーザに表示する。   When the mobile phone 10 receives the content from the DVR 20 as the content acquisition response <D-37R> (FIG. 17: Step S1720), until the acquisition of all the content stored in the direct access URI list is completed (FIG. 17). : Step S1721) and the transmission of the content acquisition request <D-37> in step S1719 to the DVR 20 are repeated. In addition, when the mobile phone 10 receives an error code indicating that the URI is invalid from the DVR 20 as the content acquisition response <D-37R>, the mobile phone 10 displays a message indicating a direct access failure to the user through the display unit. .

[4-2.サービスサーバ30を介したコンテンツ取得:図16]   [4-2. Content acquisition via service server 30: Fig. 16]

次に、携帯電話10が、サービスサーバ30を介してDVR20からコンテンツを取得する場合の動作を説明する。図16はサービスサーバ30からDVR20へのダイレクトアクセスによるコンテンツ取得時の情報の流れを示すシーケンス図である。   Next, an operation when the mobile phone 10 acquires content from the DVR 20 via the service server 30 will be described. FIG. 16 is a sequence diagram showing a flow of information at the time of content acquisition by direct access from the service server 30 to the DVR 20.

図16に示した携帯電話10、DVR20、サービスサーバ30、ダイレクトアクセス管理サーバ40及びルータ50間の情報の流れで、ダイレクトアクセス開始応答<D-10>までの各装置での処理は、図15を用いて説明した流れと同じであるため説明を省略する。   In the flow of information between the mobile phone 10, DVR 20, service server 30, direct access management server 40, and router 50 shown in FIG. 16, the processing in each device up to the direct access start response <D-10> is shown in FIG. Since the flow is the same as that described with reference to FIG.

なお、携帯電話10からサービスサーバ30を介してDVR20からコンテンツ取得を行う場合とは、ステップS1810において携帯ダイレクトフラグがオフであると判断され、更に、ダイレクトアクセス管理サーバ40におけるトンネリングを行わない場合である。   The case where content is acquired from the DVR 20 from the mobile phone 10 via the service server 30 is a case where it is determined in step S1810 that the mobile direct flag is off, and further, tunneling is not performed in the direct access management server 40. is there.

まず、携帯電話10からサービスサーバ30を介してダイレクトにDVR20に対してコンテンツの検索を要求し、検索条件に合致するコンテンツのタイトルリストを取得する流れについて説明する。   First, a flow of requesting content search from the mobile phone 10 directly to the DVR 20 via the service server 30 and acquiring a title list of content that matches the search conditions will be described.

DVR20は、ステップS1812でサービスサーバ30から送信されたダイレクトアクセス用URIおよび検索条件を含むコンテンツ検索要求<D-19>を受信すると(図12:ステップS1214)、このコンテンツ検索要求<D-19>に含まれるダイレクトアクセス用URIの正当性チェックを行い(図12:ステップS1215)、不正なURIであるなら、不正なURIであることを示すエラーコードをコンテンツ検索応答<D-19R>としてサービスサーバ30に送信する(図12:ステップS1216)。正当なURIである場合は、DVR20は、コンテンツ検索要求<D-19>内の検索条件に従って記憶部21の中から検索条件に合致するコンテンツを検索して、検索結果のコンテンツのタイトルリストとLocal URIリストを生成する。その後、DVR20は、生成したタイトルリストとLocal URIリストとをコンテンツ検索応答<D-19R>としてサービスサーバ30に送信する(図12:ステップS1217)。   When the DVR 20 receives the content search request <D-19> including the direct access URI and the search condition transmitted from the service server 30 in step S1812, (FIG. 12: step S1214), the content search request <D-19> Check the validity of the URI for direct access included in the service server (Figure 12: Step S1215). If it is an invalid URI, the service server uses an error code indicating that it is an invalid URI as a content search response <D-19R>. 30 (FIG. 12: Step S1216). If the URI is valid, the DVR 20 searches the storage unit 21 for content that matches the search condition according to the search condition in the content search request <D-19> Generate a URI list. Thereafter, the DVR 20 transmits the generated title list and Local URI list to the service server 30 as a content search response <D-19R> (FIG. 12: Step S1217).

サービスサーバ30は、DVR20より、コンテンツ検索応答<D-19R>としてコンテンツのタイトルリストおよびLocal URIリストを受信すると(図18:ステップS1813)、そのコンテンツのLocal URIリストを一時的に保存し(図18:ステップS1814)、携帯電話10に、コンテンツのタイトルリストを含むコンテンツ検索応答<D-20>を送信する(図18:ステップS1815)。   When the service server 30 receives the content title list and the local URI list from the DVR 20 as the content search response <D-19R> (FIG. 18: step S1813), the service server 30 temporarily stores the local URI list of the content (FIG. 18: Step S1814), a content search response <D-20> including the content title list is transmitted to the mobile phone 10 (FIG. 18: Step S1815).

また、サービスサーバ30は、DVR20より、コンテンツ検索応答<D-19R>として不正なURIであることを示すエラーコードを受信した場合には(図18:ステップS1816)、そのエラーコードを、携帯電話10にコンテンツ検索応答<D-20>として送信する(図18:ステップS1817)。   Further, when the service server 30 receives an error code indicating an invalid URI as the content search response <D-19R> from the DVR 20 (FIG. 18: Step S1816), the service server 30 sends the error code to the mobile phone. 10 is transmitted as a content search response <D-20> (FIG. 18: step S1817).

携帯電話10は、サービスサーバ30から不正なURIであることを示すエラーコードをコンテンツ検索応答<D-20>を受信した場合には(図17:ステップS1728)、ダイレクトアクセスの失敗を示すメッセージを表示部を通してユーザに表示する(図17:ステップS1729)。また、携帯電話10は、サービスサーバ30よりコンテンツのタイトルリストをコンテンツ検索応答<D-20>として受信した場合には(図17:ステップS1725)、コンテンツ取得のための処理に進む。   When the mobile phone 10 receives the content search response <D-20> with an error code indicating that the URI is invalid from the service server 30 (FIG. 17: step S1728), the mobile phone 10 displays a message indicating a direct access failure. It is displayed to the user through the display unit (FIG. 17: step S1729). Further, when the mobile phone 10 receives the content title list from the service server 30 as the content search response <D-20> (FIG. 17: step S1725), the mobile phone 10 proceeds to processing for content acquisition.

次に、携帯電話10がサービスサーバ30を介してDVR20からコンテンツ取得するための処理の流れについて説明する。   Next, a processing flow for the mobile phone 10 to acquire content from the DVR 20 via the service server 30 will be described.

携帯電話10は、サービスサーバ30から、コンテンツのタイトルリストを含むコンテンツ検索応答<D-20>を受信した場合(図17:ステップS1725)、受信したコンテンツのタイトルの一覧を表示部に表示し、表示されたタイトルの中からユーザによって選択されたコンテンツに対応するタイトルを抽出してコンテンツの取得を要求するための取得タイトルリストを作成する。   When the mobile phone 10 receives the content search response <D-20> including the content title list from the service server 30 (FIG. 17: step S1725), the mobile phone 10 displays the received content title list on the display unit, A title corresponding to the content selected by the user is extracted from the displayed titles, and an acquisition title list for requesting acquisition of the content is created.

その後、携帯電話10は、ユーザ識別情報、選択コンテンツのタイトルリスト(取得タイトルリスト)、被制御機器の番号を含むコンテンツ取得要求<D-21>をサービスサーバ30に送信する(図17:ステップS1726)。サービスサーバ30は、コンテンツ取得要求<D-21>を受信すると(図18:ステップS1818)、そのコンテンツ取得要求<D-21>に含まれるタイトルリストに対応するコンテンツのLocal URIリストを記憶部31から検索し(図18 :ステップS1819)、ユーザによって選択されたコンテンツのタイトルに対応するLocal URIを抽出してコンテンツの取得を要求するためのLocal URIリストを作成する。   Thereafter, the mobile phone 10 transmits a content acquisition request <D-21> including the user identification information, the selected content title list (acquired title list), and the number of the controlled device to the service server 30 (FIG. 17: Step S1726). ). When the service server 30 receives the content acquisition request <D-21> (FIG. 18: step S1818), the storage unit 31 stores a local URI list of content corresponding to the title list included in the content acquisition request <D-21>. (FIG. 18: step S1819), the local URI corresponding to the title of the content selected by the user is extracted, and a local URI list for requesting acquisition of the content is created.

次に、サービスサーバ30は、利用可能なXMPPセッションIDが記憶部31に記憶されているか否かを調べる(図18:ステップS1820)。利用可能なXMPPセッションIDが記憶されていない場合、サービスサーバ30は、XMPPログイン要求<D-5>をダイレクトアクセス管理サーバに送信する(図18:ステップS1821)。サービスサーバ30は、ダイレクトアクセス管理サーバからのXMPPログイン応答<D-5R>を受信すると(図18:ステップS1822)、受信したXMPPログイン応答<D-5R>に含まれるXMPPセッションIDを記憶部31に保存する(図18:ステップS1823)。その後、サービスサーバ30は、ServiceID、制御機器・サービス管理ID、サービスURN、XMPPセッションID、コンテンツのLocal URIリストを含むダイレクトアクセス開始要求<D-22>をダイレクトアクセス管理サーバ40に送信する(図18:ステップS1824)。また、利用可能なXMPPセッションIDが既に記憶されている場合にも、サービスサーバ30は、ダイレクトアクセス開始要求<D-22>をダイレクトアクセス管理サーバ40に送信する(図18:ステップS1824)。ここでは、DVR20に対してコンテンツ取得を行おうとしているので、サービスURNはコンテンツ取得サービスを指定する情報となる。   Next, the service server 30 checks whether an available XMPP session ID is stored in the storage unit 31 (FIG. 18: step S1820). If no available XMPP session ID is stored, the service server 30 transmits an XMPP login request <D-5> to the direct access management server (FIG. 18: step S1821). When the service server 30 receives the XMPP login response <D-5R> from the direct access management server (FIG. 18: step S1822), the storage server 31 stores the XMPP session ID included in the received XMPP login response <D-5R>. (FIG. 18: step S1823). Thereafter, the service server 30 sends a direct access start request <D-22> including the Service ID, the control device / service management ID, the service URN, the XMPP session ID, and the content local URI list to the direct access management server 40 (FIG. 18: Step S1824). Also, even when an available XMPP session ID is already stored, the service server 30 transmits a direct access start request <D-22> to the direct access management server 40 (FIG. 18: step S1824). Here, since content acquisition is to be performed for the DVR 20, the service URN is information for designating the content acquisition service.

ダイレクトアクセス管理サーバ40は、このダイレクトアクセス開始要求<D-22>を受信すると(図11:ステップS1101)、これに含まれているServiceIDと制御機器・サービス管理IDの組み合わせが記憶部41に記憶されているかどうかを判定し(図11:ステップS1102)、記憶されていない場合には、被制御機器の登録が必要であることを示すエラーコードをダイレクトアクセス開始応答<D-26>としてサービスサーバ30に送信する(図11:ステップS1103)。ServiceIDと制御機器・サービス管理IDの組み合わせが記憶部41に記憶されている場合には、ダイレクトアクセス管理サーバ40は、ダイレクトアクセス開始要求<D-22>に含まれているXMPPセッションIDが、ダイレクトアクセス開始要求<D-22>に含まれているServiceIDと制御機器・サービス管理IDとの組み合わせに対応付けられて記憶部41に記憶されているかどうかを判定する(図11:ステップS1104)。それが記憶されていない場合、ダイレクトアクセス管理サーバ40は、不正XMPPセッションIDであることを示すエラーコードをダイレクトアクセス開始応答<D-26>としてサービスサーバ30に送信する(図11:ステップS1105)。XMPPセッションIDがServiceIDと制御機器・サービス管理IDとの組み合わせに対応付けられて記憶部41に記憶されている場合、ダイレクトアクセス管理サーバ40は、ダイレクトアクセス開始要求<D-31>で指定されているサービスURNおよびLocal URIリストを含むダイレクトアクセス用URI取得要求<D-23>をDVR20に送信する(図11:ステップS1106)。   Upon receiving this direct access start request <D-22> (FIG. 11: Step S1101), the direct access management server 40 stores the combination of the Service ID and the control device / service management ID included in the request in the storage unit 41. (FIG. 11: Step S1102), and if it is not stored, an error code indicating that the controlled device needs to be registered is given a direct access start response <D-26> as a service server 30 (FIG. 11: Step S1103). When the combination of ServiceID and control device / service management ID is stored in the storage unit 41, the direct access management server 40 determines that the XMPP session ID included in the direct access start request <D-22> It is determined whether or not the service ID included in the access start request <D-22> is associated with the combination of the control device / service management ID and stored in the storage unit 41 (FIG. 11: step S1104). If it is not stored, the direct access management server 40 transmits an error code indicating an unauthorized XMPP session ID to the service server 30 as a direct access start response <D-26> (FIG. 11: Step S1105). . When the XMPP session ID is stored in the storage unit 41 in association with the combination of the Service ID and the control device / service management ID, the direct access management server 40 is designated by the direct access start request <D-31>. A direct access URI acquisition request <D-23> including the service URN and the Local URI list is transmitted to the DVR 20 (FIG. 11: step S1106).

サービスサーバ30は、ダイレクトアクセス管理サーバ40から、不正XMPPセッションIDであることを示すエラーコードをダイレクトアクセス開始応答<D-26>として受信すると(図18:ステップS1825)、ステップS1820に戻って利用可能なXMPPセッションIDが記憶部31に記憶されているか否かを再び調べる。   When the service server 30 receives an error code indicating an invalid XMPP session ID from the direct access management server 40 as a direct access start response <D-26> (FIG. 18: step S1825), the service server 30 returns to step S1820 for use. Whether or not a possible XMPP session ID is stored in the storage unit 31 is checked again.

DVR20は、ダイレクトアクセス管理サーバ40よりダイレクトアクセス用URI取得要求<D-23>を受信すると(図12:ステップS1201)、ダイレクトアクセス用のローカルポートの割当てを行う(図12:ステップS1202)。次に、DVR20は、ローカルIPアドレスおよびダイレクトアクセス用のローカルポートのポート番号を含む、ダイレクトアクセス用ポートのNAT設定要求<D-24>をルータ50に送信する(図12:ステップS1203)。   When the DVR 20 receives the direct access URI acquisition request <D-23> from the direct access management server 40 (FIG. 12: step S1201), the DVR 20 allocates a local port for direct access (FIG. 12: step S1202). Next, the DVR 20 transmits a direct access port NAT setting request <D-24> including the local IP address and the port number of the direct access local port to the router 50 (FIG. 12: step S1203).

DVR20は、ルータ50より、グローバルIPアドレスおよびポート番号の取得エラーをサービスサーバ30からのNAT設定応答<D-24R>として受信した場合(図12:ステップS1204)、ステップS1201にて取得したサービスURNの指定情報に基づき、そのサービスURNがトンネリング可能なものであるかどうかを判定する(図12:ステップS1205)。DVR20は、トンネリング可能なサービスURNであるとを判定した場合には、トンネリングを指示するエラーコードをダイレクトアクセス用URI取得応答<D-25>としてダイレクトアクセス管理サーバ40に送信する(図12:ステップS1206)。サービスURNの指定情報がトンネリング可能なサービスURNではない場合には、空きポート獲得失敗を示すエラーコードをダイレクトアクセス用URI取得応答<D-25>としてダイレクトアクセス管理サーバ40に送信する(図12:ステップS1207)。   When the DVR 20 receives an acquisition error of the global IP address and port number from the router 50 as the NAT setting response <D-24R> from the service server 30 (FIG. 12: step S1204), the service URN acquired in step S1201 Based on the designation information, it is determined whether or not the service URN can be tunneled (FIG. 12: step S1205). If the DVR 20 determines that the service is a tunnelable service URN, it sends an error code instructing tunneling to the direct access management server 40 as a direct access URI acquisition response <D-25> (FIG. 12: Step S1206). If the specified service URN information is not a tunnelable service URN, an error code indicating failure to acquire a free port is sent to the direct access management server 40 as a direct access URI acquisition response <D-25> (FIG. 12: Step S1207).

また、DVR20は、ダイレクトアクセス用ポートのNAT設定要求<D-24>に対して、ルータ50より、DVR20のローカルIPアドレス及びポート番号に対応付けられたグローバルIPアドレスおよびポート番号を、NAT設定応答<D-24R>として受信した場合には(図12:ステップS1208)、これらのグローバルIPアドレスおよびポート番号を用いてダイレクトアクセス用URIリストを作成し、このダイレクトアクセス用URIリストをダイレクトアクセス用URI取得応答<D-25>としてダイレクトアクセス管理サーバ40に送信する(図12:ステップS1209)。   In response to the NAT setting request <D-24> for the direct access port, the DVR 20 sends the global IP address and port number associated with the local IP address and port number of the DVR 20 from the router 50 to the NAT setting response. If received as <D-24R> (Figure 12: Step S1208), create a direct access URI list using these global IP addresses and port numbers, and use this direct access URI list as the direct access URI. An acquisition response <D-25> is transmitted to the direct access management server 40 (FIG. 12: step S1209).

ダイレクトアクセス管理サーバ40のXMPPサーバ43は、ダイレクトアクセス用URIリストをダイレクトアクセス用URI取得応答<D-25>として受信すると(図11:ステップS1107)、そのダイレクトアクセス用URIリストをダイレクトアクセス開始応答<D-26>としてサービスサーバ30に送信する(図11:ステップS1111)。   When the XMPP server 43 of the direct access management server 40 receives the direct access URI list as a direct access URI acquisition response <D-25> (FIG. 11: step S1107), the direct access start response is sent to the direct access URI list. <D-26> is transmitted to the service server 30 (FIG. 11: Step S1111).

また、ダイレクトアクセス管理サーバ40は、トンネリングによるコンテンツ取得を指示するエラーコードをダイレクトアクセス用URI取得応答<D-25>として受信した場合には(図11:ステップS1109)、ダイレクトアクセス管理サーバ40内トンネリング用ポートの割当てを行い(図11:ステップS1110)、この割り当てたダイレクトアクセス管理サーバ40内トンネリング用ポートのポート番号とダイレクトアクセス管理サーバ40のグローバルIPアドレスを用いてダイレクトアクセス用URIリストを作成し、このダイレクトアクセス用URIリストを含むダイレクトアクセス開始応答<D-26>をサービスサーバ30へ送信する(図11:ステップS1111)。   Further, when the direct access management server 40 receives an error code instructing content acquisition by tunneling as a direct access URI acquisition response <D-25> (FIG. 11: step S1109), the direct access management server 40 Assign a tunneling port (Figure 11: Step S1110), and create a direct access URI list using the assigned port number of the tunneling port in the direct access management server 40 and the global IP address of the direct access management server 40. Then, a direct access start response <D-26> including this direct access URI list is transmitted to the service server 30 (FIG. 11: step S1111).

以上により、サービスサーバ30は、DVR20からダイレクトにコンテンツを取得するためのダイレクトアクセスURIを取得したので、DVR20から選択されたコンテンツを取得する処理を開始する。なお、ここでは、サービスサーバ30がダイレクトアクセス開始応答<D-26>として受信したダイレクトアクセス用URIリストには、ユーザによって選択されたコンテンツのそれぞれに対応するダイレクトアクセスURIが格納されている。   As described above, since the service server 30 has acquired the direct access URI for directly acquiring the content from the DVR 20, the service server 30 starts the process of acquiring the selected content from the DVR 20. Here, the direct access URI list received by the service server 30 as the direct access start response <D-26> stores a direct access URI corresponding to each content selected by the user.

サービスサーバ30は、ダイレクトアクセス用URIリストを含むダイレクトアクセス開始応答<D-26>を受信すると(図18:ステップS1826)、そのダイレクトアクセス用URIリストの中から取得処理を行うコンテンツに対応するダイレクトアクセス用URIを選択し、そのダイレクトアクセスURIを含むコンテンツ取得要求<D-27>をDVR20に送信する(図18:ステップS1827)。DVR20は、サービスサーバ30からのコンテンツ取得要求<D-27>を受信すると(図12:ステップS1218)、このコンテンツ取得要求<D-27>に含まれるダイレクトアクセス用URIの正当性チェックを行い(図12:ステップS1219)、不正なURIであるなら、不正なURIであることを示すエラーコードをコンテンツ取得応答<D-27R>としてサービスサーバ30に送信する(図12:ステップS1220)。正当なURIである場合は、DVR20は、そのダイレクトアクセス用URIで指定されているコンテンツをコンテンツ取得応答<D-27R>としてサービスサーバ30に送信する(図12:ステップS1221)。   When the service server 30 receives the direct access start response <D-26> including the direct access URI list (FIG. 18: step S1826), the service server 30 performs direct processing corresponding to the content to be acquired from the direct access URI list. The access URI is selected, and a content acquisition request <D-27> including the direct access URI is transmitted to the DVR 20 (FIG. 18: step S1827). When the DVR 20 receives the content acquisition request <D-27> from the service server 30 (FIG. 12: step S1218), the DVR 20 checks the validity of the direct access URI included in the content acquisition request <D-27> ( FIG. 12: Step S1219) If it is an illegal URI, an error code indicating that it is an illegal URI is transmitted to the service server 30 as a content acquisition response <D-27R> (FIG. 12: Step S1220). If the URI is valid, the DVR 20 transmits the content specified by the direct access URI to the service server 30 as a content acquisition response <D-27R> (FIG. 12: step S1221).

サービスサーバ30は、DVR20からコンテンツをコンテンツ取得応答<D-27R>として受信すると(図18:ステップS1828)、このコンテンツをコンテンツ取得応答<D-28>として携帯電話10に送信し(図18:ステップS1829)、ダイレクトアクセス用URIリストに格納されているすべてのコンテンツの携帯電話10への送信が完了するまで、ステップS1827のコンテンツ取得要求<D-27>をDVR20に送信することを繰り返す(図18:ステップS1830)。携帯電話10は、コンテンツを含むコンテンツ取得応答<D-28>を受信する(図17:ステップS1727)と、受信したコンテンツを、表示部を通じてユーザに表示する。   When the service server 30 receives the content from the DVR 20 as a content acquisition response <D-27R> (FIG. 18: Step S1828), the service server 30 transmits the content as a content acquisition response <D-28> to the mobile phone 10 (FIG. 18: Step S1829), until the transmission of all the contents stored in the direct access URI list to the mobile phone 10 is completed, repeatedly sending the content acquisition request <D-27> of Step S1827 to the DVR 20 (FIG. 18: Step S1830). When the mobile phone 10 receives the content acquisition response <D-28> including the content (FIG. 17: Step S1727), the received content is displayed to the user through the display unit.

また、サービスサーバ30は、DVR20から不正なURIであることを示すエラーコードをコンテンツ取得応答<D-27R>として受信した場合には(図18:ステップS1831)、このエラーコードをコンテンツ取得応答<D-28>として携帯電話10に送信する(図18:ステップS1832)。   In addition, when the service server 30 receives an error code indicating that the URI is invalid from the DVR 20 as the content acquisition response <D-27R> (FIG. 18: step S1831), the service server 30 sends this error code to the content acquisition response < D-28> is transmitted to the mobile phone 10 (FIG. 18: step S1832).

以上で説明したように、携帯電話10は、DVR20へのダイレクトなアクセス、若しくは、サービスサーバ30による代理アクセスを利用して、DVR20からコンテンツを取得することができる。なお、上述の説明においては、コンテンツ取得サービスはトンネリング不可のサービスとして説明したが、リモート録画予約サービスで説明したトンネリングの処理をコンテンツ取得サービスに適用することにより、コンテンツ取得サービスにおいてもダイレクトアクセス管理サーバ40のXMPPサーバ43を介したトンネリングの処理を利用してDVR20からコンテンツを取得させることは可能である。   As described above, the mobile phone 10 can acquire content from the DVR 20 by using direct access to the DVR 20 or proxy access by the service server 30. In the above description, the content acquisition service has been described as a service that cannot be tunneled. However, by applying the tunneling process described in the remote recording reservation service to the content acquisition service, the direct access management server can also be used in the content acquisition service. It is possible to acquire content from the DVR 20 using the tunneling process via the 40 XMPP servers 43.

[5.ダイレクトアクセス終了]   [5. End of direct access]

次に、上述の各種処理が完了し、サービスサーバ30、ダイレクトアクセス管理サーバ40及びDVR20でダイレクトアクセスを終了させる処理に関して説明する。図20はダイレクトアクセス終了時の情報の流れを示すシーケンス図、図21はダイレクトアクセス終了時のサービスサーバ30の動作を示すフローチャート、図22はダイレクトアクセス終了時のダイレクトアクセス管理サーバ40の動作を示すフローチャート、図23はダイレクトアクセス終了時のDVR20の動作を示すフローチャートである。   Next, a description will be given of a process in which the above-described various processes are completed and the direct access is terminated by the service server 30, the direct access management server 40, and the DVR 20. 20 is a sequence diagram showing the flow of information at the end of direct access, FIG. 21 is a flowchart showing the operation of the service server 30 at the end of direct access, and FIG. 22 shows the operation of the direct access management server 40 at the end of direct access. FIG. 23 is a flowchart showing the operation of the DVR 20 at the end of direct access.

サービスサーバ30は、携帯電話10より、ユーザ識別情報を含むダイレクトアクセス終了通知<C-1>を受信すると(図21:ステップS2101)、ServiceID、制御機器・サービス管理ID、XMPPセッションID、サービスURN、ダイレクトアクセス用URIを含むダイレクトアクセス終了通知<C-2>をダイレクトアクセス管理サーバ40に送信する(図21:ステップS2102)。   When the service server 30 receives the direct access end notification <C-1> including the user identification information from the mobile phone 10 (FIG. 21: step S2101), the service server 30, the control device / service management ID, the XMPP session ID, the service URN Then, the direct access end notification <C-2> including the direct access URI is transmitted to the direct access management server 40 (FIG. 21: step S2102).

ダイレクトアクセス管理サーバ40は、ダイレクトアクセス終了通知<C-2>を受信すると(図22:ステップS2201)、サービスURNとダイレクトアクセス用URIを含むダイレクトアクセス終了通知<C-3>をDVR20に送信する(図22:ステップS2202)。このとき、ダイレクトアクセス終了通知<C-2>にダイレクトアクセスURIの指定が無い場合(図22:ステップS2206)、サービスURNのみを含むダイレクトアクセス終了通知<C-3>をDVR20に送信する(図22:ステップS2207)。   When receiving the direct access end notification <C-2> (FIG. 22: Step S2201), the direct access management server 40 transmits a direct access end notification <C-3> including the service URN and the direct access URI to the DVR 20. (FIG. 22: Step S2202). At this time, if no direct access URI is specified in the direct access end notification <C-2> (FIG. 22: step S2206), a direct access end notification <C-3> including only the service URN is transmitted to the DVR 20 (FIG. 22). 22: Step S2207).

DVR20は、サービスURNとダイレクトアクセス用URIを含むダイレクトアクセス終了通知<C-3>を受信すると(図23:ステップS2301)、指定されたダイレクトアクセス用URIに関するグローバルIPアドレスおよびポート番号を含むダイレクトアクセス用ポートをクローズ<C-4>する(図23:ステップS2302)。   When the DVR 20 receives the direct access end notification <C-3> including the service URN and direct access URI (FIG. 23: step S2301), the direct access including the global IP address and port number related to the specified direct access URI The communication port is closed <C-4> (FIG. 23: Step S2302).

一方、サービスサーバ30は、ダイレクトアクセス終了通知<C-2>を送信後、携帯ダイレクトフラグの初期化を行う(図21:ステップS2103)。次いでServiceID、制御機器・サービス管理ID、XMPPセッションIDを含むXMPPログアウト通知<C-5>をダイレクトアクセス管理サーバ40に送信する(図21:ステップS2104)。最後にサービスサーバ30は、XMPPセッションIDエントリを消去する(図21:ステップS2105)。   On the other hand, after transmitting the direct access end notification <C-2>, the service server 30 initializes the portable direct flag (FIG. 21: step S2103). Next, an XMPP logout notification <C-5> including ServiceID, control device / service management ID, and XMPP session ID is transmitted to the direct access management server 40 (FIG. 21: step S2104). Finally, the service server 30 deletes the XMPP session ID entry (FIG. 21: step S2105).

ダイレクトアクセス管理サーバ40は、ServiceID、制御機器・サービス管理ID、XMPPセッションIDを含むXMPPログアウト通知<C-5>を受信すると(図22:ステップS2203)、該XMPPセッションIDに関するすべてのサービスURNのダイレクトアクセスの終了通知をDVR20に発行したかどうかを判断する(図22:ステップS2204)。ダイレクトアクセスの終了を通知すべきサービスURNが残っている場合には、サービスURNのみを指定し、ダイレクトアクセス用URIの指定がされていないダイレクトアクセス終了通知<C-3>をDVR20へ送信し(図22:ステップS2205)、全ての終了通知を発行したら、サービスサーバ30からのダイレクトアクセス終了通知<C-2>に待機する。   When the direct access management server 40 receives the XMPP logout notification <C-5> including the Service ID, the control device / service management ID, and the XMPP session ID (FIG. 22: step S2203), all the service URNs related to the XMPP session ID are received. It is determined whether a direct access end notification has been issued to the DVR 20 (FIG. 22: Step S2204). If there is still a service URN that should be notified of the end of direct access, specify only the service URN and send a direct access end notification <C-3> to which the URI for direct access is not specified to the DVR 20 ( FIG. 22: Step S2205) When all the end notifications are issued, the process waits for the direct access end notification <C-2> from the service server 30.

DVR20は、ダイレクトアクセス管理サーバ40からダイレクトアクセス用URIの指定されていないダイレクトアクセス終了通知<C-3>を受信すると(図23:ステップS2303)、ダイレクトアクセス終了通知<C-3>で指定されているサービスURNに関するすべてのポートをクローズする(図23:ステップS2304、S2305)。   When the DVR 20 receives a direct access end notification <C-3> without a direct access URI specified from the direct access management server 40 (FIG. 23: Step S2303), the DVR 20 is specified by the direct access end notification <C-3>. All the ports related to the service URN being closed are closed (FIG. 23: steps S2304 and S2305).

以上の処理を実行することによって、サービスサーバ30、ダイレクトアクセス管理サーバ40及びDVR20でダイレクトアクセスを終了させる。   By executing the above processing, the direct access is terminated by the service server 30, the direct access management server 40, and the DVR 20.

上記の実施形態では、携帯電話10からの要求によって、サービスサーバ30がダイレクトアクセス管理サーバ40からワンタイムパスワードである被制御機器登録用パスワードを取得する方法を説明したが、本実施形態においては、DVR20(被制御機器)がワンタイムパスワードである被制御機器登録用パスワードをダイレクトアクセス管理サーバ40から取得するようにしてもよい。   In the above embodiment, the method in which the service server 30 acquires the controlled device registration password that is a one-time password from the direct access management server 40 in response to a request from the mobile phone 10 has been described. The DVR 20 (controlled device) may acquire the controlled device registration password, which is a one-time password, from the direct access management server 40.

(発明の第2の実施形態) (Second Embodiment of the Invention)

次に、本発明の第2の実施形態について説明する。   Next, a second embodiment of the present invention will be described.

上記の実施形態では、携帯電話10からの要求によって、サービスサーバ30がダイレクトアクセス管理サーバ40からワンタイムパスワードである被制御機器登録用パスワードを取得する方法を説明したが、本実施形態においては、DVR20(被制御機器)がワンタイムパスワードである被制御機器登録用パスワードをダイレクトアクセス管理サーバ40から取得する。   In the above embodiment, the method in which the service server 30 acquires the controlled device registration password that is a one-time password from the direct access management server 40 in response to a request from the mobile phone 10 has been described. The DVR 20 (controlled device) acquires the controlled device registration password, which is a one-time password, from the direct access management server 40.

図26は第2の実施形態における携帯電話10とサービスとの組み合わせの登録とDVR20の登録を行う際の情報の流れを示すシーケンス図である。図27はこの登録時に携帯電話10で実行される処理のフローチャートである。図28はこの登録時にサービスサーバ30で実行される処理のフローチャートである。図29および図30は登録時にダイレクトアクセス管理サーバ40で実行される処理のフローチャートである。図31はこの登録時にDVR20で実行される処理のフローチャートである。   FIG. 26 is a sequence diagram showing the flow of information when registering the combination of the mobile phone 10 and the service and registering the DVR 20 in the second embodiment. FIG. 27 is a flowchart of processing executed by the mobile phone 10 at the time of registration. FIG. 28 is a flowchart of processing executed by the service server 30 at the time of registration. 29 and 30 are flowcharts of processing executed by the direct access management server 40 during registration. FIG. 31 is a flowchart of processing executed by the DVR 20 at the time of registration.

まず、DVR20では、DVR20に接続されたTVの画面に表示されたメニューからの選択等によってユーザからDVR20の機器登録準備を行うための指示が与えられる(図31:ステップS3101)。この時点では、DVR20がダイレクトアクセス管理サーバ40において未登録であるため、DVR20に保持されている自動接続フラグの値はオフである(図31:ステップS3102)。よって、DVR20は、ダイレクトアクセス管理サーバ40において自身の登録を行うための処理を開始する。   First, in the DVR 20, an instruction for preparing for device registration of the DVR 20 is given from the user by selecting from a menu displayed on the screen of the TV connected to the DVR 20 (FIG. 31: step S3101). At this time, since the DVR 20 is not registered in the direct access management server 40, the value of the automatic connection flag held in the DVR 20 is off (FIG. 31: step S3102). Therefore, the DVR 20 starts processing for registering itself in the direct access management server 40.

DVR20は、ダイレクトアクセス管理サーバ40に自身の登録を行うために、自身に予め設定されている認証方式の情報および機器認証情報を含む機器認証要求<R-20>をダイレクトアクセス管理サーバ40内のSOAPサーバ42に送信する(図31:ステップS3103)。   In order to register itself with the direct access management server 40, the DVR 20 sends a device authentication request <R-20> including the authentication method information and device authentication information set in advance to the direct access management server 40. The data is transmitted to the SOAP server 42 (FIG. 31: Step S3103).

ダイレクトアクセス管理サーバ40内のSOAPサーバ42は、DVR20からの機器認証要求<R-20>を受信すると(図29:ステップS2901)、このDVR20が正当な機器であるかどうかを、機器認証要求<R-20>に含まれる認証方式の情報および機器認証情報に基づき判定する(図29:ステップS2902)。不当な機器として判定された場合には、SOAPサーバ42は、エラーを示すコードを機器認証応答<R-20R>としてDVR20に送信する(図29:ステップS2906)。正当な機器として判定された場合には、SOAPサーバ42は、そのDVR20に対して割り当てる機器認証継続IDを生成して(図29:ステップS2903)、この機器認証継続IDと、この機器認証継続IDの有効期限と、DVR20の機器認証情報とを対応付けて記憶部41に保存する(図29:ステップS2904)。その後、SOAPサーバ42は、上記の生成した機器認証継続IDとその有効期限の情報を含む情報を機器認証応答<R-20R>としてDVR20へ送信する(図29:ステップS2905)。   When the SOAP server 42 in the direct access management server 40 receives the device authentication request <R-20> from the DVR 20 (FIG. 29: Step S2901), it determines whether or not this DVR 20 is a valid device < It is determined based on the authentication method information and device authentication information included in R-20> (FIG. 29: step S2902). If it is determined as an unauthorized device, the SOAP server 42 transmits a code indicating an error to the DVR 20 as a device authentication response <R-20R> (FIG. 29: step S2906). If it is determined as a valid device, the SOAP server 42 generates a device authentication continuation ID to be assigned to the DVR 20 (FIG. 29: step S2903), and this device authentication continuation ID and this device authentication continuation ID Are associated with the device authentication information of the DVR 20 and stored in the storage unit 41 (FIG. 29: step S2904). Thereafter, the SOAP server 42 transmits information including the generated device authentication continuation ID and the information on the expiration date to the DVR 20 as a device authentication response <R-20R> (FIG. 29: step S2905).

DVR20は、ダイレクトアクセス管理サーバ40内のSOAPサーバ42からの機器認証応答<R-20R>としてエラーを示すコードを受信した場合には、DVR20が正当な機器でない旨のエラーメッセージを表示する。DVR20は、機器認証応答<R-20R>として機器認証継続IDとその有効期限の情報を含む情報を受信した場合には(図31:ステップS3104)、この機器認証応答R-20R>に含まれる機器認証継続ID及びその有効期限の情報を機器認証情報と対応付けて記憶部21に保存する(図31:ステップS3105)。その後、DVR20は、自身を携帯電話10の制御対象として登録するための被制御機器登録用パスワード取得処理に進む。   When the DVR 20 receives a code indicating an error as the device authentication response <R-20R> from the SOAP server 42 in the direct access management server 40, the DVR 20 displays an error message indicating that the DVR 20 is not a valid device. When the DVR 20 receives information including the device authentication continuation ID and information on its expiration date as the device authentication response <R-20R> (FIG. 31: step S3104), it is included in this device authentication response R-20R> The device authentication continuation ID and its expiration date information are stored in the storage unit 21 in association with the device authentication information (FIG. 31: step S3105). Thereafter, the DVR 20 proceeds to a controlled device registration password acquisition process for registering itself as a control target of the mobile phone 10.

一方、DVR20の機器登録を行うための指示がユーザからDVR20に与えられたときに、ステップS3102で自動接続フラグの値がオンである場合には、以前に少なくとも一度、ダイレクトアクセス管理サーバ40との間で機器認証手続(ステップS3103乃至S3105)、被制御機器登録用パスワードの取得の手続(ステップS3106乃至S3109)及び登録手続(ステップS3110乃至S3114)を実行した状態である。よってDVR20は、ダイレクトアクセス管理サーバ40への機器認証及び機器登録を既に完了しており、ダイレクトアクセス管理サーバ40より機器認証継続IDを既に受け取っている。このためDVR20は、ステップS3103からステップS3105までの機器認証のための手順を省略して、ダイレクトアクセス管理サーバ40より取得済みの機器認証継続IDを用いて新たな制御機器をDVR20に紐付けするための被制御機器登録用パスワード取得処理に進む。   On the other hand, when an instruction for device registration of the DVR 20 is given from the user to the DVR 20, if the value of the automatic connection flag is ON in step S3102, at least once before the direct access management server 40 The device authentication procedure (steps S3103 to S3105), the controlled device registration password acquisition procedure (steps S3106 to S3109), and the registration procedure (steps S3110 to S3114) are executed. Therefore, the DVR 20 has already completed device authentication and device registration with the direct access management server 40, and has already received a device authentication continuation ID from the direct access management server 40. For this reason, the DVR 20 omits the procedure for device authentication from step S3103 to step S3105, and associates a new control device with the DVR 20 using the device authentication continuation ID acquired from the direct access management server 40. The process proceeds to the controlled device registration password acquisition process.

次に、制御機器である携帯電話10を登録し、携帯電話10をDVR20の制御機器として紐付けする処理について説明する。   Next, a process for registering the mobile phone 10 as a control device and associating the mobile phone 10 as a control device of the DVR 20 will be described.

まず、DVR20は、制御機器である携帯電話10の制御対象として被制御機器であるDVR20をダイレクトアクセス管理サーバ40に登録するためのパスワードを取得するための処理を実行する。   First, the DVR 20 executes a process for acquiring a password for registering the DVR 20 as the controlled device in the direct access management server 40 as a control target of the mobile phone 10 as the control device.

DVR20は、ダイレクトアクセス管理サーバ40より取得した機器認証継続IDとその有効期限の情報とを含む被制御機器登録用パスワード取得要求<R-21>をダイレクトアクセス管理サーバ40に送信する(図31:ステップS3106)。   The DVR 20 transmits a controlled device registration password acquisition request <R-21> including the device authentication continuation ID acquired from the direct access management server 40 and information on its expiration date to the direct access management server 40 (FIG. 31: Step S3106).

ダイレクトアクセス管理サーバ40は、DVR20より被制御機器登録用パスワード取得要求<R-21>を受信すると(図29:ステップS2907)、この被制御機器登録用パスワード取得要求<R-21>に含まれる機器認証継続IDとその有効期限のチェックを行う(図29:ステップS2908)。このチェックでNGが判定された場合、すなわち、被制御機器登録用パスワード取得要求<R-21>に含まれる機器認証継続IDがダイレクトアクセス管理サーバ40の記憶部41に機器認証情報と対応付けて記憶されているどの機器認証継続IDとも一致しないか、もしくは機器認証継続IDの有効期限が切れている場合には、機器認証が必要であることを示すエラーコードを含む被制御機器登録用パスワード取得応答<R-21R>をDVR20へ送信する(図29:ステップS2909)。   Upon receiving the controlled device registration password acquisition request <R-21> from the DVR 20 (FIG. 29: Step S2907), the direct access management server 40 is included in the controlled device registration password acquisition request <R-21>. The device authentication continuation ID and its expiration date are checked (FIG. 29: step S2908). If NG is determined in this check, that is, the device authentication continuation ID included in the controlled device registration password acquisition request <R-21> is associated with the device authentication information in the storage unit 41 of the direct access management server 40. If the device authentication continuation ID does not match or the device authentication continuation ID has expired, the controlled device registration password including an error code indicating that device authentication is required is obtained. A response <R-21R> is transmitted to the DVR 20 (FIG. 29: step S2909).

DVR20は、エラーコードを含む被制御機器登録用パスワード取得応答<R-21R>を受信すると(図31:ステップS3107)、ステップS3103に戻って、自身に予め設定されている認証方式の情報および機器認証情報を含む機器認証要求<R-20>をダイレクトアクセス管理サーバ40内のSOAPサーバ42に再度送信する(図31:ステップS3103)。これにより、DVR20は、再度、機器認証をダイレクトアクセス管理サーバ40との間で行い、新たな有効期限を持つ機器認証継続IDに更新する手続きを行う。   When the DVR 20 receives the controlled device registration password acquisition response <R-21R> including the error code (FIG. 31: step S3107), the process returns to step S3103, and the authentication method information and device set in advance in itself The device authentication request <R-20> including the authentication information is transmitted again to the SOAP server 42 in the direct access management server 40 (FIG. 31: step S3103). As a result, the DVR 20 again performs device authentication with the direct access management server 40 and performs a procedure for updating to a device authentication continuation ID having a new expiration date.

また、ダイレクトアクセス管理サーバ40による機器認証継続IDとその有効期限のチェック(図29:ステップS2908)の結果がOKである場合、すなわち、被制御機器登録用パスワード取得要求<R-21>に含まれる機器認証継続IDがダイレクトアクセス管理サーバ40の記憶部41に機器認証情報と対応付けて記憶されている機器認証継続IDと一致し、かつ機器認証継続IDの有効期限が切れていない場合、ダイレクトアクセス管理サーバ40は被制御機器登録用パスワードを生成し(図29:ステップS2910)、この生成した被制御機器登録用パスワードを、機器認証継続IDと対応付けて記憶部41に保存する(図29:ステップS2911)。この後、ダイレクトアクセス管理サーバ40は、生成した被制御機器登録用パスワードとその有効期限の情報を被制御機器登録用パスワード取得応答<R-21R>としてDVR20に送信する(図29:ステップS2912)。   In addition, when the result of the device authentication continuation ID and its expiration date check by the direct access management server 40 (FIG. 29: step S2908) is OK, that is, included in the controlled device registration password acquisition request <R-21>. If the device authentication continuation ID matches the device authentication continuation ID stored in the storage unit 41 of the direct access management server 40 in association with the device authentication information, and the device authentication continuation ID has not expired, The access management server 40 generates a controlled device registration password (FIG. 29: Step S2910), and stores the generated controlled device registration password in the storage unit 41 in association with the device authentication continuation ID (FIG. 29). : Step S2911). Thereafter, the direct access management server 40 transmits the generated controlled device registration password and information on its expiration date to the DVR 20 as a controlled device registration password acquisition response <R-21R> (FIG. 29: step S2912). .

DVR20は、ダイレクトアクセス管理サーバ40より被制御機器登録用パスワードとその有効期限の情報を含む被制御機器登録用パスワード取得応答<R-21R>を受信すると(図31:ステップS3108)、携帯電話10にこの被制御機器登録用パスワーとその有効期限の情報<R-22>を渡すために、例えば、内部でQRコード(商標)等の2次元バーコードを生成し、DVR20に接続されたTV画面などに表示する(図31:ステップS3109)。   When the DVR 20 receives the controlled device registration password acquisition response <R-21R> including the controlled device registration password and the expiration date information from the direct access management server 40 (FIG. 31: step S3108), the mobile phone 10 In order to pass this controlled device registration password and its expiration date information <R-22>, for example, a two-dimensional barcode such as QR code (trademark) is generated internally and the TV screen connected to the DVR 20 (FIG. 31: Step S3109).

一方、携帯電話10は、ユーザからの被制御機器の登録指示を受けると(図27:ステップS2701)、DVR20から被制御機器登録用パスワードとその有効期限の情報<R-22>を取得する処理を実行する。たとえば、携帯電話10は、DVR20に接続されたTV画面に表示されたQRコード(商標)等の2次元バーコードを携帯電話10に装備されているカメラで撮像し、撮像されたバーコードを画像認識することによって、被制御機器登録用パスワードと有効期限の情報<R-22>を取得する(図27:ステップS2702)。   On the other hand, upon receiving a controlled device registration instruction from the user (FIG. 27: Step S2701), the mobile phone 10 acquires a controlled device registration password and its expiration date information <R-22> from the DVR 20 Execute. For example, the mobile phone 10 captures a two-dimensional barcode such as a QR code (trademark) displayed on a TV screen connected to the DVR 20 with a camera equipped in the mobile phone 10 and images the captured barcode. By recognizing, the controlled device registration password and expiration date information <R-22> are acquired (FIG. 27: step S2702).

次に、携帯電話10は、ダイレクトアクセス管理サーバ40に制御機器である携帯電話10と被制御機器であるDVR20とを紐付けさせるための処理を実行する。   Next, the mobile phone 10 executes processing for causing the direct access management server 40 to associate the mobile phone 10 that is the control device and the DVR 20 that is the controlled device.

携帯電話10は、取得した被制御機器登録用パスワードと、携帯電話10に予め登録されているユーザ識別情報とを含む被制御機器登録要求<R-23>をサービスサーバ30に送信する(図27:ステップS2703)。   The mobile phone 10 transmits a controlled device registration request <R-23> including the acquired controlled device registration password and user identification information registered in advance to the mobile phone 10 to the service server 30 (FIG. 27). : Step S2703).

サービスサーバ30は、携帯電話10より、被制御機器登録用パスワードとユーザ識別情報とを含む被制御機器登録要求<R-23>を受信すると(図28:ステップS2801)、その被制御機器登録要求<R-23>に含まれているユーザ識別情報に対応する制御機器・サービス管理IDがサービスサーバ30の記憶部31に記憶されているかどうかを判断する(図28:ステップS2802)。   When the service server 30 receives the controlled device registration request <R-23> including the controlled device registration password and user identification information from the mobile phone 10 (FIG. 28: Step S2801), the controlled device registration request It is determined whether the control device / service management ID corresponding to the user identification information included in <R-23> is stored in the storage unit 31 of the service server 30 (FIG. 28: Step S2802).

サービスサーバ30の記憶部31に、ユーザ識別情報に対応する制御機器・サービス管理IDが記憶されていない場合、サービスサーバ30は、被制御機器登録要求<R-23>に含まれていたユーザ識別情報を記憶部31に保存し(図28:ステップS2803)、あらかじめ自身に割り当てられているServiceIDを含む制御機器・サービス管理ID取得要求<R-34>をダイレクトアクセス管理サーバ40内のSOAPサーバ42に対して送信する(図28:ステップS2804)。すなわち、携帯電話10がサービスサーバ30の提供するサービスを初めて利用する状態であるため、サービスサーバ30は、以降の携帯電話10からのサービス要求の際にダイレクトアクセス管理サーバ40との処理で利用する、制御機器である携帯電話10とサービスサーバ30で提供されるサービスとの組み合わせを一意に特定するための制御機器・サービス管理IDの発行を、ダイレクトアクセス管理サーバ40に対して要求する。ここで、制御機器・サービス管理IDは、サービス事業者が提供する個々のサービスと制御機器との組み合わせに対してユニークに割り当てられるIDである。   If the control device / service management ID corresponding to the user identification information is not stored in the storage unit 31 of the service server 30, the service server 30 determines the user identification included in the controlled device registration request <R-23>. The information is stored in the storage unit 31 (FIG. 28: Step S2803), and the control device / service management ID acquisition request <R-34> including the Service ID assigned to itself is sent to the SOAP server 42 in the direct access management server 40. (FIG. 28: Step S2804). That is, since the mobile phone 10 is in a state of using the service provided by the service server 30 for the first time, the service server 30 is used for processing with the direct access management server 40 when a service request from the mobile phone 10 is made thereafter. The direct access management server 40 is requested to issue a control device / service management ID for uniquely identifying a combination of the mobile phone 10 that is the control device and the service provided by the service server 30. Here, the control device / service management ID is an ID uniquely assigned to a combination of an individual service provided by a service provider and a control device.

ダイレクトアクセス管理サーバ40内のSOAPサーバ42は、制御機器・サービス管理ID取得要求<R-34>を受信すると(図30:ステップS3001)、この制御機器・サービス管理ID取得要求<R-34>に含まれているServiceIDが、ダイレクトアクセス管理サーバ40の記憶部41に記憶されているかどうかを調べる(図30:ステップS3002)。制御機器・サービス管理ID取得要求<R-34>に含まれているServiceIDが記憶部41に記憶されていない場合には、サービスサーバ30がダイレクトアクセス管理サーバ40に認められたサービス事業者のサービスサーバではないため、ServiceIDが未登録であることを示すエラーコードを制御機器・サービス管理ID取得応答<R-34R>として送信する(図30:ステップS3006)。ServiceIDが記憶部41に記憶されている場合には、SOAPサーバ42は、新規の制御機器・サービス管理IDを発行して(図30:ステップS3003)、この制御機器・サービス管理IDとServiceIDとの対応関係を記憶部41に登録し(図30:ステップS3004)、その制御機器・サービス管理IDをサービスサーバ30に制御機器・サービス管理ID取得応答<R-34R>として送信する(図30:ステップS3005)。このように制御機器・サービス管理IDとServiceIDを対応付けて記憶することにより、ダイレクトアクセス管理サーバ40は、以降のサービス提供で、サービス提供を要求した携帯電話10とサービスサーバ30との組み合わせを一意に識別することが可能となる。   When the SOAP server 42 in the direct access management server 40 receives the control device / service management ID acquisition request <R-34> (FIG. 30: step S3001), this control device / service management ID acquisition request <R-34> It is checked whether the ServiceID included in is stored in the storage unit 41 of the direct access management server 40 (FIG. 30: step S3002). If the ServiceID included in the control device / service management ID acquisition request <R-34> is not stored in the storage unit 41, the service provider's service authorized by the direct access management server 40 by the service server 30 Since it is not a server, an error code indicating that ServiceID is not registered is transmitted as a control device / service management ID acquisition response <R-34R> (FIG. 30: step S3006). When the ServiceID is stored in the storage unit 41, the SOAP server 42 issues a new control device / service management ID (FIG. 30: Step S3003), and the control device / service management ID and ServiceID The correspondence relationship is registered in the storage unit 41 (FIG. 30: step S3004), and the control device / service management ID is transmitted to the service server 30 as a control device / service management ID acquisition response <R-34R> (FIG. 30: step). S3005). By storing the control device / service management ID and the Service ID in association with each other in this way, the direct access management server 40 uniquely identifies the combination of the mobile phone 10 that requested the service provision and the service server 30 in the subsequent service provision. Can be identified.

サービスサーバ30は、ダイレクトアクセス管理サーバ40より、制御機器・サービス管理IDを含む制御機器・サービス管理ID取得応答<R-34R>を受信すると(図28:ステップS2805)、この制御機器・サービス管理IDを携帯電話10のユーザ識別情報と対応付けて記憶部31に登録する(図28:ステップS2806)。   When the service server 30 receives the control device / service management ID acquisition response <R-34R> including the control device / service management ID from the direct access management server 40 (FIG. 28: Step S2805), the control device / service management The ID is registered in the storage unit 31 in association with the user identification information of the mobile phone 10 (FIG. 28: Step S2806).

サービスサーバ30は、制御機器・サービス管理IDをユーザ識別情報と対応付けて記憶部31に登録した後、または、携帯電話10から受信した被制御機器登録要求<R-23>に含まれるユーザ識別情報に対応する制御機器・サービス管理IDが既に記憶部31に登録されている場合、制御機器・サービス管理IDおよびServiceIDと、ステップS2801で携帯電話10より取得した被制御機器登録用パスワードとを含む被制御機器登録要求<R-25>をダイレクトアクセス管理サーバ40内のSOAPサーバ42に対して送信する(図28:ステップS2807)。これにより、サービスサーバ30は、携帯電話10から送信されてきた被制御機器登録用パスワードで特定される被制御機器であるDVR20と、制御機器である携帯電話10とサービスサーバ30のサービスとの組み合わせを特定する制御機器・サービス管理IDとの関連付けを、ダイレクトアクセス管理サーバ40に要求する。   The service server 30 associates the control device / service management ID with the user identification information in the storage unit 31, or the user identification included in the controlled device registration request <R-23> received from the mobile phone 10 If the control device / service management ID corresponding to the information has already been registered in the storage unit 31, the control device / service management ID and ServiceID, and the controlled device registration password acquired from the mobile phone 10 in step S2801 are included. The controlled device registration request <R-25> is transmitted to the SOAP server 42 in the direct access management server 40 (FIG. 28: step S2807). Accordingly, the service server 30 is a combination of the DVR 20 that is the controlled device specified by the controlled device registration password transmitted from the mobile phone 10 and the service of the mobile phone 10 that is the control device and the service server 30. The direct access management server 40 is requested to associate with the control device / service management ID that identifies the ID.

ダイレクトアクセス管理サーバ40内のSOAPサーバ42は、サービスサーバ30より被制御機器登録要求<R-25>を受信すると(図30:ステップS3007)、これに含まれている制御機器・サービス管理IDおよびServiceIDの組み合わせが記憶部41に登録されているかどうかを判断する(図30:ステップS3008)。その組み合わせが記憶部41に登録されていない場合、SOAPサーバ42は、制御機器・サービス管理IDとServiceIDの組み合わせが未登録であることを示すエラーコードを被制御機器登録応答<R-25R>としてサービスサーバ30へ送信する(図30:ステップS3013)。   When the SOAP server 42 in the direct access management server 40 receives the controlled device registration request <R-25> from the service server 30 (FIG. 30: step S3007), the control device / service management ID and It is determined whether or not a combination of ServiceIDs is registered in the storage unit 41 (FIG. 30: Step S3008). If the combination is not registered in the storage unit 41, the SOAP server 42 sets an error code indicating that the combination of the control device / service management ID and Service ID is unregistered as a controlled device registration response <R-25R>. The data is transmitted to the service server 30 (FIG. 30: Step S3013).

被制御機器登録要求<R-25>に含まれている制御機器・サービス管理IDおよびServiceIDの組み合わせが記憶部41に既に登録されている場合、SOAPサーバ42は、被制御機器登録用パスワードと有効期限についてのチェックを行う(図30:ステップS3009)。このチェックの結果、サービスサーバ30より取得した被制御機器登録用パスワードと一致するパスワードが記憶部41に記憶されていない場合、もしくは有効期限が切れている場合、SOAPサーバ42は、被制御機器登録要求<R-25>に含まれている被制御機器登録用パスワードが無効であることを示すエラーコードを被制御機器登録応答<R-25R>としてサービスサーバ30へ送信する(図30:ステップS3013)。   If the combination of the control device / service management ID and ServiceID included in the controlled device registration request <R-25> has already been registered in the storage unit 41, the SOAP server 42 validates the controlled device registration password and valid The time limit is checked (FIG. 30: Step S3009). As a result of this check, if the password that matches the controlled device registration password acquired from the service server 30 is not stored in the storage unit 41 or if the expiration date has expired, the SOAP server 42 registers the controlled device. An error code indicating that the controlled device registration password included in the request <R-25> is invalid is transmitted to the service server 30 as a controlled device registration response <R-25R> (FIG. 30: Step S3013). ).

サービスサーバ30は、SOAPサーバ42より未登録であることを示すエラーコード若しくは被制御機器登録用パスワードが無効であることを示すエラーコードを含む被制御機器登録応答<R-25R>を受信した場合には(図28:ステップS2808)、被制御機器の登録処理でエラーが起きたことを示すエラーコードを被制御機器登録応答<R-26>として携帯電話10に送信する(図28:ステップS2809)。   When the service server 30 receives a controlled device registration response <R-25R> containing an error code indicating that it is not registered or an error code indicating that the controlled device registration password is invalid from the SOAP server 42 (FIG. 28: Step S2808), an error code indicating that an error has occurred in the controlled device registration process is transmitted to the mobile phone 10 as a controlled device registration response <R-26> (FIG. 28: Step S2809). ).

また、ステップS3009のチェックの結果、サービスサーバ30より取得した被制御機器登録用パスワードが記憶部41に記憶されており、かつ有効期限が切れていない場合、SOAPサーバ42は、ステップS2911において記憶部41に記憶した被制御機器登録用パスワードと機器認証継続IDの対応付けから、サービスサーバ30より取得した被制御機器登録用パスワードに対応する機器認証継続IDを検索し、検索結果の機器認証継続IDに対応付けられた被制御機器管理IDが割り当て済みか否か判断する(図30:ステップS3010-1)。被制御機器管理IDが割り当てられていない場合、SOAPサーバ42は、新規の被制御機器管理IDを発行する(図30:ステップS3010-2)。その後、機器認証継続IDに対応したServiceID、制御機器・サービス管理IDと、新規に割り当てた被制御機器管理IDとを対応付けて記憶部41に保存する(図30:ステップS3011)。ステップS3010-1において、機器認証継続IDに対応付けられた被制御機器管理IDが既に割り当てられている場合には、SOAPサーバ42は、既に割り当てられている被制御機器管理IDと、機器認証継続IDに対応したServiceID、制御機器・サービス管理IDとを対応付けて記憶部41に保存する。   If the controlled device registration password acquired from the service server 30 is stored in the storage unit 41 as a result of the check in step S3009 and the expiration date has not expired, the SOAP server 42 stores the storage unit in step S2911. 41, the device authentication continuation ID corresponding to the controlled device registration password acquired from the service server 30 is searched from the association between the controlled device registration password and the device authentication continuation ID stored in 41, and the device authentication continuation ID of the search result is retrieved. It is determined whether or not the controlled device management ID associated with is already assigned (FIG. 30: step S3010-1). When the controlled device management ID is not assigned, the SOAP server 42 issues a new controlled device management ID (FIG. 30: step S3010-2). Thereafter, the Service ID, the control device / service management ID corresponding to the device authentication continuation ID, and the newly assigned controlled device management ID are stored in the storage unit 41 in association with each other (FIG. 30: Step S3011). In step S3010-1, if the controlled device management ID associated with the device authentication continuation ID has already been assigned, the SOAP server 42 continues the controlled device management ID already assigned and the device authentication continuation. The Service ID corresponding to the ID and the control device / service management ID are stored in the storage unit 41 in association with each other.

被制御機器管理IDとは、被制御機器に対してダイレクトアクセス管理サーバ40内でユニークに割り当てられる識別情報である。これによって、制御機器とサービスとの組み合わせに対して割り当てられた制御機器・サービス管理IDと、被制御機器に対して割り当てられた被制御機器管理IDとの紐付けが行われる。この紐付けは、1つの制御機器・サービス管理IDに対して複数の被制御機器管理IDが紐付けされても、逆に複数の制御機器・サービス管理IDが1つの被制御機器管理IDに紐付けされても構わない。   The controlled device management ID is identification information uniquely assigned to the controlled device in the direct access management server 40. As a result, the control device / service management ID assigned to the combination of the control device and the service is associated with the controlled device management ID assigned to the controlled device. In this connection, even if multiple controlled device management IDs are linked to one controlled device / service management ID, multiple controlled devices / service management IDs are linked to one controlled device management ID. It may be attached.

この後、SOAPサーバ42は、被制御機器の登録が完了したことを示す被制御機器登録応答<R-25R>をサービスサーバ30に送信する(図30:ステップS3012)。さらに、サービスサーバ30は、SOAPサーバ42より登録が完了したことを示す被制御機器登録応答<R-25R>を受信した場合には(図28:ステップS2808)、被制御機器の登録が完了したことを示す被制御機器登録応答<R-26>を携帯電話10に送信する(図28:ステップS2809)。   Thereafter, the SOAP server 42 transmits a controlled device registration response <R-25R> indicating that registration of the controlled device is completed to the service server 30 (FIG. 30: step S3012). Furthermore, if the service server 30 receives a controlled device registration response <R-25R> indicating that the registration is completed from the SOAP server 42 (FIG. 28: step S2808), the registration of the controlled device is completed. A controlled device registration response <R-26> indicating this is transmitted to the mobile phone 10 (FIG. 28: step S2809).

携帯電話10はサービスサーバ30より当該被制御機器登録応答<R-26>を受信すると(図27:ステップS2704)、被制御機器の登録処理を終了する。   When the mobile phone 10 receives the controlled device registration response <R-26> from the service server 30 (FIG. 27: step S2704), the registration processing of the controlled device is terminated.

以上の処理が完了した後、ユーザは、DVR20に対して割り当てられた被制御機器管理IDと制御機器・サービス管理IDとの紐付けが完了したかどうかの確認の指示を、DVR20に接続されたTVの画面に表示されたメニューの選択等によってDVR20に与える(図31:ステップS3110)。   After the above processing is completed, the user is connected to the DVR 20 with an instruction to check whether the association between the controlled device management ID assigned to the DVR 20 and the control device / service management ID is completed. This is given to the DVR 20 by selecting a menu displayed on the TV screen (FIG. 31: Step S3110).

DVR20は、この確認の指示を受けると、記憶部21に記憶されている自身の機器認証継続IDと被制御機器登録用パスワードを含む被制御機器登録確認要求<R-27>をダイレクトアクセス管理サーバ40内のSOAPサーバ42に送信する(図31:ステップS3111)。   Upon receiving this confirmation instruction, the DVR 20 sends a controlled device registration confirmation request <R-27> including its own device authentication continuation ID and the controlled device registration password stored in the storage unit 21 to the direct access management server. The information is transmitted to the SOAP server 42 within 40 (FIG. 31: step S3111).

SOAPサーバ42は、DVR20からの被制御機器登録確認要求<R-27>を受信すると(図29:ステップS2913)、この被制御機器登録確認要求<R-27>に含まれている、DVR20の機器認証継続IDとこの機器認証継続IDの有効期限のチェックを行う(図29:ステップS2914)。   When the SOAP server 42 receives the controlled device registration confirmation request <R-27> from the DVR 20 (FIG. 29: step S2913), the SOAP server 42 includes the DVR 20 included in the controlled device registration confirmation request <R-27>. The device authentication continuation ID and the expiration date of this device authentication continuation ID are checked (FIG. 29: step S2914).

ステップS2914におけるチェックでOKと判定された場合、すなわち、DVR20の機器認証継続IDが記憶部41に記憶されており、かつ有効期限が切れていない場合には、SOAPサーバ42は、被制御機器登録用パスワードの有効期限についてのチェックを行う(図29:ステップS2915)。このチェックの結果DVR20より取得した被制御機器登録用パスワードの有効期限が切れている場合、SOAPサーバ42は、被制御機器登録確認要求<R-27>に含まれている被制御機器登録用パスワードの有効期限が切れていることを示すエラーコードを被制御機器登録確認応答<R-27R>としてDVR20へ送信する(図29:ステップS2920)。被制御機器登録用パスワードの有効期限が切れていない場合には、SOAPサーバ42は、記憶部41に記憶されている情報を参照して、被制御機器登録確認要求<R-27>に含まれている被制御機器登録用パスワードに対応付けて記憶部41に記憶されている被制御機器管理IDを検索し、この被制御機器管理IDと紐付けられている制御機器・サービス管理IDの数を、DVR20に現在紐付けられているサービスの数として調べる。   If the check in step S2914 is OK, that is, if the device authentication continuation ID of the DVR 20 is stored in the storage unit 41 and the expiration date has not expired, the SOAP server 42 registers the controlled device. The password expiration date is checked (FIG. 29: Step S2915). If the controlled device registration password acquired from the DVR 20 as a result of this check has expired, the SOAP server 42 uses the controlled device registration password included in the controlled device registration confirmation request <R-27>. Is sent to the DVR 20 as a controlled device registration confirmation response <R-27R> (FIG. 29: step S2920). If the controlled device registration password has not expired, the SOAP server 42 refers to the information stored in the storage unit 41 and is included in the controlled device registration confirmation request <R-27>. The controlled device management ID stored in the storage unit 41 in association with the controlled device registration password is searched, and the number of controlled device / service management IDs associated with the controlled device management ID is determined. Investigate as the number of services currently associated with DVR20.

SOAPサーバ42は、DVR20に現在紐付けられているサービスの数を調べた後に、そのサービスの数の情報を被制御機器登録確認応答<R-27R>としてDVR20に送信する(図29:ステップS2916)。次に、SOAPサーバ42は、被制御機器であるDVR20の機器登録が完了していることをサービスサーバ30に通知するために、記憶部41に記憶されているそのサービスサーバ30のServiceID,このServiceIDに対応付けられた制御機器・サービス管理IDおよび被制御機器登録用パスワードを含む被制御機器登録完了通知<R-28>をサービスサーバ30に送信する(図29:ステップS2917)。そして、SOAPサーバ42は、記憶部41に記憶されているDVR20の被制御機器登録用パスワードを消去する(図29:ステップS2918)。   After checking the number of services currently associated with the DVR 20, the SOAP server 42 transmits information on the number of services to the DVR 20 as a controlled device registration confirmation response <R-27R> (FIG. 29: Step S2916). ). Next, in order to notify the service server 30 that the device registration of the controlled device DVR 20 is completed, the SOAP server 42 stores the Service ID of the service server 30 stored in the storage unit 41, and this Service ID. The controlled device registration completion notification <R-28> including the controlled device / service management ID and the controlled device registration password associated with is transmitted to the service server 30 (FIG. 29: step S2917). Then, the SOAP server 42 deletes the controlled device registration password of the DVR 20 stored in the storage unit 41 (FIG. 29: step S2918).

サービスサーバ30は、SOAPサーバ42より被制御機器登録完了通知<R-28>を受信すると(図28:ステップS2810)、被制御機器の登録が完了したことを携帯電話10に通知する(図28:ステップS2811)。被制御機器の登録が完了したことをサービスサーバ30から携帯電話10に通知する方法としては、たとえば、電子メールや、携帯電話10との間でその他の方法で通信を行うために用意されたアプリケーション等がある。   Upon receiving the controlled device registration completion notification <R-28> from the SOAP server 42 (FIG. 28: Step S2810), the service server 30 notifies the mobile phone 10 that registration of the controlled device has been completed (FIG. 28). : Step S2811). Examples of a method for notifying the cellular phone 10 from the service server 30 that registration of the controlled device has been completed include, for example, e-mail and applications prepared for communicating with the cellular phone 10 by other methods. Etc.

DVR20は、SOAPサーバ42より、サービスの数の情報を含む被制御機器登録確認応答<R-27R>を受信すると(図31:ステップS3112)、自動接続フラグをオンにセットし(図31:ステップS3113)、自機器に接続されたTVの画面等に自機器の登録が完了したことを表すメッセージを表示する(図31:ステップS3114)。   When the DVR 20 receives a controlled device registration confirmation response <R-27R> including information on the number of services from the SOAP server 42 (FIG. 31: Step S3112), it sets the automatic connection flag to ON (FIG. 31: Step S3113), a message indicating that the registration of the own device is completed is displayed on the screen of the TV connected to the own device (FIG. 31: Step S3114).

また、SOAPサーバ42は、ステップS2814のチェックで、NGが判定された場合、すなわち、DVR20の機器認証継続IDが記憶部41に記憶されていない、またはその機器認証継続IDの有効期限が切れている場合には、機器認証継続IDおよび被制御機器登録用パスワードのチェックのエラーを示すエラーコードを被制御機器登録確認応答<R-27R>としてDVR20に送信する(図30:ステップS3013)。DVR20は、このチェックエラーを示すエラーコードを被制御機器登録確認応答<R-27R>として受信すると(図31:ステップS3125)、機器の再登録が必要であることを示すメッセージを自機器に接続されたTVの画面等に表示してユーザに通知する(図31:ステップS3126)。この後DVR20の動作は終了する。   Further, the SOAP server 42 determines that NG is determined in the check in step S2814, that is, the device authentication continuation ID of the DVR 20 is not stored in the storage unit 41, or the device authentication continuation ID has expired. If there is, an error code indicating an error in checking the device authentication continuation ID and the controlled device registration password is transmitted to the DVR 20 as a controlled device registration confirmation response <R-27R> (FIG. 30: step S3013). When the DVR 20 receives the error code indicating this check error as the controlled device registration confirmation response <R-27R> (Fig. 31: Step S3125), it connects a message indicating that device re-registration is required to its own device. The information is displayed on the screen of the TV that has been displayed and notified to the user (FIG. 31: step S3126). Thereafter, the operation of the DVR 20 ends.

DVR20にて自動接続フラグがオンにセットされ(図31:ステップS3113)、自機器に接続されたTVの画面等に自機器の登録が完了したことを表すメッセージが表示された後(図31:ステップS3114)、DVR20は、ダイレクトアクセス管理サーバ40のXMPPサーバと双方向の常時接続セッションを確立するために、自身の機器認証継続IDを含むXMPPログイン情報取得要求<D-0-1>をダイレクトアクセス管理サーバ40内のSOAPサーバ42に送信する(図31:ステップS3115)。   After the automatic connection flag is set to ON in the DVR 20 (FIG. 31: Step S3113), a message indicating that the registration of the own device is completed is displayed on the screen of the TV connected to the own device (FIG. 31: In step S3114), the DVR 20 directly sends an XMPP login information acquisition request <D-0-1> including its own device authentication continuation ID to establish a bidirectional always-on session with the XMPP server of the direct access management server 40. The data is transmitted to the SOAP server 42 in the access management server 40 (FIG. 31: Step S3115).

この実施形態のネットワークシステムでは、第1の実施形態のネットワークシステムと同様に、ダイレクトアクセス管理サーバ40に、被制御機器との間で双方向の常時接続セッションを設定するためのXMPPサーバ43を置いている。制御機器である携帯電話10から被制御機器であるDVR20にアクセスするために、その前にDVR20がXMPPサーバ43にログインし、DVR20とXMPPサーバ43の間で常時接続セッションを確立しておく。これにより、サービスサーバ30または携帯電話10が、必要なときには、DVR20から必要な情報を取得できるようにしてある。また、この際のサービスサーバ30の設計を簡単にするために、この実施形態のネットワークシステムでも、第1の実施形態のネットワークシステムと同様に、XMPPプロトコルをダイレクトアクセス管理サーバ40内に隠蔽し、SOAPインタフェースだけで、DVR20と双方向の常時接続セッションを設定しているXMPPサーバ43との情報のやり取りを行えるようにしている。   In the network system of this embodiment, as in the network system of the first embodiment, the direct access management server 40 is provided with an XMPP server 43 for setting a bidirectional always-on session with the controlled device. ing. In order to access the DVR 20 that is the controlled device from the mobile phone 10 that is the controlling device, the DVR 20 logs into the XMPP server 43 and establishes a constant connection session between the DVR 20 and the XMPP server 43 before that. Thus, the service server 30 or the mobile phone 10 can acquire necessary information from the DVR 20 when necessary. In order to simplify the design of the service server 30 at this time, the network system of this embodiment also conceals the XMPP protocol in the direct access management server 40, as in the network system of the first embodiment. Information can be exchanged between the DVR 20 and the XMPP server 43 that has established a bi-directional always-on session using only the SOAP interface.

なお、DVR20がXMPPサーバ43にログインする際のダイレクトアクセス管理サーバ40の動作は第1の実施形態と同じであるので、以下の第2の実施形態の説明においても第1の実施形態の説明で用いた図10を用いることとする。   Since the operation of the direct access management server 40 when the DVR 20 logs in to the XMPP server 43 is the same as that of the first embodiment, the following description of the second embodiment also describes the first embodiment. It is assumed that FIG. 10 used is used.

ダイレクトアクセス管理サーバ40は、DVR20より機器認証継続IDを含むXMPPログイン情報取得要求<D-0-1>を受信すると(図10:ステップS1001)、このXMPPログイン情報取得要求<D-0-1>に含まれている機器認証継続IDと、機器認証継続IDの有効期限のチェックを行う(図10:ステップS1002)。このチェックでXMPPログイン情報取得要求<D-0-1>に含まれている機器認証継続IDが、ダイレクトアクセス管理サーバ40の記憶部41に記憶されているものと一致しない場合、もしくは、有効期限が切れている場合には、DVR20が正常にダイレクトアクセス管理サーバ40に登録されていないか、もしくは、過去に登録されていたが登録時の機器認証継続IDの有効期限が切れているのかであるため、機器認証が必要であることを示すエラーコードをXMPPログイン情報取得応答<D-0-1R>としてDVR20に送信する(図10:ステップS1003)。機器認証継続IDが記憶部41に記憶されており、かつ有効期限が切れておらず、ステップS1002におけるチェック結果がOKであれば、ダイレクトアクセス管理サーバ40は、記憶部41から機器認証継続IDに紐付けられている被制御機器管理ID及び機器認証情報を検索する(図10:ステップS1004)。ダイレクトアクセス管理サーバ40は、被制御機器管理IDと機器認証情報から、DVR20がXMPPサーバ43にログインするために必要なXMPPログインIDであるFull JID(D)と、XMPPログインパスワードおよびXMPPログインパスワードの有効期限を生成し(図10:ステップS1005)、これらを機器認証継続IDに対応付けて記憶部41に保存する(図10:ステップS1006)。そして、ダイレクトアクセス管理サーバ40は、生成したFull JID(D)、XMPPログインパスワードおよびその有効期限の情報に、XMPPアドレスおよびポート番号、認証方式の情報およびSSLオプションを加えた情報をXMPPログイン情報取得応答<D-0-1R>としてDVR20に送信する(図10:ステップS1007)。   When receiving the XMPP login information acquisition request <D-0-1> including the device authentication continuation ID from the DVR 20 (FIG. 10: Step S1001), the direct access management server 40 receives this XMPP login information acquisition request <D-0-1 The device authentication continuation ID included in> and the expiration date of the device authentication continuation ID are checked (FIG. 10: step S1002). If this check does not match the device authentication continuation ID included in the XMPP login information acquisition request <D-0-1> with that stored in the storage unit 41 of the direct access management server 40, or the expiration date If it is expired, it means that the DVR 20 is not properly registered in the direct access management server 40, or it has been registered in the past, but the device authentication continuation ID at the time of registration has expired Therefore, an error code indicating that device authentication is required is transmitted to the DVR 20 as an XMPP login information acquisition response <D-0-1R> (FIG. 10: step S1003). If the device authentication continuation ID is stored in the storage unit 41, the expiration date has not expired, and the check result in step S1002 is OK, the direct access management server 40 changes the storage unit 41 from the storage unit 41 to the device authentication continuation ID. The controlled device management ID and device authentication information associated with each other are searched (FIG. 10: Step S1004). From the controlled device management ID and device authentication information, the direct access management server 40 uses the Full JID (D), which is the XMPP login ID required for the DVR 20 to log in to the XMPP server 43, the XMPP login password, and the XMPP login password. An expiration date is generated (FIG. 10: Step S1005), and these are associated with the device authentication continuation ID and stored in the storage unit 41 (FIG. 10: Step S1006). The direct access management server 40 obtains the XMPP login information by adding the XMPP address and port number, authentication method information and SSL options to the generated Full JID (D), XMPP login password and expiration date information. A response <D-0-1R> is transmitted to the DVR 20 (FIG. 10: Step S1007).

DVR20は、ダイレクトアクセス管理サーバ40内のSOAPサーバ42からFull JID(D)、XMPPログインパスワード等を含むXMPPログイン情報取得応答<D-0-1R>を受信すると(図31:ステップS3116)、XMPPサーバ43にログインするために、Full JID(D)、XMPPログインパスワードを含むXMPPログイン認証要求<D-0-2>を、ダイレクトアクセス管理サーバ40内のXMPPサーバ43に送信する(図31:ステップS3117)。   When the DVR 20 receives the XMPP login information acquisition response <D-0-1R> including the Full JID (D), the XMPP login password, etc. from the SOAP server 42 in the direct access management server 40 (FIG. 31: Step S3116), the XMPP In order to log in to the server 43, an XMPP login authentication request <D-0-2> including the full JID (D) and XMPP login password is transmitted to the XMPP server 43 in the direct access management server 40 (FIG. 31: step). S3117).

ダイレクトアクセス管理サーバ40内のXMPPサーバ43は、DVR20よりXMPPログイン認証要求<D-0-2>を受信すると(図10:ステップS1008)、このXMPPログイン認証要求<D-0-2>に含まれているFull JID(D)、XMPPログインパスワードおよびXMPPログインパスワードの有効期限のチェックを行う(図10:ステップS1009)。XMPPサーバ43は、Full JID(D)が記憶部41に記憶されているものと一致しない、または、XMPPログインパスワードが記憶部41に記憶されているものと一致しない、または、XMPPログインパスワードの有効期限が切れている場合には、XMPPログイン失敗を示すエラーコードをXMPPログイン認証応答<D-0-2R>としてDVR20に送信する(図10:ステップS1010)。また、Full JID(D)、XMPPログインパスワードおよび有効期限のチェックがすべてOKならば、ダイレクトアクセス管理サーバ40内のXMPPサーバ43は、XMPPログイン許可を示すコードをXMPPログイン認証応答<D-0-2R>としてDVR20に送信する(図10:ステップS1011)。   When the XMPP server 43 in the direct access management server 40 receives the XMPP login authentication request <D-0-2> from the DVR 20 (FIG. 10: Step S1008), it is included in this XMPP login authentication request <D-0-2>. The full JID (D), XMPP login password, and expiration date of the XMPP login password are checked (FIG. 10: step S1009). The XMPP server 43 does not match the full JID (D) stored in the storage unit 41, or does not match the XMPP login password stored in the storage unit 41, or the XMPP login password is valid. If the time limit has expired, an error code indicating XMPP login failure is transmitted to the DVR 20 as an XMPP login authentication response <D-0-2R> (FIG. 10: step S1010). If the full JID (D), XMPP login password, and expiration date check are all OK, the XMPP server 43 in the direct access management server 40 sends a code indicating XMPP login permission to the XMPP login authentication response <D-0- 2R> is transmitted to the DVR 20 (FIG. 10: Step S1011).

DVR20は、ダイレクトアクセス管理サーバ40よりXMPPログイン失敗を示すエラーコードをXMPPログイン認証応答<D-0-2R>として受信すると(図31:ステップS3118)、ステップS3115に戻ってXMPPログイン情報の取得要求を行う。すなわち、XMPPログインパスワードの有効期限が切れている可能性があるため、再度、XMPPログイン情報の取得要求処理を行う。   When the DVR 20 receives the error code indicating the XMPP login failure from the direct access management server 40 as the XMPP login authentication response <D-0-2R> (FIG. 31: Step S3118), the DVR 20 returns to Step S3115 to request to obtain the XMPP login information. I do. That is, since the XMPP login password may expire, XMPP login information acquisition request processing is performed again.

また、DVR20は、ダイレクトアクセス管理サーバ40よりXMPPログイン許可を示すコードをXMPPログイン認証応答<D-0-2R>として受信すると(図31:ステップS3119)、XMPPログイン処理を完了する。   In addition, when the DVR 20 receives a code indicating XMPP login permission from the direct access management server 40 as an XMPP login authentication response <D-0-2R> (FIG. 31: step S3119), the XMPP login process is completed.

なお、DVR20は、ダイレクトアクセス管理サーバ40内のSOAPサーバ42より、機器認証が必要であることを示すエラーコードをXMPPログイン情報取得応答<D-0-1R>として受信した場合には(図31:ステップS3120)、自機が正常にダイレクトアクセス管理サーバ40に登録されていないか、もしくは、機器認証継続IDの有効期限が切れている可能性があるため、再度、自身に予め設定されている認証方式の情報および機器認証情報を含む機器認証要求<R-20>をダイレクトアクセス管理サーバ40内のSOAPサーバ42に送信して自身の機器認証をやりなおす(図31:ステップS3121)。   The DVR 20 receives an error code indicating that device authentication is required from the SOAP server 42 in the direct access management server 40 as an XMPP login information acquisition response <D-0-1R> (FIG. 31). : Step S3120) The device itself has not been registered in the direct access management server 40 normally, or the device authentication continuation ID may have expired. A device authentication request <R-20> including authentication method information and device authentication information is transmitted to the SOAP server 42 in the direct access management server 40 to perform device authentication again (FIG. 31: step S3121).

DVR20は、ダイレクトアクセス管理サーバ40内のSOAPサーバ42からの機器認証応答<R-20R>を受信すると(図31:ステップS3122)、この機器認証応答<R-20R>に含まれる機器認証継続ID、その有効期限の情報を機器認証情報と対応付けて記憶部21に保存する(図31:ステップS3123)。この後、DVR20はステップS3115に移って、自身の機器認証継続IDを含むXMPPログイン情報取得要求<D-0-1>を、再度、ダイレクトアクセス管理サーバ40内のSOAPサーバ42に送信する。   When the DVR 20 receives the device authentication response <R-20R> from the SOAP server 42 in the direct access management server 40 (FIG. 31: Step S3122), the device authentication continuation ID included in this device authentication response <R-20R> Then, the expiration date information is stored in the storage unit 21 in association with the device authentication information (FIG. 31: step S3123). Thereafter, the DVR 20 moves to step S3115 and transmits again the XMPP login information acquisition request <D-0-1> including its own device authentication continuation ID to the SOAP server 42 in the direct access management server 40.

また、SOAPサーバ42は、ステップS2914において、ステップS2913で受信した被制御機器登録確認要求<R-27>に含まれているDVR20の機器認証継続IDが記憶部41に記憶されている機器認証継続IDと一致しない、またはその機器認証継続IDの有効期限が切れている場合には、機器認証が必要である旨を示すエラーコードを被制御機器登録確認応答<R-27R>としてDVR20に送信する(図29:ステップS2919)。   In step S2914, the SOAP server 42 continues the device authentication in which the device authentication continuation ID of the DVR 20 included in the controlled device registration confirmation request <R-27> received in step S2913 is stored in the storage unit 41. If the ID does not match or the device authentication continuation ID has expired, an error code indicating that device authentication is required is sent to the DVR 20 as a controlled device registration confirmation response <R-27R> (FIG. 29: Step S2919).

DVR20は、機器認証が必要である旨を示すエラーコードを被制御機器登録確認応答<R-27R>として受信すると(図31:ステップS3124)、自機が正常にダイレクトアクセス管理サーバ40に登録されていないか、もしくは、機器認証継続IDの有効期限が切れている可能性があるため、再度、自身に予め設定されている認証方式の情報および機器認証情報を含む機器認証要求<R-20>をダイレクトアクセス管理サーバ40内のSOAPサーバ42に送信して自身の機器認証をやりなおす(図31:ステップS3121)。   When the DVR 20 receives an error code indicating that device authentication is required as a controlled device registration confirmation response <R-27R> (FIG. 31: step S3124), the DVR 20 is normally registered in the direct access management server 40. Device authentication request ID including device authentication information and authentication method information set in advance again <R-20> Is transmitted to the SOAP server 42 in the direct access management server 40 to perform device authentication again (FIG. 31: step S3121).

DVR20は、ダイレクトアクセス管理サーバ40内のSOAPサーバ42からの機器認証応答<R-20R>を受信すると(図31:ステップS3122)、この機器認証応答<R-20R>に含まれる機器認証継続ID、その有効期限の情報を機器認証情報と対応付けて記憶部21に保存する(図31:ステップS3123)。この後、DVR20はステップS3115に移って、自身の機器認証継続IDを含むXMPPログイン情報取得要求<D-0-1>を、再度、ダイレクトアクセス管理サーバ40内のSOAPサーバ42に送信する。   When the DVR 20 receives the device authentication response <R-20R> from the SOAP server 42 in the direct access management server 40 (FIG. 31: Step S3122), the device authentication continuation ID included in this device authentication response <R-20R> Then, the expiration date information is stored in the storage unit 21 in association with the device authentication information (FIG. 31: step S3123). Thereafter, the DVR 20 moves to step S3115 and transmits again the XMPP login information acquisition request <D-0-1> including its own device authentication continuation ID to the SOAP server 42 in the direct access management server 40.

以上説明したように、DVR20(被制御機器)がワンタイムパスワードである被制御機器登録用パスワードをダイレクトアクセス管理サーバ40から取得するようにしてもよい。   As described above, the DVR 20 (controlled device) may acquire the controlled device registration password, which is a one-time password, from the direct access management server 40.

尚、DVR20から携帯電話10に対して被制御機器登録用パスワードとその有効期限の情報を受け渡すために、携帯電話10に備えたカメラで二次元バーコードを撮像する方法を説明したが、DVR20から携帯電話10に対して被制御機器登録用パスワードとその有効期限の情報を渡すことができさえすれば、どのような渡し方であっても構わない。例えば、非接触式のICカードの書き込みデバイスをDVR20に装備し、携帯電話10にICカードの読み込みデバイスを装備させ、DVR20で被制御機器登録用パスワードとその有効期限の情報をICカードに書き込みを行い、携帯電話10でICカードから情報を読み取らせるように構成してICカードを媒介として伝えることも可能である。また、ICカード内に設けられるアンテナやICチップなどのデバイスと同様の構成を、携帯電話10に内蔵させ、DVR20の書き込みデバイスで、直接、携帯電話10に書き込ませるように構成することも可能である。更には、携帯電話10及びDVR20に、無線LAN,Bluetooth、赤外通信等の無線通信デバイスを装備させ、無線通信を介して、被制御機器登録用パスワードとその有効期限の情報を伝送させるように構成させることや、携帯電話10及びDVR20にUSB等の有線通信デバイスを装備させ、有線通信を介して伝送させるなどしても構わない。   In addition, in order to pass the controlled device registration password and its expiration date information from the DVR 20 to the mobile phone 10, the method of capturing a two-dimensional barcode with the camera provided in the mobile phone 10 has been described. As long as the controlled device registration password and the expiration date information can be passed from the mobile phone 10 to the mobile phone 10, any method may be used. For example, the DVR20 is equipped with a contactless IC card writing device, the mobile phone 10 is equipped with an IC card reading device, and the DVR20 writes the controlled device registration password and its expiration date information to the IC card. It is also possible to configure the mobile phone 10 to read information from the IC card and transmit it via the IC card. It is also possible to configure the same configuration as devices such as antennas and IC chips provided in the IC card in the mobile phone 10 and write directly to the mobile phone 10 with the DVR20 writing device. is there. Furthermore, the mobile phone 10 and the DVR 20 are equipped with wireless communication devices such as wireless LAN, Bluetooth, and infrared communication so that the controlled device registration password and the expiration date information are transmitted via the wireless communication. It may be configured, or the mobile phone 10 and the DVR 20 may be equipped with a wired communication device such as USB and transmitted via wired communication.

以上、本発明の実施形態のネットワークシステムの構成および動作を説明したが、サービスサーバ30の機能の一部は制御機器に移すことも可能である。例えば、サービスサーバ30がもっていた、SOAPインタフェースへのアクセス機能を制御機器(携帯電話10)がもつように変更することによって、XMPPログイン要求から始まるダイレクトアクセスの利用シーケンスは、制御機器(携帯電話10)とダイレクトアクセス管理サーバ40間で直接行える。   The configuration and operation of the network system according to the embodiment of the present invention have been described above. However, part of the functions of the service server 30 can be transferred to a control device. For example, by changing the access function to the SOAP interface that the service server 30 had so that the control device (cell phone 10) has, the direct access usage sequence starting from the XMPP login request is changed to the control device (cell phone 10). ) And the direct access management server 40.

また、制御機器の機能と被制御機器の機能が一体になることも可能である。この場合、制御機器(携帯電話10)から被制御機器(DVR20)のXMPPセッションにアクセスする際に、SOAPサーバ42を経由しないで、XMPPセッション間でダイレクトアクセスに必要な情報を交換することになる。   Further, the function of the control device and the function of the controlled device can be integrated. In this case, when accessing the XMPP session of the controlled device (DVR 20) from the control device (mobile phone 10), information necessary for direct access is exchanged between the XMPP sessions without going through the SOAP server 42. .

さらに、被制御機器同士のダイレクトアクセスも行うことも可能である。この場合、被制御機器同士の関連付けは、制御機器を用いて行う。   Furthermore, direct access between controlled devices is also possible. In this case, the controlled devices are associated with each other using the control device.

以上説明した実施形態では、制御機器である携帯電話10とダイレクトアクセス管理サーバ40との間にサービスサーバ30を配置しているため、ダイレクトアクセス管理サーバ40は、携帯電話10とサービスサーバ30との組み合わせに対して生成した制御機器・サービス管理IDを被制御機器管理IDと関連付けて記憶することとしたが、本発明はこのことに限定されない。すなわち、本発明は、サービスサーバ30を介さず、制御機器とダイレクトアクセス管理サーバ40との間で直接通信が行われる環境においても利用することができるものである。この場合にはダイレクトアクセス管理サーバ40は、上記の実施形態での制御機器・サービス管理IDに代えて制御機器を識別する制御機器管理IDを生成し、これを被制御機器管理IDと関連付けて記憶する。また、制御機器管理IDは、ダイレクトアクセス管理サーバ40にて生成してもよいし、制御機器が自身を識別することのできるIDを公開可能なものであるなら、この制御機器から与えられたIDを、被制御機器管理IDと関連付けられる制御機器管理IDとして用いてもよい。このことは、被制御機器管理IDについても同様であり、被制御機器が自身を識別することのできるIDを公開可能なものであるなら、この被制御機器から与えられたIDを、制御機器管理IDと関連付けられる被制御機器管理IDとして用いてもよい。また、ダイレクトアクセス管理サーバ40に制御機器および被制御機器として接続される機器は、それぞれ他の機器の制御を行う部分と他の機器によって制御が行われる部分の両方を有するものであってもよい。   In the embodiment described above, since the service server 30 is arranged between the mobile phone 10 that is a control device and the direct access management server 40, the direct access management server 40 is connected between the mobile phone 10 and the service server 30. Although the control device / service management ID generated for the combination is stored in association with the controlled device management ID, the present invention is not limited to this. That is, the present invention can be used in an environment where direct communication is performed between the control device and the direct access management server 40 without using the service server 30. In this case, the direct access management server 40 generates a control device management ID for identifying the control device instead of the control device / service management ID in the above embodiment, and stores this in association with the controlled device management ID. To do. The control device management ID may be generated by the direct access management server 40. If the control device can publish an ID that can identify itself, the ID given by the control device May be used as the control device management ID associated with the controlled device management ID. The same applies to the controlled device management ID, and if the controlled device can disclose an ID that can identify itself, the ID given from the controlled device is controlled by the controlled device management ID. It may be used as a controlled device management ID associated with the ID. In addition, the devices connected to the direct access management server 40 as control devices and controlled devices may each have both a portion that controls other devices and a portion that is controlled by other devices. .

(本発明の概念)
図33は本発明の特徴を概念的に示す図である。本発明にかかるサーバ装置140は、ネットワークを通じて第1の機器110および第2の機器120と接続される。サーバ装置140は、情報を記憶する記憶部141を備える。この記憶部141は上記の実施形態の記憶部41に対応するものである。サーバ装置140は、第1の機器110からの、第1の機器110に関連する第1の識別情報を含むパスワード発行要求に応じて第1のパスワードを生成し、第1の機器110に関連する第1の識別情報と対応付けて第1のパスワードを記憶部141に記憶し、生成した第1のパスワードを第1の機器110に送信する。ここで、第1の機器110および第2の機器120はそれぞれ、他の機器の制御を行う部分と他の機器によって制御が行われる部分の両方を有する機器である。
(Concept of the present invention)
FIG. 33 conceptually illustrates the features of the present invention. The server device 140 according to the present invention is connected to the first device 110 and the second device 120 through a network. The server device 140 includes a storage unit 141 that stores information. The storage unit 141 corresponds to the storage unit 41 of the above embodiment. The server device 140 generates a first password in response to a password issuance request including the first identification information related to the first device 110 from the first device 110, and relates to the first device 110. The first password is stored in the storage unit 141 in association with the first identification information, and the generated first password is transmitted to the first device 110. Here, each of the first device 110 and the second device 120 is a device having both a part that controls other devices and a part that is controlled by other devices.

第1の機器110は、サーバ装置140より取得した第1のパスワードを第2の機器120に転送し、第2の機器120はこれを第2のパスワードとして保持する。第2の機器120は自機器の登録をサーバ装置140に要求する際に、第2のパスワードと第2の機器120に関連する第2の識別情報をサーバ装置140に送信する。サーバ装置140は、第2の機器120から受信した第2のパスワードが記憶部141に記憶されているか否かを検証し、第2のパスワードが記憶部141に記憶されている際に、第2の機器120に関連する第2の識別情報を、その第2のパスワードと同じ第1のパスワードと対応付けられている第1の識別情報に関連付けて記憶部141に登録する。これにより、サーバ装置140において、第1の機器110の第1の識別情報と第2の機器120の第2の識別情報との関連付け、つまり制御する側の機器と制御される側の機器との関連付けが達成される。   The first device 110 transfers the first password acquired from the server device 140 to the second device 120, and the second device 120 holds this as the second password. When the second device 120 requests the server device 140 to register its own device, the second device 120 transmits a second password and second identification information related to the second device 120 to the server device 140. The server device 140 verifies whether or not the second password received from the second device 120 is stored in the storage unit 141, and when the second password is stored in the storage unit 141, the second password is stored. The second identification information related to the device 120 is registered in the storage unit 141 in association with the first identification information associated with the same first password as the second password. Thereby, in the server device 140, the association between the first identification information of the first device 110 and the second identification information of the second device 120, that is, between the controlling device and the controlled device. Association is achieved.

なお、サーバ装置140の記憶部141に記憶される第1の機器110に関連する第1の識別情報は、サーバ装置140によって生成されたものでもよいし、第1の機器110から提供される自機器の識別情報でもよい。また、サーバ装置140の記憶部141に記憶される第2の機器120に関連する第2の識別情報もサーバ装置140によって生成されたものでもよいし、第2の機器120から提供される自機器の識別情報であってもよい。   The first identification information related to the first device 110 stored in the storage unit 141 of the server device 140 may be generated by the server device 140 or may be provided from the first device 110. It may be device identification information. The second identification information related to the second device 120 stored in the storage unit 141 of the server device 140 may also be generated by the server device 140, or the own device provided from the second device 120 May be the identification information.

図34は図33に示した本発明にかかるサーバ装置の変形例である。この変形例では、サーバ装置240は、ネットワークを通じて制御機器210および被制御機器220と接続される。サーバ装置240は、制御機器210からの、制御機器210に関連する第1の識別情報を含むパスワード発行要求に応じて第1のパスワードを生成し、制御機器210に関連する第1の識別情報と対応付けて第1のパスワードを記憶部241に記憶し、生成した第1のパスワードを制御機器210に送信する。   FIG. 34 shows a modification of the server device according to the present invention shown in FIG. In this modification, the server device 240 is connected to the control device 210 and the controlled device 220 through a network. The server device 240 generates a first password in response to a password issuance request including the first identification information related to the control device 210 from the control device 210, and the first identification information related to the control device 210 The first password is stored in the storage unit 241 in association with it, and the generated first password is transmitted to the control device 210.

制御機器210は、サーバ装置240より取得した第1のパスワードを第2の機器220に転送し、被制御機器220はこれを第2のパスワードとして保持する。被制御機器220は自機器の登録をサーバ装置240に要求する際に、第2のパスワードと被制御機器220に関連する第2の識別情報をサーバ装置240に送信する。サーバ装置240は、被制御機器220から受信した第2のパスワードが記憶部241に記憶されているか否かを検証し、第2のパスワードが記憶部241に記憶されている際に、被制御機器220に関連する第2の識別情報を、その第2のパスワードと同じ第1のパスワードと対応付けられている第1の識別情報に関連付けて記憶部241に登録する。これにより、サーバ装置240において、制御機器210の第1の識別情報と被制御機器220の第2の識別情報との関連付けが達成される。   The control device 210 transfers the first password acquired from the server device 240 to the second device 220, and the controlled device 220 holds this as the second password. When the controlled device 220 requests the server device 240 to register its own device, the controlled device 220 transmits a second password and second identification information related to the controlled device 220 to the server device 240. The server device 240 verifies whether or not the second password received from the controlled device 220 is stored in the storage unit 241, and when the second password is stored in the storage unit 241, the controlled device The second identification information related to 220 is registered in the storage unit 241 in association with the first identification information associated with the same first password as the second password. Thereby, in the server apparatus 240, the association between the first identification information of the control device 210 and the second identification information of the controlled device 220 is achieved.

なお、サーバ装置240の記憶部241に記憶される制御機器210に関連する第1の識別情報は、サーバ装置240によって生成されたものでもよいし、制御機器210から提供される自機器の識別情報であってもよい。また、サーバ装置240の記憶部241に記憶される被制御機器220に関連する第2の識別情報もサーバ装置240によって生成されたものでもよいし、被制御機器220から提供される自機器の識別情報であってもよい。   The first identification information related to the control device 210 stored in the storage unit 241 of the server device 240 may be generated by the server device 240, or the identification information of the own device provided from the control device 210 It may be. The second identification information related to the controlled device 220 stored in the storage unit 241 of the server device 240 may also be generated by the server device 240, or the identification of the own device provided from the controlled device 220 It may be information.

図35は図33に示した本発明にかかるサーバ装置の別の変形例である。この変形例では、サーバ装置340は、図34に示したサーバ装置240と同様にネットワークを通じて制御機器310および被制御機器320と接続される。ただし、この例では、サーバ装置340は、被制御機器320からの、被制御機器320に関連する第1の識別情報を含むパスワード発行要求に応じて第1のパスワードを生成し、被制御機器320に関連する第1の識別情報と対応付けて第1のパスワードを記憶部341に記憶し、第1のパスワードを被制御機器320に送信する。   FIG. 35 shows another modification of the server device according to the present invention shown in FIG. In this modification, the server device 340 is connected to the control device 310 and the controlled device 320 through the network in the same manner as the server device 240 shown in FIG. However, in this example, the server device 340 generates a first password in response to a password issuance request including the first identification information related to the controlled device 320 from the controlled device 320, and the controlled device 320 The first password is stored in the storage unit 341 in association with the first identification information related to, and the first password is transmitted to the controlled device 320.

被制御機器320は、サーバ装置340より取得した第1のパスワードを制御機器310に転送し、制御機器310はこれを第2のパスワードとして保持する。制御機器310は自機器の登録をサーバ装置340に要求する際に、第2のパスワードと制御機器310に関連する第2の識別情報をサーバ装置340に送信する。サーバ装置340は、制御機器310から受信した第2のパスワードが記憶部341に記憶されているか否かを検証し、第2のパスワードが記憶部341に記憶されている際に、制御機器310に関連する第2の識別情報を、その第2のパスワードと同じ第1のパスワードと対応付けられている第1の識別情報に関連付けて記憶部341に登録する。これにより、サーバ装置340において、被制御機器320の第1の識別情報と制御機器310の第2の識別情報との関連付けが達成される。   The controlled device 320 transfers the first password acquired from the server device 340 to the control device 310, and the control device 310 holds this as the second password. When the control device 310 requests the server device 340 to register its own device, the control device 310 transmits a second password and second identification information related to the control device 310 to the server device 340. The server device 340 verifies whether or not the second password received from the control device 310 is stored in the storage unit 341. When the second password is stored in the storage unit 341, the server device 340 The related second identification information is registered in the storage unit 341 in association with the first identification information associated with the same first password as the second password. Thereby, in the server device 340, the association between the first identification information of the controlled device 320 and the second identification information of the control device 310 is achieved.

なお、サーバ装置340の記憶部341に記憶される被制御機器320に関連する第1の識別情報は、サーバ装置340によって生成されたものでもよいし、被制御機器320から提供される自機器の識別情報であってもよい。また、サーバ装置340の記憶部341に記憶される制御機器310に関連する第2の識別情報も、サーバ装置340によって生成されたものでもよいし、制御機器310から提供される自機器の識別情報であってもよい。   Note that the first identification information related to the controlled device 320 stored in the storage unit 341 of the server device 340 may be generated by the server device 340 or the own device provided from the controlled device 320. It may be identification information. The second identification information related to the control device 310 stored in the storage unit 341 of the server device 340 may also be generated by the server device 340, or the identification information of the own device provided from the control device 310. It may be.

図36は図33に示した本発明のさらに別の変形例である。この変形例では、制御機器410はサービスサーバ430を介してサーバ装置440と接続される。サーバ装置440はネットワークを通じて、サービスサーバ430および被制御機器420と接続される。サービスサーバ430は、携帯電話などの制御機器410に対してネットワーク越しに被制御機器420にアクセスする各種のサービスを提供するサーバである。したがって、この変形例は上記の第1の実施形態および第2の実施形態に対応する。   FIG. 36 shows still another modification of the present invention shown in FIG. In this modification, the control device 410 is connected to the server device 440 via the service server 430. Server device 440 is connected to service server 430 and controlled device 420 via a network. The service server 430 is a server that provides various services for accessing the controlled device 420 via the network to the control device 410 such as a mobile phone. Therefore, this modification corresponds to the first and second embodiments described above.

サーバ装置440は、サービスサーバ430を通じて制御機器410から送られてきたパスワード発行要求に応じて第1のパスワードを生成し、サービスサーバ430と制御機器410に関連する第1の識別情報とを対応付けて第1のパスワードを記憶部441に記憶し、第1のパスワードをサービスサーバ430を通じて制御機器410に送信する。制御機器410は、サービスサーバ430を通じてサーバ装置440より取得した第1のパスワードを被制御機器420に転送し、被制御機器420はこれを第2のパスワードとして保持する。   The server device 440 generates a first password in response to a password issuance request sent from the control device 410 through the service server 430, and associates the service server 430 with the first identification information related to the control device 410. The first password is stored in the storage unit 441, and the first password is transmitted to the control device 410 through the service server 430. The control device 410 transfers the first password acquired from the server device 440 through the service server 430 to the controlled device 420, and the controlled device 420 holds this as the second password.

被制御機器420は自機器の登録をサーバ装置440に要求する際に、第2のパスワードと被制御機器420に関連する第2の識別情報をサーバ装置440に送信する。サーバ装置440は、被制御機器420から受信した第2のパスワードが記憶部441に記憶されているか否かを検証し、第2のパスワードが記憶部441に記憶されている際に、被制御機器420に関連する第2の識別情報を、その第2のパスワードと同じ第1のパスワードと対応付けられている第1の識別情報に関連付けて記憶部441に登録する。これにより、サーバ装置440において、制御機器410の第1の識別情報と被制御機器420の第2の識別情報との関連付けが達成される。   When the controlled device 420 requests the server device 440 to register its own device, the controlled device 420 transmits a second password and second identification information related to the controlled device 420 to the server device 440. The server device 440 verifies whether or not the second password received from the controlled device 420 is stored in the storage unit 441, and when the second password is stored in the storage unit 441, the controlled device The second identification information related to 420 is registered in the storage unit 441 in association with the first identification information associated with the same first password as the second password. Thereby, in the server device 440, the association between the first identification information of the control device 410 and the second identification information of the controlled device 420 is achieved.

なお、本発明は、上述の実施形態にのみ限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変更を加え得ることは勿論である。   It should be noted that the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the scope of the present invention.

本発明の一の実施形態にかかるネットワークシステムの全体的な構成を示す図である。1 is a diagram showing an overall configuration of a network system according to an embodiment of the present invention. 図1のネットワークシステムにおいて制御機器とサービスとの組み合わせの登録と被制御機器の登録を行う際の情報の流れを示すシーケンス図である。FIG. 2 is a sequence diagram showing a flow of information when registering a combination of a control device and a service and registering a controlled device in the network system of FIG. 図2の登録時の制御機器の動作を示すフローチャートである。3 is a flowchart showing the operation of a control device at the time of registration in FIG. 図2の登録時のサービスサーバの動作を示すフローチャートである。3 is a flowchart showing the operation of the service server at the time of registration in FIG. 図2の登録時のダイレクトアクセス管理サーバの動作を示すフローチャートである。3 is a flowchart showing the operation of the direct access management server at the time of registration in FIG. 図2の登録時のDVRの動作を示すフローチャートである。3 is a flowchart showing an operation of the DVR at the time of registration in FIG. 図1のネットワークシステムにおいて被制御機器のXMPPログインおよびリモート録画予約時の情報の流れを示すシーケンス図である。FIG. 2 is a sequence diagram showing a flow of information at the time of XMPP login and remote recording reservation of a controlled device in the network system of FIG. リモート録画予約に関する携帯電話の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the mobile telephone regarding a remote recording reservation. リモート録画予約に関するサービスサーバの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the service server regarding a remote recording reservation. 被制御機器のXMPPログインおよびリモート録画予約およびコンテンツ取得に関するダイレクトアクセス管理サーバの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the direct access management server regarding XMPP login of a controlled apparatus, remote recording reservation, and content acquisition. リモート録画予約およびコンテンツ取得に関するダイレクトアクセス管理サーバの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the direct access management server regarding remote recording reservation and content acquisition. リモート録画予約およびコンテンツ取得に関するDVRの動作を示すフローチャートである。It is a flowchart which shows operation | movement of DVR regarding a remote recording reservation and content acquisition. 図1のネットワークシステムにおいて携帯電話からのダイレクトでのリモート録画予約を行う場合の情報の流れを示すシーケンス図である。FIG. 2 is a sequence diagram showing a flow of information when performing remote recording reservation directly from a mobile phone in the network system of FIG. 図1のネットワークシステムにおいて携帯電話からのトンネリングのリモート録画予約を行う場合の情報の流れを示すシーケンス図である。FIG. 2 is a sequence diagram showing a flow of information when performing remote recording reservation for tunneling from a mobile phone in the network system of FIG. 図1のネットワークシステムにおいて携帯電話からのダイレクトアクセスによるコンテンツ取得時の情報の流れを示すシーケンス図である。FIG. 2 is a sequence diagram showing a flow of information at the time of content acquisition by direct access from a mobile phone in the network system of FIG. サービスサーバからのダイレクトアクセスによるコンテンツ取得時の情報の流れを示すシーケンス図である。It is a sequence diagram which shows the flow of the information at the time of the content acquisition by the direct access from a service server. コンテンツ取得時の携帯電話の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the mobile telephone at the time of content acquisition. コンテンツ取得時のサービスサーバの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the service server at the time of content acquisition. コンテンツ取得時のサービスサーバの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the service server at the time of content acquisition. 図1のネットワークシステムにおいてダイレクトアクセス終了時の情報の流れを示すシーケンス図である。FIG. 2 is a sequence diagram showing a flow of information at the end of direct access in the network system of FIG. ダイレクトアクセス終了時のサービスサーバの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the service server at the time of completion | finish of direct access. ダイレクトアクセス終了時のダイレクトアクセス管理サーバの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the direct access management server at the time of completion | finish of direct access. ダイレクトアクセス終了時のDVRの動作を示すフローチャートである。It is a flowchart which shows operation | movement of DVR at the time of completion | finish of direct access. Full JIDの構成を示す図である。It is a figure which shows the structure of Full JID. Full JIDの別の構成を示す図である。It is a figure which shows another structure of Full JID. 第2の実施形態のネットワークシステムにおける携帯電話とサービスとの組み合わせの登録とDVRの登録を行う際の情報の流れを示すシーケンス図である。It is a sequence diagram which shows the flow of the information at the time of performing registration of the combination of a mobile telephone and a service in the network system of 2nd Embodiment, and registration of DVR. 図26の登録時の携帯電話の動作を示すフローチャートである。27 is a flowchart showing an operation of the mobile phone at the time of registration in FIG. 図26の登録時のサービスサーバの動作を示すフローチャートである。27 is a flowchart showing the operation of the service server at the time of registration in FIG. 図26の登録時のダイレクトアクセス管理サーバのフローチャートである。27 is a flowchart of the direct access management server at the time of registration in FIG. 図26の登録時のダイレクトアクセス管理サーバの動作を示すフローチャートである。27 is a flowchart showing the operation of the direct access management server at the time of registration in FIG. 図26の登録時のDVRの動作を示すフローチャートである。27 is a flowchart showing an operation of the DVR at the time of registration in FIG. サービスサーバを介さない携帯電話からのトンネリングのリモート録画予約を行う場合の情報の流れを示すシーケンス図である。It is a sequence diagram which shows the flow of information in the case of performing remote recording reservation of tunneling from a mobile phone without going through a service server. 本発明の特徴を概念的に示す図である。It is a figure which shows the characteristic of this invention notionally. 本発明にかかるサーバ装置の変形例を示す図である。It is a figure which shows the modification of the server apparatus concerning this invention. 本発明にかかるサーバ装置の別の変形例を示す図である。It is a figure which shows another modification of the server apparatus concerning this invention. 本発明にかかるサーバ装置のさらに別の変形例を示す図である。It is a figure which shows another modification of the server apparatus concerning this invention.

符号の説明Explanation of symbols

10 携帯電話(制御機器)
11 記憶部
20 DVR(被制御機器)
21 記憶部
30 サービスサーバ
31 記憶部
40 ダイレクトアクセス管理サーバ
41 記憶部
42 SOAPサーバ
43 XMPPサーバ
50 ルータ
10 Mobile phone (control device)
11 Memory
20 DVR (controlled device)
21 Memory
30 Service server
31 Memory
40 Direct access management server
41 Memory
42 SOAP server
43 XMPP server
50 routers

Claims (16)

ネットワークを介して接続された第1の機器と第2の機器とを互いに関連付けて登録する処理を行うサーバ装置であって、
情報を記憶する記憶手段と、
前記第1の機器からのパスワード発行要求に応じて第1のパスワードを生成し、前記第1の機器に関連する第1の識別情報と対応付けて前記第1のパスワードを前記記憶手段に記憶し、前記第1のパスワードを前記第1の機器に送信する第1の処理手段と、
前記第2の機器から送信された第2のパスワードを受信し、この受信した第2のパスワードが前記記憶手段に記憶されているかを確認し、前記第2のパスワードが前記記憶手段に記憶されている場合に、前記第2の機器に関連する第2の識別情報を前記第1の識別情報に関連付けて前記記憶手段に記憶する第2の処理手段と
を具備する。
A server device that performs processing of registering a first device and a second device connected via a network in association with each other,
Storage means for storing information;
A first password is generated in response to a password issuance request from the first device, and the first password is stored in the storage unit in association with first identification information related to the first device. First processing means for transmitting the first password to the first device;
The second receiving a second password transmitted from the device, checks whether the second password this received is stored in the storage means, said second password stored in said storage means And second processing means for storing second identification information related to the second device in the storage means in association with the first identification information.
請求項1記載のサーバ装置において、
前記第1の処理手段は、前記第1の機器に関連する前記第1の識別情報を生成し、生成した前記第1の識別情報と前記第1のパスワードとを対応付けて、前記記憶手段に記憶する。
The server device according to claim 1,
The first processing unit generates the first identification information related to the first device, associates the generated first identification information with the first password, and stores the first identification information in the storage unit. Remember.
請求項2記載のサーバ装置において、
前記第1の機器は、第1の機器へのサービスを提供するサービスサーバ装置を介して前記サーバ装置に接続され、
前記第1の処理手段は、前記第1の識別情報として、前記第1の機器と前記サービスサーバ装置に関連する識別情報を生成する。
The server device according to claim 2,
The first device is connected to the server device via a service server device that provides a service to the first device;
The first processing means generates identification information related to the first device and the service server device as the first identification information.
請求項3記載のサーバ装置において、
前記第1の処理手段は、前記第1の識別情報として、前記第1の機器と前記サービスサーバ装置で提供されるサービスとの組み合わせに対する識別情報を生成する。
The server device according to claim 3,
The first processing means generates identification information for a combination of the first device and a service provided by the service server device as the first identification information.
請求項1記載のサーバ装置において、
前記第2の装置の正当性を認証する機器認証処理を実行し、前記第2の機器の認証に必要な認証情報と関連付けた認証識別情報を生成し、生成した前記認証識別情報を前記第2の装置に対して送信する手段を更に具備し、
前記第2の処理手段は、前記認証識別情報を、前記第2の識別情報として前記第1の識別情報に関連付けて前記記憶手段に記憶する。
The server device according to claim 1,
Device authentication processing for authenticating the validity of the second device is executed, authentication identification information associated with authentication information necessary for authentication of the second device is generated, and the generated authentication identification information is used as the second authentication information. Further comprising means for transmitting to
The second processing means stores the authentication identification information in the storage means in association with the first identification information as the second identification information.
請求項1記載のサーバ装置において、
前記第1の処理手段は、生成した前記第1のパスワードに有効期限を設定し、
前記第2の処理手段は、前記有効期限をチェックし、前記有効期限が切れている場合には、前記第2の識別情報を前記第1の識別情報に関連付ける処理を行わない。
The server device according to claim 1,
The first processing means sets an expiration date for the generated first password,
The second processing means checks the expiration date, and if the expiration date has expired, does not perform a process of associating the second identification information with the first identification information.
請求項6記載のサーバ装置において、
前記第1の処理手段は、生成した前記第1のパスワードと前記第1のパスワードに設定された有効期限の情報とを前記第1の機器に送信する。
The server device according to claim 6, wherein
The first processing means transmits the generated first password and information on an expiration date set in the first password to the first device.
請求項1記載のサーバ装置において、
前記サーバ装置は、前記第1の識別情報に対して複数の前記第2の識別情報を関連付ける。
The server device according to claim 1,
The server device associates a plurality of the second identification information with the first identification information.
請求項1記載のサーバ装置において、
前記サーバ装置は、複数の前記第1の識別情報に前記第2の識別情報を関連付ける。
The server device according to claim 1,
The server device associates the second identification information with a plurality of the first identification information.
請求項1のサーバ装置において、
前記第2の処理手段は、前記第2の識別情報を前記第1の識別情報に関連付けて記憶する際に、前記記憶手段に記憶されている前記第1のパスワードを消去する。
The server apparatus according to claim 1,
The second processing means erases the first password stored in the storage means when storing the second identification information in association with the first identification information.
請求項1のサーバ装置において、
前記記憶手段に記憶された前記第1の識別情報と前記第2の識別情報との関連付けをもとに、前記第1の識別情報に関連付けられている前記第2の識別情報のリストを生成し、前記第1の機器に送信する手段をさらに具備する。
The server apparatus according to claim 1,
Based on the association between the first identification information and the second identification information stored in the storage means, a list of the second identification information associated with the first identification information is generated. And a means for transmitting to the first device.
請求項1のサーバ装置において、
前記第1の装置から、前記第2の装置への要求を受信したとき、前記第1の装置に関連する情報が前記第1の識別情報が前記第2の識別情報に関連付けて前記記憶手段に記憶されているかを判別し、前記前記第1の識別情報が前記第2の識別情報に関連付けて記憶されていない場合には、前記第1の装置にエラーを送信する。
The server apparatus according to claim 1,
When a request to the second device is received from the first device, information related to the first device is associated with the first identification information and the second identification information is stored in the storage unit. It is determined whether the first identification information is stored, and if the first identification information is not stored in association with the second identification information, an error is transmitted to the first device.
請求項1のサーバ装置において、
前記第1の装置から、前記第2の装置への要求を受信したとき、前記第1の装置に関連する情報が前記第1の識別情報が前記第2の識別情報に関連付けて前記記憶手段に記憶されているかを判別し、前記前記第1の識別情報が前記第2の識別情報に関連付けて記憶されている場合には、前記第2の装置に前記第1の装置からの要求を送信する。
The server apparatus according to claim 1,
When a request to the second device is received from the first device, information related to the first device is associated with the first identification information and the second identification information is stored in the storage unit. It is determined whether the first identification information is stored, and if the first identification information is stored in association with the second identification information, a request from the first device is transmitted to the second device. .
ネットワークに接続された第1の機器と第2の機器とを関連付けてサーバ装置に登録する方法であって、
前記サーバ装置は、
第1の処理手段により、前記第1の機器からのパスワード発行要求に応じて第1のパスワードを生成し、前記第1の機器に関連する第1の識別情報と対応付けて前記第1のパスワードを記憶手段に記憶し、前記第1のパスワードを前記第1の機器に送信するステップと、
第2の処理手段により、前記第2の機器から送信された第2のパスワードを受信し、この受信した第2のパスワードが前記記憶手段に記憶されているかを確認し、前記第2のパスワードが前記記憶手段に記憶されている場合に、前記第2の機器に関連する第2の識別情報を前記第1の識別情報に関連付けて記憶するステップとを具備する。
A method for registering a first device connected to a network and a second device in association with a server device,
The server device
The first processing means generates a first password in response to a password issuance request from the first device, and associates the first password with the first identification information related to the first device. Storing in a storage means, and transmitting the first password to the first device;
The second processing means receives the second password transmitted from the second device, confirms whether or not the received second password is stored in the storage means, and the second password is Storing the second identification information related to the second device in association with the first identification information when stored in the storage means.
記憶部を有するコンピュータを、ネットワークを介して接続された第1の機器と第2の機器とを互いに関連付けて記憶する処理を行うサーバ装置として機能させるプログラムであって、
前記プログラムは、
前記コンピュータに、前記第1の機器からのパスワード発行要求に応じて第1のパスワードを生成させ、前記第1の機器に関連する第1の識別情報と対応付けて前記第1のパスワードを前記記憶部に記憶させ、前記第1のパスワードを前記第1の機器に送信させる第1の処理部と、
前記コンピュータに、前記第2の機器から送信された第2のパスワードを受信させ、この受信した第2のパスワードが前記記憶部に記憶されているかを検証させ、前記第2のパスワードが前記記憶部に記憶されている場合に、前記第2の機器に関連する第2の識別情報を前記第1の識別情報に関連付けて前記記憶部に記憶させる第2の処理部とを具備する。
A program that causes a computer having a storage unit to function as a server device that performs processing of associating and storing a first device and a second device connected via a network,
The program is
The computer generates a first password in response to a password issuance request from the first device, and stores the first password in association with first identification information related to the first device. A first processing unit for storing the first password and transmitting the first password to the first device;
Causing the computer to receive a second password transmitted from the second device, to verify whether the received second password is stored in the storage unit, and to store the second password in the storage unit. And a second processing unit that stores second identification information related to the second device in the storage unit in association with the first identification information.
記憶部を有するコンピュータを、ネットワークを介して接続された第1の機器と第2の機器とを互いに関連付けて記憶する処理を行うサーバ装置として機能させるプログラムが記録された記録媒体であって、
前記プログラムは、
前記コンピュータに、前記第1の機器からのパスワード発行要求に応じて第1のパスワードを生成させ、前記第1の機器に関連する第1の識別情報と対応付けて前記第1のパスワードを前記記憶部に記憶させ、前記第1のパスワードを前記第1の機器に送信させる第1の処理部と、
前記コンピュータに、前記第2の機器から送信された第2のパスワードを受信させ、この受信した第2のパスワードが前記記憶部に記憶されているかを検証させ、前記第2のパスワードが前記記憶部に記憶されている場合に、前記第2の機器に関連する第2の識別情報を前記第1の識別情報に関連付けて前記記憶部に記憶させる第2の処理部とを具備する。
A recording medium recorded with a program that causes a computer having a storage unit to function as a server device that performs processing of associating and storing a first device and a second device connected via a network,
The program is
The computer generates a first password in response to a password issuance request from the first device, and stores the first password in association with first identification information related to the first device. A first processing unit for storing the first password and transmitting the first password to the first device;
Causing the computer to receive a second password transmitted from the second device, to verify whether the received second password is stored in the storage unit, and to store the second password in the storage unit. And a second processing unit that stores second identification information related to the second device in the storage unit in association with the first identification information.
JP2006132350A 2005-05-11 2006-05-11 Server apparatus, device association registration method, program, and recording medium Expired - Fee Related JP4961826B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006132350A JP4961826B2 (en) 2005-05-11 2006-05-11 Server apparatus, device association registration method, program, and recording medium

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
JP2005138943 2005-05-11
JP2005138943 2005-05-11
JP2006124533 2006-04-27
JP2006124533 2006-04-27
JP2006132350A JP4961826B2 (en) 2005-05-11 2006-05-11 Server apparatus, device association registration method, program, and recording medium

Publications (2)

Publication Number Publication Date
JP2007316678A JP2007316678A (en) 2007-12-06
JP4961826B2 true JP4961826B2 (en) 2012-06-27

Family

ID=38850513

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006132350A Expired - Fee Related JP4961826B2 (en) 2005-05-11 2006-05-11 Server apparatus, device association registration method, program, and recording medium

Country Status (1)

Country Link
JP (1) JP4961826B2 (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5317795B2 (en) * 2009-03-30 2013-10-16 株式会社野村総合研究所 Authentication system and authentication method
JP4785952B2 (en) * 2009-06-16 2011-10-05 日本電信電話株式会社 ACCESS CONTROL SYSTEM, ACCESS CONTROL METHOD, ACCESS CONTROL PROGRAM, AND ACCESS CONTROL PROGRAM RECORDING MEDIUM
JP2011164754A (en) * 2010-02-05 2011-08-25 Toyota Motor Corp Radio communication system, information processing center, and radio communication method
JP2013196508A (en) * 2012-03-21 2013-09-30 Ricoh Co Ltd Equipment management system, equipment management method, server device and equipment management program
JP2014191455A (en) 2013-03-26 2014-10-06 Fuji Xerox Co Ltd Information processing apparatus, information processing system and information processing program
JP6296324B2 (en) 2013-07-12 2018-03-20 ブラザー工業株式会社 Registration server program, information device, information device program, and network system
JP2015050752A (en) * 2013-09-04 2015-03-16 シャープ株式会社 Registration support system for remote control system
JP6341657B2 (en) * 2013-12-13 2018-06-13 キヤノン株式会社 COMMUNICATION DEVICE, ITS CONTROL METHOD, SYSTEM, PROGRAM, AND STORAGE MEDIUM
JP6364999B2 (en) 2014-06-24 2018-08-01 ブラザー工業株式会社 COMMUNICATION SYSTEM, SERVER DEVICE, AND CLIENT DEVICE
JP6469770B2 (en) * 2017-07-07 2019-02-13 シャープ株式会社 Registration support system in remote operation system
JP2017204872A (en) * 2017-07-07 2017-11-16 シャープ株式会社 Registration support system in remote control system
JP7115027B2 (en) 2018-05-22 2022-08-09 ブラザー工業株式会社 Communication device and computer program for the communication device
JP6640942B2 (en) * 2018-09-03 2020-02-05 シャープ株式会社 Registration support system for remote control system
JP7070271B2 (en) * 2018-09-19 2022-05-18 富士通株式会社 Device registration device, device registration method and device registration program
JP6609788B1 (en) * 2018-10-01 2019-11-27 二村 憲人 Information communication device, authentication program for information communication device, and authentication method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002176496A (en) * 2000-12-08 2002-06-21 K Laboratory Co Ltd Method for relating mobile terminals by voice input
JP2003179699A (en) * 2001-12-12 2003-06-27 Matsushita Electric Ind Co Ltd Household electric appliance remote control system via network, method for the same and authentication system
JP4487490B2 (en) * 2003-03-10 2010-06-23 ソニー株式会社 Information processing apparatus, access control processing method, information processing method, and computer program
JP4355611B2 (en) * 2003-06-30 2009-11-04 パナソニック株式会社 COMMUNICATION SYSTEM, COMMUNICATION METHOD, BASE STATION DEVICE, CONTROLLER, DEVICE, AND CONTROL PROGRAM

Also Published As

Publication number Publication date
JP2007316678A (en) 2007-12-06

Similar Documents

Publication Publication Date Title
JP4961826B2 (en) Server apparatus, device association registration method, program, and recording medium
KR101278074B1 (en) Server device, device-correlated registration method, and recording medium
JP4935181B2 (en) Processing equipment
JP4251207B2 (en) Server apparatus, reconnection control method, device apparatus, reconnection method, program, and recording medium
KR101264816B1 (en) Server device inter-server device connection method program and recording medium
CN101465888B (en) Network system, direct access method and network domestic appliance
CN101321105B (en) Network system, message processing method and device for the same
JP4349365B2 (en) Control information transmission method, relay server, and controlled device
JP5624525B2 (en) Information processing apparatus, resource providing apparatus, and information processing system
WO2007004668A1 (en) Information transmitting device, information acquiring terminal, and information distributing system
JP4559988B2 (en) Service providing system, server device and portable communication device used in the service providing system, and program for these devices
JP4651690B2 (en) Home appliance login system
JP5012688B2 (en) Network system and connection method
JP4740092B2 (en) Communication system and communication method
JP4747939B2 (en) Server apparatus, inter-device connection method of server apparatus, program, and recording medium
CN100533415C (en) Server device, inter-server device connection method
Razzak et al. Mobile interaction with smart environments through linked data
EP4040725A1 (en) Information processing apparatus and information processing program
Jo et al. Interoperability and anonymity for ID management systems
CN101090399A (en) Information delivery system
De Biase et al. A computational architecture for organic and heterogeneous networks: the swarm operating system control plane

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090428

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111220

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120213

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: 20120228

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120312

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150406

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees