JP2018078380A - Terminal device and program - Google Patents

Terminal device and program Download PDF

Info

Publication number
JP2018078380A
JP2018078380A JP2016217386A JP2016217386A JP2018078380A JP 2018078380 A JP2018078380 A JP 2018078380A JP 2016217386 A JP2016217386 A JP 2016217386A JP 2016217386 A JP2016217386 A JP 2016217386A JP 2018078380 A JP2018078380 A JP 2018078380A
Authority
JP
Japan
Prior art keywords
unit
message
service
log
service execution
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.)
Granted
Application number
JP2016217386A
Other languages
Japanese (ja)
Other versions
JP6826865B2 (en
Inventor
寿之 大亦
Toshiyuki Omata
寿之 大亦
千草 山村
Chigusa Yamamura
千草 山村
誠哉 池尾
Masaya Ikeo
誠哉 池尾
藤沢 寛
Hiroshi Fujisawa
寛 藤沢
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.)
Japan Broadcasting Corp
Original Assignee
Nippon Hoso Kyokai NHK
Japan Broadcasting 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 Nippon Hoso Kyokai NHK, Japan Broadcasting Corp filed Critical Nippon Hoso Kyokai NHK
Priority to JP2016217386A priority Critical patent/JP6826865B2/en
Publication of JP2018078380A publication Critical patent/JP2018078380A/en
Application granted granted Critical
Publication of JP6826865B2 publication Critical patent/JP6826865B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a terminal device providing a broadcast communication cooperation service by operating in cooperation with an application executed in a broadcast receiving device, and collect logs related to the cooperative operation.SOLUTION: A receiving device performs processing of outputting content data included in a broadcast signal and processing of executing an application providing a plurality of services through an operation in cooperation with the broadcast signal. A service execution management part of a terminal device operates, in parallel, a plurality of service execution parts that execute service applications providing individual services by using a received message. A message control part of the terminal device performs at least one of processing of outputting a message issued from the application being executed in the receiving device to a destination service execution part, and processing of outputting the message issued from the service execution part to the receiving device or another service execution part. A log management part of the terminal device acquires log data on the message processed by the message control part.SELECTED DRAWING: Figure 6

Description

本発明は、端末装置及びプログラムに関する。   The present invention relates to a terminal device and a program.

近年、放送通信連携サービスを実現するためのシステムに関する研究開発が盛んに行われている。ハイブリッドキャストは、日本の代表的な放送通信連携サービスの一つであり、その技術仕様が策定されている(例えば、非特許文献1、2参照)。この技術仕様の規格に則り、2013年よりハイブリッドキャストのサービスが開始されている。例えば、HTML(Hypertext Markup Language)5を用いて記述された放送マネージドアプリケーションによるサービスが、複数の放送局より提供されている。「アプリケーション」とは、アプリケーションプログラムの略称であり、以下では、「アプリ」とも記載する。放送マネージドアプリは、放送送信側から送信される放送サービスの制御信号を用いて、起動、終了、強制終了などのライフサイクルが制御されるアプリである。   In recent years, research and development related to a system for realizing a broadcasting / communication cooperation service has been actively conducted. Hybridcast is one of Japan's representative broadcasting and communication cooperation services, and its technical specifications have been formulated (for example, see Non-Patent Documents 1 and 2). In accordance with this technical specification standard, a hybrid cast service has been started in 2013. For example, services by a broadcast managed application described using HTML (Hypertext Markup Language) 5 are provided from a plurality of broadcast stations. “Application” is an abbreviation for application program, and is also referred to as “application” below. A broadcast managed application is an application whose life cycle such as activation, termination, and forced termination is controlled using a broadcast service control signal transmitted from the broadcast transmission side.

ハイブリッドキャストでは、テレビなどの受信装置と、スマートフォンやタブレットなどの端末装置とが連携する機能を利用することが可能である。以下では、受信装置と連携する端末装置を連携端末とも記載する。連携機能の具体的な一例として、テレビで実行される放送マネージドアプリと、端末装置にインストールされたコンパニオンアプリ上で動作するWeb(ウェブ)アプリとの間で、テキストメッセージを相互に送受信することができる。   In the hybrid cast, it is possible to use a function in which a receiving device such as a television and a terminal device such as a smartphone or a tablet cooperate with each other. Hereinafter, a terminal device that cooperates with the receiving device is also referred to as a cooperation terminal. As a specific example of the linkage function, a text message can be transmitted and received between a broadcast managed app executed on a television and a web (web) app that operates on a companion app installed on a terminal device. it can.

“IPTV規定 放送通信連携システム仕様 IPTVFJ STD−0010 2.1版”、一般社団法人 IPTVフォーラム、2016年3月7日"IPTV regulation broadcast communication cooperation system specification IPTVFJ STD-0010 version 2.1", IPTV Forum, March 7, 2016 “IPTV規定 HTML5ブラウザ仕様 IPTVFJ STD−0011 2.2版”、一般社団法人 IPTVフォーラム、2016年3月7日"IPTV specification HTML5 browser specification IPTVFJ STD-0011 version 2.2", IPTV Forum, March 7, 2016

現行のハイブリッドキャストの規格においては、テレビ側の放送マネージドアプリから指定したURL(Universal Resource Locator)のウェブアプリを端末装置のコンパニオンアプリ上で表示し、テレビと端末装置の双方のデバイスで提示するアプリが連携動作する。この連携動作を行うときに、過去に行った連携動作に関する情報を利用することが望まれていた。   In the current hybrid cast standard, a URL (Universal Resource Locator) web application specified from a broadcast-managed application on the TV side is displayed on the companion app of the terminal device, and is displayed on both the TV and the terminal device. Work together. When performing this cooperative operation, it has been desired to use information related to the cooperative operation performed in the past.

本発明は、このような事情を考慮してなされたもので、放送の受信装置において実行されるアプリと連携動作して放送通信連携サービスを提供する端末装置において、連携動作に関するログを収集することができる端末装置及びプログラムを提供する。   The present invention has been made in consideration of such circumstances, and collects a log related to cooperative operation in a terminal device that provides a broadcast communication cooperative service in cooperation with an application executed in a broadcast receiving device. Provided is a terminal device and a program capable of performing the above.

本発明の一態様は、放送信号に含まれるコンテンツデータを出力する処理及び前記放送信号と連携した動作により複数のサービスを提供するアプリケーションを実行する処理を行う受信装置と通信する通信部と、個別のサービスを提供するアプリケーションであるサービスアプリケーションを、受信したメッセージを用いて実行する複数のサービス実行部と、複数の前記サービス実行部を並列動作させるサービス実行管理部と、前記受信装置において実行されている前記アプリケーションから発行され、前記通信部が受信したメッセージを宛先の前記サービス実行部に出力する処理と、前記サービス実行部から発行されたメッセージを前記受信装置又は他の前記サービス実行部に出力する処理との少なくとも一方を行うメッセージ制御部と、前記メッセージ制御部における処理の対象となった前記メッセージに関するログデータを取得するログ管理部と、を備えることを特徴とする端末装置である。   One aspect of the present invention is a communication unit that communicates with a receiving device that performs processing for outputting content data included in a broadcast signal and processing for executing an application that provides a plurality of services through an operation in cooperation with the broadcast signal; A plurality of service execution units that execute a service application that is an application that provides the service using the received message; a service execution management unit that operates the plurality of service execution units in parallel; and A process of outputting a message issued by the application and received by the communication unit to the destination service execution unit, and outputting a message issued from the service execution unit to the reception device or another service execution unit A message control unit that performs at least one of processing; A log management unit to acquire the log data relating to the message as the object of processing in the serial message controller, a terminal device, characterized in that it comprises a.

また、本発明の一態様は、上述の端末装置であって、前記ログ管理部は、前記通信部が受信した前記メッセージから得られた、前記受信装置において受信中の放送サービスに関する情報を取得する、ことを特徴とする。   One embodiment of the present invention is the above-described terminal device, wherein the log management unit obtains information related to a broadcast service being received by the receiving device, obtained from the message received by the communication unit. It is characterized by that.

また、本発明の一態様は、上述の端末装置であって、前記端末装置の状態又は前記端末装置の環境に関する情報を検出するセンサー部をさらに備え、前記ログ管理部は、前記センサー部による検出結果に関するログデータを取得する、ことを特徴とする。   One embodiment of the present invention is the above-described terminal device, further including a sensor unit that detects information related to the state of the terminal device or the environment of the terminal device, and the log management unit is detected by the sensor unit. Log data related to the result is acquired.

また、本発明の一態様は、上述の端末装置であって、前記ログ管理部は、前記受信装置との接続状態に関するログデータを取得する、ことを特徴とする。   One embodiment of the present invention is the above-described terminal device, wherein the log management unit acquires log data related to a connection state with the receiving device.

また、本発明の一態様は、上述の端末装置であって、前記ログ管理部は、前記サービス実行部による前記サービスアプリケーションの実行状態に関するログデータを取得する、ことを特徴とする。   One embodiment of the present invention is the above-described terminal device, wherein the log management unit acquires log data related to an execution state of the service application by the service execution unit.

また、本発明の一態様は、上述の端末装置であって、前記ログ管理部は、前記サービス実行部が前記サービスアプリケーションを実行することにより行ったアクセスの履歴に関するログデータを取得する、ことを特徴とする。   Further, one aspect of the present invention is the above-described terminal device, wherein the log management unit acquires log data related to a history of accesses performed by the service execution unit executing the service application. Features.

また、本発明の一態様は、上述の端末装置であって、ユーザ操作に従って前記受信装置に対する制御信号を、前記通信部を介して出力するリモコン部をさらに備え、前記ログ管理部は、前記リモコン部に行われた前記ユーザ操作に関するログデータを取得する、ことを特徴とする。   One embodiment of the present invention is the above-described terminal device, further including a remote control unit that outputs a control signal for the reception device via the communication unit according to a user operation, and the log management unit includes the remote control unit. Log data relating to the user operation performed on the unit is acquired.

また、本発明の一態様は、上述の端末装置であって、前記ログ管理部は、前記ユーザ操作により受信が指示された放送サービスに関するログデータを取得する、ことを特徴とする。   Further, one aspect of the present invention is the above-described terminal device, wherein the log management unit acquires log data related to a broadcast service instructed to be received by the user operation.

また、本発明の一態様は、上述の端末装置であって、前記ログ管理部は、取得した前記ログデータを、前記端末装置が備えるログ記憶部に蓄積する処理と、ログデータを蓄積するログ記憶部を備えた外部装置に前記通信部を介して送信する処理との少なくとも一方を行う、ことを特徴とする。   One embodiment of the present invention is the above-described terminal device, wherein the log management unit stores the acquired log data in a log storage unit included in the terminal device, and a log that stores the log data. At least one of a process of transmitting to an external device including a storage unit via the communication unit is performed.

また、本発明の一態様は、上述の端末装置であって、前記ログ管理部は、取得した前記ログデータに利用者の識別情報を付加し、ログデータを蓄積するログ記憶部を備えた外部装置に前記通信部を介して送信する、ことを特徴とする。   One aspect of the present invention is the terminal device described above, wherein the log management unit includes an external log storage unit that adds user identification information to the acquired log data and accumulates the log data. It transmits to an apparatus via the said communication part, It is characterized by the above-mentioned.

また、本発明の一態様は、上述の端末装置であって、前記サービス実行部から取得が指示されたログデータを前記ログ記憶部から読み出して返送するログアクセス制御部をさらに備える、ことを特徴とする。   One aspect of the present invention is the above-described terminal device, further comprising a log access control unit that reads out and returns log data instructed to be acquired from the service execution unit from the log storage unit. And

また、本発明の一態様は、コンピュータを、個別のサービスを提供するアプリケーションであるサービスアプリケーションを、受信したメッセージを用いて実行する複数のサービス実行手段と、複数の前記サービス実行手段を並列動作させるサービス実行管理手段と、放送信号に含まれるコンテンツデータを出力する処理及び前記放送信号と連携した動作により複数のサービスを提供するアプリケーションを実行する処理を行う受信装置において実行されている前記アプリケーションから発行されたメッセージを宛先の前記サービス実行手段に出力する処理と、前記サービス実行手段から発行されたメッセージを前記受信装置又は他の前記サービス実行手段に出力する処理との少なくとも一方を行うメッセージ制御手段と、前記メッセージ制御手段における処理の対象となった前記メッセージに関するログデータを取得するログ管理手段と、を具備する端末装置として機能させるプログラムである。   Further, according to one embodiment of the present invention, a plurality of service execution units that execute a service application, which is an application that provides individual services, using received messages and a plurality of the service execution units are operated in parallel. Issued by the service execution management means, the application running in the receiving apparatus that performs the process of outputting the content data included in the broadcast signal and the process of executing the application that provides a plurality of services through the operation in cooperation with the broadcast signal A message control unit that performs at least one of a process of outputting the received message to the service execution unit as a destination, and a process of outputting the message issued from the service execution unit to the reception device or another service execution unit , The message system A program to function as a terminal device including a log management unit that acquires the log data relating to the message as the object of processing in the means.

本発明によれば、放送の受信装置において実行されるアプリと連携動作して放送通信連携サービスを提供する端末装置において、連携動作に関するログを収集することが可能となる。   ADVANTAGE OF THE INVENTION According to this invention, it becomes possible to collect the log regarding cooperation operation | movement in the terminal device which cooperates with the application performed in the broadcast receiver, and provides a broadcast communication cooperation service.

本発明の一実施形態による放送通信連携システムの全体構成図である。1 is an overall configuration diagram of a broadcasting / communication cooperation system according to an embodiment of the present invention. 同実施形態による受信装置及び連携端末のスタック図である。It is a stack figure of the receiver and cooperation terminal by the embodiment. 同実施形態による受信装置の内部構成を示す機能ブロック図である。It is a functional block diagram which shows the internal structure of the receiver by the same embodiment. 同実施形態によるアプリ実行部の詳細な構成を示す機能ブロック図である。It is a functional block diagram which shows the detailed structure of the application execution part by the embodiment. 同実施形態による連携端末の構成を示す機能ブロック図である。It is a functional block diagram which shows the structure of the cooperation terminal by the embodiment. 同実施形態によるログ管理部の詳細な構成を示す機能ブロック図である。It is a functional block diagram which shows the detailed structure of the log management part by the embodiment. 同実施形態による放送事業者判定データベースの例を示す図である。It is a figure which shows the example of the broadcast provider determination database by the embodiment. 同実施形態によるユーザポリシー設定情報の例を示す図である。It is a figure which shows the example of the user policy setting information by the embodiment. 同実施形態による事業者ポリシー設定情報の例を示す図である。It is a figure which shows the example of the provider policy setting information by the embodiment. 同実施形態によるメッセージ制御部の詳細な構成を示す機能ブロック図である。It is a functional block diagram which shows the detailed structure of the message control part by the embodiment. 同実施形態による放送マネージドアプリの記述例を示す図である。It is a figure which shows the example of a description of the broadcast managed application by the embodiment. 同実施形態によるメッセージの設定例を示す図である。It is a figure which shows the example of a message setting by the embodiment. 同実施形態によるメッセージ制御部の処理フローを示す図である。It is a figure which shows the processing flow of the message control part by the embodiment. 同実施形態によるメッセージ制御部の処理フローを示す図である。It is a figure which shows the processing flow of the message control part by the embodiment. 同実施形態による受信装置と連携端末の間でメッセージを送信する場合のシーケンス図である。It is a sequence diagram in the case of transmitting a message between the receiving device and a cooperation terminal by the embodiment. 同実施形態によるウェブサービス間でメッセージを送信する場合のシーケンス図である。It is a sequence diagram in the case of transmitting a message between web services according to the embodiment. 同実施形態によるメッセージの設定例を示す図である。It is a figure which shows the example of a message setting by the embodiment. 同実施形態による受信装置と連携端末の間でセッションの識別子に基づきメッセージを送信する場合のシーケンス図である。It is a sequence diagram in the case of transmitting a message based on the identifier of a session between the receiving device and the cooperation terminal according to the embodiment. 同実施形態による受信装置と連携端末の間でセッションの識別子に基づきメッセージを送信する場合のシーケンス図である。It is a sequence diagram in the case of transmitting a message based on the identifier of a session between the receiving device and the cooperation terminal according to the embodiment. 同実施形態によるメッセージの設定例を示す図である。It is a figure which shows the example of a message setting by the embodiment. 同実施形態による連携端末のウェブアプリ間でセッションの識別子に基づきメッセージを送信する場合のシーケンス図である。It is a sequence diagram in the case of transmitting a message based on the identifier of a session between web applications of linked terminals according to the same embodiment. 同実施形態による連携端末のウェブアプリ間でセッションの識別子に基づきメッセージを送信する場合のシーケンス図である。It is a sequence diagram in the case of transmitting a message based on the identifier of a session between web applications of linked terminals according to the same embodiment.

以下、図面を参照しながら本発明の実施形態を詳細に説明する。以下では、「アプリケーションプログラム」を、「アプリケーション」又は「アプリ」とも記載する。また、以下の説明では、アプリに記述された命令で指定される処理を実行することを、単に「アプリを実行」又は「アプリの実行」と呼ぶことがある。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. Hereinafter, “application program” is also referred to as “application” or “application”. Further, in the following description, executing a process specified by an instruction described in an application may be simply referred to as “execute application” or “execute application”.

図1は、本実施形態の一実施形態による放送通信連携システム1の全体構成図である。放送通信連携システム1は、放送送出装置2と、サービスサーバ3と、受信装置4と、連携端末5と、ログサーバ6とを有する。放送送出装置2、サービスサーバ3及びログサーバ6は送信側の装置であり、受信装置4及び連携端末5は、受信側の装置である。   FIG. 1 is an overall configuration diagram of a broadcasting / communication cooperation system 1 according to an embodiment of the present embodiment. The broadcast / communication cooperation system 1 includes a broadcast transmission device 2, a service server 3, a reception device 4, a cooperation terminal 5, and a log server 6. The broadcast transmission device 2, the service server 3, and the log server 6 are transmission-side devices, and the reception device 4 and the cooperation terminal 5 are reception-side devices.

放送送出装置2は、放送信号を送出する。サービスサーバ3は、アプリ本体やアプリで利用するコンテンツデータを、インターネットを介して受信側の装置へ配信する。アプリ本体とは、アプリケーションのプログラムである。受信装置4は、例えば、ハイブリッドキャスト対応テレビである。連携端末5は、例えば、スマートフォンやタブレット端末などの端末装置である。受信装置4及び連携端末5は、インターネットを介してサービスサーバ3と相互に通信できる。また、受信装置4と連携端末5は、無線LAN(Local Area Network)等のローカルネットワークを介して接続する。ログサーバ6は、連携端末5において収集したログデータを記憶する。なお、ログデータを連携端末5のみに蓄積する場合、放送通信連携システム1はログサーバ6を備えなくてもよい。   The broadcast transmission device 2 transmits a broadcast signal. The service server 3 distributes content data used by the application main body and the application to a receiving device via the Internet. The application main body is an application program. The receiving device 4 is, for example, a hybrid cast compatible television. The cooperation terminal 5 is a terminal device such as a smartphone or a tablet terminal. The receiving device 4 and the cooperation terminal 5 can communicate with the service server 3 via the Internet. In addition, the receiving device 4 and the cooperation terminal 5 are connected via a local network such as a wireless local area network (LAN). The log server 6 stores log data collected by the cooperation terminal 5. Note that when the log data is stored only in the cooperation terminal 5, the broadcasting / communication cooperation system 1 may not include the log server 6.

放送通信連携サービスの形態は複数存在するが、本実施形態の放送通信連携システム1では、ハイブリッドキャスト技術仕様(非特許文献1、2)に基づき、受信装置4において、デジタル放送サービスとインターネットサービスとが連携動作することを想定する。受信装置4が、放送またはインターネットにより配信されるアプリを実行することで、インターネット上のコンテンツを取得できるようになり、ユーザが放送通信連携サービスを利用できるようになる。さらに、ハイブリッドキャスト技術仕様に則り、受信装置4と連携端末5にインストールした端末側連携アプリとが連携動作する。   There are a plurality of forms of broadcasting / communication cooperation services. However, in the broadcasting / communication cooperation system 1 of the present embodiment, a digital broadcasting service and an Internet service are provided in the receiving device 4 based on the hybrid cast technical specifications (Non-Patent Documents 1 and 2). Is assumed to operate in conjunction. When the receiving device 4 executes an application distributed by broadcasting or the Internet, the content on the Internet can be acquired, and the user can use the broadcasting / communication cooperation service. Furthermore, in accordance with the hybrid cast technical specifications, the receiving device 4 and the terminal-side cooperative app installed in the cooperative terminal 5 operate in cooperation.

なお、本実施形態においては、受信装置4において動作するアプリは、放送事業者が配信する放送マネージドアプリとする。放送マネージドアプリは、放送送出装置2から送信される放送サービスの制御信号に基づいて、起動、終了、強制終了などのライフサイクルが制御される。   In the present embodiment, the app that operates in the receiving device 4 is a broadcast managed app distributed by a broadcaster. The broadcast managed application has a life cycle such as activation, termination, and forced termination controlled based on a broadcast service control signal transmitted from the broadcast transmission device 2.

連携端末5に実装される端末側連携アプリは、通信により接続される他の装置である受信装置4と連携して動作するコンパニオンアプリである。端末側連携アプリは、受信装置4により実行される放送マネージドアプリと連携動作する1以上のサービスアプリを実行する。   The terminal-side cooperative app implemented in the cooperative terminal 5 is a companion app that operates in cooperation with the receiving device 4 that is another device connected by communication. The terminal-side cooperative app executes one or more service apps that operate in cooperation with the broadcast managed app executed by the receiving device 4.

放送マネージドアプリとサービスアプリとは連携動作することにより、ユーザへ提供するサービスを実行する。サービスとは、ユーザが連携端末5に行った操作に従って動作した結果の画像、映像、音声を、連携端末5に、又は、受信装置4及び連携端末5に出力することである。サービスの実行には、受信装置4が有する受信機機能から取得した情報などが利用される。受信機機能は、放送信号を受信し、ユーザにより選択されたチャンネルの番組映像や音声などのコンテンツデータを放送信号から取得し、デコードして出力する一連の機能である。ユーザに提供するサービスは任意であるが、一例として、SNS(ソーシャルネットワークサービス)、天気予報やニュースなどの情報の提供、外国語字幕の提供、テレビ映像とは異なる角度からの映像の提示などがある。   The broadcast managed app and the service app operate in cooperation to execute a service provided to the user. The service is to output an image, a video, and a sound obtained as a result of operation according to an operation performed on the cooperation terminal 5 by the user to the cooperation terminal 5 or to the reception device 4 and the cooperation terminal 5. For execution of the service, information acquired from the receiver function of the receiving device 4 is used. The receiver function is a series of functions for receiving a broadcast signal, acquiring content data such as program video and audio of a channel selected by the user from the broadcast signal, decoding and outputting the content data. The service provided to the user is arbitrary, but examples include SNS (social network service), provision of information such as weather forecasts and news, provision of foreign language subtitles, presentation of video from a different angle than TV video, etc. is there.

本実施形態では、端末側連携アプリにおいて実行されるサービスアプリがウェブアプリである場合を例に説明する。ウェブアプリとは、ウェブブラウザにより実行されるアプリである。ウェブアプリは、任意の手段により連携端末5に実装される。例えば、ウェブアプリは、放送マネージドアプリから取得が指示されたアプリでもよく、ユーザ操作により取得したアプリでもよく、連携端末5に予め実装されたアプリでもよい。放送マネージドアプリ及びウェブアプリのプログラムは、例えば、HTML(Hypertext Markup Language)により記述される。   In the present embodiment, a case where a service application executed in the terminal-side cooperative application is a web application will be described as an example. A web application is an application executed by a web browser. The web application is mounted on the cooperation terminal 5 by any means. For example, the web application may be an application for which acquisition is instructed from a broadcast managed application, an application acquired by a user operation, or an application pre-installed in the cooperation terminal 5. The broadcast managed application program and the web application program are described in, for example, HTML (Hypertext Markup Language).

図2は、受信装置4及び連携端末5のスタック図である。受信装置4は、ハードウェア、OS(Operation System)、レジデント及びアプリ実行部の4層から構成される。アプリ実行部は、例えばHTML5ブラウザであり、放送マネージドアプリを実行する。OS上で実行されるレジデントには、メモリに常駐するソフトウェアによる放送の受信機機能が搭載される。アプリ実行部で実行される放送マネージドアプリは、非特許文献1により規定される拡張API(Application Program Interface)を通してレジデントの受信機機能にアクセスすることができる。ハードウェアは、CPU(central processing unit)、各種メモリ、チューナー、デコーダ、通信装置、表示装置、入力装置などを含む。   FIG. 2 is a stack diagram of the receiving device 4 and the cooperation terminal 5. The receiving device 4 includes four layers: hardware, OS (Operation System), resident, and application execution unit. The application execution unit is, for example, an HTML5 browser, and executes a broadcast managed application. The resident executed on the OS has a broadcast receiver function by software resident in the memory. The broadcast managed application executed by the application execution unit can access the resident receiver function through an extended API (Application Program Interface) defined by Non-Patent Document 1. The hardware includes a central processing unit (CPU), various memories, a tuner, a decoder, a communication device, a display device, an input device, and the like.

連携端末5は、ハードウェア、OS及びネイティブアプリ実行部の3層から構成される。ネイティブアプリ実行部は、iOS(登録商標)やAndroid(登録商標)など端末のOSが提供するアプリを実行する。ネイティブアプリ実行部では、複数のネイティブアプリが動作可能である。ネイティブアプリは、特定のOSやプラットフォームで実行可能なプログラムである。本実施形態における端末側連携アプリはネイティブアプリであり、ネイティブアプリ実行部において動作する。なお、端末側連携アプリは、ネイティブアプリでなくてもよい。例えば、端末側連携アプリは、ネイティブアプリから、ネイティブアプリではないブラウザを呼び出し、ブラウザによりウェブアプリを実行させてもよい。ハードウェアは、CPU、各種メモリ、通信装置、表示装置、入力装置などを含む。   The cooperation terminal 5 includes three layers of hardware, OS, and native application execution unit. The native application execution unit executes an application provided by the terminal OS, such as iOS (registered trademark) or Android (registered trademark). The native application execution unit can operate a plurality of native applications. The native application is a program that can be executed on a specific OS or platform. The terminal side cooperation application in this embodiment is a native application, and operates in the native application execution unit. In addition, the terminal side cooperation application may not be a native application. For example, the terminal-side cooperative app may call a browser that is not a native app from the native app and cause the web app to be executed by the browser. The hardware includes a CPU, various memories, a communication device, a display device, an input device, and the like.

ハイブリッドキャストにおける端末連携機能は、受信装置4のアプリ実行部で動作する放送マネージドアプリと、連携端末5のネイティブアプリ実行部が実行する端末側連携アプリの内部で動作するウェブアプリの間で実現される。放送マネージドアプリとウェブアプリとの間では、非特許文献1で規定される拡張APIを用いてテキストメッセージを送信する。テキストメッセージには、任意のメッセージ内容を記述することができる。例えば、メッセージ内容は、アプリに対する各種の実行命令や、アプリが動作する際に用いられる付加的な情報などでもよい。   The terminal cooperation function in the hybrid cast is realized between a broadcast managed application that operates in the application execution unit of the receiving device 4 and a web application that operates in the terminal side cooperation application that is executed by the native application execution unit of the cooperation terminal 5. The A text message is transmitted between the broadcast managed application and the web application using the extended API defined in Non-Patent Document 1. An arbitrary message content can be described in the text message. For example, the message content may be various execution instructions for the application or additional information used when the application operates.

図3は、受信装置4の内部構成を示すブロック図であり、本実施形態と関係する機能ブロックのみを抽出して示してある。同図に示す受信装置4は、放送受信部401、分離部402、映像復号部403、音声復号部404、データ放送実行部405、通信入出力部406、リモコン入力制御部407、電源制御部408、アプリ実行部409、アプリ制御部410、放送通信連携部411、端末連携部412、映像合成部413、映像表示部414、音声合成部415及び音声出力部416を備えて構成される。   FIG. 3 is a block diagram showing an internal configuration of the receiving device 4, and only functional blocks related to the present embodiment are extracted and shown. The receiving apparatus 4 shown in the figure includes a broadcast receiving unit 401, a separation unit 402, a video decoding unit 403, an audio decoding unit 404, a data broadcast execution unit 405, a communication input / output unit 406, a remote control input control unit 407, and a power supply control unit 408. , An application execution unit 409, an application control unit 410, a broadcast communication cooperation unit 411, a terminal cooperation unit 412, a video synthesis unit 413, a video display unit 414, a voice synthesis unit 415, and a voice output unit 416.

放送受信部401は、チューナーであり、放送送出装置2から送出された放送信号を受信し、復調する。分離部402は、放送受信部401が受信し、復調した放送信号を、映像データ、音声データなどのコンテンツデータや、コンテンツデータ以外のデータに分離する。コンテンツ以外のデータには、例えば、データ放送や、受信チャンネル、番組情報が記述されたSI(Service Information)や、イベントメッセージなどが含まれる。映像復号部403は、映像データを復号する。音声復号部404は、音声データを復号する。データ放送実行部405は、BML(Broadcast Markup Language)ブラウザであり、データ放送を実行する。   The broadcast receiving unit 401 is a tuner that receives and demodulates a broadcast signal sent from the broadcast sending device 2. The separating unit 402 separates the broadcast signal received and demodulated by the broadcast receiving unit 401 into content data such as video data and audio data, and data other than the content data. Data other than content includes, for example, data broadcasting, reception channels, SI (Service Information) describing program information, event messages, and the like. The video decoding unit 403 decodes the video data. The audio decoding unit 404 decodes audio data. The data broadcast execution unit 405 is a BML (Broadcast Markup Language) browser, and executes data broadcast.

通信入出力部406は、通信ネットワークに接続するためのインターフェースである。通信入出力部406は、インターネットなどを介してアプリマーケット、アカウント管理サーバ、アプリ配信サーバなどのサービスサーバ3と接続する。また、通信入出力部406は、無線LANなどのローカルネットワークを介して連携端末5と接続する。リモコン入力制御部407は、リモコン(リモートコントローラ)からユーザがリモコンに行った操作を示すデータを受信する。電源制御部408は、受信装置4の電源の制御を行う。   The communication input / output unit 406 is an interface for connecting to a communication network. The communication input / output unit 406 is connected to the service server 3 such as an application market, an account management server, and an application distribution server via the Internet. The communication input / output unit 406 is connected to the cooperation terminal 5 via a local network such as a wireless LAN. The remote control input control unit 407 receives data indicating an operation performed by the user on the remote control from the remote control (remote controller). The power supply control unit 408 controls the power supply of the receiving device 4.

アプリ実行部409は、放送マネージドアプリを実行するウェブ(Web)ブラウザである。放送マネージドアプリは、1以上のサービスの機能を提供する。アプリ制御部410は、放送信号から分離されたデータに含まれる情報に基づいて、放送マネージドアプリの起動や終了などの制御を行う。例えば、アプリ制御部410は、現在選択されている放送事業者(チャンネル)の放送マネージドアプリを、放送信号から分離されたAITに設定されている情報などに基づいて制御する。アプリ制御部410は、起動した放送マネージドアプリの識別情報を端末連携部412に通知する。   The application execution unit 409 is a web (Web) browser that executes a broadcast managed application. The broadcast managed application provides one or more service functions. The application control unit 410 performs control such as activation and termination of the broadcast managed application based on information included in the data separated from the broadcast signal. For example, the application control unit 410 controls the broadcast managed application of the currently selected broadcaster (channel) based on information set in the AIT separated from the broadcast signal. The application control unit 410 notifies the terminal cooperation unit 412 of identification information of the started broadcast managed application.

放送通信連携部411は、放送マネージドアプリにおいて放送又は通信により取得したコンテンツを連携動作させるために、アプリ実行部409に対して拡張APIで規定される機能を提供する。具体的には、放送通信連携部411は、受信中の放送信号に含まれるSIやイベントメッセージなどの情報や受信装置4が備える機能などへのアクセス手段を提供する。端末連携部412は、連携端末5とのペアリング処理と、受信装置4の放送マネージドアプリと連携端末5のウェブアプリ間の通信を仲介する処理とを行う。端末連携部412は、後述する図5に示す連携端末5の端末連携部531とペアで動作する。端末連携部412は、起動された放送マネージドアプリの識別情報を連携端末5に通知する。   The broadcast communication cooperation unit 411 provides a function defined by the extended API to the application execution unit 409 in order to perform a cooperative operation on content acquired by broadcast or communication in a broadcast managed application. Specifically, the broadcasting / communication cooperation unit 411 provides an access unit to information such as SI and event messages included in a broadcast signal being received, functions provided in the receiving device 4, and the like. The terminal cooperation unit 412 performs pairing processing with the cooperation terminal 5 and processing that mediates communication between the broadcast managed application of the reception device 4 and the web application of the cooperation terminal 5. The terminal cooperation unit 412 operates in a pair with the terminal cooperation unit 531 of the cooperation terminal 5 shown in FIG. The terminal cooperation unit 412 notifies the cooperation terminal 5 of identification information of the activated broadcast managed application.

映像合成部413は、映像復号部403が復号した放送番組の映像データと、データ放送実行部405やアプリ実行部409の処理結果に基づき出力された映像データとを合成し、映像表示部414に出力する。映像表示部414は、一般的なディスプレイであり、映像合成部413が合成した映像データの映像を表示する。   The video synthesizing unit 413 synthesizes the video data of the broadcast program decoded by the video decoding unit 403 and the video data output based on the processing results of the data broadcast execution unit 405 and the application execution unit 409, and displays them on the video display unit 414. Output. The video display unit 414 is a general display, and displays a video of the video data synthesized by the video synthesis unit 413.

音声合成部415は、音声復号部404が復号した放送番組の音声データと、データ放送実行部405やアプリ実行部409の処理結果に基づき出力された音声データとを合成し、音声出力部416に出力する。音声出力部416は、一般的なスピーカーであり、音声合成部415が合成した音声データを音声により出力する。   The voice synthesizing unit 415 synthesizes the audio data of the broadcast program decoded by the audio decoding unit 404 and the audio data output based on the processing results of the data broadcast execution unit 405 and the application execution unit 409, and sends them to the audio output unit 416. Output. The voice output unit 416 is a general speaker, and outputs the voice data synthesized by the voice synthesis unit 415 by voice.

図4は、アプリ実行部409の詳細な構成を示す機能ブロック図である。アプリ実行部409は、サービス実行部421、サービス実行管理部422及びメッセージ制御部423を有する。なお、アプリ実行部409は複数のサービス実行部421を備え得るが、同時に動作する放送マネージドアプリは一つのみとする。同図では、アプリ実行部409が備える複数のサービス実行部421をそれぞれ、サービス実行部421−1、421−2、421−3、…と記載している。   FIG. 4 is a functional block diagram illustrating a detailed configuration of the application execution unit 409. The application execution unit 409 includes a service execution unit 421, a service execution management unit 422, and a message control unit 423. Note that the application execution unit 409 may include a plurality of service execution units 421, but only one broadcast managed application operates simultaneously. In the figure, a plurality of service execution units 421 included in the application execution unit 409 are described as service execution units 421-1, 421-2, 421-3,.

サービス実行部421は、アプリ制御部410による制御に基づき、放送マネージドアプリに含まれるサービス機能を実行する。サービス実行管理部422は、各サービス実行部421の起動及び終了の制御や状態管理を行い、複数のサービス実行部421を並列に実行させる。   The service execution unit 421 executes a service function included in the broadcast managed application based on control by the application control unit 410. The service execution management unit 422 controls activation and termination of each service execution unit 421 and status management, and causes a plurality of service execution units 421 to be executed in parallel.

メッセージ制御部423は、サービス実行部421が実行する放送マネージドアプリのサービス機能と連携端末5が実行するウェブアプリとの間のメッセージを適切に送受信するための制御を行う。メッセージ制御部423は、サービス識別管理部4231、メッセージ受信部4232、メッセージ判定部4233、メッセージ分配部4234及び送信元サービス設定部4235を有する。   The message control unit 423 performs control for appropriately transmitting and receiving a message between the service function of the broadcast managed application executed by the service execution unit 421 and the web application executed by the cooperation terminal 5. The message control unit 423 includes a service identification management unit 4231, a message reception unit 4232, a message determination unit 4233, a message distribution unit 4234, and a transmission source service setting unit 4235.

サービス識別管理部4231は、サービス実行部421の識別子と、そのサービス実行部421により実行されるサービスの識別子との対応表を例えばリスト形式で管理する。サービスの識別子は、予め決められる。なお、各放送マネージドアプリは、プレフィックスを付加することなどにより、送信先のアドレスとして、サービス毎に予め決められた識別子を、メッセージの一部に付加して送受信を行う。   The service identification management unit 4231 manages a correspondence table between the identifier of the service execution unit 421 and the identifier of the service executed by the service execution unit 421 in a list format, for example. The service identifier is predetermined. Each broadcast managed application performs transmission / reception by adding an identifier predetermined for each service as a transmission destination address to a part of the message by adding a prefix or the like.

メッセージ受信部4232は、連携端末5からのメッセージ、及び、サービス実行部421からのメッセージを受信する。メッセージ受信部4232は、受信したメッセージを、メッセージ判定部4233及びメッセージ分配部4234に送信する。なお、メッセージ受信部4232は、メッセージ判定部4233に宛先の判定に必要な情報のみを送信してもよい。   The message reception unit 4232 receives a message from the cooperation terminal 5 and a message from the service execution unit 421. The message reception unit 4232 transmits the received message to the message determination unit 4233 and the message distribution unit 4234. Note that the message receiving unit 4232 may transmit only the information necessary for determining the destination to the message determining unit 4233.

メッセージ判定部4233は、メッセージ受信部4232から受信したメッセージに付加されたサービスの識別子と、サービス識別管理部4231に記憶される対応表とを照合してメッセージの送信先を決定し、メッセージ分配部4234に通知する。メッセージ判定部4233は、メッセージに付加された送信元のサービスの識別子と送信先のサービスの識別子とが同一の場合は連携端末5を送信先とし、異なる場合はサービス実行部421を送信先とする。また、メッセージ判定部4233は、実施形態によっては、サービス間の通信チャンネルを確立するための識別子の発行や、その識別子に基づいたメッセージの送信先の決定を行う。   The message determination unit 4233 collates the service identifier added to the message received from the message reception unit 4232 with the correspondence table stored in the service identification management unit 4231 to determine the transmission destination of the message, and the message distribution unit 4234 is notified. The message determination unit 4233 sets the linkage terminal 5 as the transmission destination when the transmission source service identifier and the transmission destination service identifier added to the message are the same, and sets the service execution unit 421 as the transmission destination when they are different. . In addition, the message determination unit 4233 may issue an identifier for establishing a communication channel between services and determine a message transmission destination based on the identifier depending on the embodiment.

メッセージ分配部4234は、メッセージ受信部4232から受信したメッセージを、メッセージ判定部4233が決定した送信先に送信する。送信元サービス設定部4235は、サービス実行部421が連携端末5または他のサービス実行部421に対して送信するメッセージに、そのサービス実行部421において実行中の放送マネージドアプリのサービスの識別子を付加する。   The message distribution unit 4234 transmits the message received from the message reception unit 4232 to the transmission destination determined by the message determination unit 4233. The transmission source service setting unit 4235 adds the identifier of the service of the broadcast managed application being executed in the service execution unit 421 to the message transmitted from the service execution unit 421 to the cooperation terminal 5 or other service execution unit 421. .

図5は、連携端末5の構成を示す機能ブロック図であり、本実施形態と関係する機能ブロックのみを抽出して示してある。同図においては、端末側連携アプリを中心とした機能構成を示す。連携端末5は、ハードウェア部51、OS部52、連携アプリ実行制御部53及び他アプリ実行制御部54を有する。   FIG. 5 is a functional block diagram showing the configuration of the cooperation terminal 5, and only functional blocks related to the present embodiment are extracted and shown. In the figure, a functional configuration centering on the terminal-side cooperative application is shown. The link terminal 5 includes a hardware unit 51, an OS unit 52, a link application execution control unit 53, and another application execution control unit 54.

ハードウェア部51は、CPU、各種メモリ、通信装置、ディスプレイ(表示装置)、ユーザ操作を入力するための入力デバイス(入力装置)などの各種ハードウェアからなる。ディスプレイがタッチパネルである場合、入力デバイスは、タッチパネルに配されたタッチセンサーである。ハードウェア部51は、通信装置により実現される通信入出力部511、及び、各種のセンサー512を有する。同図では、n個(nは自然数)のセンサーをセンサー512−1〜512−nと記載している。   The hardware unit 51 includes various hardware such as a CPU, various memories, a communication device, a display (display device), and an input device (input device) for inputting a user operation. When the display is a touch panel, the input device is a touch sensor arranged on the touch panel. The hardware unit 51 includes a communication input / output unit 511 and various sensors 512 realized by a communication device. In the figure, n (n is a natural number) sensors are described as sensors 512-1 to 512-n.

通信入出力部511は、通信ネットワークに接続するためのインターフェースである。通信入出力部511は、インターネットなどを介してサービスサーバ3及びログサーバ6と接続する。また、通信入出力部511は、無線LANなどのローカルネットワークを介して受信装置4と接続する。センサー512は、連携端末5の状態や連携端末5が存在する環境に関する情報を検出する。センサー512は、例えば、GPS(Global Positioning System)、加速度センサー、温度センサー、磁気センサー、輝度センサー、近接センサーなどであるが、これらに限定されない。   The communication input / output unit 511 is an interface for connecting to a communication network. The communication input / output unit 511 is connected to the service server 3 and the log server 6 via the Internet or the like. The communication input / output unit 511 is connected to the receiving device 4 via a local network such as a wireless LAN. The sensor 512 detects information regarding the state of the cooperation terminal 5 and the environment in which the cooperation terminal 5 exists. Examples of the sensor 512 include a GPS (Global Positioning System), an acceleration sensor, a temperature sensor, a magnetic sensor, a luminance sensor, and a proximity sensor, but are not limited thereto.

OS部52は、OSにより実現され、端末全体を制御し、連携アプリ実行制御部53及び他アプリ実行制御部54に、ハードウェア部51へのインターフェースを提供する。   The OS unit 52 is realized by the OS, controls the entire terminal, and provides an interface to the hardware unit 51 to the cooperative application execution control unit 53 and the other application execution control unit 54.

連携アプリ実行制御部53は、CPUがメモリに記憶された端末側連携アプリを読み出して実行することにより実現される。連携アプリ実行制御部53は、端末連携部531、サービス実行部532、サービス実行管理部533、メッセージ制御部534、ID管理部551、接続状態管理部552、リモコン部553、ログ管理部554、ログアクセス制御部555、ユーザポリシー設定部556及び事業者ポリシー設定部557を有する。複数のサービス実行部532をそれぞれ、サービス実行部532−1、532−2、532−3、…と記載する。   The cooperation application execution control unit 53 is realized by the CPU reading and executing the terminal-side cooperation application stored in the memory. The linked application execution control unit 53 includes a terminal link unit 531, a service execution unit 532, a service execution management unit 533, a message control unit 534, an ID management unit 551, a connection state management unit 552, a remote control unit 553, a log management unit 554, a log An access control unit 555, a user policy setting unit 556, and an operator policy setting unit 557 are included. The plurality of service execution units 532 are described as service execution units 532-1, 532-2, 532-3,.

端末連携部531は、受信装置4とのペアリング処理と、受信装置4の放送マネージドアプリと連携端末5のウェブアプリ間の通信を仲介する処理とを行う。端末連携部531は、受信装置4の端末連携部412とペアで動作する。   The terminal cooperation unit 531 performs pairing processing with the receiving device 4 and processing that mediates communication between the broadcast managed application of the receiving device 4 and the web application of the cooperation terminal 5. The terminal cooperation unit 531 operates in a pair with the terminal cooperation unit 412 of the receiving device 4.

サービス実行部532は、個々のサービスを提供するためのウェブアプリを実行する。サービス実行部532の実装方法としては、Android(登録商標)搭載端末におけるWebView、iOS搭載端末におけるUIWebViewなどが挙げられる。サービス実行部532は複数存在することを前提としており、各サービス実行部532には一意の識別子が割り当てられ、サービスの識別子としても用いられる。各サービス実行部532は、以下のようなウェブアプリを実行する。   The service execution unit 532 executes a web application for providing each service. As a mounting method of the service execution unit 532, there are WebView in an Android (registered trademark) -equipped terminal, UIWebView in an iOS-equipped terminal, and the like. It is assumed that there are a plurality of service execution units 532, and each service execution unit 532 is assigned a unique identifier and is also used as a service identifier. Each service execution unit 532 executes the following web application.

(1)現在実際にサービスが提供されている受信装置4の放送マネージドアプリと連携したウェブアプリ。なお、このウェブアプリを実行するのは一つのサービス実行部532である。
(2)複数の放送局が配信する放送マネージドアプリと連携して共通に利用することができるウェブアプリ。
(3)受信装置4と連携しないウェブアプリ。
(1) A web application that cooperates with a broadcast managed application of the receiving device 4 that is currently actually providing a service. The web application is executed by one service execution unit 532.
(2) A web application that can be commonly used in cooperation with a broadcast managed application distributed by a plurality of broadcasting stations.
(3) A web application that does not cooperate with the receiving device 4.

サービス実行管理部533は、各サービス実行部532の起動及び終了の制御や状態管理を行い、複数のサービス実行部532を並列に実行させる。サービス実行管理部533は、受信装置4からの指示又はユーザ操作に基づいて、サービス実行部532、または、サービス実行部532上で実行されるウェブアプリの起動及び終了の制御や、フォアグラウンドでの動作又はバックグラウンドでの動作など状態の変更を行う。また、サービス実行管理部533は、実行中のウェブアプリの提供者の識別情報とウェブアプリの識別情報の一方又は両方を管理する。ウェブアプリの提供者の識別情報として、例えば、ウェブアプリの取得先のドメイン名を用いることができる。   The service execution management unit 533 controls activation and termination of each service execution unit 532 and status management, and causes a plurality of service execution units 532 to be executed in parallel. The service execution management unit 533 controls the activation and termination of the web application executed on the service execution unit 532 or the service execution unit 532 and the operation in the foreground based on an instruction from the receiving device 4 or a user operation. Or change the state such as operation in the background. The service execution management unit 533 manages one or both of the identification information of the web application provider being executed and the identification information of the web application. As the identification information of the web application provider, for example, the domain name from which the web application is acquired can be used.

ID管理部551は、個々の利用者IDを発行し、管理する。利用者IDは、例えば、連携端末5、連携端末5に実装された端末側連携アプリ、又は、連携端末5のユーザを一意に特定する識別情報である。利用者IDは、ユーザが入力したものでもよく、ID管理部551が外部の装置と協働するなどして生成したものでもよい。   The ID management unit 551 issues and manages individual user IDs. The user ID is, for example, identification information that uniquely identifies the cooperation terminal 5, the terminal-side cooperation application installed in the cooperation terminal 5, or the user of the cooperation terminal 5. The user ID may be input by the user, or may be generated by the ID management unit 551 cooperating with an external device.

接続状態管理部552は、連携端末5が受信装置4と接続状態であるか否かを検知し、その状態を管理する。リモコン部553は、受信装置4のソフトウェアリモコンに相当する。具体的には、リモコン部553は、チャンネルボタン、色ボタン、dボタン、上下左右ボタン、決定ボタン、戻るボタン、音量ボタン、電源ボタンなどのユーザインターフェースと、ユーザがそれらを操作したときに、その操作に応じた命令を発行し、端末連携部531及び通信入出力部511を介して受信装置4に送信する機能を有する。   The connection state management unit 552 detects whether or not the cooperation terminal 5 is connected to the receiving device 4 and manages the state. The remote controller 553 corresponds to a software remote controller of the receiving device 4. Specifically, the remote control unit 553 includes a user interface such as a channel button, a color button, a d button, an up / down / left / right button, a determination button, a return button, a volume button, and a power button, and when the user operates them, It has a function of issuing a command according to the operation and transmitting it to the receiving device 4 via the terminal cooperation unit 531 and the communication input / output unit 511.

ログ管理部554は、ユーザが端末側連携アプリを利用する際に取得可能な、複数の種類のログデータを統合的に管理する。ログデータには、ログが得られた時刻の情報が含まれる。ログアクセス制御部555は、サービス実行部532において実行中のウェブアプリに対して、ログ管理部554において管理される各種ログデータへのアクセスを許可するか否かのアクセス制御を行う。ログアクセス制御部555は、このアクセス制御を、ユーザポリシー設定部556にユーザのポリシーとして設定された条件、及び、事業者ポリシー設定部557に事業者のポリシーとして設定された条件に基づいて行う。   The log management unit 554 integrally manages a plurality of types of log data that can be acquired when the user uses the terminal-side cooperative application. The log data includes information on the time when the log was obtained. The log access control unit 555 performs access control as to whether or not to permit access to various log data managed by the log management unit 554 for the web application being executed by the service execution unit 532. The log access control unit 555 performs this access control based on the conditions set as the user policy in the user policy setting unit 556 and the conditions set as the business policy in the business policy setting unit 557.

ユーザポリシー設定部556は、ログ管理部554に各種ログデータの管理を認可するか否かの認否や、ウェブアプリからの各種ログデータへのアクセスを認可するか否かの認否を、ユーザがポリシーとして設定する機能を有する。ユーザポリシー設定部556は、内部に備えるユーザポリシー記憶部5561に、ユーザが設定したポリシーを示すユーザポリシーデータを書き込む。なお、ユーザポリシー記憶部5561は、ユーザポリシー設定部556の外部に備えられてもよい。ログデータを記憶するログ記憶部が、連携端末5のログ管理部554内と、インターネットを介して接続されるログサーバ6などのクラウドのサーバ内との両方に実装される場合は、どちらを利用するかのポリシーをユーザポリシー設定部556にさらに設定することもできる。ログ管理部554は、取得したログデータを、ユーザポリシー記憶部5561に記憶されるポリシーに従って、後述する図6に示すログ管理部554内のログ記憶部5542に書き込むか、ログサーバ6に送信する。ユーザがユーザポリシーの設定を行うための機能は、端末側連携アプリによる画面として提供し、連携端末5のグラフィカルユーザインターフェース(GUI)を介してユーザが設定することを想定する。   The user policy setting unit 556 determines whether or not the log management unit 554 is authorized to manage various log data and whether the user is authorized to access various log data from the web application. It has the function to set as. The user policy setting unit 556 writes user policy data indicating a policy set by the user in a user policy storage unit 5561 provided therein. Note that the user policy storage unit 5561 may be provided outside the user policy setting unit 556. If the log storage unit for storing log data is implemented in both the log management unit 554 of the cooperation terminal 5 and the cloud server such as the log server 6 connected via the Internet, whichever is used It is also possible to further set a policy of whether to do so in the user policy setting unit 556. The log management unit 554 writes the acquired log data in the log storage unit 5542 in the log management unit 554 shown in FIG. 6 to be described later or transmits it to the log server 6 according to the policy stored in the user policy storage unit 5561. . It is assumed that the function for the user to set the user policy is provided as a screen by the terminal side cooperation application and is set by the user via the graphical user interface (GUI) of the cooperation terminal 5.

事業者ポリシー設定部557は、ウェブアプリからログ管理部554が管理するログデータへのアクセスを認可するか否かの認否を、放送事業者がポリシーとして設定する機能を有する。アクセスの認否は、ウェブアプリを提供する事業者ごとに設定されてもよく、ウェブアプリ又はサービスごとに設定されてもよい。事業者ポリシー設定部557は、内部に備える事業者ポリシー記憶部5571に、放送事業者により設定されたポリシーを示す事業者ポリシーデータを書き込む。この事業者ポリシーデータは、端末側連携アプリのアップデートや、インターネット上のサービスサーバ3から事業者のポリシーに関するデータを連携端末5に送信することにより更新される。あるいは、事業者ポリシー設定部557は、受信装置4が放送信号から取得した事業者ポリシーデータを、通信入出力部511及び端末連携部531を介して受信し、事業者ポリシー記憶部5571に記憶される事業者ポリシーデータを更新してもよい。なお、事業者ポリシー記憶部5571は、事業者ポリシー設定部557の外部に備えられてもよい。   The broadcaster policy setting unit 557 has a function of allowing a broadcaster to set whether or not to permit access to log data managed by the log management unit 554 from a web application as a policy. Access approval / disapproval may be set for each provider that provides the web application, or may be set for each web application or service. The provider policy setting unit 557 writes the provider policy data indicating the policy set by the broadcaster in the provider policy storage unit 5571 provided therein. The provider policy data is updated by updating the terminal-side cooperative application or transmitting data related to the provider's policy from the service server 3 on the Internet to the cooperative terminal 5. Alternatively, the provider policy setting unit 557 receives the provider policy data acquired from the broadcast signal by the receiving device 4 via the communication input / output unit 511 and the terminal cooperation unit 531, and is stored in the provider policy storage unit 5571. The operator policy data may be updated. Note that the provider policy storage unit 5571 may be provided outside the provider policy setting unit 557.

連携端末5におけるログ管理について説明する。
図6は、ログ管理部554の詳細な構成を示す図である。ログ管理部554は、ログデータベース部5541、放送サービス判定部5543、ログアクセス用API提供部5544及び外部管理インターフェース部5545を備える。
The log management in the cooperation terminal 5 will be described.
FIG. 6 is a diagram illustrating a detailed configuration of the log management unit 554. The log management unit 554 includes a log database unit 5541, a broadcast service determination unit 5543, a log access API providing unit 5544, and an external management interface unit 5545.

ログデータベース部5541は、端末側連携アプリの各機能部からログデータを取得し、取得したログデータを管理するデータベースである。ログデータベース部5541は、他の機能部から取得したログデータをログ記憶部5542へ書き込むログ書込処理と、ログ記憶部5542に記憶されるログデータを読み出して他の機能部へ出力するログ読出処理を行う。なお、ログサーバ6にログデータベース部5541として動作する機能部を設けてもよい。以下に、ログデータベース部5541がログデータを取得する機能部と、具体的にその機能部から取得するログデータを示す。   The log database unit 5541 is a database that acquires log data from each functional unit of the terminal-side cooperative application and manages the acquired log data. The log database unit 5541 writes log data acquired from other functional units to the log storage unit 5542, and reads the log data stored in the log storage unit 5542 and outputs it to other functional units. Process. The log server 6 may be provided with a function unit that operates as the log database unit 5541. Below, the function part which the log database part 5541 acquires log data, and the log data specifically acquired from the function part are shown.

(1)ログデータベース部5541は、サービス実行管理部533から、どのサービス実行部532又はウェブアプリが実行されているかの状態を示すログデータを取得する。状態取得方法は、サービス実行管理部533から定期的に送信する場合と、状態変化時にのみ送信する場合の2通りが考えられる。 (1) The log database unit 5541 acquires, from the service execution management unit 533, log data indicating the state of which service execution unit 532 or web application is being executed. There are two possible status acquisition methods: periodic transmission from the service execution management unit 533 and transmission only when the state changes.

(2)ログデータベース部5541は、接続状態管理部552から、連携端末5が受信装置4と接続しているか否かの状態を示す接続情報をログデータとして取得する。状態取得方法は、接続状態管理部552から定期的に送信する場合と、状態変化時にのみ送信する場合の2通りが考えられる。このログデータは、連携端末5が受信装置4と連携可能であるかを判定するために用いられる。 (2) The log database unit 5541 acquires connection information indicating the state of whether or not the cooperation terminal 5 is connected to the receiving device 4 from the connection state management unit 552 as log data. There are two possible status acquisition methods: transmission from the connection status management unit 552 periodically and transmission only when the status changes. This log data is used to determine whether or not the cooperation terminal 5 can cooperate with the reception device 4.

(3)ログデータベース部5541は、リモコン部553から、リモコン部553が提供するユーザインターフェースによるユーザの操作履歴をログデータとして取得する。例えば、数字キーが押されたことにより、放送チャンネルの選局が行われたこと、dボタンが押されたことによりハイブリッドキャストまたはデータ放送が起動されたこと、電源ボタンが押されたことにより受信装置4の電源がON/OFFされたこと、などを検知するために用いる。ここでは、リモコン部553は、ボタンが押されたというイベント発行時にログデータベース部5541に、そのイベント(ユーザによるボタンの操作)を示すログデータを通知する。 (3) The log database unit 5541 acquires, from the remote control unit 553, a user operation history by the user interface provided by the remote control unit 553 as log data. For example, when a numeric channel is pressed, a broadcast channel is selected, when a d button is pressed, a hybrid cast or data broadcast is activated, or when a power button is pressed It is used to detect that the power of the device 4 has been turned on / off. Here, the remote control unit 553 notifies the log database unit 5541 of log data indicating the event (the operation of the button by the user) when the event that the button is pressed is issued.

(4)ログデータベース部5541は、メッセージ制御部534から、受信装置4の放送マネージドアプリと連携端末5のウェブサービス間又は連携端末5のウェブサービス間で送受信するメッセージや、受信装置4と連携端末5のメッセージ制御部423間で送受信するコマンドを取得し、取得したメッセージ又はコマンドに関する情報をログデータとする。例えば、ログデータには、メッセージ又はコマンドの送信元を特定する情報と、メッセージ又はコマンドの送信先を特定する情報と、メッセージ又はコマンドの内容に関する情報とのうち少なくとも一部が含まれる。メッセージ又はコマンドの内容に関する情報とは、メッセージ又はコマンドの内容の全て又は一部、あるいは、メッセージ又はコマンドの内容の全て又は一部に任意のデータ処理を行って得られる情報である。例えば、受信装置4の放送マネージドアプリから連携端末5のウェブアプリを起動するために端末連携部531に送信されるsetURLForCompanionDeviceの値をコマンドから取得し、どの放送局のサービスであるかを検知するために用いることができる。setURLForCompanionDeviceの値は、具体的には、起動対象のウェブアプリのURL(Universal Resource Locator)を示す。メッセージの具体例については後述する。 (4) The log database unit 5541 receives messages from the message control unit 534 between the broadcast managed application of the reception device 4 and the web service of the cooperation terminal 5 or between the web services of the cooperation terminal 5 and the reception device 4 and the cooperation terminal. 5, a command to be transmitted / received between the message control units 423 is acquired, and information regarding the acquired message or command is used as log data. For example, the log data includes at least a part of information for specifying a transmission source of the message or command, information for specifying a transmission destination of the message or command, and information regarding the content of the message or command. The information regarding the content of the message or command is information obtained by performing arbitrary data processing on all or part of the content of the message or command, or all or part of the content of the message or command. For example, the value of setURLForCompanionDevice transmitted to the terminal cooperation unit 531 in order to start the web application of the cooperation terminal 5 from the broadcast managed application of the reception device 4 is acquired from the command, and to detect which broadcast station the service is. Can be used. Specifically, the value of setURLForCompanionDevice indicates the URL (Universal Resource Locator) of the web application to be activated. A specific example of the message will be described later.

(5)ログデータベース部5541は、連携端末5のハードウェアに実装されるGPS、加速度センサー、輝度センサーなど多様なセンサー512から、センサー512の検出結果を示すログデータを取得する。 (5) The log database unit 5541 acquires log data indicating the detection result of the sensor 512 from various sensors 512 such as a GPS, an acceleration sensor, and a luminance sensor mounted on the hardware of the cooperation terminal 5.

(6)ログデータベース部5541は、サービス実行部532からウェブアプリの実行状態や、サービス実行部532により実行されるウェブアプリが行ったサービスサーバ3へのアクセスの履歴や、サービス実行部532により実行されるウェブアプリを提供しているときにユーザが行った操作履歴データをログデータとして取得する。操作履歴データは、例えば、タップ、スワイプなどの画面の操作の履歴である。 (6) The log database unit 5541 is executed by the service execution unit 532, the execution state of the web application, the history of access to the service server 3 performed by the web application executed by the service execution unit 532, and the service execution unit 532 The operation history data performed by the user when providing the web application to be executed is acquired as log data. The operation history data is, for example, a history of screen operations such as taps and swipes.

ログデータベース部5541は、収集した上記のログデータに、時刻情報に加え、ID管理部551から取得した利用者IDを対応付けてログ記憶部5542に書き込む。利用者IDは、ユーザのID、デバイスのID、又は、端末側連携アプリのIDなどである。さらに、ログデータベース部5541は、ログデータに、個々のログデータを識別するためのログIDと、ログデータの種類を表すログTypeを付加して、ログ記憶部5542に書き込む。ログTypeの例については、後述する図8を用いて説明する。   The log database unit 5541 writes the collected log data in the log storage unit 5542 in association with the user ID acquired from the ID management unit 551 in addition to the time information. The user ID is a user ID, a device ID, an ID of a terminal side cooperation application, or the like. Further, the log database unit 5541 adds a log ID for identifying individual log data and a log type indicating the type of log data to the log data, and writes the log data in the log storage unit 5542. An example of the log type will be described with reference to FIG.

放送サービス判定部5543は、リモコン部553から取得した操作履歴のデータや、メッセージ制御部534から取得したsetURLForCompanionDevice()の値に基づいて、受信装置4において受信中の放送サービスを判定する機能を提供する。放送サービスの判定方法の詳細については後述する。ログアクセス用API提供部5544は、サービス実行部532により実行されるウェブアプリがログデータベース部5541にアクセスするためのAPIを提供する。   The broadcast service determination unit 5543 provides a function of determining the broadcast service being received in the reception device 4 based on the operation history data acquired from the remote control unit 553 and the value of setURLForCompanionDevice () acquired from the message control unit 534. To do. Details of the broadcast service determination method will be described later. The log access API providing unit 5544 provides an API for the web application executed by the service execution unit 532 to access the log database unit 5541.

外部管理インターフェース部5545は、ログデータがログサーバ6に蓄積される場合に、ログサーバ6との間の通信を制御する。図6では、連携端末5がログデータベース部5541を実装する場合を示しているが、通信ネットワークに接続されるクラウド上のログサーバ6に、ログデータベース部5541と同様の機能を実装する場合が考えられる。ログサーバ6がログデータベース部5541と同様の機能を実装する場合、外部管理インターフェース部5545は、ログデータベース部5541が収集し、ログ記憶部5542に記憶させたログデータを定期的に、又は、ログデータの発生の都度、読み出してログサーバ6に送信する。あるいは、連携端末5はログデータベース部5541を設けず、外部管理インターフェース部5545が、接続状態管理部552をはじめとする各機能部から取得したログデータを直接ログサーバ6に送信してもよい。   The external management interface unit 5545 controls communication with the log server 6 when log data is accumulated in the log server 6. FIG. 6 shows a case in which the cooperation terminal 5 implements the log database unit 5541. However, a case where the same function as the log database unit 5541 is implemented in the log server 6 on the cloud connected to the communication network is considered. It is done. When the log server 6 implements the same function as the log database unit 5541, the external management interface unit 5545 collects the log data collected by the log database unit 5541 and stored in the log storage unit 5542 periodically or Whenever data is generated, it is read and transmitted to the log server 6. Alternatively, the link terminal 5 may not include the log database unit 5541, and the external management interface unit 5545 may directly transmit log data acquired from each functional unit including the connection state management unit 552 to the log server 6.

次に、放送サービス判定部5543が受信装置4において受信中の放送サービスを判定する方法について説明する。判定に用いるデータとしては、以下の3つが挙げられる。   Next, a method in which the broadcast service determination unit 5543 determines a broadcast service being received by the reception device 4 will be described. The data used for determination includes the following three.

(1)リモコン部553から受信した操作履歴のデータを用いる。ユーザが連携端末5を使って受信装置4の放送サービスを選局する際には、リモコン部553がディスプレイに表示させた数字キーなどを操作することが考えられる。この操作によって押下された数字キーのデータが、リモコン部553から放送サービス判定部5543に送信される。放送サービス判定部5543は、この数字キーに基づいて、放送事業者又はチャンネルを判定する。放送サービス判定部5543は、リモコン部553から数字キーが操作されたことを示す操作履歴が出力された場合、その数字キーに基づき判定した放送事業者又はチャンネルの情報を設定した視聴履歴のログデータを生成し、ログデータベース部5541に出力する。 (1) The operation history data received from the remote control unit 553 is used. When the user selects a broadcasting service of the receiving device 4 using the cooperation terminal 5, it is conceivable that the remote controller 553 operates a numeric key displayed on the display. The numeric key data pressed by this operation is transmitted from the remote control unit 553 to the broadcast service determination unit 5543. The broadcast service determination unit 5543 determines a broadcaster or channel based on the numeric keys. When an operation history indicating that the numeric key is operated is output from the remote control unit 553, the broadcast service determination unit 5543 logs the viewing history log data in which information on the broadcaster or channel determined based on the numeric key is set. Is output to the log database unit 5541.

(2)受信装置4から受信したURLの値を用いる。受信装置4において放送マネージドアプリが起動しており、かつ、端末連携サービスが提供されている場合は、放送マネージドアプリから端末側連携アプリに対してsetURLForCompanionDevice()関数を用いて、端末側連携アプリ上で動作させるウェブアプリのURLをコマンドで送信することが考えられる。メッセージ制御部534はそのコマンドを受信した際に、受信したコマンドから取得したURL値を放送サービス判定部5543に送信する。放送サービス判定部5543は、例えば、ドメイン名など、そのURLに含まれる情報に基づいて放送事業者を判別する。放送サービス判定部5543は、判別した放送事業者の情報を設定した視聴履歴のログデータを生成してログデータベース部5541に出力する。 (2) The value of the URL received from the receiving device 4 is used. When the broadcast managed application is activated in the receiving device 4 and the terminal cooperation service is provided, the setURLForCompanionDevice () function is used from the broadcast managed application to the terminal side cooperation application on the terminal side cooperation application. It is conceivable to send a URL of a web application to be operated by using a command. When the message control unit 534 receives the command, the message control unit 534 transmits the URL value acquired from the received command to the broadcast service determination unit 5543. The broadcast service determination unit 5543 determines a broadcast provider based on information included in the URL such as a domain name. The broadcast service determination unit 5543 generates log data of the viewing history in which the determined broadcast provider information is set, and outputs the log data to the log database unit 5541.

(3)受信装置4から受信した視聴履歴のデータを用いる。受信装置4の放送マネージドアプリは、受信中の放送サービスのservice_idやevent_idの値を視聴履歴のデータとして取得し、sendTextToCompanionDevice()関数を用いて連携端末5に送信する。この場合、メッセージ制御部534は、放送マネージドアプリから送信されたメッセージによりservice_idやevent_idを受信した際に、その値を放送サービス判定部5543に送信する。放送サービス判定部5543は、メッセージの内容から取得したservice_idの値やevent_idの値に基づいて放送事業者を判別する。放送サービス判定部5543は、判別した放送事業者の情報を設定した視聴履歴のログデータを生成してログデータベース部5541に出力する。 (3) The viewing history data received from the receiving device 4 is used. The broadcast managed application of the receiving device 4 acquires the service_id and event_id values of the broadcast service being received as viewing history data, and transmits them to the cooperation terminal 5 using the sendTextToCompanionDevice () function. In this case, when the message control unit 534 receives service_id or event_id by a message transmitted from the broadcast managed application, the message control unit 534 transmits the value to the broadcast service determination unit 5543. The broadcast service determination unit 5543 determines a broadcaster based on the value of service_id and the value of event_id acquired from the content of the message. The broadcast service determination unit 5543 generates log data of the viewing history in which the determined broadcast provider information is set, and outputs the log data to the log database unit 5541.

図7は、放送サービス判定部5543が実装する放送事業者判定データベースの例を示す図である。放送サービス判定部5543は、この放送事業者判定データベースを参照して、受信装置4において受信中のチャンネルの放送事業者を判定する。予め全ての放送事業者には、一意の事業者IDが割り当てられている。放送では、リモコンにより入力されるチャンネルの番号、つまり、数字キーに割り当てられる放送事業者が地域ごとに異なる。そのため、地域ごとに放送事業者判定テーブルを設ける。各放送事業者判定テーブルは、放送事業者の事業者IDを主キーとし、放送事業者名、service_id、放送マネージドアプリからsetURLForCompanionDevice()関数を用いて送信されるURLのドメイン名、数字キーを対応付けてレコードに格納する。一つの事業者IDに対応してドメイン名やservice_idが複数存在する場合もある。   FIG. 7 is a diagram illustrating an example of a broadcaster determination database implemented by the broadcast service determination unit 5543. The broadcast service determination unit 5543 determines the broadcast provider of the channel being received by the receiving device 4 with reference to this broadcast provider determination database. A unique provider ID is assigned to all broadcasters in advance. In broadcasting, the channel number input by the remote controller, that is, the broadcaster assigned to the numeric key varies from region to region. Therefore, a broadcaster determination table is provided for each region. Each broadcaster determination table uses the broadcaster's carrier ID as the primary key, and corresponds to the broadcaster name, service_id, the domain name of the URL transmitted from the broadcast managed app using the setURLForCompanionDevice () function, and the numeric key And store it in a record. There may be a plurality of domain names and service_ids corresponding to one business ID.

予めユーザは、どの地域に設置された受信装置4を利用しているのかを連携端末5に設定する。あるいは、放送サービス判定部5543は、連携端末5が備えるGPSの出力に基づいて地域の情報を取得してもよい。放送サービス判定部5543は、その地域の情報に基づき、放送事業者判定データベースを構成する放送事業者判定テーブルのうち、参照するテーブルを決定する。放送サービス判定部5543は、数字キー、受信装置4からのURLの値、受信装置4からの視聴履歴のデータが入力されると、決定した放送事業者判定テーブルを参照して放送サービスを提供している放送事業者を特定し、ログデータベース部5541に通知する。   In advance, the user sets in which area the receiving device 4 is used in the cooperation terminal 5. Alternatively, the broadcast service determination unit 5543 may acquire regional information based on the output of the GPS provided in the cooperation terminal 5. The broadcast service determination unit 5543 determines a table to be referred to from the broadcast provider determination tables constituting the broadcast provider determination database based on the information on the area. When the numeric key, the URL value from the receiving device 4, and the viewing history data from the receiving device 4 are input, the broadcast service determining unit 5543 provides the broadcast service with reference to the determined broadcast provider determination table. The broadcaster is identified and notified to the log database unit 5541.

次に、ログ管理部554とログアクセス制御部555との関係について述べる。サービス実行部532により実行中のウェブアプリが、ログデータベース部5541に格納されたログデータを利用する際には、ログアクセス用のAPIをコールする。ログアクセス用API提供部5544が提供するこのAPIがコールされた際、または、ログアクセス用API提供部5544がAPIのコール結果としてログデータベース部5541から読み出したログデータをサービス実行部532へ渡す際に、ログアクセス制御部555は、ユーザポリシー設定情報及び事業者ポリシー設定情報を参照してウェブアプリにログデータを提供するか否かを判定し、アクセス制御を実行する。   Next, the relationship between the log management unit 554 and the log access control unit 555 will be described. When the web application being executed by the service execution unit 532 uses the log data stored in the log database unit 5541, the API for log access is called. When this API provided by the log access API providing unit 5544 is called or when the log access API providing unit 5544 passes the log data read from the log database unit 5541 as the API call result to the service execution unit 532 In addition, the log access control unit 555 determines whether or not to provide log data to the web application with reference to the user policy setting information and the provider policy setting information, and executes access control.

図8は、ユーザポリシー記憶部5561に記憶されるユーザポリシー設定情報の例を示す図である。ユーザポリシー設定情報は、ログの種類を表す項目の情報をキーとし、各項目に対応して、ログの管理を認可するか否か、及び、ウェブアプリからのアクセスを認可するか否かをそれぞれ示すレコードからなる。キーとして用いられる項目の情報は、ログの項目を特定するログTypeと、項目名とにより示される。同図では、認可を「1」、否認を「0」としている。ログ管理が「0」である場合は、ログアクセスも「0」に設定される。各項目の例を以下に示す。ここで設定されたユーザポリシー設定情報がログアクセス制御部555に通知され、ログアクセス制御部555はユーザポリシー設定情報に従って以下のように各APIに対するアクセス制御を実行する。   FIG. 8 is a diagram illustrating an example of user policy setting information stored in the user policy storage unit 5561. The user policy setting information uses the information of the item representing the type of log as a key, and whether to authorize log management and whether to authorize access from the web application corresponding to each item, respectively Consists of records to indicate. Information of items used as keys is indicated by a log type that identifies a log item and an item name. In the figure, authorization is “1” and denial is “0”. When the log management is “0”, the log access is also set to “0”. Examples of each item are shown below. The user policy setting information set here is notified to the log access control unit 555, and the log access control unit 555 executes access control for each API as follows according to the user policy setting information.

(1)項目「サービス利用履歴」は、どのサービスを利用したかの情報を示すログデータであり、サービス実行管理部533から得られる。
(2)項目「Web閲覧履歴」は、サービス実行部532がサービスサーバ3により提供されるウェブページにアクセスしたときの取得先のURLの情報を示すログデータであり、サービス実行部532から得られる。
(3)項目「画面操作履歴」は、ウェブアプリの操作履歴を示すログデータであり、サービス実行部532から得られる。
(4)項目「テレビとの接続状態」は、連携端末5との接続状態を示すログデータであり、接続状態管理部552から得られる。
(5)項目「リモコン操作履歴」は、リモコン部553に対するユーザの操作履歴を示すログデータであり、リモコン部553から得られる。
(6)項目「視聴履歴」は、受信装置4において受信した放送サービスの履歴を示すログデータであり、放送サービス判定部5543から得られる。
(7)項目「GPS」は、センサー512の一つであるGPSから得られたログデータに相当する。
(8)項目「加速度センサー」は、センサー512の一つである加速度センサーから得られたログデータに相当する。
(1) The item “service usage history” is log data indicating information on which service is used, and is obtained from the service execution management unit 533.
(2) The item “Web browsing history” is log data indicating information on the URL of the acquisition destination when the service execution unit 532 accesses a web page provided by the service server 3, and is obtained from the service execution unit 532. .
(3) The item “screen operation history” is log data indicating the operation history of the web application, and is obtained from the service execution unit 532.
(4) The item “connection state with TV” is log data indicating the connection state with the cooperation terminal 5 and is obtained from the connection state management unit 552.
(5) The item “remote control operation history” is log data indicating a user operation history with respect to the remote control unit 553 and is obtained from the remote control unit 553.
(6) The item “viewing history” is log data indicating the history of the broadcast service received by the receiving device 4, and is obtained from the broadcast service determination unit 5543.
(7) The item “GPS” corresponds to log data obtained from the GPS which is one of the sensors 512.
(8) The item “acceleration sensor” corresponds to log data obtained from an acceleration sensor which is one of the sensors 512.

ログデータベース部5541は、ユーザポリシー設定情報のログ管理に「0」が設定されている項目のログデータについてはログ記憶部5542に書き込まずに破棄し、ログ管理に「1」が設定されている項目のログデータについてはログ記憶部5542に書き込む。また、ログアクセス制御部555は、ユーザポリシー設定情報のログアクセスに「0」が設定されている項目のログデータについては、サービス実行部532からのアクセスを認可しない。   The log database unit 5541 discards the log data of the item in which “0” is set in the log management of the user policy setting information without writing to the log storage unit 5542, and “1” is set in the log management. The log data of the item is written in the log storage unit 5542. Also, the log access control unit 555 does not authorize access from the service execution unit 532 for log data of items for which “0” is set in the log access of the user policy setting information.

ログアクセス制御部555は、ユーザポリシー設定情報のログアクセスに「1」が設定されている項目のログデータについてはサービス実行部532からの利用を認可する。ただし、ログアクセス制御部555は、ログ管理部554のログデータベース部5541で管理されているログデータのうち、放送サービス判定部5543を経由して記録された視聴履歴のログデータについては、事業者ポリシー設定部557の設定情報に従ってウェブアプリからのアクセス制御を行う。視聴履歴には、各放送サービスの受信開始から終了までの時刻を含めることとする。   The log access control unit 555 authorizes the use from the service execution unit 532 for the log data of items for which “1” is set in the log access of the user policy setting information. However, the log access control unit 555 does not use the log data of the viewing history recorded via the broadcast service determination unit 5543 among the log data managed by the log database unit 5541 of the log management unit 554. Access control from the web application is performed according to the setting information of the policy setting unit 557. The viewing history includes the time from the start to the end of reception of each broadcast service.

図9は、事業者ポリシー記憶部5571に記憶される事業者ポリシー設定情報の例を示す図である。事業者ポリシー設定情報は、地域毎の事業者ポリシー設定テーブルから構成される。各地域の事業者ポリシー設定テーブルは、図7に示すその地域の放送事業者判定テーブルと同様の放送事業者を示す情報をキーとする。つまり、図9に示す事業者ポリシー設定テーブルは、事業者ID、放送事業者名、放送事業者のドメイン(自局ドメイン)、数字キーをキーとし、各放送事業者の視聴履歴へのアクセスを認可するウェブアプリのドメインが記述される。   FIG. 9 is a diagram illustrating an example of the provider policy setting information stored in the provider policy storage unit 5571. The provider policy setting information is composed of a provider policy setting table for each region. The broadcaster policy setting table for each region uses information indicating a broadcaster similar to the broadcaster determination table for that region shown in FIG. 7 as a key. That is, the provider policy setting table shown in FIG. 9 uses the provider ID, the broadcast provider name, the broadcast provider domain (local station domain), and the numeric keys as keys to access the viewing history of each broadcaster. The domain of the web application to be authorized is described.

事業者ポリシー設定部557は、連携端末5に設定された地域に対応した事業者ポリシー設定テーブルを事業者ポリシー記憶部5571から読み出してログアクセス制御部555に通知する。ログアクセス制御部555は、通知された事業者ポリシー設定テーブルの設定に従って、サービス実行部532からのログデータへのアクセス制御を実行する。以下では、ドメイン「XXX」が含まれるURLを取得先としてサービスサーバ3から取得したアプリを、ドメイン「XXX」のアプリと記載する。   The company policy setting unit 557 reads out the company policy setting table corresponding to the area set in the cooperation terminal 5 from the company policy storage unit 5571 and notifies the log access control unit 555 of it. The log access control unit 555 executes access control to the log data from the service execution unit 532 in accordance with the setting of the notified provider policy setting table. Hereinafter, an application acquired from the service server 3 using a URL including the domain “XXX” as an acquisition destination is referred to as an application of the domain “XXX”.

例えば、放送事業者「AAA東京」は、自社のドメイン「aaa.co.jp」のウェブアプリと、第3者のドメイン「xyz.co.jp」のウェブアプリから、自社の放送の視聴履歴を示すログデータへのアクセスを認可する。また、放送事業者「CCC」は、全てのドメインのウェブアプリからの自社の放送の視聴履歴を示すログデータへのアクセスを認可する。   For example, the broadcaster “AAA Tokyo” can view their broadcast viewing history from the web application of their domain “aaa.co.jp” and the third party “xyz.co.jp”. Authorize access to the log data shown. In addition, the broadcaster “CCC” authorizes access to log data indicating viewing history of broadcasts of the company from web applications of all domains.

さらに、ログアクセス制御部555は、事業者ポリシー設定情報を用いて、視聴履歴だけでなく、各事業者のウェブアプリ又はサービスに関するログデータへのアクセス制御を行ってもよい。例えば、図9に示す事業者ポリシー設定情報の場合、放送事業者「AAA東京」は、自社のドメイン「aaa.co.jp」のウェブアプリと、第3者のドメイン「xyz.co.jp」のウェブアプリから、自社のドメインのウェブアプリに関するログデータへのアクセスを認可する。また、放送事業者「CCC」は、全てのドメインのウェブアプリからの自社のドメインのウェブアプリに関するログデータへのアクセスを認可する。ウェブアプリに関するログデータは、例えば、利用サービス、Web閲覧履歴、画面操作履歴などのログデータである。そのため、ウェブアプリに関するログデータには、ウェブアプリが提供しているサービスのID、ウェブアプリの取得先のURL又はそのURLから得られる事業者の識別(例えば、ドメインや事業者ID)などの情報が含まれるか付加されるようにする。   Furthermore, the log access control unit 555 may perform access control on not only the viewing history but also log data related to the web application or service of each business using the business policy setting information. For example, in the case of the provider policy setting information shown in FIG. 9, the broadcaster “AAA Tokyo” has a web application of its own domain “aaa.co.jp” and a third party domain “xyz.co.jp”. Authorize access to log data for web apps in your domain from your web app. In addition, the broadcaster “CCC” authorizes access to log data related to the web application of its own domain from web applications of all domains. The log data related to the web application is, for example, log data such as a use service, a web browsing history, and a screen operation history. Therefore, the log data related to the web application includes information such as the ID of the service provided by the web application, the URL of the acquisition destination of the web application, or the identification of the business operator (for example, domain or business operator ID) obtained from the URL. Is included or added.

なお、図9に示す事業者ポリシー設定情報には、放送事業者毎に、視聴履歴の利用を認可するドメインの情報が設定されているが、視聴履歴の利用を認可しないドメインの情報を設定してもよい。また、上記では、事業者ポリシー設定情報に、視聴履歴の利用を認可する又は認可しないドメインを放送事業者毎に設定しているが、視聴履歴の利用を認可する又は認可しない事業者、ウェブアプリ、サービスを放送事業者毎に設定してもよい。各事業者が自社の提供するウェブアプリ又はサービスに関するログデータの利用についてアクセス制御をさらに行う場合、事業者ポリシー設定情報に、各事業者のウェブアプリ又はサービス毎に、ログデータの利用を認可する又は認可しないドメイン、事業者、ウェブアプリ、サービスの情報を設定する。これにより、ログアクセス制御部555は、事業者ポリシー設定情報に従い、ある放送事業者が提供する全て又は一部のウェブアプリ又はサービスに関するログデータへのアクセスの認否を、ログアクセス用のAPIをコールしたウェブアプリ、そのウェブアプリのドメイン、そのウェブアプリを提供している事業者、又は、そのウェブアプリにより提供されるサービスに基づいて制御する。   In the provider policy setting information shown in FIG. 9, domain information that permits the use of viewing history is set for each broadcaster, but domain information that does not authorize the use of viewing history is set. May be. Also, in the above, the provider policy setting information is set for each broadcaster for the domain that authorizes or does not authorize the use of viewing history, but the provider or web application that authorizes or does not authorize the use of viewing history The service may be set for each broadcaster. When each company further controls access to the use of log data related to the web application or service provided by the company, the use of log data is permitted for each company's web application or service in the company policy setting information. Or, set information on domains, businesses, web applications, and services that are not authorized. As a result, the log access control unit 555 calls the log access API in accordance with the provider policy setting information to determine whether or not to access log data related to all or part of web applications or services provided by a certain broadcaster. The web application is controlled based on the web application, the domain of the web application, the provider providing the web application, or the service provided by the web application.

次に、受信装置4と連携端末5におけるメッセージの送受信について説明する。
ハイブリッドキャストでは、受信装置4と連携端末5との間でテキストメッセージを送受信するためのAPIが規定されている。メッセージ制御部534は、受信装置4が実行する放送マネージドアプリと連携端末5の各サービス実行部532が実行するウェブアプリとの間、および、サービス実行部532の間のメッセージを適切に送受信するための制御を行う。メッセージ制御部534の詳細を、図10を用いて説明する。
Next, transmission / reception of messages between the receiving device 4 and the cooperation terminal 5 will be described.
In the hybrid cast, an API for transmitting and receiving a text message between the receiving device 4 and the cooperation terminal 5 is defined. The message control unit 534 appropriately transmits and receives messages between the broadcast managed application executed by the receiving device 4 and the web application executed by each service execution unit 532 of the cooperation terminal 5 and between the service execution units 532. Control. Details of the message control unit 534 will be described with reference to FIG.

図10は、メッセージ制御部534の詳細な構成を示す機能ブロック図である。メッセージ制御部534は、サービス識別管理部5341、メッセージ受信部5342、メッセージ判定部5343、メッセージ分配部5344及び送信元サービス設定部5345を有する。   FIG. 10 is a functional block diagram showing a detailed configuration of the message control unit 534. The message control unit 534 includes a service identification management unit 5341, a message reception unit 5342, a message determination unit 5343, a message distribution unit 5344, and a transmission source service setting unit 5345.

サービス識別管理部5341は、サービス実行部532の識別子と、そのサービス実行部532が実行するウェブアプリにより提供されるサービスであるウェブサービスの識別子との対応表を例えばリスト形式で管理する。ウェブサービスの識別子は、予め決められる。なお、各ウェブサービスは、プレフィックスを付加することなどにより、送信先のアドレスとして、ウェブサービス毎に予め決められた識別子を、メッセージの一部に付加して送受信を行う。   The service identification management unit 5341 manages a correspondence table between an identifier of the service execution unit 532 and an identifier of a web service that is a service provided by the web application executed by the service execution unit 532, for example, in a list format. The web service identifier is predetermined. Each web service performs transmission / reception by adding an identifier predetermined for each web service as a transmission destination address to a part of the message by adding a prefix or the like.

メッセージ受信部5342は、受信装置4からのメッセージ、及び、各サービス実行部532からのメッセージを受信する。メッセージ受信部5342は、受信したメッセージを、メッセージ判定部5343及びメッセージ分配部5344に送信する。なお、メッセージ受信部5342は、メッセージ判定部5343に宛先の判定に必要な情報のみを送信してもよい。   The message reception unit 5342 receives a message from the reception device 4 and a message from each service execution unit 532. The message reception unit 5342 transmits the received message to the message determination unit 5343 and the message distribution unit 5344. Note that the message receiving unit 5342 may transmit only the information necessary for determining the destination to the message determining unit 5343.

メッセージ判定部5343は、メッセージ受信部5342から受信したメッセージに付加されたサービスの識別子と、サービス識別管理部5341に記憶される対応表とを照合してメッセージの送信先を決定し、メッセージ分配部5344に通知する。メッセージ判定部5343は、メッセージに付加された送信元のサービスの識別子と送信先のサービスの識別子とが同一の場合は受信装置4を送信先とし、異なる場合はサービス実行部532を送信先とする。また、メッセージ判定部5343は、実施形態によっては、サービス間の通信チャンネルを確立するための識別子の発行や、その識別子に基づいたメッセージの送信先の決定を行う。   The message determination unit 5343 collates the service identifier added to the message received from the message reception unit 5342 with the correspondence table stored in the service identification management unit 5341 to determine the message transmission destination, and the message distribution unit 5344 is notified. The message determination unit 5343 sets the reception device 4 as the transmission destination when the transmission source service identifier and the transmission destination service identifier added to the message are the same, and sets the service execution unit 532 as the transmission destination when they are different. . In addition, in some embodiments, the message determination unit 5343 issues an identifier for establishing a communication channel between services, and determines a message transmission destination based on the identifier.

メッセージ分配部5344は、メッセージ受信部5342から受信したメッセージを、メッセージ判定部5343が決定した送信先に送信する。送信元サービス設定部5345は、サービス実行部532が受信装置4または他のサービス実行部532に対して送信するメッセージに、送信元のサービス実行部532の識別子を付加する。   The message distribution unit 5344 transmits the message received from the message reception unit 5342 to the transmission destination determined by the message determination unit 5343. The transmission source service setting unit 5345 adds the identifier of the transmission source service execution unit 532 to a message transmitted from the service execution unit 532 to the reception device 4 or another service execution unit 532.

上述したように、受信装置4で実行される放送マネージドアプリは一つである。そこで、複数のサービスを一つの放送マネージドアプリで実行するために、一つのHTML文書(アプリケーションプログラム)内に複数のサービスそれぞれを実行させるためのプログラムを記述する。例えば、放送局Aが提供する現行の放送マネージドアプリでのサービスAに加え、放送局Aと放送局Bとが共通に提供するサービスXを同時に運用することを想定する。このとき、放送局Aが提供するサービスAのHTML文書内と、放送局Bが提供する放送マネージドアプリのサービスBのHTML文書内に、サービスXの機能をJavaScript(登録商標)等で記述する。さらに、複数のサービスで個々にデバイス間でメッセージを送受信するため、連携端末5のサービス実行管理部533と同等の機能を有するサービス実行管理部422の機能、連携端末5のメッセージ制御部534と同等の機能を有するメッセージ制御部423の機能を、サービスAとサービスBの両方のサービスのHTML文書内にサービスXの機能と同様に記述する。サービス実行管理部422の機能には、サービス実行部421の起動や終了などの制御、サービスごとに画面に表示するか否かの制御が含まれる。   As described above, there is one broadcast managed application executed by the receiving device 4. Therefore, in order to execute a plurality of services with one broadcast managed application, a program for executing each of the plurality of services is described in one HTML document (application program). For example, it is assumed that a service X shared by the broadcasting station A and the broadcasting station B is simultaneously operated in addition to the service A in the current broadcast managed application provided by the broadcasting station A. At this time, the function of the service X is described in JavaScript (registered trademark) or the like in the HTML document of the service A provided by the broadcast station A and in the HTML document of the service B of the broadcast managed application provided by the broadcast station B. Furthermore, in order to send and receive messages between devices individually with a plurality of services, the function of the service execution management unit 422 having the same function as the service execution management unit 533 of the cooperation terminal 5 and the same as the message control unit 534 of the cooperation terminal 5 The function of the message control unit 423 having the above function is described in the same manner as the function of the service X in the HTML documents of both the service A and the service B. The functions of the service execution management unit 422 include control of activation and termination of the service execution unit 421 and control of whether or not each service is displayed on the screen.

図11は、放送マネージドアプリの記述例を示す図である。同図は、放送局Aの放送マネージドアプリを、HTML文書として記述した例である。同図に示すように、divでサービスA、サービスXのそれぞれ表示する要素をグループ化し、idを指定する(serviceA、common_serviceX)。サービス実行部421で実行される各サービスの機能は、JavaScript(登録商標)で記述し、head部分にインクルードする(serviceA.js、common_serviceX)。さらに、サービス実行管理部422によるサービス実行部421の起動や終了などの制御機能(common_appcontrol.js)、メッセージ制御部423の機能(common_messaging.js)、及び、サービス実行管理部422によるサービス毎の表示の制御機能(common_viewcontrol.js)も同様にインクルードする。このようにHTML文書として記述された放送マネージドアプリをアプリ実行部409が実行することにより、アプリ実行部409は、サービス実行部421、サービス実行管理部422及びメッセージ制御部423として動作する。これにより、受信装置4上の放送マネージドアプリと、連携端末5上のコンパニオンアプリ双方に同等の機能が導入されるため、複数のサービスを一対の受信装置4と連携端末5上で利用できるようになる。
なお、サービス実行管理部422、メッセージ制御部423及びサービス実行部421として動作する機能部が、予め受信装置4のアプリ実行部409に実装されていてもよい。
FIG. 11 is a diagram illustrating a description example of a broadcast managed application. The figure is an example in which the broadcast managed application of the broadcasting station A is described as an HTML document. As shown in the figure, elements to be displayed for service A and service X are grouped by div, and id is specified (serviceA, common_serviceX). The function of each service executed by the service execution unit 421 is described in JavaScript (registered trademark) and included in the head part (serviceA.js, common_serviceX). Furthermore, a control function (common_appcontrol.js) such as activation and termination of the service execution unit 421 by the service execution management unit 422, a function (common_messaging.js) of the message control unit 423, and a display for each service by the service execution management unit 422 Include the control function (common_viewcontrol.js) in the same way. As described above, when the application execution unit 409 executes the broadcast managed application described as the HTML document, the application execution unit 409 operates as the service execution unit 421, the service execution management unit 422, and the message control unit 423. As a result, an equivalent function is introduced to both the broadcast managed app on the reception device 4 and the companion app on the cooperation terminal 5, so that a plurality of services can be used on the pair of reception devices 4 and the cooperation terminal 5. Become.
Note that functional units that operate as the service execution management unit 422, the message control unit 423, and the service execution unit 421 may be installed in the application execution unit 409 of the reception device 4 in advance.

連携端末5のサービス実行管理部533は、受信装置4からの指示、又は、連携端末5にユーザが入力した指示に従って、サービス実行部532によるウェブアプリの起動又は停止を行う。具体的には、受信装置4のアプリ実行部409が実行している放送マネージドアプリからサービス起動指示が出力されると、端末連携部412は連携端末5を送信先とし、通信入出力部406を介してサービス起動指示を送信する。サービス起動指示には、起動対象のウェブアプリを特定する情報が含まれる。サービス起動指示として、例えば、setURLForCompanionDevice()関数によるコマンドが用いられる。連携端末5の端末連携部531は、通信入出力部511を介して受信したサービス起動指示をサービス実行管理部533へ出力する。サービス実行管理部533は、受信したサービス起動指示により起動が指示されたウェブアプリを起動する。あるいは、連携端末5の入力デバイスによりユーザが起動対象のウェブアプリの情報を入力すると、サービス実行管理部533は、その起動対象のウェブアプリを起動する。これにより、連携アプリ実行制御部53において、サービス実行部532が動作する。   The service execution management unit 533 of the cooperation terminal 5 activates or stops the web application by the service execution unit 532 according to an instruction from the reception device 4 or an instruction input by the user to the cooperation terminal 5. Specifically, when a service activation instruction is output from a broadcast managed application executed by the application execution unit 409 of the reception device 4, the terminal cooperation unit 412 sets the cooperation terminal 5 as a transmission destination, and sets the communication input / output unit 406. A service activation instruction is transmitted via The service activation instruction includes information for specifying the activation target web application. For example, a command by a setURLForCompanionDevice () function is used as the service activation instruction. The terminal cooperation unit 531 of the cooperation terminal 5 outputs the service activation instruction received via the communication input / output unit 511 to the service execution management unit 533. The service execution management unit 533 activates the web application whose activation is instructed by the received service activation instruction. Alternatively, when the user inputs information on the web application to be activated by the input device of the cooperation terminal 5, the service execution management unit 533 activates the web application to be activated. As a result, the service execution unit 532 operates in the cooperative application execution control unit 53.

図12は、メッセージの例を示す。
図12(a)は、受信装置4において放送マネージドアプリのサービスPの機能を実行しているサービス実行部421から、連携端末5の端末側連携アプリにおいてサービスPのウェブアプリを実行しているサービス実行部532へ送信されるメッセージM11を示す。図12(b)は、連携端末5の端末側連携アプリにおいてサービスPのウェブアプリを実行しているサービス実行部532から、同じく端末側連携アプリにおいてサービスQのウェブアプリを実行しているサービス実行部532に送信されるメッセージM21を示す。メッセージM11は、放送マネージドアプリのサービスPの機能を実行しているサービス実行部421により記述されるメッセージであり、メッセージM12は、サービスPのウェブアプリを実行しているサービス実行部532において記述されるメッセージである。メッセージM11、M21には、送信先のサービスの識別子(dst:ServiceP、dst:ServiceQ)、メッセージ本体(message)が記述される。
FIG. 12 shows an example of a message.
FIG. 12A shows a service in which the web application of the service P is executed in the terminal-side cooperative application of the cooperation terminal 5 from the service execution unit 421 that executes the function of the service P of the broadcast managed application in the receiving device 4. The message M11 transmitted to the execution part 532 is shown. FIG. 12B shows a service execution in which the service Q web application is executed in the terminal-side cooperative application from the service execution unit 532 that executes the service P web application in the terminal-side cooperative application of the cooperation terminal 5. The message M21 transmitted to the unit 532 is shown. The message M11 is a message described by the service execution unit 421 executing the function of the service P of the broadcast managed application, and the message M12 is described in the service execution unit 532 executing the web application of the service P. Message. In the messages M11 and M21, an identifier of a destination service (dst: ServiceP, dst: ServiceQ) and a message body (message) are described.

図12(c)に示すメッセージM12及び図12(d)に示すメッセージM22は、連携端末5のメッセージ受信部5342が受信するメッセージである。メッセージM12は、メッセージM11に送信元のサービスPの識別子(src:ServiceP)が付加されたものであり、メッセージM22は、メッセージM21に送信元のサービスPの識別子(src:ServiceP)が付加されたものである。   A message M12 illustrated in FIG. 12C and a message M22 illustrated in FIG. 12D are messages received by the message receiving unit 5342 of the cooperation terminal 5. The message M12 is obtained by adding the identifier (src: ServiceP) of the source service P to the message M11, and the message M22 is obtained by adding the identifier (src: ServiceP) of the source service P to the message M21. Is.

具体的には、受信装置4の送信元サービス設定部4235が、メッセージM11に送信元のサービスPの識別子を追加し、メッセージM12となる。メッセージM12の場合は、放送マネージドアプリを実行することにより生成されるメッセージ制御部423が有する送信元サービス設定部4235の機能(図11におけるcommon_messaging.js)によって、送信元のサービスの識別子が設定される。一方、メッセージM22の場合は、連携端末5の送信元サービス設定部5345が、メッセージM21に送信元のサービスPの識別子を付加する。   Specifically, the transmission source service setting unit 4235 of the reception device 4 adds the identifier of the transmission source service P to the message M11, and becomes the message M12. In the case of the message M12, the identifier of the service of the transmission source is set by the function (common_messaging.js in FIG. 11) of the transmission source service setting unit 4235 of the message control unit 423 generated by executing the broadcast managed application. The On the other hand, in the case of the message M22, the transmission source service setting unit 5345 of the cooperation terminal 5 adds the identifier of the transmission source service P to the message M21.

なお、メッセージのフォーマットはこれらの記述例に限らない。また、本実施形態では、送信元のサービスの識別子と送信先のサービスの識別子のみを記述したが、受信装置4もしくは連携端末5を送信先として記述しても構わない。   The message format is not limited to these description examples. In this embodiment, only the identifier of the service of the transmission source and the identifier of the service of the transmission destination are described. However, the reception device 4 or the cooperation terminal 5 may be described as the transmission destination.

図13及び図14は、メッセージ制御部423及びメッセージ制御部534の動作を示す処理フローである。以下では、メッセージ制御部534を例にして説明するが、メッセージ制御部423も同様に動作する。   13 and 14 are processing flows showing the operations of the message control unit 423 and the message control unit 534. Hereinafter, the message control unit 534 will be described as an example, but the message control unit 423 operates in the same manner.

図13は、メッセージ受信時の処理フローを示す。連携端末5の端末連携部531は、通信入出力部511を介して受信装置4から受信したメッセージを、メッセージ受信部5342に出力する。メッセージ受信部5342は、端末連携部531からメッセージを受信する(ステップS105)。メッセージ受信部5342は、受信したメッセージから送信先のサービスの識別子及び送信元のサービスの識別子を検出する(ステップS110)。メッセージ受信部5342は、メッセージが読み出した送信先のサービスの識別子及び送信元のサービスの識別子をメッセージ判定部5343に通知し、メッセージ全体をメッセージ分配部5344に通知する(ステップS115)。   FIG. 13 shows a processing flow when a message is received. The terminal cooperation unit 531 of the cooperation terminal 5 outputs the message received from the reception device 4 via the communication input / output unit 511 to the message reception unit 5342. The message receiving unit 5342 receives a message from the terminal cooperation unit 531 (step S105). The message receiving unit 5342 detects the identifier of the destination service and the identifier of the source service from the received message (step S110). The message reception unit 5342 notifies the message determination unit 5343 of the identifier of the service of the transmission destination and the identifier of the service of the transmission source read by the message, and notifies the message distribution unit 5344 of the entire message (step S115).

メッセージ判定部5343は、サービス識別管理部5341に、送信先のサービスの識別子により特定されるサービスをサービス実行部532が実行しているか否かの照合を依頼する(ステップS120)。サービス識別管理部5341は、メッセージ判定部5343から通知された送信先のサービスの識別子と対応付けて対応表に登録されているサービス実行部532の識別子を取得する。サービス識別管理部5341は、サービス実行部532の識別子が取得できた場合はその識別子を設定した照合結果を、取得できなかった場合はサービス実行部532がないことを示す照合結果を出力する。   The message determination unit 5343 requests the service identification management unit 5341 to check whether or not the service execution unit 532 is executing the service specified by the identifier of the destination service (step S120). The service identification management unit 5341 acquires the identifier of the service execution unit 532 registered in the correspondence table in association with the identifier of the destination service notified from the message determination unit 5343. If the identifier of the service execution unit 532 can be acquired, the service identification management unit 5341 outputs a verification result in which the identifier is set. If the identifier is not acquired, the service identification management unit 5341 outputs a verification result indicating that there is no service execution unit 532.

メッセージ判定部5343は、サービス識別管理部5341から、送信先のサービスの識別子により特定されるサービスを実行するサービス実行部532があることを示す照合結果を受信したと判断すると(ステップS125:はい)、ステップS130の処理を行う。すなわち、メッセージ判定部5343は、メッセージ分配部5344に対して、メッセージに記述された送信先のサービスの識別子により特定されるウェブサービスを実行しているサービス実行部532に、メッセージを送信するよう通知する(ステップS130)。メッセージ分配部5344は、メッセージ判定部5343の指示に従い、メッセージに記述された送信先のサービスの識別子により特定されるサービス実行部532に、メッセージを送信する(ステップS135)。   If message determination unit 5343 determines from service identification management unit 5341 that it has received a collation result indicating that there is service execution unit 532 that executes the service specified by the identifier of the destination service (step S125: Yes). The process of step S130 is performed. That is, the message determination unit 5343 notifies the message distribution unit 5344 that the message is transmitted to the service execution unit 532 that is executing the web service specified by the identifier of the destination service described in the message. (Step S130). The message distribution unit 5344 transmits the message to the service execution unit 532 specified by the identifier of the destination service described in the message in accordance with the instruction from the message determination unit 5343 (step S135).

一方、メッセージ判定部5343は、サービス識別管理部5341から送信先のサービスの識別子により特定されるサービスを実行するサービス実行部532がないことを示す照合結果を受信したと判断すると(ステップS125:いいえ)、ステップS140の処理を行う。すなわち、メッセージ判定部5343は、エラーをメッセージの送信元に返送するなど、所定のエラー処理を行う(ステップS140)。   On the other hand, when determining that the message determination unit 5343 has received a collation result indicating that there is no service execution unit 532 that executes the service specified by the identifier of the destination service from the service identification management unit 5341 (step S125: No) ), The process of step S140 is performed. That is, the message determination unit 5343 performs predetermined error processing such as returning an error to the message transmission source (step S140).

図14は、メッセージ発行時の処理フローを示す。サービス実行部532は、メッセージを設定し、送信元サービス設定部5345に通知する(ステップS205)。送信元サービス設定部5345は、受信したメッセージに対して、送信元の識別子として、メッセージの送信元のサービス実行部532が実行しているサービスの識別子を追加し、メッセージ受信部5342に通知する(ステップS210)。メッセージ受信部5342は、メッセージから読み出した送信先のサービスの識別子及び送信元のサービスの識別子をメッセージ判定部5343に通知し、メッセージ全体をメッセージ分配部5344に通知する(ステップS215)。   FIG. 14 shows a processing flow when a message is issued. The service execution unit 532 sets a message and notifies the transmission source service setting unit 5345 (step S205). The transmission source service setting unit 5345 adds the identifier of the service being executed by the service execution unit 532 as the transmission source identifier to the received message, and notifies the message reception unit 5342 ( Step S210). The message reception unit 5342 notifies the message determination unit 5343 of the destination service identifier and the transmission source service identifier read from the message, and notifies the message distribution unit 5344 of the entire message (step S215).

メッセージ判定部5343は、送信先と送信元の識別子が同一か否かを判定する(ステップS220)。メッセージ判定部5343は、送信先と送信元の識別子が同一と判定した場合(ステップS225:はい)、メッセージ分配部5344に対して、端末連携部531を経由して受信装置4にメッセージを送信するよう通知する(ステップS230)。メッセージ分配部5344は、メッセージ判定部5343の指示に従い、メッセージを端末連携部531に出力し、端末連携部531は、メッセージ分配部5344から受信したメッセージを、通信入出力部511を介して受信装置4に送信する(ステップS240)。   The message determination unit 5343 determines whether or not the transmission destination and the transmission source identifier are the same (step S220). When the message determination unit 5343 determines that the identifiers of the transmission destination and the transmission source are the same (step S225: Yes), the message determination unit 5343 transmits a message to the reception device 4 via the terminal cooperation unit 531 to the message distribution unit 5344. (Step S230). The message distribution unit 5344 outputs a message to the terminal cooperation unit 531 according to the instruction of the message determination unit 5343, and the terminal cooperation unit 531 receives the message received from the message distribution unit 5344 via the communication input / output unit 511. 4 (step S240).

一方、メッセージ判定部5343は、送信先と送信元の識別子が同一ではないと判定した場合(ステップS225:いいえ)、ステップS235の処理を行う。すなわち、メッセージ判定部5343は、サービス識別管理部5341から、メッセージに記述された送信先のサービスの識別子に対応して対応表に登録されているサービス実行部532の識別子を読み出す。メッセージ判定部5343は、読み出した識別子により特定されるサービス実行部532、つまり、メッセージに記述された送信先のサービスの識別子により特定されるウェブサービスを実行しているサービス実行部532へメッセージを送信するよう、メッセージ分配部5344に通知する(ステップS235)。メッセージ分配部5344は、メッセージ判定部5343により送信先として指示されたサービス実行部532に、メッセージを送信する(ステップS240)。   On the other hand, when the message determination unit 5343 determines that the transmission destination and the transmission source identifier are not the same (step S225: No), the message determination unit 5343 performs the process of step S235. That is, the message determination unit 5343 reads from the service identification management unit 5341 the identifier of the service execution unit 532 registered in the correspondence table corresponding to the identifier of the destination service described in the message. The message determination unit 5343 transmits a message to the service execution unit 532 specified by the read identifier, that is, the service execution unit 532 that is executing the web service specified by the destination service identifier described in the message. Then, the message distribution unit 5344 is notified (step S235). The message distribution unit 5344 transmits the message to the service execution unit 532 instructed as the transmission destination by the message determination unit 5343 (step S240).

図15は、受信装置4と連携端末5の間のシーケンス図である。受信装置4のサービス実行部421は、連携端末5において実行されるサービスの識別子を宛先に設定したメッセージを発行する(ステップS305)。送信元サービス設定部4235は、サービス実行部421から受信したメッセージに送信元のサービスの識別子を設定し、メッセージ受信部4232に出力する(ステップS310)。メッセージ受信部4232は、メッセージから取得した送信元のサービスの識別子及び送信先のサービスの識別子をメッセージ判定部4233に通知し(ステップS315)、メッセージ全体をメッセージ分配部4234に通知する(ステップS320)。メッセージ判定部4233は、送信元のサービスの識別子及び送信先のサービスの識別子が同一であるため、連携端末5にメッセージを送信するようメッセージ分配部4234に通知する(ステップS325)。メッセージ分配部4234は、メッセージを端末連携部412に出力し(ステップS330)、端末連携部412は、メッセージを、通信入出力部406を介して連携端末5に送信する。   FIG. 15 is a sequence diagram between the receiving device 4 and the cooperation terminal 5. The service execution unit 421 of the reception device 4 issues a message in which the identifier of the service executed in the cooperation terminal 5 is set as the destination (step S305). The transmission source service setting unit 4235 sets the identifier of the transmission source service in the message received from the service execution unit 421, and outputs it to the message reception unit 4232 (step S310). The message reception unit 4232 notifies the message determination unit 4233 of the identifier of the service of the transmission source and the identifier of the service of the transmission destination acquired from the message (step S315), and notifies the message distribution unit 4234 of the entire message (step S320). . Since the identifier of the service of the transmission source and the identifier of the service of the transmission destination are the same, the message determination unit 4233 notifies the message distribution unit 4234 to transmit a message to the cooperation terminal 5 (step S325). The message distribution unit 4234 outputs a message to the terminal cooperation unit 412 (step S330), and the terminal cooperation unit 412 transmits the message to the cooperation terminal 5 via the communication input / output unit 406.

連携端末5の通信入出力部511は、受信装置4から受信したメッセージを端末連携部531に出力する(ステップS335)。メッセージ受信部5342は、端末連携部531からメッセージを受信する(ステップS340)。メッセージ受信部5342は、メッセージから取得した送信元のサービスの識別子及び送信先のサービスの識別子をメッセージ判定部5343に通知し(ステップS345)、メッセージ全体をメッセージ分配部5344に通知する(ステップS350)。メッセージ判定部5343は、送信先のサービスの識別子により特定されるウェブサービスが存在することを示す照合結果をサービス識別管理部5341から受信すると、ステップS355の処理を行う。すなわち、メッセージ判定部5343は、送信先のサービスの識別子により特定されるウェブサービスを実行しているサービス実行部532へメッセージを出力するようメッセージ分配部5344に指示する(ステップS355)。メッセージ分配部5344は、メッセージ判定部5343に指示されたサービス実行部532へメッセージを出力する(ステップS360)。   The communication input / output unit 511 of the cooperation terminal 5 outputs the message received from the reception device 4 to the terminal cooperation unit 531 (step S335). The message receiving unit 5342 receives a message from the terminal cooperation unit 531 (step S340). The message receiving unit 5342 notifies the message determination unit 5343 of the identifier of the service of the transmission source and the identifier of the service of the transmission destination acquired from the message (step S345), and notifies the message distribution unit 5344 of the entire message (step S350). . When the message determination unit 5343 receives a collation result indicating that the web service specified by the identifier of the destination service exists from the service identification management unit 5341, the message determination unit 5343 performs the process of step S355. That is, the message determination unit 5343 instructs the message distribution unit 5344 to output a message to the service execution unit 532 that is executing the web service specified by the identifier of the destination service (step S355). The message distribution unit 5344 outputs a message to the service execution unit 532 instructed by the message determination unit 5343 (step S360).

図15では、受信装置4から連携端末5へのメッセージの送信例を示したが、連携端末5から受信装置4へのメッセージ送信も同様の手順で実行できる。   In FIG. 15, an example of message transmission from the reception device 4 to the cooperation device 5 is shown, but message transmission from the cooperation device 5 to the reception device 4 can also be executed in the same procedure.

図16は、連携端末5のウェブアプリ間でメッセージを送信する場合のシーケンス図である。同図では、サービス実行部532−1をサービス実行部(1)、サービス実行部532−2をサービス実行部(2)と記載している。   FIG. 16 is a sequence diagram when a message is transmitted between the web applications of the cooperation terminal 5. In the figure, the service execution unit 532-1 is described as a service execution unit (1), and the service execution unit 532-2 is described as a service execution unit (2).

サービス実行部532−1は、サービス実行部532−2が実行しているサービスの識別子を宛先に設定したメッセージを発行する(ステップS405)。送信元サービス設定部5345は、サービス実行部532−1から受信したメッセージに送信元のサービスの識別子を設定し、メッセージ受信部5342に出力する(ステップS410)。メッセージ受信部5342は、メッセージから取得した送信元のサービスの識別子及び送信先のサービスの識別子をメッセージ判定部5343に通知し(ステップS415)、メッセージ全体をメッセージ分配部5344に通知する(ステップS420)。メッセージ判定部5343は、送信元のサービスの識別子及び送信先のサービスの識別子が異なるため、送信先のサービスの識別子により特定されるウェブサービスを実行しているサービス実行部532−2にメッセージを送信するようメッセージ分配部5344に通知する(ステップS425)。メッセージ分配部5344は、メッセージ判定部5343に指示されたサービス実行部532−2へメッセージを出力する(ステップS430)。   The service execution unit 532-1 issues a message in which the identifier of the service being executed by the service execution unit 532-2 is set as the destination (step S405). The transmission source service setting unit 5345 sets the identifier of the transmission source service in the message received from the service execution unit 532-1 and outputs it to the message reception unit 5342 (step S410). The message reception unit 5342 notifies the message determination unit 5343 of the identifier of the service of the transmission source and the identifier of the service of the transmission destination acquired from the message (step S415), and notifies the message distribution unit 5344 of the entire message (step S420). . Since the identifier of the transmission source service and the identifier of the transmission destination service are different, the message determination unit 5343 transmits the message to the service execution unit 532-2 that is executing the web service specified by the transmission destination service identifier. The message distribution unit 5344 is notified to do so (step S425). The message distribution unit 5344 outputs a message to the service execution unit 532-2 instructed by the message determination unit 5343 (step S430).

図16では、連携端末5のウェブアプリ間でメッセージを送信する場合ついて示しているが、受信装置4のサービス実行部421間でメッセージを送信する場合についても同様の手順で実行できる。   Although FIG. 16 shows a case where a message is transmitted between web applications of the cooperation terminal 5, a case where a message is transmitted between the service execution units 421 of the receiving device 4 can be executed in the same procedure.

上述した、図12〜図16の例では、全てのメッセージに送信元のサービスの識別子と送信先のサービスの識別子を付加して送信していたが、サービス間のチャンネルの識別子を付加する実施形態をとっても構わない。この場合、受信装置4の放送マネージドアプリのサービスと連携端末5のウェブサービスとの間、又は、連携端末5におけるウェブサービス間で、メッセージングを開始する前に、接続処理を実行してサービス間のチャンネルを確立する。以降、受信装置4及び連携端末5は、接続解除の処理が実行されるまでは、確立したチャンネルにおいて割り当てられたセッションの識別子に基づき、送信元と送信先の識別子を付加せずにメッセージを送信する。   In the example of FIGS. 12 to 16 described above, the transmission source service identifier and the transmission destination service identifier are added to all messages for transmission. However, an embodiment in which a channel identifier between services is added. You can take it. In this case, before starting messaging between the broadcast managed application service of the receiving device 4 and the web service of the cooperation terminal 5 or between the web services of the cooperation terminal 5, the connection process is executed between the services. Establish a channel. Thereafter, the receiving device 4 and the cooperation terminal 5 transmit the message without adding the identifiers of the transmission source and the transmission destination based on the identifier of the session allocated in the established channel until the connection release processing is executed. To do.

図17は、受信装置4の放送マネージドアプリのサービスと連携端末5のウェブサービスとの間でセッションの識別子に基づきメッセージを送信する場合のメッセージの設定例を示す図である。図17(a)は、接続登録メッセージM31を、図17(b)は接続登録確認メッセージM32を、図17(c)は接続解除メッセージM33を、図17(d)は接続解除確認メッセージM34を、図17(e)はメッセージ本体が設定されたメッセージM35を示す。   FIG. 17 is a diagram illustrating a setting example of a message when a message is transmitted based on a session identifier between the broadcast managed application service of the reception device 4 and the web service of the cooperation terminal 5. 17A shows a connection registration message M31, FIG. 17B shows a connection registration confirmation message M32, FIG. 17C shows a connection release message M33, and FIG. 17D shows a connection release confirmation message M34. FIG. 17E shows the message M35 in which the message body is set.

接続登録メッセージM31、接続登録確認メッセージM32、接続解除メッセージM33、接続解除確認メッセージM34、メッセージM35には、type属性が含まれている。このtype属性により、メッセージが登録(publish)/登録確認(subscribe)/接続解除(unpublish)/接続解除確認(unsubscribe)/メッセージ本体(body)のいずれであるかが識別可能である。   The connection registration message M31, the connection registration confirmation message M32, the connection release message M33, the connection release confirmation message M34, and the message M35 include a type attribute. By this type attribute, it is possible to identify whether the message is registration (publish) / registration confirmation (subscribe) / connection release (unpublish) / connection release confirmation (unsubscribe) / message body (body).

また、接続登録メッセージM31、接続登録確認メッセージM32、接続解除メッセージM33、接続解除確認メッセージM34には、送信元のサービスの識別子(src)及び送信先のサービスの識別子(dst)が設定され、接続登録確認メッセージM32及び接続解除確認メッセージM34には、さらに、確立したチャンネルに割当てられたセッションの識別子(subscribe_ID)が記述される。メッセージ本体(message)が設定されたメッセージM35には、送信元及び送信先は設定されず、セッションの識別子(subscribe_ID)とメッセージの内容(message)が記述される。   In addition, in the connection registration message M31, the connection registration confirmation message M32, the connection release message M33, and the connection release confirmation message M34, the identifier of the source service (src) and the identifier of the destination service (dst) are set. In the registration confirmation message M32 and the connection release confirmation message M34, an identifier (subscribe_ID) of a session assigned to the established channel is further described. In the message M35 in which the message body (message) is set, the transmission source and the transmission destination are not set, and the session identifier (subscribe_ID) and the message content (message) are described.

図18及び図19は、受信装置4と連携端末5の間でセッションの識別子に基づきメッセージを送信する場合のシーケンス図である。   18 and 19 are sequence diagrams when a message is transmitted between the receiving device 4 and the cooperation terminal 5 based on the session identifier.

図18は、接続登録処理のシーケンスを示す。受信装置4のサービス実行部421は、接続登録メッセージを発行する(ステップS505)。サービス実行部421が発行した接続登録メッセージには、接続登録メッセージであることを示す「publish」が設定されたtype属性と、送信先のサービスの識別子が設定されたdst属性とが含まれる。送信元サービス設定部4235は、このメッセージに、送信元のサービスの識別子を設定したsrc属性を追加する。送信元サービス設定部4235は、src属性が追加された接続登録メッセージをメッセージ受信部4232に出力する(ステップS510)。   FIG. 18 shows a sequence of connection registration processing. The service execution unit 421 of the receiving device 4 issues a connection registration message (step S505). The connection registration message issued by the service execution unit 421 includes a type attribute in which “publish” indicating the connection registration message is set, and a dst attribute in which the identifier of the destination service is set. The transmission source service setting unit 4235 adds a src attribute in which the identifier of the transmission source service is set to this message. The transmission source service setting unit 4235 outputs the connection registration message with the src attribute added to the message reception unit 4232 (step S510).

メッセージ受信部4232は、接続登録メッセージに設定されている送信先のサービスの識別子及び送信元のサービスの識別子をメッセージ判定部4233に通知し(ステップS515)、接続登録メッセージ全体をメッセージ分配部4234に通知する(ステップS520)。メッセージ判定部4233は、送信先と送信元のサービスの識別子が同一であるため、連携端末5にメッセージを送信するようメッセージ分配部4234に通知する(ステップS525)。メッセージ分配部4234は、接続登録メッセージを端末連携部412に出力し(ステップS530)、端末連携部412は、メッセージ分配部4234から受信した接続登録メッセージを、通信入出力部406を介して連携端末5に送信する。   The message reception unit 4232 notifies the message determination unit 4233 of the service identifier of the transmission destination and the service identifier of the transmission source set in the connection registration message (step S515), and sends the entire connection registration message to the message distribution unit 4234. Notification is made (step S520). Since the identifier of the service of the transmission destination and the transmission source is the same, the message determination unit 4233 notifies the message distribution unit 4234 to transmit a message to the cooperation terminal 5 (step S525). The message distribution unit 4234 outputs a connection registration message to the terminal cooperation unit 412 (step S530), and the terminal cooperation unit 412 receives the connection registration message received from the message distribution unit 4234 via the communication input / output unit 406. Send to 5.

連携端末5の通信入出力部511は、受信装置4からメッセージを受信し、端末連携部531に出力する(ステップS535)。メッセージ受信部5342は、端末連携部531からメッセージを受信する(ステップS540)。メッセージ受信部5342は、受信したメッセージをメッセージ判定部5343に出力する(ステップS545)。メッセージ判定部5343は、受信したメッセージのtype属性により接続登録メッセージであると判断すると、subscribe_IDを発行し、送信元及び送信先のサービスの識別子と対応付けて記憶する。なお、接続が解除される度に新規のsubscribe_IDを発番してもよく、送信元と送信先のペアに対して予め決定したsubscribe_IDを割り当てても構わない。さらに、メッセージ判定部5343は、接続登録確認メッセージを生成する。接続登録確認メッセージには、接続登録確認メッセージを示す「subscribe」が設定されたtype属性と、発行したsubscribe_IDと、接続登録メッセージに設定されていたdst属性及びsrc属性とが含まれる。メッセージ判定部5343は、生成した接続登録確認メッセージをメッセージ分配部5344に通知し、受信装置4へ送信するよう指示する(ステップS550)。   The communication input / output unit 511 of the cooperation terminal 5 receives the message from the reception device 4 and outputs the message to the terminal cooperation unit 531 (step S535). The message receiving unit 5342 receives a message from the terminal cooperation unit 531 (step S540). The message reception unit 5342 outputs the received message to the message determination unit 5343 (step S545). If the message determination unit 5343 determines that the message is a connection registration message based on the type attribute of the received message, the message determination unit 5343 issues a subscribe_ID and stores it in association with the identifiers of the transmission source and transmission destination services. A new subscribe_ID may be issued each time the connection is released, or a predetermined subscribe_ID may be assigned to a pair of a transmission source and a transmission destination. Further, the message determination unit 5343 generates a connection registration confirmation message. The connection registration confirmation message includes a type attribute in which “subscribe” indicating the connection registration confirmation message is set, an issued subscribe_ID, and a dst attribute and a src attribute set in the connection registration message. The message determination unit 5343 notifies the message distribution unit 5344 of the generated connection registration confirmation message, and instructs it to be transmitted to the receiving device 4 (step S550).

メッセージ分配部5344は、接続登録確認メッセージを端末連携部531に出力し(ステップS555)、端末連携部531は、接続登録確認メッセージを、通信入出力部511を介して受信装置4に送信する(ステップS560)。   The message distribution unit 5344 outputs a connection registration confirmation message to the terminal cooperation unit 531 (step S555), and the terminal cooperation unit 531 transmits the connection registration confirmation message to the reception device 4 via the communication input / output unit 511 ( Step S560).

受信装置4の通信入出力部406は、連携端末5から受信したメッセージを端末連携部412に出力する。メッセージ受信部4232は、端末連携部412からメッセージを受信する(ステップS565)。メッセージ受信部4232は、受信したメッセージのtype属性から接続登録確認メッセージであると判断する。メッセージ受信部4232は、接続登録確認メッセージから取得したsubscribe_IDと、送信元及び送信先のサービスの識別子をメッセージ判定部4233に出力する(ステップS570)。メッセージ判定部4233は、subscribe_IDと、送信元及び送信先のサービスの識別子とを対応付けて登録する。さらに、メッセージ受信部4232は、接続登録確認メッセージを、送信先のサービスの識別子により特定される放送マネージドアプリを実行しているサービス実行部421にsubscribe_IDを通知する(ステップS575)。   The communication input / output unit 406 of the receiving device 4 outputs the message received from the cooperation terminal 5 to the terminal cooperation unit 412. The message receiving unit 4232 receives a message from the terminal cooperation unit 412 (step S565). The message receiving unit 4232 determines that it is a connection registration confirmation message from the type attribute of the received message. The message reception unit 4232 outputs the subscribe_ID acquired from the connection registration confirmation message and the identifiers of the transmission source and transmission destination services to the message determination unit 4233 (step S570). The message determination unit 4233 registers subscribe_ID and the identifiers of the transmission source and transmission destination services in association with each other. Further, the message reception unit 4232 notifies the connection registration confirmation message of the subscribe_ID to the service execution unit 421 that is executing the broadcast managed application specified by the identifier of the destination service (step S575).

図19は、メッセージ送信処理のシーケンスを示す。受信装置4のサービス実行部421は、メッセージ本体を設定したメッセージを発行する(ステップS605)。メッセージには、メッセージ本体であることを示す「body」が設定されたtype属性と、送信先のサービスに応じたsubscribe_IDと、メッセージ内容とが含まれる。送信元サービス設定部4235は、サービス実行部421から受信したメッセージに送信元のサービスの識別子を設定する。なお、送信元のサービスの識別子の設定は行わなくてもよい。送信元サービス設定部4235は、送信元のサービスの識別子が設定されたメッセージを、メッセージ受信部4232に出力する(ステップS610)。   FIG. 19 shows a sequence of message transmission processing. The service execution unit 421 of the receiving device 4 issues a message in which the message body is set (step S605). The message includes a type attribute in which “body” indicating the message body is set, a subscribe_ID corresponding to the destination service, and the message content. The transmission source service setting unit 4235 sets the identifier of the transmission source service in the message received from the service execution unit 421. It is not necessary to set the identifier of the source service. The transmission source service setting unit 4235 outputs a message in which the identifier of the transmission source service is set to the message reception unit 4232 (step S610).

メッセージ受信部4232は、メッセージに設定されているsubscribe_IDをメッセージ判定部4233に通知し(ステップS615)、メッセージ全体をメッセージ分配部4234に通知する(ステップS620)。メッセージ判定部4233は、subscribe_IDに対応して記憶される送信先及び送信元のサービスの識別子が同一であるため、連携端末5にメッセージを送信するようメッセージ分配部4234に通知する(ステップS625)。メッセージ分配部4234は、メッセージを端末連携部412に出力し(ステップS630)、端末連携部412は、メッセージ分配部4234から受信したメッセージを、通信入出力部406を介して連携端末5に送信する。   The message reception unit 4232 notifies the message determination unit 4233 of the subscribe_ID set in the message (step S615), and notifies the message distribution unit 4234 of the entire message (step S620). The message determination unit 4233 notifies the message distribution unit 4234 to transmit a message to the cooperation terminal 5 because the transmission destination and the transmission source service identifier stored in correspondence with the subscribe_ID are the same (step S625). The message distribution unit 4234 outputs the message to the terminal cooperation unit 412 (step S630), and the terminal cooperation unit 412 transmits the message received from the message distribution unit 4234 to the cooperation terminal 5 via the communication input / output unit 406. .

連携端末5の通信入出力部511は、受信装置4から受信したメッセージを端末連携部531に出力する(ステップS635)。メッセージ受信部5342は、端末連携部531からメッセージを受信する(ステップS640)。メッセージ受信部5342は、受信したメッセージのtypeによりメッセージ本体であると判断すると、メッセージから読み出したsubscribe_IDをメッセージ判定部5343に出力し(ステップS645)、メッセージをメッセージ分配部5344に出力する(ステップS650)。メッセージ判定部5343は、subscribe_IDに対応した送信元及び送信先のサービスの識別子が同じであるため、送信先のサービスの識別子により特定されるサービスを実行しているサービス実行部532へメッセージを出力するようメッセージ分配部5344に指示する(ステップS655)。メッセージ分配部5344は、メッセージ判定部5343に指示されたサービス実行部532へメッセージを出力する(ステップS660)。   The communication input / output unit 511 of the cooperation terminal 5 outputs the message received from the reception device 4 to the terminal cooperation unit 531 (step S635). The message receiving unit 5342 receives a message from the terminal cooperation unit 531 (step S640). If the message reception unit 5342 determines that the message body is based on the type of the received message, the message reception unit 5342 outputs the subscribe_ID read from the message to the message determination unit 5343 (step S645), and outputs the message to the message distribution unit 5344 (step S650). ). The message determination unit 5343 outputs a message to the service execution unit 532 that is executing the service specified by the transmission destination service identifier because the transmission source and transmission destination service identifiers corresponding to the subscribe_ID are the same. The message distribution unit 5344 is instructed (step S655). The message distribution unit 5344 outputs a message to the service execution unit 532 instructed by the message determination unit 5343 (step S660).

図18及び図19では、受信装置4から連携端末5へのメッセージの送信例を示したが、連携端末5から受信装置4へのメッセージ送信も同様の手順で実行できる。   In FIG. 18 and FIG. 19, an example of message transmission from the reception device 4 to the cooperation terminal 5 is shown, but message transmission from the cooperation terminal 5 to the reception device 4 can also be executed in the same procedure.

図20は、連携端末5のウェブアプリ間でセッションの識別子に基づきメッセージを送信する場合のメッセージの記述例を示す図である。図20(a)は、接続登録メッセージM41を、図20(b)は接続登録確認メッセージM42を、図20(c)は接続解除メッセージM43を、図20(d)は接続解除確認メッセージM44を、図20(e)はメッセージ本体が設定されたメッセージM45を示す。M41〜M45のメッセージに含まれる属性はそれぞれ、図17に示すM31〜M35のメッセージと同様である。   FIG. 20 is a diagram illustrating a description example of a message when a message is transmitted based on the session identifier between the web applications of the cooperation terminal 5. 20A shows a connection registration message M41, FIG. 20B shows a connection registration confirmation message M42, FIG. 20C shows a connection release message M43, and FIG. 20D shows a connection release confirmation message M44. FIG. 20 (e) shows the message M45 in which the message body is set. The attributes included in the messages M41 to M45 are the same as those of the messages M31 to M35 shown in FIG.

すなわち、接続登録メッセージM41、接続登録確認メッセージM42、接続解除メッセージM43、接続解除確認メッセージM44、メッセージM45には、type属性が含まれている。また、接続登録メッセージM41、接続登録確認メッセージM42、接続解除メッセージM43、接続解除確認メッセージM44には、送信元のサービスの識別子(src)及び送信先のサービスの識別子(dst)が設定され、接続登録確認メッセージM42及び接続解除確認メッセージM44には、さらに、確立したチャンネルに割当てられたセッションの識別子(subscribe_ID)が記述される。メッセージ本体(message)が設定されたメッセージM45には、送信元及び送信先は設定されず、セッションの識別子(subscribe_ID)とメッセージの内容(message)が記述される。   That is, the connection registration message M41, the connection registration confirmation message M42, the connection release message M43, the connection release confirmation message M44, and the message M45 include a type attribute. In addition, in the connection registration message M41, the connection registration confirmation message M42, the connection release message M43, and the connection release confirmation message M44, the service identifier of the transmission source (src) and the service identifier of the transmission destination (dst) are set. The registration confirmation message M42 and the connection release confirmation message M44 further describe an identifier (subscribe_ID) of a session assigned to the established channel. In the message M45 in which the message body (message) is set, the transmission source and the transmission destination are not set, and the session identifier (subscribe_ID) and the message content (message) are described.

図21及び図22は、連携端末5のウェブアプリ間でセッションの識別子に基づきメッセージを送信する場合のシーケンス図である。このシーケンスは、図18及び図19に示すシーケンスと基本的な手順の差異はない。ただし、受信装置4と連携端末5との間でメッセージを送信する場合、連携端末5は、メッセージ分配部5344から端末連携部531を経由して送受信を行うが、ウェブアプリ間の場合は、メッセージ分配部5344から連携端末5内のメッセージ受信部5342にメッセージを送信し、以降、同様の処理が実行される。   21 and 22 are sequence diagrams in the case where a message is transmitted between web applications of the cooperation terminal 5 based on the identifier of the session. This sequence is not different from the sequence shown in FIGS. 18 and 19 in basic procedure. However, when a message is transmitted between the receiving device 4 and the cooperation terminal 5, the cooperation terminal 5 performs transmission / reception from the message distribution unit 5344 via the terminal cooperation unit 531. A message is transmitted from the distribution unit 5344 to the message reception unit 5342 in the cooperation terminal 5, and thereafter the same processing is executed.

図21は、連携端末5のウェブアプリ間の接続登録処理のシーケンスを示す。連携端末5のサービス実行部532−1は、接続登録メッセージを発行する(ステップS705)。サービス実行部532−1が発行した接続登録メッセージには、接続登録メッセージであることを示す「publish」が設定されたtype属性と、サービス実行部532−2により実行される送信先のサービスの識別子が設定されたdst属性とが含まれる。送信元サービス設定部5345は、このメッセージに、送信元のサービスの識別子を設定したsrc属性を追加する。送信元サービス設定部5345は、src属性が追加された接続登録メッセージをメッセージ受信部5342に出力する(ステップS710)。   FIG. 21 shows a sequence of connection registration processing between web applications of the cooperation terminal 5. The service execution unit 532-1 of the cooperation terminal 5 issues a connection registration message (step S705). In the connection registration message issued by the service execution unit 532-1, the type attribute in which “publish” indicating that it is a connection registration message is set, and the identifier of the destination service executed by the service execution unit 532-2 And the dst attribute set to. The transmission source service setting unit 5345 adds a src attribute in which the identifier of the transmission source service is set to this message. The transmission source service setting unit 5345 outputs the connection registration message with the src attribute added to the message reception unit 5342 (step S710).

メッセージ受信部5342は、接続登録メッセージに設定されている送信先のサービスの識別子及び送信元のサービスの識別子をメッセージ判定部5343に通知し(ステップS715)、接続登録メッセージ全体をメッセージ分配部5344に通知する(ステップS720)。メッセージ判定部5343は、送信先と送信元のサービスの識別子が異なるため、メッセージ受信部5342にメッセージを送信するようメッセージ分配部5344に通知する(ステップS725)。メッセージ分配部5344は、接続登録メッセージをメッセージ受信部5342に出力する(ステップS730)。   The message reception unit 5342 notifies the message determination unit 5343 of the identifier of the destination service and the identifier of the source service set in the connection registration message (step S715), and sends the entire connection registration message to the message distribution unit 5344. Notification is made (step S720). The message determination unit 5343 notifies the message distribution unit 5344 to transmit the message to the message reception unit 5342 because the service identifiers of the transmission destination and the transmission source are different (step S725). The message distribution unit 5344 outputs the connection registration message to the message reception unit 5342 (step S730).

メッセージ受信部5342は、受信したメッセージをメッセージ判定部5343に出力する(ステップS735)。メッセージ判定部5343は、受信したメッセージのtypeにより接続登録メッセージであると判断すると、subscribe_IDを発行し、送信元及び送信先のサービスの識別子と対応付けて記憶する。さらに、メッセージ判定部5343は、接続登録確認メッセージを生成する。メッセージ判定部5343は、生成した接続登録確認メッセージをメッセージ分配部5344に通知し、メッセージ受信部5342へ送信するよう指示する(ステップS740)。メッセージ分配部5344は、接続登録確認メッセージをメッセージ受信部5342に出力する(ステップS745)。   The message reception unit 5342 outputs the received message to the message determination unit 5343 (step S735). If the message determination unit 5343 determines that the message is a connection registration message based on the type of the received message, the message determination unit 5343 issues a subscribe_ID and stores it in association with the identifiers of the transmission source and transmission destination services. Further, the message determination unit 5343 generates a connection registration confirmation message. The message determination unit 5343 notifies the message distribution unit 5344 of the generated connection registration confirmation message and instructs the message reception unit 5342 to transmit the message (step S740). The message distribution unit 5344 outputs a connection registration confirmation message to the message reception unit 5342 (step S745).

メッセージ受信部5342は、受信した接続登録確認メッセージから取得したsubscribe_IDと、送信元及び送信先のサービスの識別子をメッセージ判定部5343に出力する(ステップS750)。メッセージ判定部5343は、subscribe_IDと、送信元及び送信先のサービスの識別子とを対応付けて登録する。さらに、メッセージ受信部5342は、接続登録確認メッセージを、送信先のサービスの識別子により特定されるウェブアプリを実行しているサービス実行部532−1にsubscribe_IDを通知する(ステップS755)。   The message reception unit 5342 outputs the subscribe_ID acquired from the received connection registration confirmation message and the identifiers of the transmission source and transmission destination services to the message determination unit 5343 (step S750). The message determination unit 5343 registers subscribe_ID and identifiers of the transmission source and transmission destination services in association with each other. Furthermore, the message reception unit 5342 notifies the connection registration confirmation message of the subscribe_ID to the service execution unit 532-1 that is executing the web application specified by the identifier of the transmission destination service (step S755).

図22は、連携端末5のウェブアプリ間のメッセージ送信処理のシーケンスを示す。連携端末5のサービス実行部532−1は、メッセージ本体を設定したメッセージを発行する(ステップS805)。送信元サービス設定部5345は、サービス実行部532−1から受信したメッセージに送信元のサービスの識別子を設定する。なお、送信元のサービスの識別子の設定は行わなくてもよい。送信元サービス設定部5345は、送信元のサービスの識別子が設定されたメッセージを、メッセージ受信部5342に出力する(ステップS810)。   FIG. 22 shows a sequence of message transmission processing between web applications of the cooperation terminal 5. The service execution part 532-1 of the cooperation terminal 5 issues the message which set the message main body (step S805). The transmission source service setting unit 5345 sets the identifier of the transmission source service in the message received from the service execution unit 532-1. It is not necessary to set the identifier of the source service. The transmission source service setting unit 5345 outputs a message in which the identifier of the transmission source service is set to the message reception unit 5342 (step S810).

メッセージ受信部5342は、メッセージに設定されているsubscribe_IDをメッセージ判定部5343に通知し(ステップS815)、メッセージ全体をメッセージ分配部5344に通知する(ステップS820)。メッセージ判定部5343は、subscribe_IDに対応して記憶される送信先及び送信元のサービスの識別子が異なるため、送信先のサービスの識別子により特定されるウェブサービスを実行しているサービス実行部532−2にメッセージを送信するようメッセージ分配部5344に通知する(ステップS825)。メッセージ分配部5344は、メッセージ判定部5343に指示されたサービス実行部532−2へメッセージを出力する(ステップS830)。   The message reception unit 5342 notifies the message determination unit 5343 of the subscribe_ID set in the message (step S815), and notifies the message distribution unit 5344 of the entire message (step S820). The message determination unit 5343 has a service execution unit 532-2 that executes the web service specified by the service identifier of the transmission destination because the transmission destination and the service identifier of the transmission source stored in correspondence with the subscribe_ID are different. The message distribution unit 5344 is notified to send a message to (step S825). The message distribution unit 5344 outputs a message to the service execution unit 532-2 instructed by the message determination unit 5343 (step S830).

図21及び図22では、連携端末5のウェブアプリ間でメッセージを送信する場合ついて示しているが、受信装置4において放送マネージドアプリにより実行されるサービス間でのメッセージ送信についても同様の手順で実行できる。   21 and 22 show a case where a message is transmitted between web applications of the cooperative terminal 5, but message transmission between services executed by the broadcast managed application in the receiving device 4 is executed in the same procedure. it can.

以上説明した実施形態によれば、放送通信連携システム1は、受信装置4と、連携端末5(端末装置)とを有する。受信装置4は、放送信号に含まれるコンテンツデータを出力する処理と、放送信号と連携した動作により複数のサービスを提供するアプリケーション(放送マネージドアプリ)を実行する処理とを実行する。連携端末5は、通信入出力部511(通信部)と、複数のサービス実行部532と、サービス実行管理部533と、メッセージ制御部534と、ログ管理部554とを備える。通信入出力部511は、受信装置4と通信する。サービス実行部532はそれぞれ、個別のサービスを提供するアプリケーションであるサービスアプリケーション(ウェブアプリ)を、受信したメッセージを用いて実行する。サービス実行管理部533は、複数のサービス実行部532を並列動作させる。メッセージ制御部534は、受信装置4において実行されているアプリケーションから発行され、通信入出力部511が受信したメッセージを宛先のサービス実行部532に出力する処理と、サービス実行部532から発行されたメッセージを受信装置4又は他のサービス実行部532に出力する処理との少なくとも一方を行う。ログ管理部554は、メッセージ制御部534における処理の対象となったメッセージに関するログデータを取得する。   According to the embodiment described above, the broadcasting / communication cooperation system 1 includes the reception device 4 and the cooperation terminal 5 (terminal device). The receiving device 4 executes a process of outputting content data included in the broadcast signal and a process of executing an application (broadcast managed application) that provides a plurality of services by an operation linked with the broadcast signal. The cooperation terminal 5 includes a communication input / output unit 511 (communication unit), a plurality of service execution units 532, a service execution management unit 533, a message control unit 534, and a log management unit 554. The communication input / output unit 511 communicates with the receiving device 4. Each of the service execution units 532 executes a service application (web application), which is an application that provides an individual service, using the received message. The service execution management unit 533 operates a plurality of service execution units 532 in parallel. The message control unit 534 is issued from an application executed in the receiving device 4, and outputs a message received by the communication input / output unit 511 to the destination service execution unit 532, and a message issued from the service execution unit 532 At least one of the process of outputting the information to the receiving device 4 or the other service execution unit 532. The log management unit 554 acquires log data related to a message that has been processed by the message control unit 534.

また、ログ管理部554は、通信入出力部511が受信したメッセージから得られた、受信装置4において受信中の放送サービスに関する情報を取得する。放送サービスに関する情報は、例えば、イベント、視聴履歴などである。また、ログ管理部554は、センサー512(センサー部)による連携端末5の状態又は連携端末5の環境に関する情報の検出結果に関するログデータ、受信装置4との接続状態に関するログデータ、サービス実行部532によるサービスアプリケーションの実行状態に関するログデータ、サービス実行部532がサービスアプリケーションを実行することにより行ったアクセスの履歴に関するログデータを取得する。また、連携端末5は、ユーザ操作に従って受信装置4に対する制御信号を、通信入出力部511を介して出力するリモコン部553を備えており、ログ管理部554は、リモコン部553に行われたユーザ操作に関するログデータを取得する。また、ログ管理部554は、ユーザ操作により受信が指示された放送サービスに関するログデータを取得する。   In addition, the log management unit 554 acquires information regarding the broadcast service being received by the reception device 4, which is obtained from the message received by the communication input / output unit 511. The information regarding the broadcast service is, for example, an event or a viewing history. In addition, the log management unit 554 includes log data related to a detection result of information related to the state of the linked terminal 5 or the environment of the linked terminal 5 by the sensor 512 (sensor unit), log data related to a connection state with the receiving device 4, and a service execution unit 532. Log data related to the execution state of the service application according to, and log data related to the history of accesses made by the service execution unit 532 executing the service application. In addition, the cooperation terminal 5 includes a remote control unit 553 that outputs a control signal for the receiving device 4 via the communication input / output unit 511 in accordance with a user operation, and the log management unit 554 is a user performed by the remote control unit 553. Acquire log data related to operations. In addition, the log management unit 554 acquires log data related to a broadcast service for which reception is instructed by a user operation.

ログ管理部554は、取得したログデータを、連携端末5が備えるログ記憶部5542に蓄積する処理と、ログデータを蓄積するログ記憶部を備えた外部装置であるログサーバ6に通信入出力部511を介して送信する処理との少なくとも一方を行う。ログ管理部554は、ログサーバ6に送信するログデータには、利用者の識別情報を付加する。連携端末5は、サービス実行部532から取得が指示されたログデータを、ログ記憶部5542又はログサーバ6から読み出して返送するログアクセス制御部555をさらに備えてもよい。   The log management unit 554 is configured to store the acquired log data in the log storage unit 5542 included in the cooperation terminal 5 and to the log server 6 that is an external device including the log storage unit that stores the log data. At least one of the processes of transmitting via 511 is performed. The log management unit 554 adds user identification information to the log data transmitted to the log server 6. The cooperation terminal 5 may further include a log access control unit 555 that reads log data instructed to be acquired from the service execution unit 532 from the log storage unit 5542 or the log server 6 and returns the log data.

以上説明した実施形態によれば、ハイブリッドキャストなどの放送通信連携サービスを行う連携端末において、各種ログを取得し、管理することができる。連携端末は、受信装置との連携時に、受信装置側の放送マネージドアプリや、連携端末のリモコン機能を利用し、視聴ログとして受信中の放送のチャンネルや番組の識別子をなどの視聴履歴を取得することができる。加えて、連携端末は、受信装置と非連携時にも、受信装置との接続状態や、GPSなどのハードウェアのセンサーのデータを取得できる。よって、受信装置との連携状態の有無に関わらず、連携端末の利用者の行動履歴を取得することができる。これにより、連携端末のウェブアプリと受信装置の放送マネージドアプリとの双方が動作しているときに限らず、連携端末の利用者の行動履歴を永続的に利用可能となる。そして、収集したログから得られる利用者の状況に応じて、放送と関連したコンテンツや情報のターゲティングをすることが可能になる。   According to the embodiment described above, various logs can be acquired and managed in a cooperation terminal that performs a broadcast communication cooperation service such as hybrid cast. When the cooperation terminal cooperates with the receiving apparatus, the viewing history such as the broadcast channel being received and the identifier of the program is acquired as a viewing log by using the broadcast managed app on the receiving apparatus side or the remote control function of the cooperation terminal. be able to. In addition, the cooperation terminal can acquire the connection state with the reception apparatus and data of hardware sensors such as GPS even when the cooperation with the reception apparatus is not performed. Therefore, the action history of the user of the cooperation terminal can be acquired regardless of the presence or absence of the cooperation state with the receiving device. Thereby, not only when both the web application of a cooperation terminal and the broadcast managed application of a receiving apparatus are operate | moving, it becomes possible to use permanently the action history of the user of a cooperation terminal. It is possible to target content and information related to broadcasting according to the user's situation obtained from the collected logs.

なお、上述の受信装置4及び連携端末5は、内部にコンピュータシステムを有している。そして、受信装置4及び連携端末5の一部の動作の過程は、プログラムの形式でコンピュータ読み取り可能な記録媒体に記憶されており、このプログラムをコンピュータシステムが読み出して実行することによって、上記処理が行われる。ここでいうコンピュータシステムとは、CPU及び各種メモリやOS、周辺機器等のハードウェアを含むものである。   In addition, the above-mentioned receiving device 4 and the cooperation terminal 5 have a computer system inside. A part of the operation process of the receiving device 4 and the cooperation terminal 5 is stored in a computer-readable recording medium in the form of a program, and the computer system reads and executes this program, so that the above processing is performed. Done. The computer system here includes a CPU, various memories, an OS, and hardware such as peripheral devices.

また、「コンピュータシステム」は、WWWシステムを利用している場合であれば、ホームページ提供環境(あるいは表示環境)も含むものとする。
また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間の間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含むものとする。また上記プログラムは、前述した機能の一部を実現するためのものであってもよく、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであってもよい。
Further, the “computer system” includes a homepage providing environment (or display environment) if a WWW system is used.
The “computer-readable recording medium” refers to a storage device such as a flexible medium, a magneto-optical disk, a portable medium such as a ROM and a CD-ROM, and a hard disk incorporated in a computer system. Furthermore, the “computer-readable recording medium” dynamically holds a program for a short time like a communication line when transmitting a program via a network such as the Internet or a communication line such as a telephone line. In this case, a volatile memory in a computer system serving as a server or a client in that case, and a program that holds a program for a certain period of time are also included. The program may be a program for realizing a part of the functions described above, and may be a program capable of realizing the functions described above in combination with a program already recorded in a computer system.

1…放送通信連携システム
2…放送送出装置
3…サービスサーバ
4…受信装置
5…連携端末
6…ログサーバ
51…ハードウェア部
52…OS部
53…連携アプリ実行制御部
54…他アプリ実行制御部
401…放送受信部
402…分離部
403…映像復号部
404…音声復号部
405…データ放送実行部
406…通信入出力部
407…リモコン入力制御部
408…電源制御部
409…アプリ実行部
410…アプリ制御部
411…放送通信連携部
412…端末連携部
413…映像合成部
414…映像表示部
415…音声合成部
416…音声出力部
421…サービス実行部
422…サービス実行管理部
423…メッセージ制御部
511…通信入出力部
512、512−1、512−n…センサー
531…端末連携部
532−1〜532−3…サービス実行部
533…サービス実行管理部
534…メッセージ制御部
551…ID管理部
552…接続状態管理部
553…リモコン部
554…ログ管理部
555…ログアクセス制御部
556…ユーザポリシー設定部
557…事業者ポリシー設定部
4231…サービス識別管理部
4232…メッセージ受信部
4233…メッセージ判定部
4234…メッセージ分配部
4235…送信元サービス設定部
5341…サービス識別管理部
5342…メッセージ受信部
5343…メッセージ判定部
5344…メッセージ分配部
5345…送信元サービス設定部
5541…ログデータベース部
5542…ログ記憶部
5543…放送サービス判定部
5544…ログアクセス用API提供部
5545…外部管理インターフェース部
5561…ユーザポリシー記憶部
5571…事業者ポリシー記憶部
DESCRIPTION OF SYMBOLS 1 ... Broadcast communication cooperation system 2 ... Broadcast transmission apparatus 3 ... Service server 4 ... Reception apparatus 5 ... Cooperation terminal 6 ... Log server 51 ... Hardware part 52 ... OS part 53 ... Cooperation application execution control part 54 ... Other application execution control part 401 ... broadcast receiving unit 402 ... separating unit 403 ... video decoding unit 404 ... audio decoding unit 405 ... data broadcast execution unit 406 ... communication input / output unit 407 ... remote control input control unit 408 ... power supply control unit 409 ... application execution unit 410 ... application Control unit 411 ... broadcast communication cooperation unit 412 ... terminal cooperation unit 413 ... video synthesis unit 414 ... video display unit 415 ... audio synthesis unit 416 ... audio output unit 421 ... service execution unit 422 ... service execution management unit 423 ... message control unit 511 ... Communication input / output unit 512, 512-1, 512-n ... sensor 531 ... terminal cooperation unit 532-1 to 532-3 ... service Execution unit 533 ... service execution management unit 534 ... message control unit 551 ... ID management unit 552 ... connection state management unit 553 ... remote control unit 554 ... log management unit 555 ... log access control unit 556 ... user policy setting unit 557 ... operator policy Setting unit 4231 ... Service identification management unit 4232 ... Message reception unit 4233 ... Message determination unit 4234 ... Message distribution unit 4235 ... Source service setting unit 5341 ... Service identification management unit 5342 ... Message reception unit 5343 ... Message determination unit 5344 ... Message distribution Unit 5345 ... transmission source service setting unit 5541 ... log database unit 5542 ... log storage unit 5543 ... broadcast service determination unit 5544 ... log access API providing unit 5545 ... external management interface unit 5561 ... user policy storage unit 571 ... business policy storage unit

Claims (12)

放送信号に含まれるコンテンツデータを出力する処理及び前記放送信号と連携した動作により複数のサービスを提供するアプリケーションを実行する処理を行う受信装置と通信する通信部と、
個別のサービスを提供するアプリケーションであるサービスアプリケーションを、受信したメッセージを用いて実行する複数のサービス実行部と、
複数の前記サービス実行部を並列動作させるサービス実行管理部と、
前記受信装置において実行されている前記アプリケーションから発行され、前記通信部が受信したメッセージを宛先の前記サービス実行部に出力する処理と、前記サービス実行部から発行されたメッセージを前記受信装置又は他の前記サービス実行部に出力する処理との少なくとも一方を行うメッセージ制御部と、
前記メッセージ制御部における処理の対象となった前記メッセージに関するログデータを取得するログ管理部と、
を備えることを特徴とする端末装置。
A communication unit that communicates with a receiving apparatus that performs processing for outputting content data included in a broadcast signal and processing for executing an application that provides a plurality of services through an operation in cooperation with the broadcast signal;
A plurality of service execution units that execute service applications, which are applications that provide individual services, using received messages;
A service execution management unit for operating a plurality of the service execution units in parallel;
A process of outputting a message issued from the application executed in the receiving device and received by the communication unit to the service execution unit as a destination; and a message issued from the service execution unit as the receiving device or another A message control unit that performs at least one of processing to be output to the service execution unit;
A log management unit for acquiring log data related to the message that is a target of processing in the message control unit;
A terminal device comprising:
前記ログ管理部は、前記通信部が受信した前記メッセージから得られた、前記受信装置において受信中の放送サービスに関する情報を取得する、
ことを特徴とする請求項1に記載の端末装置。
The log management unit obtains information on a broadcast service being received in the receiving device, obtained from the message received by the communication unit;
The terminal device according to claim 1.
前記端末装置の状態又は前記端末装置の環境に関する情報を検出するセンサー部をさらに備え、
前記ログ管理部は、前記センサー部による検出結果に関するログデータを取得する、
ことを特徴とする請求項1又は請求項2に記載の端末装置。
A sensor unit for detecting information on the state of the terminal device or the environment of the terminal device;
The log management unit acquires log data related to a detection result by the sensor unit;
The terminal device according to claim 1, wherein the terminal device is a terminal device.
前記ログ管理部は、前記受信装置との接続状態に関するログデータを取得する、
ことを特徴とする請求項1から請求項3のいずれか一項に記載の端末装置。
The log management unit acquires log data related to a connection state with the receiving device;
The terminal device according to claim 1, wherein the terminal device is a device.
前記ログ管理部は、前記サービス実行部による前記サービスアプリケーションの実行状態に関するログデータを取得する、
ことを特徴とする請求項1から請求項4のいずれか一項に記載の端末装置。
The log management unit acquires log data related to an execution state of the service application by the service execution unit;
The terminal device according to any one of claims 1 to 4, wherein the terminal device is characterized in that
前記ログ管理部は、前記サービス実行部が前記サービスアプリケーションを実行することにより行ったアクセスの履歴に関するログデータを取得する、
ことを特徴とする請求項1から請求項5のいずれか一項に記載の端末装置。
The log management unit obtains log data relating to a history of accesses made by the service execution unit executing the service application;
The terminal device according to any one of claims 1 to 5, wherein:
ユーザ操作に従って前記受信装置に対する制御信号を、前記通信部を介して出力するリモコン部をさらに備え、
前記ログ管理部は、前記リモコン部に行われた前記ユーザ操作に関するログデータを取得する、
ことを特徴とする請求項1から請求項6のいずれか一項に記載の端末装置。
A remote control unit that outputs a control signal for the receiving device according to a user operation via the communication unit;
The log management unit obtains log data related to the user operation performed on the remote control unit;
The terminal device according to any one of claims 1 to 6, wherein:
前記ログ管理部は、前記ユーザ操作により受信が指示された放送サービスに関するログデータを取得する、
ことを特徴とする請求項7に記載の端末装置。
The log management unit obtains log data relating to a broadcast service instructed to be received by the user operation;
The terminal device according to claim 7.
前記ログ管理部は、取得した前記ログデータを、前記端末装置が備えるログ記憶部に蓄積する処理と、ログデータを蓄積するログ記憶部を備えた外部装置に前記通信部を介して送信する処理との少なくとも一方を行う、
ことを特徴とする請求項1から請求項8のいずれか一項に記載の端末装置。
The log management unit stores the acquired log data in a log storage unit provided in the terminal device, and transmits the log data to an external device including a log storage unit that stores log data via the communication unit. Do at least one of the
The terminal device according to claim 1, wherein the terminal device is a device.
前記ログ管理部は、取得した前記ログデータに利用者の識別情報を付加し、ログデータを蓄積するログ記憶部を備えた外部装置に前記通信部を介して送信する、
ことを特徴とする請求項1から請求項8のいずれか一項に記載の端末装置。
The log management unit adds user identification information to the acquired log data, and transmits the log data to an external device including a log storage unit that accumulates the log data via the communication unit.
The terminal device according to claim 1, wherein the terminal device is a device.
前記サービス実行部から取得が指示されたログデータを前記ログ記憶部から読み出して返送するログアクセス制御部をさらに備える、
ことを特徴とする請求項9又は請求項10に記載の端末装置。
A log access control unit that reads and returns log data instructed to be acquired from the service execution unit from the log storage unit;
The terminal device according to claim 9 or 10, wherein:
コンピュータを、
個別のサービスを提供するアプリケーションであるサービスアプリケーションを、受信したメッセージを用いて実行する複数のサービス実行手段と、
複数の前記サービス実行手段を並列動作させるサービス実行管理手段と、
放送信号に含まれるコンテンツデータを出力する処理及び前記放送信号と連携した動作により複数のサービスを提供するアプリケーションを実行する処理を行う受信装置において実行されている前記アプリケーションから発行されたメッセージを宛先の前記サービス実行手段に出力する処理と、前記サービス実行手段から発行されたメッセージを前記受信装置又は他の前記サービス実行手段に出力する処理との少なくとも一方を行うメッセージ制御手段と、
前記メッセージ制御手段における処理の対象となった前記メッセージに関するログデータを取得するログ管理手段と、
を具備する端末装置として機能させるプログラム。
Computer
A plurality of service execution means for executing service applications, which are applications that provide individual services, using received messages;
Service execution management means for operating a plurality of the service execution means in parallel;
A message issued from the application executed in the receiving apparatus that performs processing for outputting content data included in a broadcast signal and processing for executing an application that provides a plurality of services through an operation in cooperation with the broadcast signal Message control means for performing at least one of processing to output to the service execution means and processing to output a message issued from the service execution means to the receiving device or another service execution means;
Log management means for acquiring log data relating to the message that has been processed by the message control means;
A program for causing a terminal device to function.
JP2016217386A 2016-11-07 2016-11-07 Terminal devices and programs Active JP6826865B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016217386A JP6826865B2 (en) 2016-11-07 2016-11-07 Terminal devices and programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016217386A JP6826865B2 (en) 2016-11-07 2016-11-07 Terminal devices and programs

Publications (2)

Publication Number Publication Date
JP2018078380A true JP2018078380A (en) 2018-05-17
JP6826865B2 JP6826865B2 (en) 2021-02-10

Family

ID=62150995

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016217386A Active JP6826865B2 (en) 2016-11-07 2016-11-07 Terminal devices and programs

Country Status (1)

Country Link
JP (1) JP6826865B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020202493A (en) * 2019-06-11 2020-12-17 日本放送協会 Information processing device, system, and program
CN112673353A (en) * 2019-05-28 2021-04-16 株式会社日立制作所 Information processing system and control method of information processing system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012161115A1 (en) * 2011-05-20 2012-11-29 日本放送協会 Program switching control device and program
JP2013046279A (en) * 2011-08-25 2013-03-04 Video Research:Kk Data display system, method, and program, investigation system, method, and program, receiver, and terminal
JP2016143902A (en) * 2015-01-29 2016-08-08 日本放送協会 Receiving device, terminal device and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012161115A1 (en) * 2011-05-20 2012-11-29 日本放送協会 Program switching control device and program
US20140157319A1 (en) * 2011-05-20 2014-06-05 Japan Broadcasting Corporation Program switching control device and program
JP2013046279A (en) * 2011-08-25 2013-03-04 Video Research:Kk Data display system, method, and program, investigation system, method, and program, receiver, and terminal
JP2016143902A (en) * 2015-01-29 2016-08-08 日本放送協会 Receiving device, terminal device and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112673353A (en) * 2019-05-28 2021-04-16 株式会社日立制作所 Information processing system and control method of information processing system
JP2020202493A (en) * 2019-06-11 2020-12-17 日本放送協会 Information processing device, system, and program
JP7386623B2 (en) 2019-06-11 2023-11-27 日本放送協会 Information processing equipment, systems, and programs

Also Published As

Publication number Publication date
JP6826865B2 (en) 2021-02-10

Similar Documents

Publication Publication Date Title
EP3541043B1 (en) Account login method and apparatus
JP5559977B2 (en) Cooperation receiving system and program
WO2013118617A1 (en) Reception device, reception method, and program
US8510784B2 (en) Information processing apparatus, content reproduction apparatus, information providing apparatus, device control apparatus, cooperative processing system, and program
US20160301638A1 (en) Methods and devices for controlling machines
US20150039993A1 (en) Display device and display method
US11108727B2 (en) System, method, and server for playing multimedia resource
JP6726601B2 (en) Terminal device and program
JP2014007659A (en) Information output device, information output method, and information output program
JP2013034169A (en) Information communication terminal, broadcast reception terminal and computer program
JP6826865B2 (en) Terminal devices and programs
JP2020173860A (en) Information processing device and program
JP2012029200A (en) Remote reservation system, remote reservation method and remote reservation device
JP6722566B2 (en) Terminal device and program
JP6770872B2 (en) Terminal devices and programs
JP6745198B2 (en) Terminal device, receiving device, and program
JP2011259383A (en) Tv-program-related information display system, interterminal event synchronizing apparatus, interterminal event synchronizing method, and program
JP6861058B2 (en) Terminal devices and programs
JP6770871B2 (en) Terminal devices and programs
JP6807214B2 (en) Terminal devices, receivers and programs
JP2007102782A (en) Method and system for sharing broadcast service information in communication network
KR100977346B1 (en) Method and apparatus for contents present service using internet protocol television
KR20110065292A (en) Method and apparatus for sharing comments of content
JP2017188730A (en) Information providing system, information providing device, presentation terminal, and viewing terminal
JP2012199846A (en) Content distribution system, content distribution method, and program

Legal Events

Date Code Title Description
RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20181026

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191002

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200521

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200602

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200714

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210118

R150 Certificate of patent or registration of utility model

Ref document number: 6826865

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250