JP2007310538A - Bi-directionally controllable client/server system composed of server equipment and client equipment - Google Patents
Bi-directionally controllable client/server system composed of server equipment and client equipment Download PDFInfo
- Publication number
- JP2007310538A JP2007310538A JP2006137536A JP2006137536A JP2007310538A JP 2007310538 A JP2007310538 A JP 2007310538A JP 2006137536 A JP2006137536 A JP 2006137536A JP 2006137536 A JP2006137536 A JP 2006137536A JP 2007310538 A JP2007310538 A JP 2007310538A
- Authority
- JP
- Japan
- Prior art keywords
- command
- client
- event
- server device
- server
- 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.)
- Pending
Links
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
Description
本発明はネットワーク通信方式に関し、ネットワークで接続されたクライアント機器とサーバ機器の2つの機器で構成され、規格に基づきクライアント機器がネットワークを介してサーバ機器を一方的に制御するクライアントサーバシステムにおいて、サーバ機器がネットワークを介してクライアント機器にコマンドを送信し、そのコマンドに基づきクライアント機器を制御する方法に関する。 The present invention relates to a network communication system, which is composed of two devices, a client device and a server device connected via a network, in a client server system in which a client device controls a server device unilaterally via a network based on a standard. The present invention relates to a method in which a device transmits a command to a client device via a network and controls the client device based on the command.
近年、xDSL(x Digital Subscriber Line)や光ファイバーなどのブロードバンド環境が整ったことにより、企業、一般家庭を問わずインターネット接続が急速に普及してきている。また、家庭内のPCや家電機器をイーサネット(登録商標)や無線LANなどで接続するホームネットワーク環境も一般化してきている。この様な中で、パーソナルコンピュータだけでなく、テレビやDVDレコーダ、エアコン、冷蔵庫のような家電機器もIP(Internet Protocol)ネットワークにより相互に接続できるようになってきており、ホームネットワークにおいては家電機器をコントロールするプロトコルとしてUPnP AV(Universal Plug and Play Audio and Visual)規格が最近注目されている。かかる先行技術は、文献公知発明に係るものでないため、記載すべき先行技術文献情報はない。 In recent years, with the establishment of a broadband environment such as xDSL (x Digital Subscriber Line) and optical fiber, Internet connections are rapidly spreading regardless of companies and general households. In addition, a home network environment in which home PCs and home appliances are connected by Ethernet (registered trademark), wireless LAN, or the like has become common. Under such circumstances, not only personal computers but also home appliances such as TVs, DVD recorders, air conditioners, and refrigerators can be connected to each other via an IP (Internet Protocol) network. Recently, the UPnP AV (Universal Plug and Play Audio and Visual) standard has been attracting attention as a protocol for controlling the above. Since such prior art is not related to the literature known invention, there is no prior art document information to be described.
しかしながら、UPnP AV規格においては、“コントロールポイント”と呼ばれるクライアント機器が、“デバイス”と呼ばれるサーバ機器を制御するように規定されているため、双方の機器が他方の機器を制御可能とするためには、双方の機器においてそれぞれ“デバイス”と“コントロールポイント”の両機能を備える必要があった。 However, in the UPnP AV standard, since a client device called “control point” is regulated to control a server device called “device”, both devices can control the other device. Both devices need to have both “device” and “control point” functions.
本発明は、以上のような課題を解決するもので、UPnP AV規格におけるサーバ機器である“デバイス”からクライアント機器である“コントロールポイント”を制御するコマンドを送信することで、単一の機器に“デバイス”および“コントロールポイント”の両機能を備えることなく、どちらか一方の機能を備えるだけで双方向からの制御を可能とする、双方向制御可能なクライアントサーバシステムを提供することを目的とする。 The present invention solves the above-described problems, and transmits a command for controlling a “control point” that is a client device from a “device” that is a server device in the UPnP AV standard, to a single device. An object is to provide a bidirectionally controllable client-server system that enables control from both directions only by providing either of the functions of “device” and “control point”. To do.
上記課題を解決するために、本願の第1の発明(請求項1に対応)のクライアントサーバシステムは、ネットワークに接続されたサーバ機器と、規格に基づき前記サーバ機器における内部状態が変化した場合に前記サーバ機器から送信される前記サーバ機器の内部の状態を通知するイベントを、前記ネットワークを介して受信するように関係づけられたクライアント機器とで構成されるクライアントサーバシステムであって、前記サーバ機器は、前記ネットワークを介して通信パケットを送受信する通信手段(イ)と、前記通信手段(イ)を介して送受信する前記通信パケットを前記規格に基づくプロトコルに従って処理するとともに、前記クライアント機器に対して内部の状態を通知する前記イベントを生成して送信するプロトコル処理手段(ロ)と、ユーザなどから入力される、あるいは前記サーバ機器が自発的に発行する前記クライアント機器に対するコマンドに対応したID(IDentification)を予め取り決められた規則に基づいて生成し、前記プロトコル処理手段(ロ)に対して前記生成したIDを通知して前記生成したIDを前記イベントに埋め込ませるとともに、前記プロトコル処理手段(ロ)に対して前記イベントの発行を促すID生成手段と、前記ユーザなどから入力される、あるいは前記サーバ機器が自発的に発行する前記クライアント機器に対するコマンドを受け付け、そのコマンドの内容を前記ID生成手段に伝えるクライアント指示手段を具備し、前記クライアント機器は、前記ネットワークを介して通信パケットを送受信する通信手段(ハ)と、前記通信手段(ハ)を介して送受信する前記通信パケットを前記規格に基づくプロトコルに従って処理するとともに、前記サーバ機器から受信した前記イベントに埋め込まれた前記予め取り決められた規則に基づくIDを抽出するプロトコル処理手段(ニ)と、前記プロトコル処理手段(ニ)において抽出された前記予め取り決められた規則に基づくIDを前記予め取り決められた規則に基づいて解析し、その解析結果が前記予め取り決められた規則に基づくコマンドであった場合に前記コマンドの実行命令を発行するID解析手段と、前記ID解析手段で発行された前記コマンドの実行命令に従って前記コマンドを実行するコマンド実行手段を具備することを特徴とするものである。 In order to solve the above-described problem, the client server system according to the first invention of the present application (corresponding to claim 1) is a server device connected to a network and when the internal state of the server device changes based on the standard. A client server system configured with a client device related to receive an event transmitted from the server device and notifying an internal state of the server device via the network, the server device The communication means (a) for transmitting and receiving communication packets via the network and the communication packet for transmission and reception via the communication means (a) are processed in accordance with a protocol based on the standard, and for the client device A protocol processor that generates and sends the event to notify the internal state (B) and an ID (IDentification) corresponding to a command for the client device that is input from a user or the like or is voluntarily issued by the server device based on a predetermined rule, and the protocol processing means (B) notifying the generated ID and embedding the generated ID in the event, and urging the protocol processing means (b) to issue the event, the user, etc. The client device includes a client instruction unit that receives a command for the client device that is input from the server device or that is voluntarily issued by the server device, and transmits the content of the command to the ID generation unit. Means for transmitting and receiving communication packets C) and the communication packet transmitted / received via the communication means (c) according to a protocol based on the standard, and an ID based on the predetermined rule embedded in the event received from the server device A protocol processing means (d) for extracting the ID, and an ID based on the predetermined rule extracted by the protocol processing means (d) is analyzed based on the predetermined rule, An ID analysis unit that issues an execution instruction of the command when the command is based on an agreed rule; and a command execution unit that executes the command according to the execution instruction of the command issued by the ID analysis unit. It is characterized by this.
また、第2の発明(請求項2に対応)のサーバ機器は、ネットワークで接続されクライアント機器に対して、規格に基づき内部状態が変化した場合に内部の状態を通知するイベントを前記ネットワークを介して送信するように関係づけられ、前記クライアント機器とでクライアントサーバシステムを構成するサーバ機器であって、前記ネットワークを介して通信パケットを送受信する通信手段と、前記通信手段を介して送受信する前記通信パケットを前記規格に基づくプロトコルに従って処理するとともに、前記クライアント機器に対して内部の状態を通知する前記イベントを生成して送信するプロトコル処理手段と、ユーザなどから入力されるあるいは前記サーバ機器が自発的に発行する、前記クライアント機器に対するコマンドに対応したIDを予め取り決められた規則に基づいて生成し、前記プロトコル処理手段に対して前記生成したIDを通知して前記生成したIDを前記イベントに埋め込ませるとともに、前記プロトコル処理手段に対して前記イベントの発行を促すID生成手段と、前記ユーザなどから入力される、あるいは前記サーバ機器が自発的に発行する前記クライアント機器に対するコマンドを受け付け、そのコマンドの内容を前記ID生成手段に伝えるクライアント指示手段を具備することを特徴とするものである。 According to a second aspect of the present invention (corresponding to claim 2), an event for notifying the client device connected via a network of the internal state when the internal state changes based on the standard is sent via the network. A server device constituting a client server system with the client device, wherein the communication device transmits / receives a communication packet via the network, and the communication transmits / receives via the communication device. Protocol processing means for processing a packet in accordance with a protocol based on the standard and generating and transmitting the event for notifying the client device of an internal state, and input from a user or the server device is spontaneous Corresponding to the command issued to the client device. An ID is generated based on a predetermined rule, the generated ID is notified to the protocol processing unit, and the generated ID is embedded in the event. ID generation means for prompting issuance, and client instruction means for accepting a command for the client device that is input from the user or the like, or that the server device voluntarily issues, and transmits the contents of the command to the ID generation means It is characterized by doing.
また、第3の発明(請求項3に対応)のクライアント機器は、ネットワークで接続されたサーバ機器と、規格に基づき前記サーバ機器における内部状態が変化した場合に前記サーバ機器から送信される前記サーバ機器の内部の状態を通知するイベントを、前記ネットワークを介して受信するように関係づけられ、前記サーバ機器とでクライアントサーバシステムを構成するクライアント機器であって、前記ネットワークを介して通信パケットを送受信する通信手段と、前記通信手段を介して送受信する前記通信パケットを前記規格に基づくプロトコルに従って処理するとともに、前記サーバ機器から受信した前記イベントに埋め込まれた前記予め取り決められた規則に基づくIDを抽出するプロトコル処理手段と、前記プロトコル処理手段において抽出された前記予め取り決められた規則に基づくIDを前記予め取り決められた規則に基づいて解析し、その解析結果が前記予め取り決められた規則に基づくコマンドであった場合に前記コマンドの実行命令を発行するID解析手段と、前記ID解析手段で発行された前記コマンドの実行命令に従って前記コマンドを実行するコマンド実行手段を具備することを特徴とするものである。 According to a third aspect of the present invention (corresponding to claim 3), there are a server device connected via a network and the server transmitted from the server device when an internal state of the server device changes based on a standard. An event for notifying an internal state of a device is received through the network, and is a client device that forms a client server system with the server device, and transmits and receives communication packets through the network. And processing the communication packet transmitted / received via the communication unit in accordance with a protocol based on the standard, and extracting an ID based on the predetermined rule embedded in the event received from the server device Protocol processing means for performing the protocol processing means And analyzing the ID based on the predetermined rule extracted based on the predetermined rule, and if the analysis result is a command based on the predetermined rule, It comprises an ID analysis means for issuing and a command execution means for executing the command in accordance with an execution instruction of the command issued by the ID analysis means.
また、第4の発明(請求項4に対応)のクライアントサーバシステムは、第1の発明のクライアントサーバシステムにおいて、前記イベントは、複数ビットの数値で表され、前記数値に応じて、もしくは前記数値が予め定められた範囲のどの範囲に入るかに応じて、もしくは前記複数ビットで表された数値における一部のビットの値に応じて、前記ユーザなどから入力されるあるいは前記サーバ機器が自発的に発行する前記クライアント機器に対するコマンドが割り振られていることを特徴とするものである。 A client server system according to a fourth aspect of the invention (corresponding to claim 4) is the client server system according to the first aspect of the invention, wherein the event is represented by a numerical value of a plurality of bits, depending on the numerical value or the numerical value. Is input from the user, etc. depending on which range of the predetermined range is included, or depending on the value of some bits in the numerical value represented by the plurality of bits, or the server device is spontaneous A command for the client device to be issued is assigned.
また、第5の発明(請求項5に対応)のサーバ機器は、第2の発明のサーバ機器において、前記イベントは、複数ビットの数値で表され、前記数値に応じて、もしくは前記数値が予め定められた範囲のどの範囲に入るかに応じて、もしくは前記複数ビットで表された数値における一部のビットの値に応じて、前記ユーザなどから入力されるあるいは前記サーバ機器が自発的に発行する前記クライアント機器に対するコマンドが割り振られていることを特徴とするものである。 The server device of the fifth invention (corresponding to claim 5) is the server device of the second invention, wherein the event is represented by a numerical value of a plurality of bits, and the numerical value is determined in advance according to the numerical value. Input from the user, etc. or issued spontaneously by the server device, depending on which range of the specified range is entered, or depending on the value of some bits in the numerical value represented by the plurality of bits A command for the client device is allocated.
また、第6の発明(請求項6に対応)のクライアント機器は、第2の発明のクライアント機器において、前記イベントは、複数ビットの数値で表され、前記数値に応じて、もしくは前記数値が予め定められた範囲のどの範囲に入るかに応じて、もしくは前記複数ビットで表された数値における一部のビットの値に応じて、前記ユーザなどから入力されるあるいは前記サーバ機器が自発的に発行する前記クライアント機器に対するコマンドが割り振られていることを特徴とするものである。 The client device of the sixth invention (corresponding to claim 6) is the client device of the second invention, wherein the event is represented by a numerical value of a plurality of bits, and the numerical value is determined in advance according to the numerical value. Input from the user, etc. or issued spontaneously by the server device, depending on which range of the specified range is entered, or depending on the value of some bits in the numerical value represented by the plurality of bits A command for the client device is allocated.
以上説明したように、本発明によれば、双方の機器にサーバ機能、クライアント機能の両機能を実装することなく、クライアント機器からサーバ機器へも、サーバ機器からクライアント機器へも双方向に命令を出すことが可能となる。またユーザはサーバ機能とクライアント機能の機能切り替えを行うことなく両機能をシームレスに扱うことができ、操作性の向上が期待できる。 As described above, according to the present invention, instructions are bidirectionally transmitted from the client device to the server device and from the server device to the client device without implementing both the server function and the client function in both devices. It becomes possible to put out. In addition, the user can handle both functions seamlessly without switching between the server function and the client function, and the operability can be expected to be improved.
以下、本発明を実施するための最良の形態について、図面を参照しながら説明する。 The best mode for carrying out the present invention will be described below with reference to the drawings.
(実施の形態1)
図1は、本発明の実施の形態1におけるサーバ機器10およびクライアント機器20の主要部の構成を示すブロック図である。
(Embodiment 1)
FIG. 1 is a block diagram showing a configuration of main parts of a
図1において、サーバ機器10は、通信手段11、UPnP AVプロトコル処理手段12、ID生成手段13およびクライアント指示手段14で構成されている。
In FIG. 1, the
通信手段11は、通信路3を介してクライアント機器20との間で通信パケットを送受信する手段である。ここで通信路3は、例えば、イーサネット(登録商標)などの有線通信路やIEEE802.11b/g、Bluetoothなどの無線通信路である。UPnP AVプロトコル処理手段12は、UPnP AV規格のプロトコルを処理する手段であり、UPnP AV規格に準拠した機器検索や能力交換などの処理を実行することができる。ID生成手段13は、イベントを送信する際に用いるID(IDentification)を生成する手段である。ID生成手段13で生成されるIDは、例えば、符号無し32ビットの数値で表される。クライアント指示手段14は、ユーザなどからのリモコン操作などによるクライアント機器20に対する指示(コマンド)を受け付けた場合に、その指示(コマンド)内容をID生成手段13に伝える手段である。
The
以上のように構成されたサーバ機器10は、UPnP AV規格に準拠したクライアント機器20が送信したUPnP AVコマンドを受信してその受信したコマンドに従って動作し、さらに、サーバ機器10の状態が変更されたことをクライアント機器20に通知するイベントを送信する。また、サーバ機器10は、メディアサーバ(Media Server)と呼ばれる機器であり、内部に蓄積する動画や静止画、音楽などのコンテンツを管理するCDS(Content Directory Service)と各コンテンツを伝送する際のコネクション管理を行うCMS(Connection Manager Service)の両サービスを、UPnP AV規格に準拠したクライアント機器20に対して提供する。メディアサーバとは、後述するコントロールポイントからの要求に応じて処理を行う機器のことであり、メディアサーバは自発的にコントロールポイントに対して要求を行うことはない。
The
一方、クライアント機器20は、通信手段21、UPnP AVプロトコル処理手段22、ID解析手段23およびコマンド実行手段24で構成されている。
On the other hand, the
通信手段21は、通信路3を介してサーバ機器10との間で通信パケットを送受信する手段であり、UPnP AVプロトコル処理手段22は、UPnP AV規格のプロトコルを処理する手段であって、UPnP AV規格に準拠した機器検索や能力交換などの処理を実行することができるとともに、サーバ機器10が送信したイベントを処理してイベント情報中に含まれるIDを抽出し、その抽出したIDをID解析手段23に送信する手段である。ID解析手段23は、UPnP AVプロトコル処理手段22から送信されたIDを解析し、そのIDの解析結果に応じたコマンドをコマンド実行手段24に通知する手段であり、コマンド実行手段24は、イベント処理手段から通知されたコマンドを実行する手段である。
The communication means 21 is means for transmitting / receiving communication packets to / from the
以上のように構成されたクライアント機器20は、UPnP AV規格に準拠したサーバ機器10に対してUPnP AVコマンドを送信し、その結果をサーバ機器10から受信して解釈し、さらに、サーバ機器10の状態が変更された際にサーバ機器10から送信されるイベント情報を受信して解釈する。また、クライアント機器20は、コントロールポイント(Control Point)と呼ばれる機器であり、UPnP AV規格に準拠したサーバ機器10が提供するサービスを利用する。ここでは、クライアント機器20は、メディアサーバが提供するCDSを利用するコントロールポイントである。
The
サーバ機器10とクライアント機器20は、上述のように通信路3を介して接続されており、クライアント機器20は、定期的にサーバ機器10が同一ネットワークに存在するか否かの検索を行う。なお、図2は、この時の検索のシーケンスを示すものであって、本発明の実施の形態1における機器検索のシーケンスを示す図である。
The
次に、図2を用いて、クライアント機器20が、同一ネットワーク上にサーバ機器10が存在するか否かの検索を行なう場合の機器検索のシーケンスについて説明する。
Next, a device search sequence when the
クライアント機器20においては、通信路3上のネットワークに新たに参加した機器あるいは引き続き参加している機器を検索するため、クライアント機器20内のUPnP AVプロトコル処理手段22が通信手段21に対して定期的に機器検索パケットを通信路3に送信するように要求し(S20)、通信手段21はUPnP AVプロトコル処理手段22からの要求に応じて通信路3に対して機器検索パケットを送信する(S21)。
In the
一方、通信手段21から送信された機器検索パケットを通信路3を介して受信したサーバ機器10において、通信手段11は受信した機器検索パケットの情報をUPnP AVプロトコル処理手段12に通知し、UPnP AVプロトコル処理手段12は通信手段11から通知された機器検索パケットの情報に応じた検索応答パケットを生成し(S22)、その生成した検索応答パケットを、通信手段11から通信路3を介してクライアント機器20に対して送信する(S23)。サーバ機器10から送信された検索応答パケットを受信したクライアント機器20は、通信手段21がこの受信した検索応答パケットをUPnP AVプロトコル処理手段22に通知し、UPnP AVプロトコル処理手段22が通信手段21から通知された検索応答パケットを解釈することにより、サーバ機器10がネットワークに新たに参加した、あるいは引き続き参加している、あるいは参加を取りやめたことなどを知る(S24)。
On the other hand, in the
クライアント機器20は、同一ネットワーク上で新たなサーバ機器を発見するたびに、発見した新たなサーバ機器が発信する機器内部の状態変化を通知するイベントを受信するためのイベント購読登録を行う。なお、図3は、この時のシーケンスを示すものであって、本発明の実施の形態1におけるイベント購読登録のシーケンスを示す図である。
Each time the
次に、図3を用いて、クライアント機器20が、同一ネットワークに新たに参加したサーバ機器(ここではサーバ機器10とする)から、そのサーバ機器の状態変化を通知するイベントを受信するためのイベント購読登録を行なう場合のシーケンスについて説明する。
Next, referring to FIG. 3, an event for the
クライアント機器20において、UPnP AVプロトコル処理手段22は、発見したサーバ機器10に対するイベント購読要求を行い(S30)、通信手段21は、UPnP AVプロトコル処理手段22から出力されたイベント購読要求パケットを、通信路3を介してサーバ機器10に送信する(S31)。通信路3を介してクライアント機器20から送信されたイベント購読要求パケットを受信したサーバ機器10では、UPnP AVプロトコル処理手段12がイベント登録処理を行う(S32)と共に、イベント登録処理が終わると、クライアント機器20に対して、通信手段11から通信路3を介してイベント登録応答を送信しイベント登録を受諾したことを通知する(S33)。
In the
サーバ機器10は、イベント登録を受諾した機器(ここではクライアント機器20)に対して、イベント登録完了後よりサーバ機器10の内部状態が変わるたびにイベント情報を送信する。例えば、サーバ機器10が動画コンテンツや静止画コンテンツ、音楽コンテンツを蓄積することのできるHDD(Hard Disk Drive)内蔵型のDVD(Digital Video Disk)レコーダであるならば、新しくコンテンツが録画または録音された場合や、既存のコンテンツが削除された場合などに、CDSのイベントであるSystemUpdateIDをイベント登録を受諾した機器に対して送信する。ここで、SystemUpdateIDは、ID生成手段13が生成する符号なしの32ビットで表される数値であるとする。
The
UPnP AV規格のCDSでは、SystemUpdateIDにおけるID値は特に決まっておらず、メディアサーバがコントロールポイントにイベント通知を行う際は、前回のイベント通知に用いた値と異なるID値を持つことが条件となっている。 In the UPnP AV standard CDS, the ID value in SystemUpdateID is not particularly determined, and when the media server sends an event notification to the control point, the ID value is different from the value used for the previous event notification. ing.
次に、図4を用いて、サーバ機器10からクライアント機器20に対してコマンドを送信する場合の動作について説明する。なお、図4は、本発明の実施の形態1における、サーバ機器10からクライアント機器20に対してコマンドを送信する場合のサーバ機器における処理のシーケンスを示す図である。
Next, an operation when a command is transmitted from the
サーバ機器10において、クライアント指示手段14によりユーザ等から入力されるクライアント機器20に対するコマンドが受け付けられる(S40)。クライアント機器20に対するコマンドは、サーバ機器10を操作するユーザなどによって入力されてもよいし、サーバ機器10の内部で実行されているプログラムなどによってサーバ機器10が自発的に発行するコマンドを受け付けてもよい。また、UPnP AV規格外で予め取り決められた複数あるコマンドのうちの特定のコマンドを選ぶことによって行われてもよい。コマンドを受け付けたクライアント指示手段14は、受け付けたコマンドの内容をID生成手段13に対して通知し(S41)、クライアント指示手段14からコマンドの内容の通知を受けたID生成手段13は、そのコマンドに対応したIDを予め取り決められた規則に従って生成する(S42)。
In the
図8は、本発明の実施の形態1におけるID生成手段13が生成するIDのビットの構成例を示す図である。図8において、上位2ビットは予約領域であり、この予約領域の値はID発行の度に順次“00”、“01”、“10”、“11”、“00”、・・・のように毎回その値が変化する。このように毎回予約領域の値を変化させるのは、UPnP AV規格に基づく通常のイベントを発生させる時には前回と異なるID値をクライアント機器20に通知することにより、クライアント機器20に対してサーバ機器10における内部の状態が変化したことを示すためである。
FIG. 8 is a diagram illustrating a configuration example of ID bits generated by the
予約領域に続くビットは“コマンドフラグ”であり、このフラグに“1”がセットされている場合は、以下に続くビット列がUPnP AV規格外で予め取り決められたコマンドとして意味をなすものであることを示し、“0”がセットされている場合は、以下のコマンド列に格納されている値はUPnP AV規格外で予め取り決められたコマンドとしての意味を持たない、すなわち、UPnP AV規格に基づく通常のIDとして処理されるべきものであることを示す。 The bit following the reserved area is a “command flag”, and when this flag is set to “1”, the following bit string makes sense as a command decided in advance outside the UPnP AV standard. And “0” is set, the values stored in the following command sequence have no meaning as commands predetermined outside the UPnP AV standard, that is, normal based on the UPnP AV standard. It is to be processed as an ID.
ID生成手段13は、上記のようなビットの構成を有するIDを生成した(S42)後、UPnP AVプロトコル処理手段12に対し、その生成したIDを通知してUPnP AVプロトコル処理手段12が生成するイベントにその生成したIDを埋め込ませるとともに、イベント通知の発行を促す(S43)。
The
ID生成手段13からイベント通知の発行要求を受けたUPnP AVプロトコル処理手段12は、ID生成手段13が生成したIDを埋め込ませたイベントを生成し(S44)、その生成したイベントを通信手段11から通信路3を介してクライアント機器20に通知する(S45)。
Upon receiving the event notification issuance request from the
ここで、図5を用いて、サーバ機器10がUPnP AV規格に基づく通常のイベントを発生させる場合のイベント通知の動作について説明しておく。なお、図5は、UPnP AV規格に基づく通常のイベントを発生させる場合のサーバ機器10におけるイベント通知の動作のシーケンスを示す図である。通常のイベントを発生させる場合は、図5に示すように、UPnP AVプロトコル処理手段12において、IDを含むUPnP AV規格に基づくイベントが生成され(S50)、この生成されたイベントは通信手段11から通信路3を介してクライアント機器20に送信され、イベント通知が行なわれる(S51)。
Here, the operation of event notification when the
次に、図6を用いて、サーバ機器10が通信路3を介して送信したイベントを受信したクライアント機器20が、受信したイベントを処理し、そのイベント情報に埋め込まれているコマンドに従った処理を実行するまでのシーケンスを説明する。なお、図6は、本発明の実施の形態1におけるクライアント機器20が、サーバ機器10から受信したイベントを処理してそのイベント情報に埋め込まれているコマンドに従った処理を実行するまでのクライアント機器20におけるシーケンスを示す図である。
Next, referring to FIG. 6, the
クライアント機器20において、通信手段21は、通信路3を介してサーバ機器10より送信されたイベント情報を受信し(S60)、その受信したイベント情報、即ち受信データをUPnP AVプロトコル処理手段22に対して通知する。
In the
UPnP AVプロトコル処理手段22は、受信データを処理し、受信データがイベント情報であることを解釈してデータ中に埋め込まれたIDを抽出し(S61)、その抽出したIDをID解析手段23に通知する(S62)。ID解析手段23は、UPnP AVプロトコル処理手段22からIDを受け取ると、予め取り決められた規則に基づいて、例えば、図6を用いて説明したビットの構成に則り、受け取ったIDを解析し(S63)、その解析結果に基づいてコマンド実行手段24に対してコマンド内容の実行命令を行なう。例えば、サーバ機器10がクライアント機器20に対して送信したイベント情報が“クライアント機器20をシャットダウンせよ”というコマンドであった場合、ID解析手段23は、コマンド実行手段24に対してコマンド内容の実行命令を行い(S64)、コマンド実行手段24は、実行命令に従ってシャットダウン処理を行なってクライアント機器20をシャットダウンさせる(S65)。
The UPnP AV protocol processing means 22 processes the received data, interprets that the received data is event information, extracts the ID embedded in the data (S61), and sends the extracted ID to the ID analyzing means 23. Notification is made (S62). Upon receiving the ID from the UPnP AV
次に、図7を用いて、クライアント機器20においてUPnP AV規格に基づく通常のイベントを受信する場合における処理について説明する。なお、図7は、クライアント機器20においてUPnP AV規格に基づく通常のイベントを受信する場合における処理のシーケンスを示す図である。
Next, processing when the
上記のコマンドが埋め込まれているイベントを受信した場合の処理と同様に、通信手段21は、サーバ機器10からイベントを受信し(S70)、UPnP AVプロトコル処理手段22に対して受信データ(受信したイベント)を通知する。UPnP AVプロトコル処理手段22は、通信手段21から通知された受信データを処理し(S71)、受信データがイベント通知であることを解釈して受信データ中に埋め込まれたIDを抽出し、その抽出したIDをID解析手段23に通知する(S72)。ID解析手段23は、UPnP AVプロトコル処理手段22から通知されたIDを解析し(S73)、その結果、UPnP AV規格に基づいた通常のイベントであることを解釈する。この場合、ID解析手段23はコマンド実行手段24には何も通知せずに処理を終える。
Similar to the processing when an event in which the above command is embedded is received, the communication means 21 receives the event from the server device 10 (S70), and receives the received data (received) from the UPnP AV protocol processing means 22. Event). The UPnP AV protocol processing means 22 processes the received data notified from the communication means 21 (S71), interprets that the received data is an event notification, extracts the ID embedded in the received data, and extracts the extracted data. The ID is notified to the ID analysis means 23 (S72). The ID analysis means 23 analyzes the ID notified from the UPnP AV protocol processing means 22 (S73), and as a result, interprets it as a normal event based on the UPnP AV standard. In this case, the
以上のように、本発明の実施の形態1においては、サーバ機器10からサーバ機器10の状態をクライアント機器20に対して通知するイベントを活用して、そのイベント情報の中にクライアント機器20に対するコマンドを埋め込ませることにより、特定のサーバ機器10から特定のクライアント機器20に対してコマンドを送信することが可能となる。この場合、該コマンドを受信した特定のクライアント機器は、予め取り決められた規則に従って、特定のサーバ機器から受信したイベントを解析して指示されたコマンドを実行する。予め取り決められた規則を持たない一般のクライアント機器では、サーバ機器からUPnP AV規格に基づいた通常のイベントを受信した場合と同様の処理をさせることで、既存の一般的な機器との接続性を確保することができる。
As described above, in the first embodiment of the present invention, the event that notifies the
なお、実施の形態1においては、サーバ機器10とクライアント機器20が1対1対応の通信を行う例を示したがこれに限るものではなく、例えば、図9に示すように1台のサーバ機器10に対して、複数のクライアント機器(クライアント機器20、クライアント機器30)がそれぞれサーバ機器10にイベント登録を行うことで、サーバ機器10は2台以上の複数のクライアント機器に同時にコマンド送信が行えるようになる。
In the first embodiment, the
また、実施の形態1においては、IDのビット構成の中に“コマンドフラグ”領域を設けたがこれに限るものではなく、“コマンドフラグ”領域は設けなくてもよい。 また、IDのビット構成の中に予約領域を設けたが、これに限るものではなく、最終的に生成されるID値が毎回変化していることが保証される限り予約領域は設けても、設けなくてもよい。 In the first embodiment, the “command flag” area is provided in the bit configuration of the ID. However, the present invention is not limited to this, and the “command flag” area may not be provided. In addition, although the reserved area is provided in the bit configuration of the ID, the present invention is not limited to this. Even if the reserved area is provided as long as it is guaranteed that the finally generated ID value is changed, It does not have to be provided.
また、予約領域、“コマンドフラグ”領域、コマンド領域は、任意のビット幅で設定してもよく、さらに、予約領域、“コマンドフラグ”領域、コマンド領域は任意の順序で出現してもよい。 In addition, the reserved area, the “command flag” area, and the command area may be set with an arbitrary bit width, and the reserved area, the “command flag” area, and the command area may appear in an arbitrary order.
また、本発明の実施の形態1においては、IDは符号なしの32ビットで表される数値であるとしたが、これに限るものではなく、例えば、符号なしの任意のビット長であってもよく、また符号つきであってもよい。 In the first embodiment of the present invention, the ID is a numerical value represented by 32 bits without a sign. However, the present invention is not limited to this. For example, an arbitrary bit length without a sign may be used. It may also be signed.
また、コマンドが1種類の場合には、コマンド領域を設けなくても同様の効果が得られる。 In addition, when there is one type of command, the same effect can be obtained without providing a command area.
また、本発明の実施の形態1においては、UPnP AVコマンドを例に取って説明したが、これに限るものではなく、例えば、IEEE1394 AVCコマンドを用いても同様の効果が得られる。 In the first embodiment of the present invention, the UPnP AV command has been described as an example. However, the present invention is not limited to this. For example, the same effect can be obtained by using an IEEE 1394 AVC command.
本発明によれば、クライアント機器のみからサーバ機器へ一方的な命令を行うサーバクライアント型のシステムにおいて、双方の機器にサーバ機能、クライアント機能の両機能を実装することなく、クライアント機器からサーバ機器へも、サーバ機器からクライアント機器へも双方向に命令を出すことが可能となる。 According to the present invention, in a server client type system in which a unidirectional command is issued from only a client device to a server device, the client device is transferred from the client device to the server device without implementing both the server function and the client function. In addition, it is possible to issue a command bidirectionally from the server device to the client device.
3 通信路
10 サーバ機器
11 通信手段
12 UPnP AVプロトコル処理手段(サーバ機能)
13 ID生成手段
14 クライアント指示手段
20 クライアント機器
21 通信手段
22 UPnP AVプロトコル処理手段(クライアント機能)
23 ID解析手段
24 コマンド実行手段
30 クライアント機器
3
13 ID generation means 14 Client instruction means 20
23 ID analysis means 24 Command execution means 30 Client device
Claims (6)
前記サーバ機器は、
前記ネットワークを介して通信パケットを送受信する通信手段(イ)と、
前記通信手段(イ)を介して送受信する前記通信パケットを前記規格に基づくプロトコルに従って処理するとともに、前記クライアント機器に対して内部の状態を通知する前記イベントを生成して送信するプロトコル処理手段(ロ)と、
ユーザなどから入力される、あるいは前記サーバ機器が自発的に発行する前記クライアント機器に対するコマンドに対応したID(IDentification)を予め取り決められた規則に基づいて生成し、前記プロトコル処理手段(ロ)に対して前記生成したIDを通知して前記生成したIDを前記イベントに埋め込ませるとともに、前記プロトコル処理手段(ロ)に対して前記イベントの発行を促すID生成手段と、
前記ユーザなどから入力される、あるいは前記サーバ機器が自発的に発行する前記クライアント機器に対するコマンドを受け付け、そのコマンドの内容を前記ID生成手段に伝えるクライアント指示手段を具備し、
前記クライアント機器は、
前記ネットワークを介して通信パケットを送受信する通信手段(ハ)と、
前記通信手段(ハ)を介して送受信する前記通信パケットを前記規格に基づくプロトコルに従って処理するとともに、前記サーバ機器から受信した前記イベントに埋め込まれた前記予め取り決められた規則に基づくIDを抽出するプロトコル処理手段(ニ)と、
前記プロトコル処理手段(ニ)において抽出された前記予め取り決められた規則に基づくIDを前記予め取り決められた規則に基づいて解析し、その解析結果が前記予め取り決められた規則に基づくコマンドであった場合に前記コマンドの実行命令を発行するID解析手段と、
前記ID解析手段で発行された前記コマンドの実行命令に従って前記コマンドを実行するコマンド実行手段を具備する
ことを特徴とするクライアントサーバシステム。 A server device connected to the network and an event for notifying the internal state of the server device transmitted from the server device when the internal state of the server device changes based on the standard is received via the network. A client server system composed of client devices related to each other,
The server device is
Communication means (b) for transmitting and receiving communication packets via the network;
Protocol processing means (B) which processes the communication packet transmitted / received via the communication means (a) according to a protocol based on the standard and generates and transmits the event for notifying the client device of an internal state. )When,
An ID (IDentification) corresponding to a command to the client device that is input from a user or the like or issued spontaneously by the server device is generated based on a predetermined rule, and is sent to the protocol processing means (b) ID generation means for notifying the generated ID and embedding the generated ID in the event, and urging the protocol processing means (b) to issue the event;
A client instruction unit that receives a command for the client device that is input from the user or the like or that is voluntarily issued by the server device, and transmits the content of the command to the ID generation unit;
The client device is
A communication means (c) for transmitting and receiving communication packets via the network;
A protocol for processing the communication packet transmitted / received via the communication means (c) in accordance with a protocol based on the standard and extracting an ID based on the predetermined rule embedded in the event received from the server device Processing means (d);
When the ID based on the predetermined rule extracted in the protocol processing means (d) is analyzed based on the predetermined rule, and the analysis result is a command based on the predetermined rule ID analysis means for issuing an execution instruction of the command to
A client server system comprising command execution means for executing the command in accordance with an execution instruction of the command issued by the ID analysis means.
前記ネットワークを介して通信パケットを送受信する通信手段と、
前記通信手段を介して送受信する前記通信パケットを前記規格に基づくプロトコルに従って処理するとともに、前記クライアント機器に対して内部の状態を通知する前記イベントを生成して送信するプロトコル処理手段と、
ユーザなどから入力される、あるいは前記サーバ機器が自発的に発行する前記クライアント機器に対するコマンドに対応したIDを予め取り決められた規則に基づいて生成し、
前記プロトコル処理手段に対して前記生成したIDを通知して前記生成したIDを前記イベントに埋め込ませるとともに、前記プロトコル処理手段に対して前記イベントの発行を促すID生成手段と、
前記ユーザなどから入力される、あるいは前記サーバ機器が自発的に発行する前記クライアント機器に対するコマンドを受け付け、そのコマンドの内容を前記ID生成手段に伝えるクライアント指示手段を具備する
ことを特徴とするサーバ機器。 When an internal state changes based on a standard to a client device connected via a network, an event for notifying the internal state is transmitted via the network, and a client server system is connected to the client device. A server device comprising:
Communication means for transmitting and receiving communication packets via the network;
Protocol processing means for processing the communication packet to be transmitted / received via the communication means according to a protocol based on the standard, and generating and transmitting the event for notifying the client device of an internal state;
An ID corresponding to a command for the client device that is input from a user or the like or is voluntarily issued by the server device is generated based on a predetermined rule,
An ID generating means for notifying the protocol processing means of the generated ID and embedding the generated ID in the event, and for urging the protocol processing means to issue the event;
Server equipment comprising client instruction means for accepting a command for the client equipment input from the user or the like or issued spontaneously by the server equipment and transmitting the contents of the command to the ID generation means .
前記ネットワークを介して通信パケットを送受信する通信手段と、
前記通信手段を介して送受信する前記通信パケットを前記規格に基づくプロトコルに従って処理するとともに、前記サーバ機器から受信した前記イベントに埋め込まれた前記予め取り決められた規則に基づくIDを抽出するプロトコル処理手段と、
前記プロトコル処理手段において抽出された前記予め取り決められた規則に基づくIDを前記予め取り決められた規則に基づいて解析し、その解析結果が前記予め取り決められた規則に基づくコマンドであった場合に前記コマンドの実行命令を発行するID解析手段と、
前記ID解析手段で発行された前記コマンドの実行命令に従って前記コマンドを実行するコマンド実行手段を具備する
ことを特徴とするクライアント機器。 A server device connected via a network and an event for notifying the internal state of the server device transmitted from the server device when the internal state of the server device changes based on a standard is received via the network. A client device constituting a client server system with the server device,
Communication means for transmitting and receiving communication packets via the network;
Protocol processing means for processing the communication packet transmitted / received via the communication means according to a protocol based on the standard, and extracting an ID based on the predetermined rule embedded in the event received from the server device; ,
If the ID based on the predetermined rule extracted by the protocol processing means is analyzed based on the predetermined rule, and the analysis result is a command based on the predetermined rule, the command ID analysis means for issuing an execution instruction of
A client device comprising command execution means for executing the command in accordance with an execution instruction of the command issued by the ID analysis means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006137536A JP2007310538A (en) | 2006-05-17 | 2006-05-17 | Bi-directionally controllable client/server system composed of server equipment and client equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006137536A JP2007310538A (en) | 2006-05-17 | 2006-05-17 | Bi-directionally controllable client/server system composed of server equipment and client equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007310538A true JP2007310538A (en) | 2007-11-29 |
Family
ID=38843351
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006137536A Pending JP2007310538A (en) | 2006-05-17 | 2006-05-17 | Bi-directionally controllable client/server system composed of server equipment and client equipment |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007310538A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012065058A (en) * | 2010-09-15 | 2012-03-29 | Hitachi Consumer Electronics Co Ltd | Transmitter, receiver and transmission method |
JP2013008191A (en) * | 2011-06-24 | 2013-01-10 | Sony Corp | Information processor, program, information processing method and information processing system |
JP6176764B1 (en) * | 2016-11-28 | 2017-08-09 | 一般社団法人日本ケーブルラボ | Television viewing operation method, set top box, terminal, and program |
-
2006
- 2006-05-17 JP JP2006137536A patent/JP2007310538A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012065058A (en) * | 2010-09-15 | 2012-03-29 | Hitachi Consumer Electronics Co Ltd | Transmitter, receiver and transmission method |
JP2013008191A (en) * | 2011-06-24 | 2013-01-10 | Sony Corp | Information processor, program, information processing method and information processing system |
JP6176764B1 (en) * | 2016-11-28 | 2017-08-09 | 一般社団法人日本ケーブルラボ | Television viewing operation method, set top box, terminal, and program |
JP2018088588A (en) * | 2016-11-28 | 2018-06-07 | 一般社団法人日本ケーブルラボ | Television viewing operation method, set-top box, terminal and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7912972B2 (en) | Method of controlling device connected to universal plug and play home network via internet, and system and device for the method | |
JP5512630B2 (en) | Control device, control method, control program, and system | |
CN1906888B (en) | Home network system and method therefor | |
EP2424172B1 (en) | Method and apparatus for establishing communication | |
JP2005175625A (en) | Remote control system and method | |
EP2461523B1 (en) | Systems and methods for operating an appliance control device for an appliance | |
JP2008252498A (en) | Network system, device and program for information processing | |
JP2007158854A (en) | Av server device, client apparatus, and file transfer system | |
JP2009231974A (en) | Information processing unit, information reproducing unit, information processing method, information reproduction method, information processing system, and program | |
JP2006236354A (en) | Service framework of home network and control method thereof | |
JP2015036900A (en) | Information processing apparatus, control method of the same, and program | |
KR100949020B1 (en) | Service method and system for multicast streaming | |
JP2010186271A (en) | Information processing apparatus and method for controlling the same, service provision device and method for controlling the same, information processing system, information processing method, program and recording medium | |
US20150358363A1 (en) | Method and apparatus for controlling session between devices on network including multiple devices | |
JP2006115471A (en) | Data transmission system, data transmission method and media apparatus | |
JP2007310538A (en) | Bi-directionally controllable client/server system composed of server equipment and client equipment | |
JP2005157603A (en) | State information providing device and method, computer program for the same, recording medium with the program stored, and computer programmed by the program | |
JP2003308264A (en) | Network equipment and method for controlling network equipment | |
US8171144B2 (en) | AV server apparatus and connection management method | |
WO2017020607A1 (en) | Rdp data playback method, server and system | |
WO2011033611A1 (en) | Communication apparatus | |
JP2008102870A (en) | Content management system, content supply device, content management method, program and storage medium | |
JP3840215B2 (en) | COMMUNICATION DEVICE, METHOD, DEVICE CONTROL DEVICE, METHOD, AND PROGRAM | |
JP2009182667A (en) | Electronic device, and network system | |
JP5220427B2 (en) | Information processing apparatus, control terminal, device control system, and device control method |