JP6745198B2 - Terminal device, receiving device, and program - Google Patents

Terminal device, receiving device, and program Download PDF

Info

Publication number
JP6745198B2
JP6745198B2 JP2016217384A JP2016217384A JP6745198B2 JP 6745198 B2 JP6745198 B2 JP 6745198B2 JP 2016217384 A JP2016217384 A JP 2016217384A JP 2016217384 A JP2016217384 A JP 2016217384A JP 6745198 B2 JP6745198 B2 JP 6745198B2
Authority
JP
Japan
Prior art keywords
message
unit
service
application
destination
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2016217384A
Other languages
Japanese (ja)
Other versions
JP2018078378A (en
Inventor
寿之 大亦
寿之 大亦
千草 山村
千草 山村
誠哉 池尾
誠哉 池尾
藤沢 寛
寛 藤沢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Japan Broadcasting Corp
Original Assignee
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 Japan Broadcasting Corp filed Critical Japan Broadcasting Corp
Priority to JP2016217384A priority Critical patent/JP6745198B2/en
Publication of JP2018078378A publication Critical patent/JP2018078378A/en
Application granted granted Critical
Publication of JP6745198B2 publication Critical patent/JP6745198B2/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)

Description

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

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

また、テレビ及び連携端末において、複数の放送外マネージドアプリを実行する技術がある(例えば、特許文献1参照)。放送外マネージドアプリとは、ユーザの操作によって、ライフサイクルが制御されるアプリである。 In addition, there is a technique for executing a plurality of non-broadcast managed applications on a television and a cooperative terminal (for example, refer to Patent Document 1). The non-broadcast managed application is an application whose life cycle is controlled by a user operation.

特開2015−146478号公報JP, 2005-146478, A

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

現行のハイブリッドキャストの放送マネージドアプリ規格においては、テレビと連携端末においてそれぞれ一つのアプリしか同時には実行できない上、双方のアプリが同一のサービス事業者から提供される場合にのみ連携することができる。また、特許文献1においても、放送マネージドアプリと同様、テレビのアプリと連携端末のアプリの一対で個々のサービスを提供することが記載されている。そのため既存技術においては、連携端末で実行されるアプリのサービス提供者が複数あるなど、連携端末で実行されるアプリが複数個である場合に、テレビで実行される1個のアプリと、連携端末で実行される複数個のアプリとが連携することについては考慮されていなかった。 According to the current broadcast-cast application management standard for hybrid cast, only one application can be executed at a time on a television and a cooperation terminal at the same time, and cooperation can be achieved only when both applications are provided by the same service provider. Also, in Patent Document 1, it is described that a pair of an application on a television and an application on a cooperation terminal provides individual services, as in the broadcast managed application. Therefore, in the existing technology, when there are multiple applications that are executed on the cooperation terminal, such as multiple service providers of the applications that are executed on the cooperation terminal, one application executed on the TV and the cooperation terminal It was not taken into consideration that the multiple apps that are executed in.

本発明は、このような事情を考慮してなされたもので、放送の受信装置において実行される放送通信連携サービスのアプリと、端末装置において実行される複数のアプリとを連携させることができる端末装置、受信装置及びプログラムを提供する。 The present invention has been made in consideration of such circumstances, and is a terminal capable of coordinating an application of a broadcast communication cooperation service executed in a broadcast receiving apparatus and a plurality of applications executed in a terminal apparatus. A device, a receiving device, and a program are provided.

本発明の一態様は、個別のサービスを提供するアプリケーションであるサービスアプリケーションを複数並列で実行させる連携アプリ実行制御部と、放送信号に含まれるコンテンツデータを出力する処理及び前記放送信号と連携した動作により複数のサービスを提供するアプリケーションを実行する処理を行う受信装置と通信する通信部とを備え、前記連携アプリ実行制御部は、受信したメッセージを用いて前記サービスアプリケーションを実行する複数のサービス実行部と、前記受信装置において実行されている前記アプリケーションから発行され、前記通信部が受信したメッセージに設定されている送信先の情報に基づいて、前記メッセージの宛先の前記サービス実行部を判定するメッセージ判定部と、前記メッセージ判定部により判定された宛先の前記サービス実行部に前記メッセージを出力するメッセージ分配部とを備える、ことを特徴とする端末装置である。 One aspect of the present invention includes a cooperative application execution control unit that executes a plurality of service applications that are applications that provide individual services in parallel, a process that outputs content data included in a broadcast signal, and an operation that cooperates with the broadcast signal. A communication unit that communicates with a receiving device that performs a process of executing an application that provides a plurality of services, and the cooperative application execution control unit includes a plurality of service execution units that execute the service application using the received message. And a message determination that determines the service execution unit that is the destination of the message, based on the destination information set in the message received by the communication unit that is issued from the application executed in the receiving device. And a message distribution unit that outputs the message to the service execution unit of the destination determined by the message determination unit.

また、本発明の一態様は、上述の端末装置であって、前記メッセージ分配部は、前記サービス実行部により発行されたメッセージの宛先が前記受信装置であると前記メッセージ判定部により判定された場合、当該メッセージを前記通信部により前記受信装置へ送信する、ことを特徴とする。 One aspect of the present invention is the terminal device described above, wherein the message distribution unit determines by the message determination unit that the destination of the message issued by the service execution unit is the reception device. The message is transmitted to the receiving device by the communication unit.

また、本発明の一態様は、上述の端末装置であって、前記メッセージ分配部は、前記サービス実行部により発行されたメッセージの宛先が他の前記サービス実行部であると前記メッセージ判定部により判定された場合、当該メッセージを宛先と判定された他の前記サービス実行部に出力する、ことを特徴とする。 One aspect of the present invention is the terminal device described above, wherein the message distribution unit determines by the message determination unit that the destination of the message issued by the service execution unit is another service execution unit. In this case, the message is output to the other service execution unit determined to be the destination.

また、本発明の一態様は、上述の端末装置であって、前記サービス実行部は、前記受信装置において実行される前記アプリケーションが提供するサービスの識別子又は他の前記サービス実行部において実行される前記サービスアプリケーションが提供するサービスの識別子を送信先の情報に設定したメッセージを発行し、前記連携アプリ実行制御部は、前記サービス実行部により発行された前記メッセージの送信元の情報に、当該メッセージを発行した前記サービス実行部において実行される前記サービスアプリケーションが提供するサービスの識別子を設定する送信元サービス設定部をさらに備える、ことを特徴とする。 One aspect of the present invention is the terminal device described above, wherein the service execution unit is an identifier of a service provided by the application executed in the reception device or another service execution unit executed by the service execution unit. The cooperation application execution control unit issues a message in which the identifier of the service provided by the service application is set in the information of the transmission destination, and the cooperation application execution control unit issues the message to the information of the transmission source of the message issued by the service execution unit. It further comprises a transmission source service setting unit that sets an identifier of a service provided by the service application executed by the service executing unit.

また、本発明の一態様は、上述の端末装置であって、前記メッセージ判定部は、前記送信元サービス設定部により送信元の情報が設定された前記メッセージから取得した送信元のサービスの識別子及び送信先のサービスの識別子に基づき、前記メッセージの宛先が前記受信装置であるか他の前記サービス実行部であるかを判定し、前記メッセージ分配部は、前記メッセージ判定部により判定された宛先に前記サービス実行部により発行された前記メッセージを出力する、ことを特徴とする。 Further, one aspect of the present invention is the above-described terminal device, wherein the message determination unit is an identifier of a service of a transmission source acquired from the message in which information of the transmission source is set by the transmission source service setting unit, and Based on the identifier of the service of the destination, it is determined whether the destination of the message is the receiving device or another service execution unit, the message distribution unit, the message distribution unit to the destination determined by the message determination unit It is characterized in that the message issued by the service execution unit is output.

また、本発明の一態様は、上述の端末装置であって、前記連携アプリ実行制御部は、前記サービス実行部と前記受信装置との間、又は、異なる前記サービス実行部の間で通信チャンネルの確立及び解除を行う端末連携部をさらに備え、前記メッセージ判定部は、前記受信装置から受信したメッセージに設定されている前記通信チャンネルの識別情報に基づいて前記メッセージの宛先となる前記サービス実行部を判定する処理と、前記サービス実行部から発行されたメッセージに設定されている前記通信チャンネルの識別情報に基づいて前記メッセージの宛先が他の前記サービス実行部であるか前記受信装置であるかを判定する処理との少なくとも一方を行い、前記メッセージ分配部は、前記メッセージ判定部により判定された宛先に前記メッセージを出力する、ことを特徴とする。 Further, according to an aspect of the present invention, in the above-described terminal device, the cooperation application execution control unit sets a communication channel between the service execution unit and the reception device or between different service execution units. The message determination unit further includes a terminal cooperation unit that establishes and releases the service execution unit that is a destination of the message based on identification information of the communication channel set in the message received from the reception device. Judgment processing, and whether the destination of the message is another service execution unit or the receiving device based on the identification information of the communication channel set in the message issued from the service execution unit At least one of the above processes is performed, and the message distribution unit outputs the message to the destination determined by the message determination unit.

本発明の一態様は、放送信号を受信し、前記放送信号に含まれるコンテンツデータを出力する受信機機能部と、アプリケーションに含まれる複数のサービスの機能を並列で実行させるアプリ実行部と、個別のサービスを提供するアプリケーションであるサービスアプリケーションを複数並列で実行する端末装置と通信する通信部とを備え、前記アプリ実行部は、前記受信機機能部から取得した情報と、受信したメッセージとを用いて、前記アプリケーションに含まれる複数のサービスの機能のそれぞれを実行する複数のサービス実行部と、前記端末装置において実行されている前記サービスアプリケーションから発行され、前記通信部が受信したメッセージに設定されている送信先の情報に基づいて、前記メッセージの宛先の前記サービス実行部を判定するメッセージ判定部と、前記メッセージ判定部により判定された宛先の前記サービス実行部に前記メッセージを出力するメッセージ分配部とを備える、ことを特徴とする受信装置である。 One aspect of the present invention includes a receiver function unit that receives a broadcast signal and outputs content data included in the broadcast signal, an application execution unit that executes functions of a plurality of services included in an application in parallel, and And a communication unit that communicates with a terminal device that executes a plurality of service applications that are services that provide the service in parallel, and the application execution unit uses the information acquired from the receiver function unit and the received message. A plurality of service execution units that execute respective functions of a plurality of services included in the application, and a message issued by the service application executed in the terminal device and set in a message received by the communication unit. A message determination unit that determines the service execution unit that is the destination of the message based on the information of the transmission destination, and a message distribution unit that outputs the message to the service execution unit that is the destination determined by the message determination unit. And a receiver.

また、本発明の一態様は、上述の受信装置であって、前記メッセージ分配部は、前記サービス実行部により発行されたメッセージの宛先が前記端末装置であると前記メッセージ判定部により判定された場合、当該メッセージを前記通信部により前記端末装置に送信する、ことを特徴とする。 One aspect of the present invention is the above-described receiving device, wherein the message distribution unit determines by the message determination unit that the destination of the message issued by the service execution unit is the terminal device. The message is transmitted to the terminal device by the communication unit.

また、本発明の一態様は、上述の受信装置であって、前記メッセージ分配部は、前記サービス実行部により発行されたメッセージの宛先が他の前記サービス実行部であると前記メッセージ判定部により判定された場合、当該メッセージを宛先と判定された他の前記サービス実行部に出力する、ことを特徴とする。 Further, one aspect of the present invention is the above-mentioned receiving device, wherein the message distribution unit determines by the message determination unit that the destination of the message issued by the service execution unit is another service execution unit. In this case, the message is output to the other service execution unit determined to be the destination.

また、本発明の一態様は、上述の受信装置であって、前記サービス実行部は、前記サービスアプリケーションにより提供されるサービスの識別子又は他の前記サービス実行部において実行されるサービスの識別子を送信先の情報に設定したメッセージを発行し、前記アプリ実行部は、前記サービス実行部により発行された前記メッセージの送信元の情報に、当該メッセージを発行した前記サービス実行部において実行されるサービスの識別子を設定する送信元サービス設定部をさらに備える、ことを特徴とする。 Further, one aspect of the present invention is the above-mentioned receiving device, wherein the service execution unit is a destination of an identifier of a service provided by the service application or an identifier of a service executed by another service execution unit. The application execution unit issues the message set in the information of the above, and the application execution unit adds the identifier of the service executed in the service execution unit that issued the message to the information of the sender of the message issued by the service execution unit. A transmission source service setting unit for setting is further provided.

また、本発明の一態様は、上述の受信装置であって、前記メッセージ判定部は、前記送信元サービス設定部により送信元の情報が設定された前記メッセージから取得した送信元のサービスの識別子及び送信先のサービスの識別子に基づき、前記メッセージの宛先が前記端末装置であるか他の前記サービス実行部であるかを判定し、前記メッセージ分配部は、前記メッセージ判定部により判定された宛先に前記サービス実行部により発行された前記メッセージを出力する、ことを特徴とする。 Further, one aspect of the present invention is the above-described receiving device, wherein the message determination unit is an identifier of a service of a transmission source acquired from the message in which information of the transmission source is set by the transmission source service setting unit, and Based on the identifier of the service of the destination, it is determined whether the destination of the message is the terminal device or another service execution unit, the message distribution unit, to the destination determined by the message determination unit It is characterized in that the message issued by the service execution unit is output.

また、本発明の一態様は、上述の受信装置であって、前記サービス実行部と前記端末装置との間、又は、異なる前記サービス実行部の間で通信チャンネルの確立及び解除を行う端末連携部をさらに備え、前記メッセージ判定部は、前記端末装置から受信したメッセージに設定されている前記通信チャンネルの識別情報に基づいて前記メッセージの宛先となる前記サービス実行部を判定する処理と、前記サービス実行部から発行されたメッセージに設定されている前記通信チャンネルの識別情報に基づいて前記メッセージの宛先が他の前記サービス実行部であるか前記端末装置であるかを判定する処理との少なくとも一方を行い、前記メッセージ分配部は、前記メッセージ判定部により判定された宛先に前記メッセージを出力する、ことを特徴とする。 Further, one aspect of the present invention is the above-described receiving device, which is a terminal cooperation unit that establishes and releases a communication channel between the service execution unit and the terminal device or between different service execution units. Further comprising: a process for determining the service execution unit, which is a destination of the message, based on identification information of the communication channel set in the message received from the terminal device; Performing at least one of a process of determining whether the destination of the message is the other service executing unit or the terminal device based on the identification information of the communication channel set in the message issued from the unit. The message distribution unit outputs the message to the destination determined by the message determination unit.

また、本発明の一態様は、コンピュータを、個別のサービスを提供するアプリケーションであるサービスアプリケーションを複数並列で実行させる連携アプリ実行制御手段を具備し、前記連携アプリ実行制御手段は、受信したメッセージを用いて前記サービスアプリケーションを実行する複数のサービス実行手段と、放送信号に含まれるコンテンツデータを出力する処理及び前記放送信号と連携した動作により複数のサービスを提供するアプリケーションを実行する処理を行う受信装置において実行されている前記アプリケーションから発行され、前記受信装置と通信する通信部が受信したメッセージに設定されている送信先の情報に基づいて、前記メッセージの宛先の前記サービス実行手段を判定するメッセージ判定手段と、前記メッセージ判定手段により判定された宛先の前記サービス実行手段に前記メッセージを出力するメッセージ分配手段とを具備する端末装置として機能させるためのプログラムである。 Further, according to an aspect of the present invention, a cooperative application execution control unit that causes a computer to execute a plurality of service applications, which are applications that provide individual services, in parallel, is provided. A plurality of service executing means for executing the service application by using the receiving device, a process for outputting the content data included in the broadcast signal, and a process for executing the application for providing the plurality of services by the operation in cooperation with the broadcast signal Message determination for determining the service execution means of the destination of the message based on the information of the destination set in the message received by the communication unit that communicates with the receiving device and is issued from the application executed in And a message distribution means for outputting the message to the service execution means of the destination determined by the message determination means.

また、本発明の一態様は、コンピュータを、アプリケーションに含まれる複数のサービスの機能を並列で実行させるアプリ実行手段を具備し、前記アプリ実行手段は、放送信号を受信し、前記放送信号に含まれるコンテンツデータを出力する受信機機能部から取得した情報と、受信したメッセージとを用いて、前記アプリケーションに含まれる複数のサービスの機能のそれぞれを実行する複数のサービス実行手段と、個別のサービスを提供するアプリケーションであるサービスアプリケーションを複数並列で実行する端末装置において実行されている前記サービスアプリケーションから発行され、前記端末装置と通信する通信部が受信したメッセージに設定されている送信先の情報に基づいて、前記メッセージの宛先の前記サービス実行手段を判定するメッセージ判定手段と、前記メッセージ判定手段により判定された宛先の前記サービス実行手段に前記メッセージを出力するメッセージ分配手段とを具備する受信装置として機能させるためのプログラムである。 Further, according to one aspect of the present invention, the computer includes an application executing unit that executes functions of a plurality of services included in an application in parallel, and the application executing unit receives a broadcast signal and includes the broadcast signal. Using the information acquired from the receiver function unit that outputs the content data to be output and the received message, a plurality of service executing means for executing each of the functions of the plurality of services included in the application and an individual service are provided. Based on destination information set in a message issued by the service application executed in the terminal device that executes a plurality of service applications, which are the applications to be provided, in parallel, and that is received by the communication unit that communicates with the terminal device. And a message distribution unit that outputs the message to the service execution unit that is the destination determined by the message determination unit, and a message determination unit that determines the service execution unit that is the destination of the message. It is a program to let you.

本発明によれば、放送の受信装置において実行される放送通信連携サービスのアプリと、端末装置において実行される複数のアプリとを連携させることが可能となる。 ADVANTAGE OF THE INVENTION According to this invention, it becomes possible to link the application of the broadcast-communication cooperation service performed in a broadcast receiving apparatus, and the some application performed in a terminal device.

本発明の一実施形態による放送通信連携システムの全体構成図である。FIG. 1 is an overall configuration diagram of a broadcast communication cooperation system according to an embodiment of the present invention. 同実施形態による受信装置及び連携端末のスタック図である。FIG. 3 is a stack diagram of a reception device and a cooperation terminal according to the same 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 same embodiment. 同実施形態による連携端末の構成を示す機能ブロック図である。It is a functional block diagram which shows the structure of the cooperation terminal by the same embodiment. 同実施形態によるメッセージ制御部の詳細な構成を示す機能ブロック図である。It is a functional block diagram which shows the detailed structure of the message control part by the same embodiment. 同実施形態による放送マネージドアプリの記述例を示す図である。It is a figure which shows the example of description of the broadcast managed application by the same embodiment. 同実施形態によるメッセージの設定例を示す図である。It is a figure which shows the example of a message setting by the same embodiment. 同実施形態によるメッセージ制御部の処理フローを示す図である。It is a figure which shows the processing flow of the message control part by the same embodiment. 同実施形態によるメッセージ制御部の処理フローを示す図である。It is a figure which shows the processing flow of the message control part by the same embodiment. 同実施形態による受信装置と連携端末の間でメッセージを送信する場合のシーケンス図である。It is a sequence diagram when transmitting a message between a receiving device and a cooperation terminal by the embodiment. 同実施形態によるウェブサービス間でメッセージを送信する場合のシーケンス図である。FIG. 9 is a sequence diagram when a message is transmitted between web services according to the same embodiment. 同実施形態によるメッセージの設定例を示す図である。It is a figure which shows the example of a message setting by the same embodiment. 同実施形態による受信装置と連携端末の間でセッションの識別子に基づきメッセージを送信する場合のシーケンス図である。It is a sequence diagram in the case of transmitting a message between a receiving device and a cooperation terminal according to the same embodiment based on a session identifier. 同実施形態による受信装置と連携端末の間でセッションの識別子に基づきメッセージを送信する場合のシーケンス図である。It is a sequence diagram in the case of transmitting a message between a receiving device and a cooperation terminal according to the same embodiment based on a session identifier. 同実施形態によるメッセージの設定例を示す図である。It is a figure which shows the example of a message setting by the same embodiment. 同実施形態による連携端末のウェブアプリ間でセッションの識別子に基づきメッセージを送信する場合のシーケンス図である。It is a sequence diagram in the case of transmitting a message between web applications of a cooperation terminal according to the same embodiment based on a session identifier. 同実施形態による連携端末のウェブアプリ間でセッションの識別子に基づきメッセージを送信する場合のシーケンス図である。It is a sequence diagram in the case of transmitting a message between web applications of a cooperation terminal according to the same embodiment based on a session identifier.

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

図1は、本実施形態の一実施形態による放送通信連携システム1の全体構成図である。放送通信連携システム1は、放送送出装置2と、サービスサーバ3と、受信装置4と、連携端末5とを有する。放送送出装置2及びサービスサーバ3は送信側の装置であり、受信装置4及び連携端末5は、受信側の装置である。 FIG. 1 is an overall configuration diagram of a broadcast 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, and a cooperation terminal 5. The broadcast transmitting device 2 and the service server 3 are devices on the transmitting side, and the receiving device 4 and the cooperation terminal 5 are devices on the receiving side.

放送送出装置2は、放送信号を送出する。サービスサーバ3は、アプリ本体やアプリで利用するコンテンツデータを、インターネットを介して受信側の装置へ配信する。アプリ本体とは、アプリケーションのプログラムである。受信装置4は、例えば、ハイブリッドキャスト対応テレビである。連携端末5は、例えば、スマートフォンやタブレット端末などの端末装置である。受信装置4及び連携端末5は、インターネットを介してサービスサーバ3と相互に通信できる。また、受信装置4と連携端末5は、無線LAN(Local Area Network)等のローカルネットワークを介して接続する。 The broadcast transmission device 2 transmits a broadcast signal. The service server 3 distributes the application body and content data used by the application to the receiving side device via the Internet. The application body is the program of the application. The receiving device 4 is, for example, a hybrid cast compatible television. The cooperation terminal 5 is, for example, 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. The receiving device 4 and the cooperation terminal 5 are connected via a local network such as a wireless LAN (Local Area Network).

放送通信連携サービスの形態は複数存在するが、本実施形態の放送通信連携システム1では、ハイブリッドキャスト技術仕様(非特許文献1、2)に基づき、受信装置4において、デジタル放送サービスとインターネットサービスとが連携動作することを想定する。受信装置4が、放送またはインターネットにより配信されるアプリを実行することで、インターネット上のコンテンツを取得できるようになり、ユーザが放送通信連携サービスを利用できるようになる。さらに、ハイブリッドキャスト技術仕様に則り、受信装置4と連携端末5にインストールした端末側連携アプリとが連携動作する。 Although there are a plurality of forms of the broadcasting/communication cooperation service, 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). Are assumed to work together. The receiving device 4 can acquire the content on the Internet by executing the application distributed by broadcasting or the Internet, and the user can use the broadcast communication cooperation service. Furthermore, according to the hybrid cast technical specifications, the receiving device 4 and the terminal-side cooperation application installed in the cooperation terminal 5 cooperate with each other.

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

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

放送マネージドアプリとサービスアプリとは連携動作することにより、ユーザへ提供するサービスを実行する。サービスとは、ユーザが連携端末5に行った操作に従って動作した結果の画像、映像、音声を、連携端末5に、又は、受信装置4及び連携端末5に出力することである。サービスの実行には、受信装置4が有する受信機機能から取得した情報などが利用される。受信機機能は、放送信号を受信し、ユーザにより選択されたチャンネルの番組映像や音声などのコンテンツデータを放送信号から取得し、デコードして出力する一連の機能である。ユーザに提供するサービスは任意であるが、一例として、SNS(ソーシャルネットワークサービス)、天気予報やニュースなどの情報の提供、外国語字幕の提供、テレビ映像とは異なる角度からの映像の提示などがある。 The broadcast managed application and the service application operate in cooperation to execute the service provided to the user. The service is to output an image, a video, and a sound as a result of the user's operation to the cooperation terminal 5 to the cooperation terminal 5, or to the receiving device 4 and the cooperation terminal 5. The information acquired from the receiver function of the receiving device 4 is used to execute the service. 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 a 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, and presentation of video from a different angle from TV video. is there.

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

図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 reception device 4 and the cooperation terminal 5. The receiving device 4 includes four layers of hardware, an OS (Operation System), a resident, and an application executing 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's receiver function through an extended API (Application Program Interface) defined by Non-Patent Document 1. The hardware includes a CPU (central processing unit), 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 OS of the terminal, such as iOS (registered trademark) and Android (registered trademark). The native application execution unit can operate a plurality of native applications. A native application is a program that can be executed by 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. Note that the terminal-side cooperation application does not have to be a native application. For example, the terminal-side linked application may call a browser that is not a native application from the native application and cause the browser to execute the web application. 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 the broadcast managed application that operates in the application execution unit of the reception device 4 and the web application that operates inside the terminal-side cooperation application executed by the native application execution unit of the cooperation terminal 5. It A text message is transmitted between the broadcast managed application and the web application using the extended API defined in Non-Patent Document 1. Arbitrary message contents can be described in the text message. For example, the message content may be various execution commands 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 the internal configuration of the receiving device 4, and only the functional blocks related to the present embodiment are extracted and shown. The receiving device 4 shown in the figure includes a broadcast receiving unit 401, a separating unit 402, a video decoding unit 403, an audio decoding unit 404, a data broadcast executing unit 405, a communication input/output unit 406, a remote control input control unit 407, and a power supply control unit 408. The application execution unit 409, the application control unit 410, the broadcast communication cooperation unit 411, the terminal cooperation unit 412, the image synthesis unit 413, the image display unit 414, the audio synthesis unit 415, and the audio 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, receives the broadcast signal transmitted from the broadcast transmitting device 2, and demodulates it. The separation unit 402 separates the broadcast signal received and demodulated by the broadcast reception unit 401 into content data such as video data and audio data, and data other than the content data. The data other than the content includes, for example, a data broadcast, a reception channel, SI (Service Information) in which program information is described, an event message, 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 connects to the service server 3 such as an application market, an account management server, an application distribution server via the Internet or the like. Further, the communication input/output unit 406 connects to the cooperation terminal 5 via a local network such as a wireless LAN. The remote control input control unit 407 receives from the remote control (remote controller) data indicating the operation performed by the user on the remote control. 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 browser that executes a broadcast managed application. Broadcast managed apps provide the functionality of one or more services. The application control unit 410 controls the start and end of the broadcast managed application based on the 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 the information set in the AIT separated from the broadcast signal. The application control unit 410 notifies the terminal cooperation unit 412 of the 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 broadcasting/communication cooperation unit 411 provides the application execution unit 409 with a function defined by the extended API in order to operate the contents acquired by broadcasting or communication in the broadcasting managed application. Specifically, the broadcasting/communication cooperation unit 411 provides access means to information such as SI and event messages included in the broadcast signal being received, functions of the receiving device 4, and the like. The terminal cooperation unit 412 performs a pairing process with the cooperation terminal 5 and a process 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 as a pair with the terminal cooperation unit 531 of the cooperation terminal 5 shown in FIG. 5 described later. The terminal cooperation unit 412 notifies the cooperation terminal 5 of the 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 the video data on the video display unit 414. Output. The video display unit 414 is a general display, and displays the video of the video data synthesized by the video synthesis unit 413.

音声合成部415は、音声復号部404が復号した放送番組の音声データと、データ放送実行部405やアプリ実行部409の処理結果に基づき出力された音声データとを合成し、音声出力部416に出力する。音声出力部416は、一般的なスピーカーであり、音声合成部415が合成した音声データを音声により出力する。 The audio 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 executing unit 405 and the application executing unit 409, and outputs 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 showing 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. The application execution unit 409 may include a plurality of service execution units 421, but only one broadcast managed application operates at the same time. In the figure, the 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 the service function included in the broadcast managed application under the control of the application control unit 410. The service execution management unit 422 controls activation and termination of each service execution unit 421 and state management, and causes the plurality of service execution units 421 to execute 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 of 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 adds a prefix or the like to add a predetermined identifier for each service as a destination address to a part of the message for transmission and reception.

メッセージ受信部4232は、連携端末5からのメッセージ、及び、サービス実行部421からのメッセージを受信する。メッセージ受信部4232は、受信したメッセージを、メッセージ判定部4233及びメッセージ分配部4234に送信する。なお、メッセージ受信部4232は、メッセージ判定部4233に宛先の判定に必要な情報のみを送信してもよい。 The message receiving unit 4232 receives the message from the cooperation terminal 5 and the message from the service executing unit 421. The message reception unit 4232 transmits the received message to the message determination unit 4233 and the message distribution unit 4234. The message receiving unit 4232 may send 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 identifier of the service 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 destination of the message, and the message distribution unit 4233. Notify 4234. When the identifier of the service of the transmission source and the identifier of the service of the transmission destination added to the message are the same, the message determination unit 4233 sets the cooperation terminal 5 as the transmission destination, and when they are different, sets the service execution unit 421 as the transmission destination. .. In addition, the message determination unit 4233 issues an identifier for establishing a communication channel between services and determines the destination of a message 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 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 by the service execution unit 421 to the cooperation terminal 5 or the 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 the functional blocks related to the present embodiment are extracted and shown. In the figure, the functional configuration centering on the terminal side cooperation application is shown. The cooperation terminal 5 includes a hardware unit 51, an OS unit 52, a cooperation application execution control unit 53, and another application execution control unit 54.

ハードウェア部51は、CPU、各種メモリ、通信装置、ディスプレイ(表示装置)、ユーザ操作を入力するための入力デバイス(入力装置)などの各種ハードウェアからなる。ディスプレイがタッチパネルである場合、入力デバイスは、タッチパネルに配されたタッチセンサーである。ハードウェア部51は、通信装置により実現される通信入出力部511を有する。 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 has a communication input/output unit 511 realized by a communication device.

通信入出力部511は、通信ネットワークに接続するためのインターフェースである。通信入出力部511は、インターネットなどを介してサービスサーバ3と接続する。また、通信入出力部511は、無線LANなどのローカルネットワークを介して受信装置4と接続する。OS部52は、OSにより実現され、端末全体を制御し、連携アプリ実行制御部53及び他アプリ実行制御部54に、ハードウェア部51へのインターフェースを提供する。 The communication input/output unit 511 is an interface for connecting to a communication network. The communication input/output unit 511 connects to the service server 3 via the Internet or the like. The communication input/output unit 511 also connects to the receiving device 4 via a local network such as a wireless LAN. The OS unit 52 is realized by the OS, controls the entire terminal, and provides the cooperative application execution control unit 53 and the other application execution control unit 54 with an interface to the hardware unit 51.

連携アプリ実行制御部53は、CPUがメモリに記憶された端末側連携アプリを読み出して実行することにより実現される。連携アプリ実行制御部53は、端末連携部531、サービス実行部532、サービス実行管理部533及びメッセージ制御部534を有する。複数のサービス実行部532をそれぞれ、サービス実行部532−1、532−2、532−3、…と記載する。 The cooperative application execution control unit 53 is realized by the CPU reading and executing the terminal-side cooperative application stored in the memory. The cooperative application execution control unit 53 has a terminal cooperation unit 531, a service execution unit 532, a service execution management unit 533, and a message control unit 534. 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 a pairing process with the receiving device 4 and a process for mediating communication between the broadcast managed application of the receiving device 4 and the web application of the cooperative terminal 5. The terminal cooperation unit 531 operates as a pair with the terminal cooperation unit 412 of the reception device 4.

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

(1)現在実際にサービスが提供されている受信装置4の放送マネージドアプリと連携したウェブアプリ。なお、このウェブアプリを実行するのは一つのサービス実行部532である。
(2)複数の放送局が配信する放送マネージドアプリと連携して共通に利用することができるウェブアプリ。
(3)受信装置4と連携しないウェブアプリ。
(1) A web application that cooperates with the broadcast managed application of the receiving device 4 where the service is currently provided. Note that one service execution unit 532 executes this web application.
(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上で実行されるウェブアプリの起動及び終了の制御や、フォアグラウンドでの動作又はバックグラウンドでの動作など状態の変更を行う。 The service execution management unit 533 controls activation and termination of each service execution unit 532 and state management, and causes a plurality of service execution units 532 to execute in parallel. The service execution management unit 533 controls the start and end of the service execution unit 532 or the web application executed on the service execution unit 532, and the operation in the foreground based on the instruction from the reception device 4 or the user operation. Or, change the status such as operation in the background.

ハイブリッドキャストでは、受信装置4と連携端末5との間でテキストメッセージを送受信するためのAPIが規定されている。メッセージ制御部534は、受信装置4が実行する放送マネージドアプリと連携端末5の各サービス実行部532が実行するウェブアプリとの間、および、サービス実行部532の間のメッセージを適切に送受信するための制御を行う。メッセージ制御部534の詳細を、図6を用いて説明する。 The hybrid cast defines an API for transmitting/receiving a text message between the receiving device 4 and the cooperation terminal 5. 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 unit 532. Control. Details of the message control unit 534 will be described with reference to FIG.

図6は、メッセージ制御部534の詳細な構成を示す機能ブロック図である。メッセージ制御部534は、サービス識別管理部5341、メッセージ受信部5342、メッセージ判定部5343、メッセージ分配部5344及び送信元サービス設定部5345を有する。 FIG. 6 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 the identifier of the service execution unit 532 and the identifier of the 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 adds a prefix or the like to add a predetermined identifier for each web service as an address of a transmission destination to a part of a message for transmission and reception.

メッセージ受信部5342は、受信装置4からのメッセージ、及び、各サービス実行部532からのメッセージを受信する。メッセージ受信部5342は、受信したメッセージを、メッセージ判定部5343及びメッセージ分配部5344に送信する。なお、メッセージ受信部5342は、メッセージ判定部5343に宛先の判定に必要な情報のみを送信してもよい。 The message receiving unit 5342 receives the message from the receiving device 4 and the message from each service executing 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 send 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 receiving unit 5342 with the correspondence table stored in the service identification management unit 5341 to determine the destination of the message, and the message distribution unit 5343. Notify 5344. If the identifier of the service of the transmission source and the identifier of the service of the transmission destination added to the message are the same, the message determination unit 5343 sets the reception device 4 as the transmission destination, and if they are different, sets the service execution unit 532 as the transmission destination. .. In addition, the message determination unit 5343 issues the identifier for establishing the communication channel between the services and determines the destination of the message based on the identifier, depending on the embodiment.

メッセージ分配部5344は、メッセージ受信部5342から受信したメッセージを、メッセージ判定部5343が決定した送信先に送信する。送信元サービス設定部5345は、サービス実行部532が受信装置4または他のサービス実行部532に対して送信するメッセージに、送信元のサービス実行部532の識別子を付加する。 The message distributor 5344 transmits the message received from the message receiver 5342 to the destination determined by the message determiner 5343. The transmission source service setting unit 5345 adds the identifier of the transmission source service execution unit 532 to a message transmitted by 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, the number of broadcast managed applications executed by the receiving device 4 is one. 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, in addition to the service A in the current broadcast managed application provided by the broadcast station A, the service X commonly provided by the broadcast station A and the broadcast station B is simultaneously operated. At this time, the function of the service X is described in JavaScript (registered trademark) 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. Further, since messages are transmitted and received between devices individually in 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 message control unit 534 of the cooperation terminal 5 are equivalent. The function of the message control unit 423 having the function of is described in the HTML documents of both the service A and the service B in the same manner as the function of the service X. Functions of the service execution management unit 422 include control such as activation and termination of the service execution unit 421, and control of whether or not to display on the screen for each service.

図7は、放送マネージドアプリの記述例を示す図である。同図は、放送局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. 7 is a diagram showing a description example of a broadcast managed application. This figure is an example in which the broadcast managed application of the broadcast station A is described as an HTML document. As shown in the figure, the elements to display the service A and the service X are grouped in a div and the id is designated (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, the control function (common_appcontrol.js) such as activation and termination of the service execution unit 421 by the service execution management unit 422, the function (common_messaging.js) of the message control unit 423, and the display of each service by the service execution management unit 422. The control function of (common_viewcontrol.js) is also included. When the application execution unit 409 executes the broadcast managed application described as the HTML document in this way, 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, equivalent functions are introduced in both the broadcast managed application on the reception device 4 and the companion application on the cooperation terminal 5, so that a plurality of services can be used on the pair of reception device 4 and the cooperation terminal 5. Become.
The 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を介してサービス起動指示を送信する。サービス起動指示には、起動対象のウェブアプリを特定する情報が含まれる。連携端末5の端末連携部531は、通信入出力部511を介して受信したサービス起動指示をサービス実行管理部533へ出力する。サービス実行管理部533は、受信したサービス起動指示により起動が指示されたウェブアプリを起動する。あるいは、連携端末5の入力デバイスによりユーザが起動対象のウェブアプリの情報を入力すると、サービス実行管理部533は、その起動対象のウェブアプリを起動する。これにより、連携アプリ実行制御部53において、サービス実行部532が動作する。 The service execution management unit 533 of the cooperation terminal 5 causes the service execution unit 532 to start or stop the web application according to an instruction from the receiving device 4 or an instruction input by the user to the cooperation terminal 5. Specifically, when the service activation instruction is output from the 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. The service activation instruction includes information that identifies the web application to be activated. 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 the information of 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.

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

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

具体的には、受信装置4の送信元サービス設定部4235が、メッセージM11に送信元のサービスPの識別子を追加し、メッセージM12となる。メッセージM12の場合は、放送マネージドアプリを実行することにより生成されるメッセージ制御部423が有する送信元サービス設定部4235の機能(図7における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 service identifier of the transmission source is set by the function (common_messaging.js in FIG. 7) of the transmission source service setting unit 4235 included in the message control unit 423 generated by executing the broadcast managed application. It 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. Further, in the present embodiment, only the identifier of the service of the transmission source and the identifier of the service of the transmission destination are described, but the reception device 4 or the cooperation terminal 5 may be described as the transmission destination.

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

図9は、メッセージ受信時の処理フローを示す。連携端末5の端末連携部531は、通信入出力部511を介して受信装置4から受信したメッセージを、メッセージ受信部5342に出力する。メッセージ受信部5342は、端末連携部531からメッセージを受信する(ステップS105)。メッセージ受信部5342は、受信したメッセージから送信先のサービスの識別子及び送信元のサービスの識別子を検出する(ステップS110)。メッセージ受信部5342は、メッセージが読み出した送信先のサービスの識別子及び送信元のサービスの識別子をメッセージ判定部5343に通知し、メッセージ全体をメッセージ分配部5344に通知する(ステップS115)。 FIG. 9 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 the message from the terminal cooperation unit 531 (step S105). The message receiving unit 5342 detects the identifier of the service of the transmission destination and the identifier of the service of the transmission source from the received message (step S110). The message receiving unit 5342 notifies the message determining unit 5343 of the identifier of the service of the transmission destination and the identifier of the service of the transmission source of the message, and notifies the message distributing 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 the service execution unit 532 is executing the service specified by the service identifier of the transmission destination (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 service of the transmission destination notified from the message determination unit 5343. The service identification management unit 5341 outputs the collation result in which the identifier of the service execution unit 532 is set when the identifier can be acquired, and the collation result indicating that the service execution unit 532 does not exist when the identifier cannot be acquired.

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

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

図10は、メッセージ発行時の処理フローを示す。サービス実行部532は、メッセージを設定し、送信元サービス設定部5345に通知する(ステップS205)。送信元サービス設定部5345は、受信したメッセージに対して、送信元の識別子として、メッセージの送信元のサービス実行部532が実行しているサービスの識別子を追加し、メッセージ受信部5342に通知する(ステップS210)。メッセージ受信部5342は、メッセージから読み出した送信先のサービスの識別子及び送信元のサービスの識別子をメッセージ判定部5343に通知し、メッセージ全体をメッセージ分配部5344に通知する(ステップS215)。 FIG. 10 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 executed by the service execution unit 532 that is the transmission source of the message to the received message as the transmission source identifier, and notifies the message reception unit 5342 ( Step S210). The message receiving unit 5342 notifies the message determining unit 5343 of the identifier of the service of the transmission destination and the identifier of the service of the transmission source read from the message, and notifies the message distributing 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 the identifiers of the transmission destination and the transmission source 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 distribution unit 5344 transmits the message to the reception device 4 via the terminal cooperation unit 531. (Step S230). The message distribution unit 5344 outputs the 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 as a receiving device. 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 identifiers of the transmission destination and the transmission source are not the same (step S225: No), the process of step S235 is performed. 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 service of the transmission destination described in the message. The message determination unit 5343 sends the message to the service execution unit 532 specified by the read identifier, that is, the service execution unit 532 executing the web service specified by the identifier of the destination service described in the message. The message distribution unit 5344 is notified to do so (step S235). The message distribution unit 5344 transmits the message to the service execution unit 532 designated as the destination by the message determination unit 5343 (step S240).

図11は、受信装置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. 11 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 the message to the message reception unit 4232 (step S310). The message receiving unit 4232 notifies the message determining unit 4233 of the identifier of the transmission source service and the identifier of the transmission destination service acquired from the message (step S315), and notifies the message distributing 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 the message to the cooperation terminal 5 (step S325). The message distribution unit 4234 outputs the 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 the message from the terminal cooperation unit 531 (step S340). The message receiving unit 5342 notifies the message determining 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 distributing unit 5344 of the entire message (step S350). .. When the message determination unit 5343 receives the collation result indicating that the web service specified by the identifier of the service of the transmission destination 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 the message to the service execution unit 532 executing the web service specified by the service identifier of the transmission destination (step S355). The message distribution unit 5344 outputs the message to the service execution unit 532 instructed by the message determination unit 5343 (step S360).

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

図12は、連携端末5のウェブアプリ間でメッセージを送信する場合のシーケンス図である。同図では、サービス実行部532−1をサービス実行部(1)、サービス実行部532−2をサービス実行部(2)と記載している。 FIG. 12 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 the service execution unit (1), and the service execution unit 532-2 is described as the 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 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 receiving unit 5342 (step S410). The message receiving unit 5342 notifies the message determining unit 5343 of the source service identifier and the destination service identifier acquired from the message (step S415), and notifies the message distributing unit 5344 of the entire message (step S420). .. Since the transmission source service identifier and the transmission destination service identifier are different, the message determination unit 5343 transmits the message to the service execution unit 532-2 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 the message to the service execution unit 532-2 instructed by the message determination unit 5343 (step S430).

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

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

図13は、受信装置4の放送マネージドアプリのサービスと連携端末5のウェブサービスとの間でセッションの識別子に基づきメッセージを送信する場合のメッセージの設定例を示す図である。図13(a)は、接続登録メッセージM31を、図13(b)は接続登録確認メッセージM32を、図13(c)は接続解除メッセージM33を、図13(d)は接続解除確認メッセージM34を、図13(e)はメッセージ本体が設定されたメッセージM35を示す。 FIG. 13 is a diagram showing a message setting example when a message is transmitted between the service of the broadcast managed application of the receiving device 4 and the web service of the cooperation terminal 5 based on the session identifier. 13A shows a connection registration message M31, FIG. 13B shows a connection registration confirmation message M32, FIG. 13C shows a connection release message M33, and FIG. 13D shows a connection release confirmation message M34. 13E 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 the type attribute. By this type attribute, it is possible to identify whether the message is registered (publish)/confirmed registration (subscribe)/disconnected (unpublish)/disconnected confirmation (unsubscribe)/message body (body).

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

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

図14は、接続登録処理のシーケンスを示す。受信装置4のサービス実行部421は、接続登録メッセージを発行する(ステップS505)。サービス実行部421が発行した接続登録メッセージには、接続登録メッセージであることを示す「publish」が設定されたtype属性と、送信先のサービスの識別子が設定されたdst属性とが含まれる。送信元サービス設定部4235は、このメッセージに、送信元のサービスの識別子を設定したsrc属性を追加する。送信元サービス設定部4235は、src属性が追加された接続登録メッセージをメッセージ受信部4232に出力する(ステップS510)。 FIG. 14 shows a sequence of connection registration processing. The service execution unit 421 of the reception 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 that it is a 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 the 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 added with the src attribute to the message receiving 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 identifier of the service of the transmission destination and the identifier of the service of the transmission source set in the connection registration message (step S515), and the message distribution unit 4234 receives the entire connection registration message. Notify (step S520). The message determination unit 4233 notifies the message distribution unit 4234 to transmit the message to the cooperation terminal 5 because the service identifiers of the transmission destination and the transmission source are the same (step S525). The message distribution unit 4234 outputs the 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 the message from the terminal cooperation unit 531 (step S540). The message receiving unit 5342 outputs the received message to the message determining unit 5343 (step S545). When the message determination unit 5343 determines that the message is a connection registration message based on the type attribute of the received message, it issues a subscribe_ID and stores it in association with the identifiers of the service of the transmission source and the transmission destination. A new subscribe_ID may be issued each time the connection is released, or a predetermined subscribe_ID may be assigned to the pair of the transmission source and the transmission destination. Furthermore, the message determination unit 5343 generates a connection registration confirmation message. The connection registration confirmation message includes the type attribute in which "subscribe" indicating the connection registration confirmation message is set, the issued subscribe_ID, and the dst attribute and 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 the message distribution unit 5344 to transmit the message to the reception device 4 (step S550).

メッセージ分配部5344は、接続登録確認メッセージを端末連携部531に出力し(ステップS555)、端末連携部531は、接続登録確認メッセージを、通信入出力部511を介して受信装置4に送信する(ステップS560)。 The message distribution unit 5344 outputs the 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 reception device 4 outputs the message received from the cooperation terminal 5 to the terminal cooperation unit 412. The message receiving unit 4232 receives the message from the terminal cooperation unit 412 (step S565). The message receiving unit 4232 determines from the type attribute of the received message that the message is a connection registration confirmation message. The message receiving unit 4232 outputs the subscribe_ID acquired from the connection registration confirmation message and the service identifiers of the transmission source and the transmission destination to the message determination unit 4233 (step S570). The message determination unit 4233 registers the subscribe_ID and the identifiers of the service of the transmission source and the transmission destination in association with each other. Further, the message receiving unit 4232 notifies the service execution unit 421 executing the broadcast managed application identified by the service identifier of the transmission destination of the subscription_ID of the connection registration confirmation message (step S575).

図15は、メッセージ送信処理のシーケンスを示す。受信装置4のサービス実行部421は、メッセージ本体を設定したメッセージを発行する(ステップS605)。メッセージには、メッセージ本体であることを示す「body」が設定されたtype属性と、送信先のサービスに応じたsubscribe_IDと、メッセージ内容とが含まれる。送信元サービス設定部4235は、サービス実行部421から受信したメッセージに送信元のサービスの識別子を設定する。なお、送信元のサービスの識別子の設定は行わなくてもよい。送信元サービス設定部4235は、送信元のサービスの識別子が設定されたメッセージを、メッセージ受信部4232に出力する(ステップS610)。 FIG. 15 shows a sequence of message transmission processing. The service execution unit 421 of the reception device 4 issues a message in which the message body is set (step S605). The message includes the type attribute in which “body” indicating the message body is set, the subscribe_ID according to the service of the transmission destination, 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. The identifier of the service of the transmission source may not be set. The transmission source service setting unit 4235 outputs the message in which the identifier of the transmission source service is set to the message receiving 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 the message to the cooperation terminal 5 because the transmission destination and the transmission source service identifier stored in association 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 the message from the terminal cooperation unit 531 (step S640). When the message receiving unit 5342 determines that the type of the received message is the message body, it outputs the subscribe_ID read from the message to the message determining unit 5343 (step S645), and outputs the message to the message distributing 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 service identifier of the transmission destination because the transmission source and the transmission destination service identifiers corresponding to the subscribe_ID are the same. The message distribution unit 5344 is instructed to do so (step S655). The message distribution unit 5344 outputs the message to the service execution unit 532 instructed by the message determination unit 5343 (step S660).

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

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

すなわち、接続登録メッセージ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 the type attribute. Also, the connection registration message M41, the connection registration confirmation message M42, the connection release message M43, and the connection release confirmation message M44 are set with the identifier of the service of the transmission source (src) and the identifier of the service of the transmission destination (dst). The registration confirmation message M42 and the connection release confirmation message M44 further describe the identifier (subscribe_ID) of the 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.

図17及び図18は、連携端末5のウェブアプリ間でセッションの識別子に基づきメッセージを送信する場合のシーケンス図である。このシーケンスは、図14及び図15に示すシーケンスと基本的な手順の差異はない。ただし、受信装置4と連携端末5との間でメッセージを送信する場合、連携端末5は、メッセージ分配部5344から端末連携部531を経由して送受信を行うが、ウェブアプリ間の場合は、メッセージ分配部5344から連携端末5内のメッセージ受信部5342にメッセージを送信し、以降、同様の処理が実行される。 17 and 18 are sequence diagrams when a message is transmitted between the web applications of the cooperation terminal 5 based on the session identifier. This sequence is the same as the sequences shown in FIGS. 14 and 15 in the basic procedure. However, when transmitting a message between the receiving device 4 and the cooperation terminal 5, the cooperation terminal 5 transmits and receives 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.

図17は、連携端末5のウェブアプリ間の接続登録処理のシーケンスを示す。連携端末5のサービス実行部532−1は、接続登録メッセージを発行する(ステップS705)。サービス実行部532−1が発行した接続登録メッセージには、接続登録メッセージであることを示す「publish」が設定されたtype属性と、サービス実行部532−2により実行される送信先のサービスの識別子が設定されたdst属性とが含まれる。送信元サービス設定部5345は、このメッセージに、送信元のサービスの識別子を設定したsrc属性を追加する。送信元サービス設定部5345は、src属性が追加された接続登録メッセージをメッセージ受信部5342に出力する(ステップS710)。 FIG. 17 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 with is set. The transmission source service setting unit 5345 adds the 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 added with the src attribute to the message receiving 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 service of the transmission destination and the identifier of the service of the transmission source set in the connection registration message (step S715), and the message distribution unit 5344 receives the entire connection registration message. Notify (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 distributor 5344 outputs the connection registration message to the message receiver 5342 (step S730).

メッセージ受信部5342は、受信したメッセージをメッセージ判定部5343に出力する(ステップS735)。メッセージ判定部5343は、受信したメッセージのtypeにより接続登録メッセージであると判断すると、subscribe_IDを発行し、送信元及び送信先のサービスの識別子と対応付けて記憶する。さらに、メッセージ判定部5343は、接続登録確認メッセージを生成する。メッセージ判定部5343は、生成した接続登録確認メッセージをメッセージ分配部5344に通知し、メッセージ受信部5342へ送信するよう指示する(ステップS740)。メッセージ分配部5344は、接続登録確認メッセージをメッセージ受信部5342に出力する(ステップS745)。 The message receiving unit 5342 outputs the received message to the message determining unit 5343 (step S735). When the message determination unit 5343 determines that the message is a connection registration message based on the type of the received message, it issues a subscribe_ID and stores it in association with the identifiers of the service of the transmission source and the transmission destination. Furthermore, the message determination unit 5343 generates a connection registration confirmation message. The message determination unit 5343 notifies the message connection unit 5344 of the generated connection registration confirmation message and instructs the message distribution unit 5344 to transmit the message to the message reception unit 5342 (step S740). The message distributor 5344 outputs the connection registration confirmation message to the message receiver 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 service of the transmission source and the transmission destination to the message determination unit 5343 (step S750). The message determination unit 5343 associates and registers the subscribe_ID and the identifiers of the service of the transmission source and the transmission destination. Furthermore, the message reception unit 5342 notifies the service registration unit 532-1 of the connection registration confirmation message to the service execution unit 532-1 executing the web application specified by the identifier of the service of the transmission destination (step S755).

図18は、連携端末5のウェブアプリ間のメッセージ送信処理のシーケンスを示す。連携端末5のサービス実行部532−1は、メッセージ本体を設定したメッセージを発行する(ステップS805)。送信元サービス設定部5345は、サービス実行部532−1から受信したメッセージに送信元のサービスの識別子を設定する。なお、送信元のサービスの識別子の設定は行わなくてもよい。送信元サービス設定部5345は、送信元のサービスの識別子が設定されたメッセージを、メッセージ受信部5342に出力する(ステップS810)。 FIG. 18 shows a sequence of message transmission processing between web applications of the cooperation terminal 5. The service execution unit 532-1 of the cooperation terminal 5 issues a message in which the message body is set (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. The identifier of the service of the transmission source may not be set. The transmission source service setting unit 5345 outputs the message in which the identifier of the transmission source service is set to the message receiving 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 receiving unit 5342 notifies the message determining unit 5343 of the subscribe_ID set in the message (step S815), and notifies the message distributing unit 5344 of the entire message (step S820). Since the message determination unit 5343 has different destination and source service identifiers stored in association with the subscribe_ID, the service execution unit 532-2 that executes the web service specified by the destination service identifier. The message distribution unit 5344 is notified to transmit the message to (step S825). The message distribution unit 5344 outputs the message to the service execution unit 532-2 instructed by the message determination unit 5343 (step S830).

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

以上説明した実施形態によれば、放送通信連携システム1は、受信装置4と、連携端末5(端末装置)とを有する。受信装置4は、放送信号に含まれるコンテンツデータを出力する処理と、放送信号と連携した動作により複数のサービスを提供するアプリケーション(放送マネージドアプリ)を実行する処理とを実行する。連携端末5は、個別のサービスを提供するアプリケーションであるサービスアプリケーション(サービスアプリ、ウェブアプリ)を複数並列で実行させる。受信装置4が実行するアプリケーションに含まれるサービスの機能と、サービスアプリケーションにより提供されるサービスの機能とが連携して、ユーザにサービスを提供する。 According to the embodiment described above, the broadcast 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 the 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 in cooperation with the broadcast signal. The cooperation terminal 5 executes a plurality of service applications (service applications, web applications) that are applications that provide individual services in parallel. The service function included in the application executed by the receiving device 4 and the service function provided by the service application cooperate with each other to provide the service to the user.

連携端末5は、サービスアプリケーションを複数並列で実行させる連携アプリ実行制御部53と、受信装置4と通信する通信入出力部511(通信部)とを備える。連携アプリ実行制御部53は、複数のサービス実行部532と、メッセージ判定部5343と、メッセージ分配部5344と、送信元サービス設定部5345とを有する。各サービス実行部532は、受信したメッセージを用いてサービスアプリケーションを実行する。メッセージ判定部5343は、受信装置4において実行されているアプリケーションから発行され、通信入出力部511が受信したメッセージに設定されている送信先の情報に基づいて、メッセージの宛先のサービス実行部532を判定する。メッセージ分配部5344は、メッセージ判定部5343が判定した宛先のサービス実行部532にメッセージを出力する。 The cooperation terminal 5 includes a cooperation application execution control unit 53 that executes a plurality of service applications in parallel, and a communication input/output unit 511 (communication unit) that communicates with the reception device 4. The cooperative application execution control unit 53 includes a plurality of service execution units 532, a message determination unit 5343, a message distribution unit 5344, and a transmission source service setting unit 5345. Each service execution unit 532 executes a service application using the received message. The message determination unit 5343 issues a message destination service execution unit 532 based on the destination information set in the message received by the communication input/output unit 511, which is issued from the application executed in the reception device 4. judge. The message distribution unit 5344 outputs the message to the service execution unit 532 of the destination determined by the message determination unit 5343.

また、メッセージ判定部5343は、サービス実行部532が発行したメッセージの宛先を判定する。メッセージ分配部5344は、サービス実行部532により発行されたメッセージの宛先が受信装置4であるとメッセージ判定部5343により判定された場合、当該メッセージを通信入出力部511により受信装置4に送信する。また、メッセージ分配部5344は、サービス実行部532により発行されたメッセージの宛先が他のサービス実行部532であるとメッセージ判定部5343により判定された場合、当該メッセージを宛先と判定された他のサービス実行部532に出力する。 Further, the message determination unit 5343 determines the destination of the message issued by the service execution unit 532. When the message determination unit 5343 determines that the destination of the message issued by the service execution unit 532 is the reception device 4, the message distribution unit 5344 transmits the message to the reception device 4 by the communication input/output unit 511. When the message determination unit 5343 determines that the destination of the message issued by the service execution unit 532 is the other service execution unit 532, the message distribution unit 5344 determines that the other service determined as the destination of the message. It is output to the execution unit 532.

なお、サービス実行部532は、受信装置4において実行されるアプリケーションが提供するサービスの識別子又は他のサービス実行部532において実行されるサービスアプリケーションが提供するサービスの識別子を送信先の情報に設定したメッセージを発行してもよい。送信元サービス設定部5345は、サービス実行部532が発行したメッセージの送信元の情報に、当該メッセージを発行したサービス実行部532において実行されるサービスアプリケーションが提供するサービスの識別子を設定する。このとき、メッセージ判定部5343は、送信元サービス設定部5345により送信元の情報が設定されたメッセージから取得した送信元のサービスの識別子及び送信先のサービスの識別子に基づき、メッセージの宛先が受信装置4であるか他のサービス実行部532であるかを判定してもよい。メッセージ分配部5344は、メッセージ判定部5343により判定された宛先に、サービス実行部532により発行されたメッセージを出力する。 Note that the service execution unit 532 sets the identifier of the service provided by the application executed in the reception device 4 or the identifier of the service provided by the service application executed in the other service execution unit 532 in the destination information. May be issued. The transmission source service setting unit 5345 sets, in the information of the transmission source of the message issued by the service execution unit 532, the identifier of the service provided by the service application executed in the service execution unit 532 that issued the message. At this time, the message determination unit 5343 determines that the destination of the message is the receiving device based on the identifier of the service of the transmission source and the identifier of the service of the transmission destination acquired from the message in which the information of the transmission source is set by the transmission source service setting unit 5345. It may be determined whether the number is 4 or another service execution unit 532. The message distribution unit 5344 outputs the message issued by the service execution unit 532 to the destination determined by the message determination unit 5343.

また、連携アプリ実行制御部53は、サービス実行部532と受信装置4との間、又は、異なるサービス実行部532の間で通信チャンネルの確立及び解除を行う端末連携部531をさらに備えてもよい。この場合、メッセージ判定部5343は、受信装置4から受信したメッセージに設定されている通信チャンネルの識別情報に基づいてメッセージの宛先となるサービス実行部532を判定する処理と、サービス実行部532から発行されたメッセージに設定されている通信チャンネルの識別情報に基づいてメッセージの宛先が他のサービス実行部532であるか受信装置4であるかを判定する処理との少なくとも一方を行う。メッセージ分配部5344は、メッセージ判定部5343により判定された宛先に、サービス実行部532により発行されたメッセージを出力する。 Further, the cooperative application execution control unit 53 may further include a terminal cooperation unit 531 that establishes and releases a communication channel between the service execution unit 532 and the reception device 4 or between different service execution units 532. .. In this case, the message determination unit 5343 determines the service execution unit 532 that is the destination of the message based on the communication channel identification information set in the message received from the reception device 4, and the service execution unit 532. At least one of a process of determining whether the destination of the message is the other service execution unit 532 or the receiving device 4 is performed based on the identification information of the communication channel set in the received message. The message distribution unit 5344 outputs the message issued by the service execution unit 532 to the destination determined by the message determination unit 5343.

また、受信装置4は、放送信号を受信し、放送信号に含まれるコンテンツデータを出力する受信機機能部と、アプリケーションに含まれる複数のサービスの機能を複数並列で実行させるアプリ実行部409と、連携端末5と通信する通信入出力部406(通信部)とを有する。受信機機能部は、例えば、放送受信部401、分離部402、映像復号部403、音声復号部404、データ放送実行部405、リモコン入力制御部407、電源制御部408、映像合成部413、映像表示部414、音声合成部415、音声出力部416などである。アプリ実行部409は、サービス実行部421と、メッセージ判定部4233と、メッセージ分配部4234と、送信元サービス設定部4235を備える。サービス実行部421はそれぞれ、受信機機能部から取得した情報と、受信したメッセージの記述とを用いて、アプリケーションに含まれるサービスの機能のそれぞれを実行する。メッセージ判定部4233は、連携端末5において実行されているサービスアプリケーションから発行され、通信入出力部406が受信したメッセージに設定されている送信先の情報に基づいて、メッセージの宛先のサービス実行部421を判定する。メッセージ分配部4234は、メッセージ判定部4233により判定された宛先のサービス実行部421にメッセージを出力する。 In addition, the receiving device 4 receives a broadcast signal and outputs a content data included in the broadcast signal, a receiver function unit, an application execution unit 409 that executes a plurality of functions of a plurality of services included in the application in parallel, It has a communication input/output unit 406 (communication unit) that communicates with the cooperation terminal 5. The receiver function unit includes, for example, the broadcast reception unit 401, the separation unit 402, the video decoding unit 403, the audio decoding unit 404, the data broadcast execution unit 405, the remote control input control unit 407, the power supply control unit 408, the video synthesis unit 413, and the video. A display unit 414, a voice synthesis unit 415, a voice output unit 416, and the like. The application execution unit 409 includes a service execution unit 421, a message determination unit 4233, a message distribution unit 4234, and a transmission source service setting unit 4235. The service execution unit 421 executes each function of the service included in the application using the information acquired from the receiver function unit and the description of the received message. The message determination unit 4233 is issued from the service application executed in the cooperation terminal 5, and based on the information of the transmission destination set in the message received by the communication input/output unit 406, the service execution unit 421 of the message destination. To judge. The message distribution unit 4234 outputs the message to the service execution unit 421 of the destination determined by the message determination unit 4233.

また、メッセージ判定部4233は、サービス実行部421が発行したメッセージの宛先を判定する。メッセージ分配部4234は、サービス実行部421により発行されたメッセージの宛先が連携端末5であるとメッセージ判定部4233により判定された場合、当該メッセージを通信入出力部406により連携端末5に送信する。また、メッセージ分配部4234は、サービス実行部421により発行されたメッセージの宛先が他のサービス実行部421であるとメッセージ判定部4233により判定された場合、当該メッセージを宛先と判定された他のサービス実行部421に出力する。 Further, the message determination unit 4233 determines the destination of the message issued by the service execution unit 421. When the message determination unit 4233 determines that the destination of the message issued by the service execution unit 421 is the cooperation terminal 5, the message distribution unit 4234 transmits the message to the cooperation terminal 5 by the communication input/output unit 406. Further, when the message determination unit 4233 determines that the destination of the message issued by the service execution unit 421 is the other service execution unit 421, the message distribution unit 4234 determines the other service determined to be the destination of the message. It is output to the execution unit 421.

なお、サービス実行部421は、連携端末5において実行されるサービスアプリケーションにより提供されるサービスの識別子又は他のサービス実行部421において実行されるサービスの識別子を送信先の情報に設定したメッセージを発行してもよい。送信元サービス設定部4235は、サービス実行部421が発行したメッセージの送信元の情報に、当該メッセージを発行したサービス実行部421において実行されるサービスの識別子を設定する。このとき、メッセージ判定部4233は、送信元サービス設定部4235により送信元の情報が設定されたメッセージから取得した送信元のサービスの識別子及び送信先のサービスの識別子に基づき、メッセージの宛先が連携端末5であるか他のサービス実行部421であるかを判定してもよい。メッセージ分配部4234は、メッセージ判定部4233により判定された宛先にサービス実行部421により発行されたメッセージを出力する。 The service execution unit 421 issues a message in which the identifier of the service provided by the service application executed in the cooperation terminal 5 or the identifier of the service executed in the other service execution unit 421 is set in the destination information. May be. The transmission source service setting unit 4235 sets, in the information of the transmission source of the message issued by the service execution unit 421, the identifier of the service executed in the service execution unit 421 that issued the message. At this time, the message determination unit 4233 determines that the destination of the message is based on the identifier of the service of the transmission source and the identifier of the service of the transmission destination acquired from the message in which the information of the transmission source is set by the transmission source service setting unit 4235. It may be determined whether it is 5 or another service execution unit 421. The message distribution unit 4234 outputs the message issued by the service execution unit 421 to the destination determined by the message determination unit 4233.

また、受信装置4は、サービス実行部421と連携端末5との間、又は、異なるサービス実行部421の間で通信チャンネルの確立及び解除を行う端末連携部412をさらに備えてもよい。この場合、メッセージ判定部4233は、連携端末5から受信したメッセージに設定されている通信チャンネルの識別情報に基づいてメッセージの宛先となるサービス実行部421を判定する処理と、サービス実行部421から発行されたメッセージに設定されている通信チャンネルの識別情報に基づいてメッセージの宛先が他のサービス実行部421であるか連携端末5であるかを判定する処理との少なくとも一方を行う。メッセージ分配部4234は、メッセージ判定部4233により判定された宛先に、サービス実行部421により発行されたメッセージを出力する。 The receiving device 4 may further include a terminal cooperation unit 412 that establishes and releases a communication channel between the service execution unit 421 and the cooperation terminal 5 or between different service execution units 421. In this case, the message determination unit 4233 determines the service execution unit 421 that is the destination of the message based on the communication channel identification information set in the message received from the cooperation terminal 5, and issues the service execution unit 421. At least one of the processing for determining whether the destination of the message is the other service execution unit 421 or the cooperation terminal 5 is performed based on the communication channel identification information set in the message. The message distribution unit 4234 outputs the message issued by the service execution unit 421 to the destination determined by the message determination unit 4233.

以上説明した実施形態によれば、ハイブリッドキャストなどの放送通信連携サービスにおいて、放送マネージドアプリのように受信装置で実行されるアプリが1個(サービス提供者が一つ)、連携端末で実行されるアプリが複数個(サービス提供者が複数)ある場合でも、受信装置において実行される1個のアプリに対して連携端末において実行される複数個のアプリが連携することができる。これにより、現行のハイブリッドキャストの運用において、受信装置の実装を変えることなく、連携端末に実装するコンパニオンアプリ(端末側連携アプリ)を改修するだけで、複数のマルチスクリーンサービスを並列して実行することが可能になる。 According to the embodiments described above, in a broadcasting/communication cooperation service such as a hybrid cast, one application (one service provider) is executed by a receiving device like a broadcast managed application, and is executed by a cooperation terminal. Even when there are a plurality of applications (a plurality of service providers), a plurality of applications executed in the cooperation terminal can cooperate with one application executed in the receiving device. As a result, in the current hybrid cast operation, multiple multi-screen services can be executed in parallel by simply modifying the companion application (terminal-side cooperation application) installed on the cooperation terminal without changing the mounting of the receiving device. It will be possible.

また、メッセージの送信時に、メッセージ本体に送信先のサービス識別子を記述するだけで、受信装置または連携端末のいずれが送信先として適切であるかを判定し、送信することができる。これにより、アプリの制作者は、装置内と装置外を意識せず、サービス名を設定するような命令を記述するだけで、適切なアプリにメッセージを送信することができる。 Further, when the message is transmitted, it is possible to determine which of the receiving device and the cooperation terminal is suitable as the transmission destination by simply describing the service identifier of the transmission destination in the message body and transmit the message. As a result, the app creator can send a message to an appropriate app simply by writing a command for setting a service name without being aware of the inside and outside of the device.

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

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

1…放送通信連携システム
2…放送送出装置
3…サービスサーバ
4…受信装置
5…連携端末
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…通信入出力部
531…端末連携部
532−1〜532−3…サービス実行部
533…サービス実行管理部
534…メッセージ制御部
4231…サービス識別管理部
4232…メッセージ受信部
4233…メッセージ判定部
4234…メッセージ分配部
4235…送信元サービス設定部
5341…サービス識別管理部
5342…メッセージ受信部
5343…メッセージ判定部
5344…メッセージ分配部
5345…送信元サービス設定部
1... Broadcast/communication cooperation system 2... Broadcast transmission device 3... Service server 4... Receiving device 5... Cooperation terminal 51... Hardware part 52... OS part 53... Cooperation app execution control part 54... Other app execution control part 401... Broadcast reception Unit 402... Separation 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...Sound synthesis unit 416...Sound output unit 421...Service execution unit 422...Service execution management unit 423...Message control unit 511...Communication input/output Unit 531... Terminal cooperation units 532-1 to 532-3... Service execution unit 533... Service execution management unit 534... Message control unit 4231... Service identification management unit 4232... Message receiving unit 4233... Message determination unit 4234... Message distribution unit 4235 ... transmission source service setting unit 5341... service identification management unit 5342... message receiving unit 5343... message determination unit 5344... message distribution unit 5345... transmission source service setting unit

Claims (14)

個別のサービスを提供するアプリケーションであるサービスアプリケーションを複数並列で実行させる連携アプリ実行制御部と、
放送信号に含まれるコンテンツデータを出力する処理及び前記放送信号と連携した動作により複数のサービスを提供するアプリケーションを実行する処理を行う受信装置と通信する通信部とを備え、
前記連携アプリ実行制御部は、
受信したメッセージを用いて前記サービスアプリケーションを実行する複数のサービス実行部と、
前記受信装置において実行されている前記アプリケーションから発行され、前記通信部が受信したメッセージに設定されている送信先の情報に基づいて、前記メッセージの宛先の前記サービス実行部を判定するメッセージ判定部と、
前記メッセージ判定部により判定された宛先の前記サービス実行部に前記メッセージを出力するメッセージ分配部とを備える、
ことを特徴とする端末装置。
A cooperative application execution control unit that executes a plurality of service applications, which are applications that provide individual services, in parallel,
A communication unit that communicates with a receiving device that performs a process of outputting content data included in a broadcast signal and a process of executing an application that provides a plurality of services by an operation in cooperation with the broadcast signal,
The cooperation application execution control unit,
A plurality of service execution units that execute the service application using the received message;
A message determination unit that determines the service execution unit that is the destination of the message, based on the information of the transmission destination issued from the application executed in the reception device and set in the message received by the communication unit. ,
A message distribution unit that outputs the message to the service execution unit of the destination determined by the message determination unit,
A terminal device characterized by the above.
前記メッセージ分配部は、前記サービス実行部により発行されたメッセージの宛先が前記受信装置であると前記メッセージ判定部により判定された場合、当該メッセージを前記通信部により前記受信装置へ送信する、
ことを特徴とする請求項1に記載の端末装置。
When the message determination unit determines that the destination of the message issued by the service execution unit is the reception device, the message distribution unit transmits the message to the reception device by the communication unit,
The terminal device according to claim 1, wherein:
前記メッセージ分配部は、前記サービス実行部により発行されたメッセージの宛先が他の前記サービス実行部であると前記メッセージ判定部により判定された場合、当該メッセージを宛先と判定された他の前記サービス実行部に出力する、
ことを特徴とする請求項1又は請求項2に記載の端末装置。
When the message determination unit determines that the destination of the message issued by the service execution unit is another service execution unit, the message distribution unit executes the other service determined to be the message. Output to
The terminal device according to claim 1 or 2, characterized in that.
前記サービス実行部は、前記受信装置において実行される前記アプリケーションが提供するサービスの識別子又は他の前記サービス実行部において実行される前記サービスアプリケーションが提供するサービスの識別子を送信先の情報に設定したメッセージを発行し、
前記連携アプリ実行制御部は、
前記サービス実行部により発行された前記メッセージの送信元の情報に、当該メッセージを発行した前記サービス実行部において実行される前記サービスアプリケーションが提供するサービスの識別子を設定する送信元サービス設定部をさらに備える、
ことを特徴とする請求項1から請求項3のいずれか一項に記載の端末装置。
A message in which the service execution unit sets the identifier of the service provided by the application executed in the receiving device or the identifier of the service provided by the service application executed in the other service execution unit in the destination information. Is issued
The cooperation application execution control unit,
The information processing system further includes a transmission source service setting unit that sets, in the information of the transmission source of the message issued by the service execution unit, an identifier of a service provided by the service application executed by the service execution unit that issued the message. ,
The terminal device according to claim 1, wherein the terminal device is a terminal device.
前記メッセージ判定部は、前記送信元サービス設定部により送信元の情報が設定された前記メッセージから取得した送信元のサービスの識別子及び送信先のサービスの識別子に基づき、前記メッセージの宛先が前記受信装置であるか他の前記サービス実行部であるかを判定し、
前記メッセージ分配部は、前記メッセージ判定部により判定された宛先に前記サービス実行部により発行された前記メッセージを出力する、
ことを特徴とする請求項4に記載の端末装置。
The message determination unit, based on the identifier of the service of the transmission source and the identifier of the service of the transmission destination acquired from the message in which the information of the transmission source is set by the transmission source service setting unit, the destination of the message is the receiving device. Or other service execution unit,
The message distribution unit outputs the message issued by the service execution unit to the destination determined by the message determination unit,
The terminal device according to claim 4, wherein:
前記連携アプリ実行制御部は、
前記サービス実行部と前記受信装置との間、又は、異なる前記サービス実行部の間で通信チャンネルの確立及び解除を行う端末連携部をさらに備え、
前記メッセージ判定部は、前記受信装置から受信したメッセージに設定されている前記通信チャンネルの識別情報に基づいて前記メッセージの宛先となる前記サービス実行部を判定する処理と、前記サービス実行部から発行されたメッセージに設定されている前記通信チャンネルの識別情報に基づいて前記メッセージの宛先が他の前記サービス実行部であるか前記受信装置であるかを判定する処理との少なくとも一方を行い、
前記メッセージ分配部は、前記メッセージ判定部により判定された宛先に前記メッセージを出力する、
ことを特徴とする請求項1に記載の端末装置。
The cooperation application execution control unit,
Between the service execution unit and the receiving device, or further, a terminal cooperation unit that establishes and releases a communication channel between different service execution units,
The message determination unit determines a service execution unit that is a destination of the message based on identification information of the communication channel set in the message received from the reception device, and is issued from the service execution unit. Performing at least one of a process of determining whether the destination of the message is the other service execution unit or the receiving device based on the identification information of the communication channel set in the message,
The message distribution unit outputs the message to the destination determined by the message determination unit,
The terminal device according to claim 1, wherein:
放送信号を受信し、前記放送信号に含まれるコンテンツデータを出力する受信機機能部と、
アプリケーションに含まれる複数のサービスの機能を並列で実行させるアプリ実行部と、
個別のサービスを提供するアプリケーションであるサービスアプリケーションを複数並列で実行する端末装置と通信する通信部とを備え、
前記アプリ実行部は、
前記受信機機能部から取得した情報と、受信したメッセージとを用いて、前記アプリケーションに含まれる複数のサービスの機能のそれぞれを実行する複数のサービス実行部と、
前記端末装置において実行されている前記サービスアプリケーションから発行され、前記通信部が受信したメッセージに設定されている送信先の情報に基づいて、前記メッセージの宛先の前記サービス実行部を判定するメッセージ判定部と、
前記メッセージ判定部により判定された宛先の前記サービス実行部に前記メッセージを出力するメッセージ分配部とを備え、
前記メッセージ分配部は、前記サービス実行部により発行されたメッセージの宛先が前記端末装置であると前記メッセージ判定部により判定された場合、当該メッセージを前記通信部により前記端末装置に送信する、
ことを特徴とする受信装置。
A receiver function unit that receives a broadcast signal and outputs content data included in the broadcast signal,
An application execution unit that executes the functions of multiple services included in the application in parallel,
A communication unit that communicates with a terminal device that executes a plurality of service applications that are applications that provide individual services in parallel;
The application execution unit,
A plurality of service execution units that execute respective functions of a plurality of services included in the application using the information acquired from the receiver function unit and the received message;
A message determination unit that determines the service execution unit that is the destination of the message, based on the information of the destination that is issued from the service application executed in the terminal device and that is set in the message received by the communication unit. When,
Bei example a message distribution unit for outputting the message to the service execution unit of the destination which is determined by the message determination unit,
When the message determination unit determines that the destination of the message issued by the service execution unit is the terminal device, the message distribution unit transmits the message to the terminal device by the communication unit,
RECEIVER you wherein a.
放送信号を受信し、前記放送信号に含まれるコンテンツデータを出力する受信機機能部と、
アプリケーションに含まれる複数のサービスの機能を並列で実行させるアプリ実行部と、
個別のサービスを提供するアプリケーションであるサービスアプリケーションを複数並列で実行する端末装置と通信する通信部とを備え、
前記アプリ実行部は、
前記受信機機能部から取得した情報と、受信したメッセージとを用いて、前記アプリケーションに含まれる複数のサービスの機能のそれぞれを実行する複数のサービス実行部と、
前記端末装置において実行されている前記サービスアプリケーションから発行され、前記通信部が受信したメッセージに設定されている送信先の情報に基づいて、前記メッセージの宛先の前記サービス実行部を判定するメッセージ判定部と、
前記メッセージ判定部により判定された宛先の前記サービス実行部に前記メッセージを出力するメッセージ分配部とを備え、
前記メッセージ分配部は、前記サービス実行部により発行されたメッセージの宛先が他の前記サービス実行部であると前記メッセージ判定部により判定された場合、当該メッセージを宛先と判定された他の前記サービス実行部に出力する、
ことを特徴とする受信装置。
A receiver function unit that receives a broadcast signal and outputs content data included in the broadcast signal,
An application execution unit that executes the functions of multiple services included in the application in parallel,
A communication unit that communicates with a terminal device that executes a plurality of service applications that are applications that provide individual services in parallel;
The application execution unit,
A plurality of service execution units that execute respective functions of a plurality of services included in the application using the information acquired from the receiver function unit and the received message;
A message determination unit that determines the service execution unit that is the destination of the message, based on the information of the destination that is issued from the service application executed in the terminal device and that is set in the message received by the communication unit. When,
A message distribution unit that outputs the message to the service execution unit of the destination determined by the message determination unit,
When the message determination unit determines that the destination of the message issued by the service execution unit is another service execution unit, the message distribution unit executes the other service determined to be the message. Output to
RECEIVER you wherein a.
前記サービス実行部は、前記サービスアプリケーションにより提供されるサービスの識別子又は他の前記サービス実行部において実行されるサービスの識別子を送信先の情報に設定したメッセージを発行し、
前記アプリ実行部は、
前記サービス実行部により発行された前記メッセージの送信元の情報に、当該メッセージを発行した前記サービス実行部において実行されるサービスの識別子を設定する送信元サービス設定部をさらに備える、
ことを特徴とする請求項7又は請求項に記載の受信装置。
The service execution unit issues a message in which the identifier of the service provided by the service application or the identifier of the service executed by the other service execution unit is set in the destination information,
The application execution unit,
The service execution unit further includes a transmission source service setting unit that sets the identifier of the service executed in the service execution unit that issued the message, in the information of the transmission source of the message issued by the service execution unit.
Receiver according to claim 7 or claim 8, characterized in that.
前記メッセージ判定部は、前記送信元サービス設定部により送信元の情報が設定された前記メッセージから取得した送信元のサービスの識別子及び送信先のサービスの識別子に基づき、前記メッセージの宛先が前記端末装置であるか他の前記サービス実行部であるかを判定し、
前記メッセージ分配部は、前記メッセージ判定部により判定された宛先に前記サービス実行部により発行された前記メッセージを出力する、
ことを特徴とする請求項に記載の受信装置。
The message determination unit determines that the destination of the message is the terminal device based on the identifier of the service of the transmission source and the identifier of the service of the transmission destination acquired from the message in which the information of the transmission source is set by the transmission source service setting unit. Or other service execution unit,
The message distribution unit outputs the message issued by the service execution unit to the destination determined by the message determination unit,
The receiving device according to claim 9 , wherein the receiving device is a receiving device.
前記サービス実行部と前記端末装置との間、又は、異なる前記サービス実行部の間で通信チャンネルの確立及び解除を行う端末連携部をさらに備え、
前記メッセージ判定部は、前記端末装置から受信したメッセージに設定されている前記通信チャンネルの識別情報に基づいて前記メッセージの宛先となる前記サービス実行部を判定する処理と、前記サービス実行部から発行されたメッセージに設定されている前記通信チャンネルの識別情報に基づいて前記メッセージの宛先が他の前記サービス実行部であるか前記端末装置であるかを判定する処理との少なくとも一方を行い、
前記メッセージ分配部は、前記メッセージ判定部により判定された宛先に前記メッセージを出力する、
ことを特徴とする請求項7又は請求項8に記載の受信装置。
Between the service execution unit and the terminal device, or further comprises a terminal cooperation unit that establishes and releases a communication channel between different service execution units,
The message determination unit determines a service execution unit that is a destination of the message based on identification information of the communication channel set in the message received from the terminal device, and is issued from the service execution unit. Performing at least one of a process of determining whether the destination of the message is the other service execution unit or the terminal device based on the identification information of the communication channel set in the message,
The message distribution unit outputs the message to the destination determined by the message determination unit,
Receiver according to claim 7 or claim 8, characterized in that.
コンピュータを、
個別のサービスを提供するアプリケーションであるサービスアプリケーションを複数並列で実行させる連携アプリ実行制御手段を具備し、
前記連携アプリ実行制御手段は、
受信したメッセージを用いて前記サービスアプリケーションを実行する複数のサービス実行手段と、
放送信号に含まれるコンテンツデータを出力する処理及び前記放送信号と連携した動作により複数のサービスを提供するアプリケーションを実行する処理を行う受信装置において実行されている前記アプリケーションから発行され、前記受信装置と通信する通信部が受信したメッセージに設定されている送信先の情報に基づいて、前記メッセージの宛先の前記サービス実行手段を判定するメッセージ判定手段と、
前記メッセージ判定手段により判定された宛先の前記サービス実行手段に前記メッセージを出力するメッセージ分配手段とを具備する端末装置として機能させるためのプログラム。
Computer,
It is provided with a cooperative application execution control means for executing a plurality of service applications, which are applications that provide individual services, in parallel,
The cooperation application execution control means,
A plurality of service executing means for executing the service application using the received message;
Issued from the application executed in the receiving device 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 by the operation in cooperation with the broadcast signal. Message determining means for determining the service executing means of the destination of the message based on information of the transmission destination set in the message received by the communicating communication section,
A program for functioning as a terminal device, comprising: a message distribution unit that outputs the message to the service execution unit of the destination determined by the message determination unit.
コンピュータを、
アプリケーションに含まれる複数のサービスの機能を並列で実行させるアプリ実行手段を具備し、
前記アプリ実行手段は、
放送信号を受信し、前記放送信号に含まれるコンテンツデータを出力する受信機機能部から取得した情報と、受信したメッセージとを用いて、前記アプリケーションに含まれる複数のサービスの機能のそれぞれを実行する複数のサービス実行手段と、
個別のサービスを提供するアプリケーションであるサービスアプリケーションを複数並列で実行する端末装置において実行されている前記サービスアプリケーションから発行され、前記端末装置と通信する通信部が受信したメッセージに設定されている送信先の情報に基づいて、前記メッセージの宛先の前記サービス実行手段を判定するメッセージ判定手段と、
前記メッセージ判定手段により判定された宛先の前記サービス実行手段に前記メッセージを出力するメッセージ分配手段とを具備し、
前記メッセージ分配手段は、前記サービス実行手段により発行されたメッセージの宛先が前記端末装置であると前記メッセージ判定手段により判定された場合、当該メッセージを前記通信部により前記端末装置に送信する、
受信装置として機能させるためのプログラム。
Computer,
Equipped with application execution means for executing the functions of multiple services included in the application in parallel,
The application executing means,
Each of the functions of a plurality of services included in the application is executed using information received from a receiver function unit that receives a broadcast signal and outputs content data included in the broadcast signal and the received message. A plurality of service execution means,
Destination set in a message issued from the service application executed in a terminal device that executes a plurality of service applications that are applications that provide individual services in parallel and that is received by a communication unit that communicates with the terminal device Message determining means for determining the service executing means of the destination of the message based on the information of
Message distributing means for outputting the message to the service executing means of the destination determined by the message determining means ,
When the message determination unit determines that the destination of the message issued by the service execution unit is the terminal device, the message distribution unit transmits the message to the terminal device by the communication unit.
A program to function as a receiving device.
コンピュータを、Computer,
アプリケーションに含まれる複数のサービスの機能を並列で実行させるアプリ実行手段を具備し、Equipped with application execution means for executing the functions of multiple services included in the application in parallel,
前記アプリ実行手段は、The application executing means,
放送信号を受信し、前記放送信号に含まれるコンテンツデータを出力する受信機機能部から取得した情報と、受信したメッセージとを用いて、前記アプリケーションに含まれる複数のサービスの機能のそれぞれを実行する複数のサービス実行手段と、Each of the functions of a plurality of services included in the application is executed using information received from a receiver function unit that receives a broadcast signal and outputs content data included in the broadcast signal and the received message. A plurality of service execution means,
個別のサービスを提供するアプリケーションであるサービスアプリケーションを複数並列で実行する端末装置において実行されている前記サービスアプリケーションから発行され、前記端末装置と通信する通信部が受信したメッセージに設定されている送信先の情報に基づいて、前記メッセージの宛先の前記サービス実行手段を判定するメッセージ判定手段と、Destination set in a message issued from the service application executed in a terminal device that executes a plurality of service applications that are applications that provide individual services in parallel and that is received by a communication unit that communicates with the terminal device Message determining means for determining the service executing means of the destination of the message based on the information of
前記メッセージ判定手段により判定された宛先の前記サービス実行手段に前記メッセージを出力するメッセージ分配手段とを具備し、Message distributing means for outputting the message to the service executing means of the destination determined by the message determining means,
前記メッセージ分配手段は、前記サービス実行手段により発行されたメッセージの宛先が他の前記サービス実行手段であると前記メッセージ判定手段により判定された場合、当該メッセージを宛先と判定された他の前記サービス実行手段に出力する、When the message determination unit determines that the destination of the message issued by the service execution unit is another service execution unit, the message distribution unit executes the other service determined to be the message. Output to the means,
受信装置として機能させるためのプログラム。A program to function as a receiving device.
JP2016217384A 2016-11-07 2016-11-07 Terminal device, receiving device, and program Active JP6745198B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016217384A JP6745198B2 (en) 2016-11-07 2016-11-07 Terminal device, receiving device, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016217384A JP6745198B2 (en) 2016-11-07 2016-11-07 Terminal device, receiving device, and program

Publications (2)

Publication Number Publication Date
JP2018078378A JP2018078378A (en) 2018-05-17
JP6745198B2 true JP6745198B2 (en) 2020-08-26

Family

ID=62150953

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016217384A Active JP6745198B2 (en) 2016-11-07 2016-11-07 Terminal device, receiving device, and program

Country Status (1)

Country Link
JP (1) JP6745198B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9032466B2 (en) * 2010-01-13 2015-05-12 Qualcomm Incorporated Optimized delivery of interactivity event assets in a mobile broadcast communication system
US8914832B2 (en) * 2012-12-14 2014-12-16 Sony Corporation Information processing apparatus, information processing method, and program
JP5780611B2 (en) * 2013-09-30 2015-09-16 Kddi株式会社 Image display method, video processing system, portable terminal, and portable terminal operation program

Also Published As

Publication number Publication date
JP2018078378A (en) 2018-05-17

Similar Documents

Publication Publication Date Title
US10771525B2 (en) System and method of discovery and launch associated with a networked media device
JP6276593B2 (en) Receiving apparatus, receiving method, and program
JP6082946B2 (en) Receiving apparatus, receiving method, program, and information processing system
JP5559977B2 (en) Cooperation receiving system and program
EP2775707B1 (en) Information processing device, information processing method
JP6291415B2 (en) Information processing apparatus, portable terminal, information processing method, program, and information processing system
WO2013031556A1 (en) Receiver and reception method
JP2013066160A (en) Receiver
JP2015012561A (en) Display device, information acquisition method and information provision method
KR102532046B1 (en) Receiving device, sending device and data processing method
KR101290977B1 (en) Message transfer method using push server and the system thereby
US11438650B2 (en) Information processing apparatus, information processing method, transmission apparatus, and transmission method
JP6726601B2 (en) Terminal device and program
JP6826865B2 (en) Terminal devices and programs
JP6722566B2 (en) Terminal device and program
JP6861058B2 (en) Terminal devices and programs
JP6770872B2 (en) Terminal devices and programs
JP6745198B2 (en) Terminal device, receiving device, and program
JP6807214B2 (en) Terminal devices, receivers and programs
JP6770871B2 (en) Terminal devices and programs
JPWO2012157753A1 (en) Broadcast communication cooperative receiver
EP1885074A2 (en) Apparatus for receiving data broadcast signal and method of processing the same
JP2021072613A (en) Receiving device and program
JP2017509200A (en) Television program image frame capture device, television program image frame acquisition device, system and method
KR101253759B1 (en) Multimedia message service system and method of controlling the same

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

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200526

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200622

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200803

R150 Certificate of patent or registration of utility model

Ref document number: 6745198

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250