JP7855110B2 - Processing method for server management device - Google Patents
Processing method for server management deviceInfo
- Publication number
- JP7855110B2 JP7855110B2 JP2025056962A JP2025056962A JP7855110B2 JP 7855110 B2 JP7855110 B2 JP 7855110B2 JP 2025056962 A JP2025056962 A JP 2025056962A JP 2025056962 A JP2025056962 A JP 2025056962A JP 7855110 B2 JP7855110 B2 JP 7855110B2
- Authority
- JP
- Japan
- Prior art keywords
- information
- token
- gateway
- authentication code
- code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Description
本発明は、サーバ管理装置によって実行される処理方法に関する。 The present invention relates to a processing method executed by a server management device.
近年、受信機と端末とが連携して、情報を送受信する技術があり、例えば、受信機がウェブサイトから受信した情報を端末へ送信する。 In recent years, technologies have emerged that allow receivers and terminals to work together to send and receive information. For example, a receiver can receive information from a website and then transmit it to the terminal.
上記のように受信機と、端末と、ウェブサイト等のコンテンツを提供するコンテンツ提供装置とが連携して情報を送受信するためには、事前に端末のユーザの識別子と受信機の識別子とを連携させる必要があり、適切に連携処理をすることが望まれる。 As described above, for the receiver, terminal, and content provider (such as a website) to cooperate in sending and receiving information, it is necessary to link the terminal's user identifier with the receiver's identifier beforehand, and it is desirable that this linking process be carried out appropriately.
そこで、本発明が解決しようとする課題は、受信機の識別子と、端末の識別子とを連携する処理を適切に実行することができるサーバ管理装置を提供することである。 Therefore, the problem that this invention aims to solve is to provide a server management device that can appropriately perform the process of linking the receiver identifier and the terminal identifier.
実施形態のサーバ管理装置の処理方法は、複数のサーバ装置と送受信可能であるサーバ管理装置によって実行される処理方法であって、コンテンツ提供装置から放送受信装置のメーカを識別する情報を含む認証コードを取得し、放送受信装置のメーカを識別する情報を含む認証コードに基づいて認証コードに対応するサーバ装置を特定し、特定した送信先のサーバ装置に認証コードを含む認証リクエストを送信する。 The processing method of the server management device in this embodiment is a processing method executed by a server management device capable of sending and receiving data with multiple server devices. It involves obtaining an authentication code containing information identifying the manufacturer of the broadcast receiving device from a content provision device, identifying a server device corresponding to the authentication code based on the authentication code containing the information identifying the manufacturer of the broadcast receiving device, and sending an authentication request containing the authentication code to the identified destination server device.
以下、本発明のサーバ装置、放送受信装置、サーバ管理装置、情報連携システム、およびプログラムの実施形態(第1実施形態、第2実施形態)について、図面を参照して、詳細に説明する。 The following describes in detail, with reference to the drawings, embodiments (first and second embodiments) of the server device, broadcast receiving device, server management device, information sharing system, and program of the present invention.
(第1実施形態)
まず、図1を参照して、第1実施形態の情報連携システムSの全体構成例について説明する。図1は、第1実施形態の情報連携システムSの全体構成例の概要を示す図である。情報連携システムSは、スマートフォン1(端末)と、テレビジョン装置2(放送受信装置)と、TVクラウド3(サーバ装置)と、EC(Electronic Commerce)サイトサーバ等のコンテンツ提供装置であるコンテンツ提供サーバ4と、を備える。TVクラウド3は、テレビジョン装置2、コンテンツ提供サーバ4とインターネットなどの公衆通信回線で通信可能である。また、スマートフォン1は、コンテンツ提供サーバ4やTVクラウド3と基地局を介して無線通信可能である。
(First Embodiment)
First, with reference to Figure 1, an example of the overall configuration of the information sharing system S of the first embodiment will be described. Figure 1 is a diagram showing an overview of the overall configuration of the information sharing system S of the first embodiment. The information sharing system S comprises a smartphone 1 (terminal), a television device 2 (broadcast receiving device), a TV cloud 3 (server device), and a content provision server 4, which is a content provision device such as an EC (Electronic Commerce) site server. The TV cloud 3 can communicate with the television device 2 and the content provision server 4 via a public communication line such as the internet. In addition, the smartphone 1 can wirelessly communicate with the content provision server 4 and the TV cloud 3 via a base station.
スマートフォン1は、テレビジョン装置2のユーザが所有する情報端末の例である。スマートフォン1は、通信I/F(InterFace)、音声入力部(マイクロフォン)、センサ群、表示部、グラフィックコントローラ、タッチパネルコントローラ、CPU(Central Processing Unit)、メモリ、カメラ、スピーカなどを備える。第1実施形態では、ユーザがスマートフォン1を用いてインターネットショッピングを行うことを想定する。 Smartphone 1 is an example of an information terminal owned by a user of the television system 2. Smartphone 1 includes a communication interface (interface), audio input unit (microphone), sensor group, display unit, graphics controller, touch panel controller, CPU (Central Processing Unit), memory, camera, speaker, etc. In the first embodiment, it is assumed that the user uses smartphone 1 to perform internet shopping.
TVクラウド3は、テレビジョン装置2とネットワークを介して送受信可能なサーバ装置であり、いわゆるクラウドサーバである。TVクラウド3は、例えば、テレビジョン装置2の製造元メーカで運用しているサーバ装置でもよい。TVクラウド3は、テレビジョン装置2から視聴に関する情報(視情報)を収集した結果に基づいて、テレビジョン装置2に対してネットワークを経由して視聴番組、予約番組の推薦情報、視聴番組内容に基づく商品推薦情報等の各種サービスを提供する。 TV Cloud 3 is a server device that can send and receive data from the television equipment 2 via a network; it is a so-called cloud server. TV Cloud 3 may, for example, be a server device operated by the manufacturer of the television equipment 2. Based on the viewing information (visual data) collected from the television equipment 2, TV Cloud 3 provides various services to the television equipment 2 via the network, such as recommended viewing programs, recommended scheduled programs, and product recommendations based on the content of the viewed programs.
コンテンツ提供サーバ4は、インターネット上のECサイト(ネットショップ)を運営するためのコンピュータ装置である。コンテンツ提供サーバ4は、例えば、ECのプラットフォーマのサーバ装置である。コンテンツ提供サーバ4は、ユーザ(消費者)による端末装置(スマートフォン1等)の操作に応じて、ネットワークを介して商品やサービスを購入するためのプラットフォームとなる。また、コンテンツ提供サーバ4は、動画等のコンテンツを提供するビデオプラットフォームでもよい。コンテンツ提供サーバ4は、例えば、スマートフォン1における操作に応じて、スマートフォン1に商品の画像を送信する。コンテンツ提供サーバ4は、redirect_uriをTVクラウド3に予め登録する。 The content provision server 4 is a computer device for operating an e-commerce site (online shop) on the internet. The content provision server 4 is, for example, a server device for an e-commerce platform. The content provision server 4 acts as a platform for users (consumers) to purchase goods and services via the network in response to operations on their terminal devices (such as smartphone 1). The content provision server 4 may also be a video platform providing content such as videos. For example, the content provision server 4 transmits product images to smartphone 1 in response to operations on smartphone 1. The content provision server 4 pre-registers redirect_uri with TV Cloud 3.
以下、図2以降を参照して、情報連携システムSにおける各構成の詳細について説明する。図2は、第1実施形態のテレビジョン装置2の全体構成例を示すブロック図である。テレビジョン装置2は、スマートフォン1が備える表示部よりも大きな映像表示部233に対する表示制御を実行する(詳細は後述)。 The details of each component in the information sharing system S will be explained below with reference to Figure 2 and subsequent figures. Figure 2 is a block diagram showing an example of the overall configuration of the television device 2 in the first embodiment. The television device 2 performs display control for the video display unit 233, which is larger than the display unit of the smartphone 1 (details will be described later).
図2に示すように、テレビジョン装置2は、入力端子202、チューナ203a~203g、信号処理部207、グラフィック処理部208、音声処理部209、OSD(On Screen Display)信号生成部210、および映像処理部211を備える。 As shown in Figure 2, the television device 2 includes an input terminal 202, tuners 203a to 203g, a signal processing unit 207, a graphics processing unit 208, an audio processing unit 209, an OSD (On Screen Display) signal generation unit 210, and a video processing unit 211.
入力端子202には、地上放送受信アンテナ213で受信した地上デジタル放送信号が入力される。地上デジタル放送信号は、入力端子202を介してチューナ203a~203gに供給される。 The input terminal 202 receives the terrestrial digital broadcast signal received by the terrestrial broadcast receiving antenna 213. The terrestrial digital broadcast signal is supplied to tuners 203a to 203g via input terminal 202.
チューナ203a~203gは、地上デジタル放送用のチューナであって、入力端子202から供給される地上デジタル放送信号から、後述する制御部216から指示されたチャンネルの放送信号を選局する。 Tuners 203a to 203g are tuners for terrestrial digital broadcasting, and they select the broadcast signal for the channel instructed by the control unit 216 (described later) from the terrestrial digital broadcasting signal supplied from the input terminal 202.
ただし、テレビジョン装置2は、BS/CSデジタル放送受信アンテナで受信した衛星デジタル放送信号が入力される入力端子を有していてもよい。衛星デジタル放送信号は、かかる入力端子を介して衛星デジタル放送用のチューナに供給される。 However, the television device 2 may have an input terminal to which satellite digital broadcast signals received by a BS/CS digital broadcast receiving antenna are input. The satellite digital broadcast signals are supplied to a satellite digital broadcast tuner via such an input terminal.
信号処理部207は、チューナ203a~203gから供給される放送信号から、デジタルの映像信号および音声信号を含む放送信号を復調する。また、信号処理部207は、デジタル放送信号が含む映像信号に対して、選択的に所定のデジタル信号処理を施してグラフィック処理部208に出力する。また、信号処理部207は、デジタル放送信号が含む音声信号に対して、選択的に所望のデジタル信号処理を施して音声処理部209に出力する。 The signal processing unit 207 demodulates the broadcast signal, including digital video and audio signals, from the broadcast signals supplied by tuners 203a to 203g. Furthermore, the signal processing unit 207 selectively applies predetermined digital signal processing to the video signal included in the digital broadcast signal and outputs it to the graphics processing unit 208. Also, the signal processing unit 207 selectively applies desired digital signal processing to the audio signal included in the digital broadcast signal and outputs it to the audio processing unit 209.
信号処理部207には、複数の外部入力端子214a~214dが接続されている。これらの外部入力端子214a~214dは、外部装置の一例としてのDVD(Digital Versatile Disk)レコーダなどから、アナログの映像信号および音声信号が入力可能である。信号処理部207は、外部入力端子214a~214dから入力されたアナログの映像信号および音声信号をデジタル化する。また、信号処理部207は、デジタル化した映像信号に対して所定のデジタル信号処理を施してグラフィック処理部208に出力する。また、信号処理部207は、デジタル化した音声信号に対して所定のデジタル信号処理を施して音声処理部209に出力する。 Multiple external input terminals 214a to 214d are connected to the signal processing unit 207. These external input terminals 214a to 214d can receive analog video and audio signals from external devices such as a DVD (Digital Versatile Disk) recorder. The signal processing unit 207 digitizes the analog video and audio signals input from the external input terminals 214a to 214d. Furthermore, the signal processing unit 207 applies predetermined digital signal processing to the digitized video signal and outputs it to the graphics processing unit 208. Similarly, the signal processing unit 207 applies predetermined digital signal processing to the digitized audio signal and outputs it to the audio processing unit 209.
グラフィック処理部208は、信号処理部207から供給されるデジタルの映像信号に対して、OSD信号生成部210で生成されるOSD信号を重畳して映像処理部211に出力する。グラフィック処理部208は、信号処理部207から供給されるデジタルの映像信号およびOSD信号生成部210で生成されるOSD信号のいずれか一方を映像処理部211に出力することも可能である。 The graphics processing unit 208 superimposes the OSD signal generated by the OSD signal generation unit 210 onto the digital video signal supplied from the signal processing unit 207 and outputs it to the video processing unit 211. The graphics processing unit 208 can also output either the digital video signal supplied from the signal processing unit 207 or the OSD signal generated by the OSD signal generation unit 210 to the video processing unit 211.
映像処理部211は、グラフィック処理部208から入力されるデジタルの映像信号またはOSD信号を、映像表示部233の表示画面において表示可能なフォーマットのアナログの映像信号またはOSD信号に変換して、映像表示部233に出力する。映像表示部233は、例えば、LCDまたは有機ELディスプレイ等である。 The video processing unit 211 converts the digital video signal or OSD signal input from the graphics processing unit 208 into an analog video signal or OSD signal in a format that can be displayed on the display screen of the video display unit 233, and outputs it to the video display unit 233. The video display unit 233 is, for example, an LCD or an organic EL display.
音声処理部209は、信号処理部207から入力されるデジタルの音声信号を、スピーカ215で再生可能なフォーマットのアナログの音声信号に変換して、スピーカ215に出力する。 The audio processing unit 209 converts the digital audio signal input from the signal processing unit 207 into an analog audio signal in a format playable by the speaker 215, and outputs it to the speaker 215.
テレビジョン装置2は、さらに、制御部216、カードホルダ217、各種インターフェース218~221、および明るさセンサ230を備える。制御部216は、CPU216a、ROM216b、RAM216c、および不揮発性メモリ216dを備える。 The television device 2 further includes a control unit 216, a card holder 217, various interfaces 218-221, and a brightness sensor 230. The control unit 216 includes a CPU 216a, ROM 216b, RAM 216c, and non-volatile memory 216d.
制御部216は、地上デジタル放送信号および衛星デジタル放送信号等の放送信号の受信動作などのテレビジョン装置2の各種動作を統括的に制御する。また、制御部216は、操作部222からの操作情報、または受光部223を介してリモコン238から入力された操作情報に従って、テレビジョン装置2の各部を制御する。 The control unit 216 comprehensively controls various operations of the television system 2, including the reception of broadcast signals such as terrestrial digital broadcast signals and satellite digital broadcast signals. Furthermore, the control unit 216 controls various parts of the television system 2 according to operation information from the operation unit 222 or operation information input from the remote control 238 via the light receiving unit 223.
CPU216aは、ROM216bに記憶されているプログラムを実行することにより、テレビジョン装置2全体の動作を制御する。ROM216bは、主としてCPU216aが実行するプログラムを記憶している。RAM216cは、CPU216aがプログラムを実行する際に作業エリアを提供する。不揮発性メモリ216dは、テレビジョン装置2の各種の設定情報および制御情報等を記憶している。 The CPU 216a controls the operation of the entire television system 2 by executing programs stored in the ROM 216b. The ROM 216b primarily stores programs executed by the CPU 216a. The RAM 216c provides a workspace for the CPU 216a when executing programs. The non-volatile memory 216d stores various setting information and control information for the television system 2.
制御部216は、カードI/F225を介して、メモリカード234が着脱可能なカードホルダ217に接続されている。これにより、制御部216は、カードI/F225を介して、カードホルダ217に装着されたメモリカード234との間で各種情報を送受信することができる。 The control unit 216 is connected to a card holder 217 that allows the memory card 234 to be inserted and removed via a card interface 225. This allows the control unit 216 to send and receive various information to and from the memory card 234 mounted in the card holder 217 via the card interface 225.
制御部216は、通信I/F218を介してLAN端子226に接続されている。これにより、制御部216は、通信I/F218を介して、LAN端子226に接続された上述の中継装置400やLAN対応HDD(Hard Disk Drive)等の外部装置と各種情報を送受信することができる。ただし、通信I/F218が、中継装置400等の外部装置と無線で接続可能に構成されていてもよい。 The control unit 216 is connected to the LAN terminal 226 via the communication interface 218. This allows the control unit 216 to send and receive various information with external devices such as the relay device 400 and LAN-compatible HDDs (Hard Disk Drives) connected to the LAN terminal 226 via the communication interface 218. However, the communication interface 218 may be configured to connect wirelessly to external devices such as the relay device 400.
制御部216は、HDMI(登録商標)(High-Definition Multimedia Interface) I/F221を介してHDMI端子227に接続されている。これにより、制御部216は、HDMI I/F221を介して、HDMI端子227に接続されている外部装置と各種情報を送受信することができる。 The control unit 216 is connected to the HDMI terminal 227 via the HDMI® (High-Definition Multimedia Interface) I/F 221. This allows the control unit 216 to send and receive various information with an external device connected to the HDMI terminal 227 via the HDMI I/F 221.
制御部216は、USB(Universal Serial Bus) I/F219を介して、USB端子228に接続されている。これにより、制御部216は、USB I/F219を介して、USB端子228に接続されたUSB HDD等を備えるストレージ装置237と各種情報を送受信することができる。 The control unit 216 is connected to the USB terminal 228 via a USB (Universal Serial Bus) interface 219. This allows the control unit 216 to send and receive various information with the storage device 237, which includes a USB HDD or the like, connected to the USB terminal 228, via the USB interface 219.
ストレージ装置237は、例えばHDDやSSD(Solid State Drive)などを備え、テレビジョン装置2が受信したデジタル信号を録画データとして記録するように構成されている。ただし、ストレージ装置237はテレビジョン装置2に内蔵されていてもよい。 The storage device 237, for example, includes an HDD or SSD (Solid State Drive) and is configured to record the digital signals received by the television device 2 as recorded data. However, the storage device 237 may be built into the television device 2.
図3は、第1実施形態のテレビジョン装置2の部分構成例を示すブロック図である。テレビジョン装置2は、記憶部241(図2のROM216b、RAM216c、および不揮発性メモリ216d、ストレージ装置237)と、記憶部241に記憶されたプログラムがCPU216aによって実行された結果として生成される機能モジュールとして、送信部242と、取得部243と、表示制御部244と、を備える。 Figure 3 is a block diagram showing a partial configuration example of the television device 2 of the first embodiment. The television device 2 comprises a storage unit 241 (ROM 216b, RAM 216c, and non-volatile memory 216d, and storage device 237 in Figure 2), and a transmission unit 242, an acquisition unit 243, and a display control unit 244, which are function modules generated as a result of the program stored in the storage unit 241 being executed by the CPU 216a.
送信部242は、外部装置へ各種情報を送信する。取得部243は、外部装置から各種情報を取得したり、記憶部241に記憶されている各種情報を読み出したりする。 The transmission unit 242 transmits various information to an external device. The acquisition unit 243 acquires various information from the external device and reads various information stored in the storage unit 241.
表示制御部244は、各種情報を映像表示部233に表示する表示処理を実行する。表示制御部244は、例えば、スマートフォン1からの画像表示要求に応じて、映像表示部233に画像を表示させる(詳細は後述)。 The display control unit 244 performs display processing to display various information on the video display unit 233. For example, the display control unit 244 displays an image on the video display unit 233 in response to an image display request from the smartphone 1 (details will be described later).
図4は、第1実施形態のTVクラウド3の全体構成例を示すブロック図である。図4に示すように、TVクラウド3は、通信I/F301、操作部302、CPU303、メモリ304、およびストレージ装置305を備える。 Figure 4 is a block diagram showing an example of the overall configuration of the TV Cloud 3 according to the first embodiment. As shown in Figure 4, the TV Cloud 3 includes a communication interface 301, an operation unit 302, a CPU 303, a memory 304, and a storage device 305.
通信I/F301は、外部装置との間の通信に用いられるインターフェースである。操作部302は、キーボードやマウス等の等の入力デバイスと、ディスプレイ等の表示デバイスと、を有する。 The communication interface 301 is an interface used for communication with external devices. The operation unit 302 includes input devices such as a keyboard and mouse, and a display device such as a display.
ストレージ装置305は、例えばHDDやSSD等を備え、各種情報を記憶する。CPU303は、各種プログラムを実行することにより、TVクラウド3の各コンポーネントを制御する。メモリ304は、ROMやRAM等を備え、CPU303による各種演算処理に用いられる各種プログラムおよび各種データ等を記憶する。 The storage device 305, for example, is equipped with an HDD or SSD and stores various types of information. The CPU 303 controls the various components of the TV Cloud 3 by executing various programs. The memory 304, equipped with ROM or RAM, stores various programs and data used for various calculation processes by the CPU 303.
図5は、第1実施形態のTVクラウド3の部分構成例を示すブロック図である。TVクラウド3は、記憶部311(メモリ304、ストレージ装置305)と、記憶部311に記憶されたプログラムがCPU303によって実行された結果として生成される機能モジュールとして、取得部312と、送信部313と、生成部314と、を備える。 Figure 5 is a block diagram showing a partial configuration example of the TV Cloud 3 of the first embodiment. The TV Cloud 3 comprises a storage unit 311 (memory 304, storage device 305), and, as functional modules generated as a result of the execution of a program stored in the storage unit 311 by the CPU 303, an acquisition unit 312, a transmission unit 313, and a generation unit 314.
記憶部311は、CPU303によって実行されるプログラムやDB(DataBase)を記憶する。ここで、DBのデータ構成例について、図6を用いて説明する。図6に示すように、DBでは、TVIDと、認証コードと、ECサーバIDと、トークンとを含む情報を記憶する。なお、DBでは、TVIDと共に、当該TVIDに対応するテレビジョン装置2の属性情報(テレビのモデル等)を有してもよい。 The storage unit 311 stores programs and databases (DBs) executed by the CPU 303. An example of the DB data structure will be explained using Figure 6. As shown in Figure 6, the DB stores information including the TVID, authentication code, EC server ID, and token. The DB may also contain attribute information (such as the television model) of the television device 2 corresponding to the TVID.
TVIDは、テレビジョン装置2を識別する情報である。認証コードは、後述するトークンを取得するために必要となるコードである。ECサーバIDは、コンテンツ提供サーバ4を識別する情報である。すなわち、ECサイトサーバ等のIDである。トークンは、認証に用いるための情報である。図5に戻り、取得部312は、外部装置から各種情報を取得する。送信部313は、外部装置へ各種情報を送信する。生成部314は、DBに対して情報の生成動作を実行する。 The TVID is information that identifies the television device 2. The authentication code is a code required to obtain the token described later. The EC server ID is information that identifies the content provision server 4. That is, it is the ID of the EC site server, etc. The token is information used for authentication. Returning to Figure 5, the acquisition unit 312 acquires various information from the external device. The transmission unit 313 transmits various information to the external device. The generation unit 314 performs the information generation operation on the DB.
次に、情報連携システムSにおける各構成の処理の流れについて説明する。図7は、第1実施形態の情報連携システムSにおける全体処理を示すフローチャートである。ここでは、ユーザがテレビジョン装置2のリモコン等を操作して、いわゆるポータル画面(ECサイト等と連携するための画面)で、ユーザがスマートフォン1と連携させたいECサイトを指定する場面をスタートとする。なお、図7に示すスマートフォン1の処理は、スマートフォン1にインストールされたアプリケーションプログラムにより実行してもよい。 Next, the processing flow of each component in the information sharing system S will be explained. Figure 7 is a flowchart showing the overall processing in the information sharing system S of the first embodiment. Here, the process starts with the user operating the remote control of the television device 2, etc., to specify the e-commerce site that the user wants to link with the smartphone 1 on a so-called portal screen (a screen for linking with e-commerce sites, etc.). Note that the processing of the smartphone 1 shown in Figure 7 may also be executed by an application program installed on the smartphone 1.
テレビジョン装置2は、上記のように、ユーザによりECサイトが指定されると、ステップS1において、テレビジョン装置2の送信部242は、当該ECサイトの情報(例えば、ECサイトのID、ECサイトのURL等)と、テレビジョン装置2の識別子であるTVIDとをTVクラウド3へ送信する。このように、送信部242は、ECサイト中の画像を提供する画像提供装置であるコンテンツ提供サーバ4に関する情報をTVクラウド3へ送信する。 As described above, when an e-commerce site is specified by the user, in step S1, the transmission unit 242 of the television device 2 transmits information about the e-commerce site (e.g., the e-commerce site's ID, URL, etc.) and the TVID, which is the identifier of the television device 2, to the TV cloud 3. In this way, the transmission unit 242 transmits information about the content provision server 4, which is an image provisioning device that provides images from the e-commerce site, to the TV cloud 3.
TVクラウド3の取得部312は、テレビジョン装置2からECサイトの情報と、TVIDとを取得する。TVクラウド3の生成部314は、認証コードを生成し、上記TVIDと、上記ECサイトのコンテンツ提供サーバ4を識別する情報であるECサーバIDと、認証コードとを含む情報を記憶部311のDBに記憶する。また、生成部314は、当該認証コードと、上記ECサイトのアクセス先であるURLとに基づいた2次元コードであるQRコード(登録商標)を生成する。なお、QRコードは、一例であり、他の表示情報でもよい。すなわち、当該認証コードと、ECサイトのアクセス先情報とを伝達可能な他の形式の表示情報でもよい。上記認証コードは、メーカを判別するための部分とテレビジョン装置2を判別するための部分を含むようにしてもよい。 The acquisition unit 312 of the TV Cloud 3 acquires information about the e-commerce site and the TVID from the television device 2. The generation unit 314 of the TV Cloud 3 generates an authentication code and stores information including the TVID, the e-commerce server ID (which identifies the content provision server 4 of the e-commerce site), and the authentication code in the database of the storage unit 311. The generation unit 314 also generates a QR code (registered trademark), which is a two-dimensional code based on the authentication code and the URL of the e-commerce site. Note that the QR code is just an example; other display information may be used. That is, other forms of display information capable of transmitting the authentication code and the e-commerce site access information may be used. The authentication code may include a portion for identifying the manufacturer and a portion for identifying the television device 2.
ステップS2において、TVクラウド3の送信部313は、上記QRコードを要求元のテレビジョン装置2へ送信する。テレビジョン装置2からの要求に応じて、ECサイトへのアクセス先となるURLと、認証コードとを含むQRコードを送信する。 In step S2, the transmission unit 313 of the TV Cloud 3 transmits the QR code to the requesting television device 2. In response to the request from the television device 2, it transmits a QR code containing the URL for accessing the e-commerce site and an authentication code.
テレビジョン装置2の取得部243は、TVクラウド3からQRコードを取得する。このように、テレビジョン装置2の取得部243は、認証コードと、上記ECサイトのアクセス先であるURLとに基づいたアクセス情報となるQRコードを取得する。テレビジョン装置2の表示制御部244は、当該QRコードを映像表示部233に表示させる。このように、表示制御部244は、QRコードを表示出力する。 The acquisition unit 243 of the television device 2 acquires a QR code from the TV cloud 3. In this way, the acquisition unit 243 of the television device 2 acquires a QR code that represents access information based on the authentication code and the URL of the e-commerce site. The display control unit 244 of the television device 2 displays the QR code on the video display unit 233. Thus, the display control unit 244 outputs the QR code.
ステップS3において、スマートフォン1は、撮像手段などにより実現するQRコード読み取り機能により、映像表示部233に表示されたQRコードを読み取る。これにより、スマートフォン1は、ECサイトのURLおよび認証コードを取得する。ステップS4において、スマートフォン1は、ECサイトのURLおよび認証コードを取得すると、当該URLに基づいて、コンテンツ提供サーバ4へアクセスすると共に、認証コードを送信する。 In step S3, the smartphone 1 reads the QR code displayed on the video display unit 233 using a QR code reading function implemented by an imaging means or the like. As a result, the smartphone 1 obtains the URL of the e-commerce site and an authentication code. In step S4, having obtained the URL of the e-commerce site and the authentication code, the smartphone 1 accesses the content provision server 4 based on the URL and transmits the authentication code.
コンテンツ提供サーバ4は、スマートフォン1から認証コードを取得すると、ステップS5において、コンテンツ提供サーバ4を識別する情報と共に、当該認証コードをTVクラウド3へ送信し、認証リクエストをする。また、TVクラウド3の取得部312は、コンテンツ提供サーバ4を識別する情報と共に、当該認証コードを取得する。このように、TVクラウド3の取得部312は、コンテンツ提供サーバ4から送信された認証コードを取得する。 When the content provider server 4 obtains an authentication code from the smartphone 1, in step S5, it sends the authentication code, along with information identifying the content provider server 4, to the TV cloud 3, making an authentication request. The acquisition unit 312 of the TV cloud 3 also obtains the authentication code, along with information identifying the content provider server 4. In this way, the acquisition unit 312 of the TV cloud 3 obtains the authentication code transmitted from the content provider server 4.
TVクラウド3の生成部314は、記憶部311のDBを参照し、取得部312により取得されたコンテンツ提供サーバ4を識別する情報および認証コードに対応する情報があるか否かを判断することで認証する。生成部314は、記憶部311のDBを参照し、取得部312により取得されたコンテンツ提供サーバ4を識別する情報および認証コードに対応する情報がある場合、公知技術により、トークンを生成する。また、生成部314は、上記DBにおける取得部312により取得されたコンテンツ提供サーバ4を識別する情報および認証コードを有する情報に、上記トークンをさらに対応付ける。上記取得部312により取得されたコンテンツ提供サーバ4を識別する情報および認証コードを有する情報に、上記トークンをさらに対応付けた情報には、要求元のテレビジョン装置2のTVIDも含む。 The generation unit 314 of the TV Cloud 3 authenticates by referring to the database (DB) of the storage unit 311 and determining whether there is information corresponding to the information identifying the content provider server 4 and the authentication code acquired by the acquisition unit 312. If the generation unit 314 refers to the DB of the storage unit 311 and finds information corresponding to the information identifying the content provider server 4 and the authentication code acquired by the acquisition unit 312, it generates a token using known technology. Furthermore, the generation unit 314 associates the token with the information containing the information identifying the content provider server 4 and the authentication code acquired by the acquisition unit 312 in the DB. The information further associated with the token includes the TVID of the requesting television device 2.
よって、生成部314は、上記認証コードに対応するテレビジョン装置2と、当該認証コードに基づくトークンとを対応付けた対応情報を生成する。 Therefore, the generation unit 314 generates correspondence information that associates the television device 2 corresponding to the authentication code with the token based on that authentication code.
ステップS6において、TVクラウド3の送信部313は、生成部314により生成されたトークンをコンテンツ提供サーバ4へ送信する。このように、送信部313は、認証コードに基づくトークンをコンテンツ提供サーバ4へ送信する。コンテンツ提供サーバ4は、当該トークンと、認証コードの送信元のスマートフォン1のユーザIDとを対応付けた情報を保持しておく。 In step S6, the transmission unit 313 of the TV Cloud 3 sends the token generated by the generation unit 314 to the content provision server 4. In this way, the transmission unit 313 sends a token based on the authentication code to the content provision server 4. The content provision server 4 maintains information associating the token with the user ID of the smartphone 1 that sent the authentication code.
ステップS7において、スマートフォン1は、コンテンツ提供サーバ4へログインして、ECサイトへアクセスする。これにより、スマートフォン1は、ECサイト画面を表示する。ここで、スマートフォン1のユーザは、当該ECサイト画面における所定のリンク先について、テレビ表示要求を示す指示を選択する。ステップS8において、スマートフォン1は、当該選択に応じて、リンク先のURLをコンテンツ提供サーバ4へ送信することで、テレビ表示要求(TV表示要求)をする。コンテンツ提供サーバ4は、スマートフォン1からテレビ表示要求と共に、画像表示対象のURLを取得する。 In step S7, smartphone 1 logs in to content provider server 4 and accesses the e-commerce site. This displays the e-commerce site screen. Here, the user of smartphone 1 selects an instruction indicating a TV display request for a specific link on the e-commerce site screen. In step S8, smartphone 1, in response to this selection, sends the URL of the link to content provider server 4, thereby making a TV display request. Content provider server 4 receives the URL of the image to be displayed along with the TV display request from smartphone 1.
ステップS9において、コンテンツ提供サーバ4は、要求元のスマートフォン1に対応するトークンと、画像表示対象のURLとをTVクラウド3へ送信し、表示要求する。TVクラウド3の取得部312は、コンテンツ提供サーバ4により送信されたトークンとURLとを取得する。このように、取得部312は、コンテンツ提供サーバ4により送信されたトークンと、スマートフォン1からの要求に基づく表示対象の画像のアクセス先のURLとを取得する。 In step S9, the content provider server 4 sends a token corresponding to the requesting smartphone 1 and the URL of the image to be displayed to the TV cloud 3, requesting display. The acquisition unit 312 of the TV cloud 3 acquires the token and URL sent by the content provider server 4. In this way, the acquisition unit 312 acquires the token sent by the content provider server 4 and the URL of the access destination for the image to be displayed based on the request from the smartphone 1.
ステップS10において、TVクラウド3は、記憶部311のDBを参照し、取得部312が取得したトークンに対応するTVIDを特定する。そして、TVクラウド3の送信部313は、当該TVIDに対応するテレビジョン装置2に対して表示対象の画像のアクセス先のURLを送信する。 In step S10, the TV cloud 3 refers to the database in the storage unit 311 and identifies the TVID corresponding to the token acquired by the acquisition unit 312. Then, the transmission unit 313 of the TV cloud 3 transmits the URL of the image to be displayed to the television device 2 corresponding to that TVID.
テレビジョン装置2の取得部243は、表示対象の画像のアクセス先のURLを取得する。また、テレビジョン装置2の送信部242が、当該URLに基づいて、コンテンツ提供サーバ4へアクセスすることで、取得部243は、表示対象の画像のアクセス先に基づく画像をコンテンツ提供サーバ4から取得する。そして、テレビジョン装置2の表示制御部244は、取得部243により取得された画像を映像表示部233に表示させる。 The acquisition unit 243 of the television device 2 acquires the URL of the access destination for the image to be displayed. The transmission unit 242 of the television device 2 then accesses the content provision server 4 based on this URL, and the acquisition unit 243 acquires the image from the content provision server 4 based on the access destination of the image to be displayed. The display control unit 244 of the television device 2 then displays the image acquired by the acquisition unit 243 on the video display unit 233.
第1の実施形態に係るTVクラウド3は、認証コードに対応するテレビジョン装置2と、当該認証コードに基づくトークンとを対応付けた対応情報を生成し、コンテンツ提供サーバ4から当該トークンとスマートフォン1からの要求に基づく表示対象の画像のアクセス先とを取得すると、テレビジョン装置2へ当該画像のアクセス先を通知することで、テレビジョン装置2にスマートフォン1の要求に応じた画像を表示させることができる。これにより、TVクラウド3は、スマートフォン1の画面より大きく表示できるテレビジョン装置2にスマートフォン1の要求に基づく画像を表示させることができる。 In the first embodiment, the TV Cloud 3 generates correspondence information that associates the television device 2 corresponding to the authentication code with a token based on the authentication code. Upon obtaining the token and the access destination of the image to be displayed based on the request from the smartphone 1 from the content provision server 4, the TV Cloud 3 notifies the television device 2 of the access destination of the image, thereby enabling the television device 2 to display the image requested by the smartphone 1. This allows the TV Cloud 3 to display the image requested by the smartphone 1 on the television device 2, which can display the image larger than the screen of the smartphone 1.
また、テレビジョン装置2は、コンテンツ提供サーバ4へのアクセス先と、認証コードとを含むアクセス情報を出力し、TVクラウド3からスマートフォン1からの要求に基づく表示対象の画像のアクセス先を取得し、当該画像を映像表示部233に表示させる。これにより、テレビジョン装置2は、スマートフォン1の画面より大きく表示できる映像表示部233にスマートフォン1の要求に基づく画像を表示させることができる。 Furthermore, the television device 2 outputs access information including the access destination and authentication code for the content provision server 4. It then obtains the access destination for the image to be displayed based on the request from the smartphone 1 from the TV cloud 3 and displays the image on the video display unit 233. This allows the television device 2 to display the image requested by the smartphone 1 on the video display unit 233, which can display the image larger than the smartphone 1's screen.
(第2実施形態)
第2実施形態にかかる情報連携システムSは、第1実施形態とは異なり、テレビジョン装置2のメーカ毎にTVクラウド3が異なる。すなわち、第2実施形態にかかる情報連携システムSは、複数のTVクラウド3を有する。
(Second Embodiment)
In the second embodiment, the information sharing system S differs from the first embodiment in that the TV cloud 3 is different for each manufacturer of the television equipment 2. In other words, the information sharing system S according to the second embodiment has multiple TV clouds 3.
ここで、第2実施形態の情報連携システムSの全体構成例について説明する。図8は、第2実施形態の情報連携システムSの全体構成例の概要を示す図である。なお、第1実施形態と同一の構成については同一の符号を付与し説明を省略する。図8に示すように、情報連携システムSは、TVクラウド3(TVクラウド3a、TVクラウド3b)を複数有する。TVクラウド3bは、当該TVクラウド3bに関連するメーカの図示しないテレビであるテレビジョン装置2と接続可能である。 Here, we will describe an example of the overall configuration of the information sharing system S of the second embodiment. Figure 8 is a diagram showing an overview of the overall configuration of the information sharing system S of the second embodiment. Note that components identical to those of the first embodiment are given the same reference numerals and their descriptions are omitted. As shown in Figure 8, the information sharing system S has multiple TV clouds 3 (TV cloud 3a, TV cloud 3b). TV cloud 3b can be connected to a television device 2, which is a television (not shown) from a manufacturer associated with the TV cloud 3b.
2はテレビである。
3は、いわゆるプッシュ配信サーバであるTVクラウドである。TVクラウド3はテレビジョン装置2を製造し、さらに、テレビジョン装置2から視情報を収集した結果からテレビジョン装置2に対してネットワークを経由して視聴番組や予約番組推薦、視聴番組内容に基づく商品推薦の等の各種サービスを提供しているテレビメーカのサーバである。
Number 2 is television.
3 is a so-called push notification server, which is a TV cloud. TV cloud 3 is a server of a television manufacturer that manufactures television equipment 2 and, based on the results of collecting viewing information from television equipment 2, provides various services to television equipment 2 via the network, such as recommendations for programs to be viewed and programs to be scheduled, and product recommendations based on the content of programs to be viewed.
また、5は、共通受付サーバであるテレビゲートウェイである。テレビゲートウェイ5は、複数のテレビメーカのTVクラウド3を統合してEコマース(EC)に接続するためのテレビジョン装置のメーカのメーカ共通サイトのサーバである。情報連携システムSは、当該複数のTVクラウド3とネットワークを介して情報を送受信可能なテレビゲートウェイ5(サーバ管理装置)を有する。また、テレビゲートウェイ5は、広告表示した結果を集計する計測処理をするための計測サーバ6ともネットワークを介して情報を送受信可能である。このテレビゲートウェイ5は、各メーカを連合したクラウドサーバである。すなわち、テレビゲートウェイ5は、複数のテレビメーカのTVクラウド3を統合してコンテンツ提供サーバ4に接続するためのサーバである。テレビゲートウェイ5は、コンテンツ提供サーバ4にクライアントクレデンシャル(client_id、client_secret)を発行する。 Furthermore, 5 is the TV gateway, which is a common reception server. The TV gateway 5 is a server for a common site of television equipment manufacturers, integrating the TV clouds 3 of multiple TV manufacturers and connecting them to e-commerce (EC). The information sharing system S has a TV gateway 5 (server management device) that can send and receive information with the multiple TV clouds 3 via the network. The TV gateway 5 can also send and receive information via the network with the measurement server 6, which performs measurement processing to aggregate the results of advertisement display. This TV gateway 5 is a cloud server that unites each manufacturer. In other words, the TV gateway 5 is a server that integrates the TV clouds 3 of multiple TV manufacturers and connects them to the content provision server 4. The TV gateway 5 issues client credentials (client_id, client_secret) to the content provision server 4.
また、TVクラウド3とテレビゲートウェイ5との間でx-api-keyに設置するランダム秘密が予め定められている。テレビゲートウェイ5とコンテンツ提供サーバ4との間で受け渡されるx-api-keyは、pass-keyになる。 Furthermore, a random secret code to be set in the x-api-key between the TV Cloud 3 and the TV Gateway 5 is predetermined. The x-api-key exchanged between the TV Gateway 5 and the content provision server 4 becomes the pass-key.
4はECサイトサーバ等のコンテンツ提供サーバである。コンテンツ提供サーバ4は、ECのプラットフォーマのサーバである。ユーザ即ち消費者にとって、商品やサービスを購入するためのプラットフォームとなるサーバがコンテンツ提供サーバ4である。また、コンテンツ提供サーバ4は、redirect_uriをテレビゲートウェイ5に予め登録させる。 4 is a content provision server, such as an e-commerce site server. Content provision server 4 is the server for the e-commerce platform. For users, i.e., consumers, content provision server 4 is the server that serves as the platform for purchasing goods and services. Furthermore, content provision server 4 pre-registers redirect_uri with the TV gateway 5.
1050はユーザ端末である。ユーザ端末1050は、テレビジョン装置2とユーザ端末1050とをつなぐためのアプリケーションプログラムと、カメラ等の光学的な読み取り装置とを有する端末である。ユーザ端末1050の一例として、スマートフォン1が該当する。第1実施形態では、ユーザ端末1050が、スマートフォン1であるものとして説明しているがスマートフォンに限定されない。ユーザ端末1050は、PC、タブレット端末等で状況の条件を満たすものであればよい。また、これらの端末は、第1実施形態で示したスマートフォンを置き換えることができる。 1050 is a user terminal. The user terminal 1050 is a terminal having an application program for connecting the television device 2 and the user terminal 1050, and an optical reading device such as a camera. A smartphone 1 is an example of the user terminal 1050. In the first embodiment, the user terminal 1050 is described as a smartphone 1, but it is not limited to a smartphone. The user terminal 1050 can be a PC, tablet, or any other device that meets the conditions of the situation. Furthermore, these terminals can replace the smartphone shown in the first embodiment.
図9は、第2実施形態のテレビゲートウェイ5の全体構成例を示すブロック図である。図9に示すように、テレビゲートウェイ5は、通信I/F501、操作部502、CPU503、メモリ504、およびストレージ装置505を備える。 Figure 9 is a block diagram showing an example of the overall configuration of the television gateway 5 according to the second embodiment. As shown in Figure 9, the television gateway 5 includes a communication interface 501, an operation unit 502, a CPU 503, a memory 504, and a storage device 505.
通信I/F501は、外部装置との間の通信に用いられるインターフェースである。操作部502は、キーボードやマウス等の等の入力デバイスと、ディスプレイ等の表示デバイスと、を有する。 The communication interface 501 is an interface used for communication with external devices. The operation unit 502 includes input devices such as a keyboard and mouse, and a display device such as a display.
ストレージ装置505は、例えばHDDやSSD等を備え、各種情報を記憶する。CPU503は、各種プログラムを実行することにより、テレビゲートウェイ5の各コンポーネントを制御する。メモリ504は、ROMやRAM等を備え、CPU503による各種演算処理に用いられる各種プログラムおよび各種データ等を記憶する。 The storage device 505, for example, is equipped with an HDD or SSD and stores various types of information. The CPU 503 controls the various components of the TV gateway 5 by executing various programs. The memory 504, equipped with ROM or RAM, stores various programs and data used in various calculation processes performed by the CPU 503.
図10は、第2実施形態のテレビゲートウェイ5の部分構成例を示すブロック図である。テレビゲートウェイ5は、記憶部511(メモリ504、ストレージ装置505)と、記憶部511に記憶されたプログラムがCPU503によって実行された結果として生成される機能モジュールとして、取得部512と、送信部513と、生成部514とを備える。 Figure 10 is a block diagram showing a partial configuration example of the television gateway 5 of the second embodiment. The television gateway 5 includes a storage unit 511 (memory 504, storage device 505), and, as functional modules generated as a result of the CPU 503 executing a program stored in the storage unit 511, it comprises an acquisition unit 512, a transmission unit 513, and a generation unit 514.
記憶部511は、CPU503によって実行されるプログラムやDB(DataBase)を記憶する。 The memory unit 511 stores programs and databases (DBs) executed by the CPU 503.
取得部512は、外部装置から各種情報を取得する。送信部513は、外部装置へ各種情報を送信する。生成部514は、DBに対して情報の生成動作を実行する。 The acquisition unit 512 acquires various information from an external device. The transmission unit 513 transmits various information to the external device. The generation unit 514 performs information generation operations on the database.
次に、第2実施形態の情報連携システムSにおける各構成の処理の流れについて説明する。図11は、第2実施形態の情報連携システムSにおける全体処理を示すフローチャートである。図11に示すフローチャートも、ユーザがテレビジョン装置2のリモコン等を操作して、いわゆるポータル画面で、ユーザがスマートフォン1と連携させたいECサイトを指定する場面をスタートとする。なお、TVクラウド3が生成する認証コードおよびトークンは、メーカを識別する情報を含むものとする。すなわち、TVクラウド3は、自装置を識別する情報を認証コードおよびトークンに含めるものとする。 Next, the processing flow of each component in the information linkage system S of the second embodiment will be described. Figure 11 is a flowchart showing the overall processing in the information linkage system S of the second embodiment. The flowchart in Figure 11 also starts with the user operating the remote control of the television device 2, etc., and specifying the e-commerce site that the user wants to link with their smartphone 1 on a so-called portal screen. The authentication code and token generated by TV Cloud 3 include information identifying the manufacturer. That is, TV Cloud 3 includes information identifying its own device in the authentication code and token.
また、図11のステップS21は、図7のステップS1と同様のため、説明を省略する。ステップS22において、URL認証コードがTVクラウド3からテレビジョン装置2に送付される。URL認証コード2010はコンテンツ提供サーバ4を特定するURL情報とコンテンツ提供サーバ4とTVクラウド3間の認証を行うための認証コードを含んだ情報である。認証コードは、テレビジョン装置2のメーカを判別するための部分とテレビジョン装置2を判別するための部分を含むようにしてもよい。また、認証コードに含まれるテレビジョン装置2を判別するため部分は、ランダムな値である。また、TVクラウド3は、この値をテレビジョン装置2へ送信した時刻を記憶部311のDBの情報として対応付けてもよい。 Furthermore, step S21 in Figure 11 is the same as step S1 in Figure 7, so its explanation is omitted. In step S22, a URL authentication code is sent from TV Cloud 3 to the television device 2. The URL authentication code 2010 contains URL information that identifies the content provision server 4 and an authentication code for authentication between the content provision server 4 and TV Cloud 3. The authentication code may include a part for identifying the manufacturer of the television device 2 and a part for identifying the television device 2. The part of the authentication code used to identify the television device 2 is a random value. TV Cloud 3 may also associate the time it sent this value to the television device 2 with the information in the DB of the storage unit 311.
URL認証コード2010の情報の例は、以下の通りである。
https://XXXXXXX YYYYYYYYY
Xの部分にはコンテンツ提供サーバ4のURL、Yの部分にはOAuth2のauthorization codeが入っている。authorization codeの部分にはメーカとテレビを特定できる情報が入っている。メーカとテレビジョン装置2を特定できる情報はどちらか1つでもよい。URL認証コード2010の送付形式は上記の情報が含まれていれば、どのような形式でもよい。
An example of URL authentication code 2010 information is as follows:
https://XXXXXXXX YYYYYYYYY
The X part contains the URL of content provider server 4, and the Y part contains the authorization code for OAuth2. The authorization code contains information that identifies the manufacturer and the television. Either one of the pieces of information that identifies the manufacturer or the television device 2 is sufficient. The URL authentication code 2010 can be sent in any format as long as it contains the above information.
テレビジョン装置2の取得部243は、TVクラウド3からURL認証コード2010を取得すると、表示制御部244は、当該URL認証コード2010の内容を映像表示部233で光学的に画像または映像として表示出力する。なお、表示制御部244での表示形態は、QRコード、バーコード、テキスト等で、上記URL認証コード2010に含まれる情報を光学的に画像または映像として表示出力できればよい。また、第1実施形態では、QRコードで説明しているが、本実施形態と同様にQRコードに限定されるものではない。 When the acquisition unit 243 of the television device 2 acquires the URL authentication code 2010 from the TV cloud 3, the display control unit 244 optically displays the contents of the URL authentication code 2010 as an image or video using the video display unit 233. The display format used by the display control unit 244 can be a QR code, barcode, text, etc., as long as it can optically display and output the information contained in the URL authentication code 2010 as an image or video. Furthermore, although the first embodiment uses a QR code for explanation, it is not limited to a QR code, as is the case in this embodiment.
また、図7のステップS3と同様、ステップS23において、ユーザ端末1050は、撮像手段で光学的に撮影した画像情報からURL認証コード読み取り機能により、映像表示部233に光学的に表示されたURL認証コード2011の情報を読み取る。これにより、ユーザ端末1050は、ECサイトのURLおよび認証コードを取得する。当該認証コード部分は、時限付き認証コードで以下のように構成されている。
“code” : <authorization code>,
“state” : <string> // 乱数
Furthermore, similar to step S3 in Figure 7, in step S23, the user terminal 1050 reads the URL authentication code 2011 information optically displayed on the video display unit 233 from the image information optically captured by the imaging means using the URL authentication code reading function. As a result, the user terminal 1050 obtains the URL of the e-commerce site and the authentication code. The authentication code portion is a time-limited authentication code and is configured as follows.
“code”: <authorization code>,
“state”: <string> // Random number
ステップS24において、ユーザ端末1050は、ECサイトのURLおよび認証コードを取得すると、当該URLに基づいて、コンテンツ提供サーバ4へアクセスすると共に、認証コード2020を送信する。 In step S24, the user terminal 1050 obtains the URL of the e-commerce site and the authentication code. Based on the URL, it accesses the content provision server 4 and transmits the authentication code 2020.
認証コード2020は、URL認証コード2010、URL認証コード2011の認証コード部分(<authorization code>)である。認証コード2021は、以下の通りである。
“code” : <authorization code>,
“state” : <string> // 乱数
なお、認証コード2020には、上記に加えコンテンツ提供サーバ4のURL情報が含まれていてもよい。
Authentication code 2020 is the authentication code portion (<authorization code>) of URL authentication code 2010 and URL authentication code 2011. Authentication code 2021 is as follows:
“code”: <authorization code>,
“state”: <string> // Random number Note that authentication code 2020 may also include the URL information of content provider server 4 in addition to the above.
ステップS25において、コンテンツ提供サーバ4は、認証コード2020を受信すると、認証コード2021をテレビゲートウェイ5へ送信し、認証リクエストをする。コンテンツ提供サーバ4は、例えば、テレビゲートウェイ5のOAuth2のToken Endpointに認証リクエストの情報を送る。認証コード2021の情報は、以下の構成である。
Authorization: “Basic ” + Base64(<client_id> + “:” + <client_secret>)
Content-type: application/x-www-form-urlencoded
・grant_type:“authorization_code”
・code :<authorization code> (認証コード)
・redirect_uri:コンテンツ提供サーバ4のECサイトに戻るときの入口、テレビゲートウェイ5に事前登録のもの。
・client_id:コンテンツ提供サーバ4のECサイト別に割り当てた識別子。テレビゲートウェイ5に事前登録のもの。
client_secretは、コンテンツ提供サーバ4のサイト別にclient_idに基づきテレビゲートウェイ5が割り当てたもの。テレビゲートウェイ5のサイトはcodeのメーカ拡張子を見てリダイレクトする。
In step S25, when the content provider server 4 receives authentication code 2020, it sends authentication code 2021 to the TV gateway 5 and makes an authentication request. The content provider server 4 sends the authentication request information to, for example, the Token Endpoint of OAuth2 on the TV gateway 5. The information for authentication code 2021 has the following structure.
Authorization: “Basic” + Base64 (<client_id> + “:” + <client_secret>)
Content-type: application/x-www-form-urlencoded
・grant_type: “authorization_code”
• code: <authorization code> (authentication code)
- redirect_uri: This is the entry point when returning to the EC site of content provider server 4, and is pre-registered with TV gateway 5.
- client_id: An identifier assigned to each e-commerce site on the content provision server 4. This is the one that has been pre-registered with the TV gateway 5.
The client_secret is assigned by the TV gateway 5 based on the client_id for each site of the content provision server 4. The TV gateway 5 redirects based on the manufacturer extension of the code for each site.
ステップS26において、テレビゲートウェイ5の送信部313は、取得した認証コード2021を参照し、認証コード2021に含まれるメーカを識別する情報を参照し、送信先のTVクラウド3を特定する。具体的に、テレビゲートウェイ5の送信部313は、authorization code即ち、認証コードを確認し、どのTVクラウド3であるかを判定する。 In step S26, the transmission unit 313 of the TV gateway 5 refers to the acquired authentication code 2021, refers to the manufacturer identification information contained in the authentication code 2021, and identifies the destination TV cloud 3. Specifically, the transmission unit 313 of the TV gateway 5 checks the authentication code and determines which TV cloud 3 it is.
そして、ステップS27において、テレビゲートウェイ5の送信部313は、送信先のTVクラウド3へ認証リクエスト2022を送信することで認証リクエストをする。
このように、テレビゲートウェイ5の送信部513は、認証コード2021のAuthorization_code(認証コード)に基づいて特定された送信先のTVクラウド3へ認証リクエスト2022を送信する。テレビゲートウェイ5の送信部313が送信する認証リクエスト2022の情報は、コンテンツ提供サーバ4から取得した認証コード2021の情報と同じである。その他の認証リクエスト2022の情報の例としては、以下のものがある。
GET https://each-maker.example.com/common/devices/id
Authorization:“Bearer ”+<access_token>
TVクラウド3の取得部312は、コンテンツ提供サーバ4を識別する情報と共に、URL認証コード2010に記載された認証コードを取得する。
Then, in step S27, the transmission unit 313 of the TV gateway 5 makes an authentication request by sending an authentication request 2022 to the destination TV cloud 3.
In this manner, the transmission unit 513 of the TV gateway 5 sends an authentication request 2022 to the destination TV cloud 3, which is identified based on the Authorization_code (authentication code) of the authentication code 2021. The information in the authentication request 2022 sent by the transmission unit 313 of the TV gateway 5 is the same as the information in the authentication code 2021 obtained from the content provision server 4. Other examples of information in the authentication request 2022 include the following.
GET https://each-maker. example. com/common/devices/id
Authorization: “Bearer” + <access_token>
The acquisition unit 312 of TV Cloud 3 acquires the authentication code described in the URL authentication code 2010 along with information identifying the content provision server 4.
TVクラウド3の生成部314は、記憶部311のDBを参照し、取得部312により取得されたコンテンツ提供サーバ4を識別する情報および認証コードに対応する情報があるか否かを判断することで認証する。生成部314は、記憶部311のDBを参照し、取得部312により取得されたコンテンツ提供サーバ4を識別する情報および認証コードに対応する情報がある場合、トークン2030を生成する。また、生成部314は、上記DBにおける取得部312により取得されたコンテンツ提供サーバ4を識別する情報および認証コードを有する情報に、トークン2030をさらに対応付ける。 The generation unit 314 of the TV Cloud 3 authenticates by referring to the DB of the storage unit 311 and determining whether there is information corresponding to the information identifying the content provider server 4 and the authentication code acquired by the acquisition unit 312. If the generation unit 314 refers to the DB of the storage unit 311 and finds information corresponding to the information identifying the content provider server 4 and the authentication code acquired by the acquisition unit 312, it generates a token 2030. Furthermore, the generation unit 314 associates the token 2030 with the information in the DB that contains the information identifying the content provider server 4 and the authentication code acquired by the acquisition unit 312.
ステップS28において、TVクラウド3の送信部313は、生成部314により生成されたトークン2030をテレビゲートウェイ5へ送信する。 In step S28, the transmission unit 313 of the TV cloud 3 transmits the token 2030 generated by the generation unit 314 to the TV gateway 5.
具体的に、TVクラウド3の送信部313は、OAuth2のToken Responseをトークン2030としてテレビゲートウェイ5に送付する。このレスポンスのOAuth2 Access Token Responseは以下のように構成される。
{“access_token”: <access token>,
“token_type”: “Bearer”,
“expires_in”: 3600,
“refresh_token”: <refresh token>}
TVクラウド3がテレビゲートウェイ5にアクセスするときはaccess_token を付ける。expires_inは、access_token の有効期間(秒)であり、access_tokenを受け取ったときに無効になる時刻と共に記憶しておき、それまではこのaccess_tokenを繰り返し使う。refresh_tokenは、コンテンツ提供サーバ4が秘密に保管する。セキュリティ上、単純にlocal storageに置いておくのは良くないためである。access_token、refresh_tokenを各メーカで発行時、先頭にテレビメーカを識別する識別子を付けることでテレビメーカを特定することができる。
Specifically, the transmission unit 313 of TV Cloud 3 sends the OAuth2 Token Response as token 2030 to the TV gateway 5. The OAuth2 Access Token Response of this response is configured as follows.
{“access_token”: <access token>,
“token_type”: “Bearer”,
“expires_in”: 3600,
“refresh_token”: <refresh token>}
When TV Cloud 3 accesses TV Gateway 5, it appends an access_token. expires_in is the validity period (in seconds) of the access_token, and is stored along with the time when the access_token becomes invalid when it is received. Until then, this access_token is used repeatedly. The refresh_token is stored secretly by the content provision server 4. This is because it is not good for security reasons to simply store it in local storage. When each manufacturer issues an access_token or refresh_token, they can identify the TV manufacturer by adding an identifier that identifies the TV manufacturer at the beginning.
テレビゲートウェイ5の取得部512は、トークン2030を取得する。そして、ステップS29において、テレビゲートウェイ5は、トークン2030をトークン2031としてコンテンツ提供サーバ4へ送信し、コンテンツ提供サーバ4は、トークン2031を取得する。なお、TVクラウド3の送信部313は、直接コンテンツ提供サーバ4へトークンを送信するようにしてもよい。 The acquisition unit 512 of the TV gateway 5 acquires token 2030. Then, in step S29, the TV gateway 5 transmits token 2030 as token 2031 to the content provision server 4, and the content provision server 4 acquires token 2031. Alternatively, the transmission unit 313 of the TV cloud 3 may directly transmit the token to the content provision server 4.
コンテンツ提供サーバ4は、トークン2031と、認証コードの送信元のユーザ端末1050のユーザIDとを対応付けた情報を保持しておく。 The content provision server 4 stores information that associates token 2031 with the user ID of the user terminal 1050 that sent the authentication code.
そして、ステップS30において、コンテンツ提供サーバ4は、トークン2031と、ユーザIDとをレスポンスとしてトークン+ユーザID2040をテレビゲートウェイ5へ送信する。これにより、コンテンツ提供サーバ4は、ユーザ端末1050のユーザのユーザIDをテレビゲートウェイ5へ送信することができる。 Then, in step S30, the content provision server 4 sends the token 2031 and the user ID as a response, sending the token + user ID 2040 to the TV gateway 5. This allows the content provision server 4 to send the user ID of the user terminal 1050 to the TV gateway 5.
コンテンツ提供サーバ4が送信するトークン+ユーザID2040の情報の構成は、以下の通りである。
POST https://tv-common.example.com/common/users/id
Authorization:“Basic ”+Base64(<client_id>+“:”+<client_secret>)
Content-type:application/x-www-form-urlencoded
{grant_type:“access_token”,
access_token:<access token>(ステップS28でaccess tokenとして発行された情報),
client_id: コンテンツ提供サーバ4のサイト別に割り当てた識別子。メーカ共通サイトに事前登録,
user_id:コンテンツ提供サーバ4のサイトにおけるユーザID,
Preference:<現在のユーザ属性(現在のユーザ属性:ユーザの生年月日、性別、郵便番号、購買履歴等)>}
The structure of the information consisting of the token + user ID 2040 transmitted by content provider server 4 is as follows:
POST https://tv-common. example. com/common/users/id
Authorization: “Basic” + Base64 (<client_id> + “:” + <client_secret>)
Content-type:application/x-www-form-urlencoded
{grant_type: “access_token”,
access_token: <access token> (information issued as access token in step S28),
client_id: An identifier assigned to each site of content provision server 4. Pre-registered on the manufacturer's common site.
user_id: User ID on the content provision server 4 site,
Preference: <Current user attributes (Current user attributes: User's date of birth, gender, postal code, purchase history, etc.)>
テレビゲートウェイ5の取得部512は、コンテンツ提供サーバ4からトークン+ユーザID2040を取得する。ステップS31において、テレビゲートウェイ5の送信部513は、トークン+ユーザID2040から送信先のTVクラウド3を特定し、送信先のTVクラウド3へデバイスID要求2041(TVID)を送信する。なお、テレビゲートウェイ5の送信部513は、デバイスID要求2041の送信する際、トークンを送信するようにしてもよい。 The acquisition unit 512 of the TV gateway 5 acquires the token + user ID 2040 from the content provision server 4. In step S31, the transmission unit 513 of the TV gateway 5 identifies the destination TV cloud 3 from the token + user ID 2040 and sends a device ID request 2041 (TVID) to the destination TV cloud 3. Note that the transmission unit 513 of the TV gateway 5 may also transmit the token when sending the device ID request 2041.
デバイスID要求2041は、テレビゲートウェイ5がOAuth2のaccess_tokenで各メーカ(TVクラウド3)にTVのdevice_id(TVID)を問い合わせるための要求であり、例えば、以下のものである。
GET https://each-maker.example.com/common/devices/id
・Authorization:“Bearer ”+<access_token>
・x-api-key:<メーカ共通サイトと各メーカで定めたランダム秘密>
・Content-type:application/json
・client_id:メーカ共通サイト別に割り当てた識別子
Device ID request 2041 is a request from the TV gateway 5 to query each manufacturer (TV cloud 3) for the TV's device_id (TVID) using the access_token of OAuth2, and is, for example, as follows:
GET https://each-maker. example. com/common/devices/id
・Authorization: “Bearer” + <access_token>
• x-api-key: <A random secret code set by each manufacturer and shared by the manufacturer>
・Content-type: application/json
- client_id: An identifier assigned to each manufacturer's common website.
TVクラウド3は、記憶部311のDBを参照し、取得したトークンに対応するTVIDを取得する。また、TVクラウド3は、取得したTVIDに対応するデバイスの情報(当該TVIDのテレビジョン装置2の属性情報)も取得するようにしてもよい。ステップS32において、TVクラウド3の送信部313は、TVID等の情報をデバイスID応答2050として、テレビゲートウェイ5へ送信する。デバイスID応答2050の例として以下のようなものがある。
・“device_id”:<id>(テレビジョン装置2にTVクラウド3が付与したTVID)
・“model”:<model name>(テレビジョン装置2のモデル即ち表示画面インチや2K、4K、8K等の画素数情報等)
The TV Cloud 3 refers to the DB in the storage unit 311 and obtains a TVID corresponding to the acquired token. The TV Cloud 3 may also obtain device information corresponding to the acquired TVID (attribute information of the television device 2 for that TVID). In step S32, the transmission unit 313 of the TV Cloud 3 transmits the TVID and other information as a device ID response 2050 to the TV gateway 5. An example of a device ID response 2050 is as follows.
• “device_id”: <id> (TVID assigned to television device 2 by TV Cloud 3)
• “model”: <model name> (the model of the television device 2, i.e., display screen size in inches, pixel count information such as 2K, 4K, 8K, etc.)
ステップS33において、テレビゲートウェイ5の生成部514は、取得したTVID(デバイスID)とユーザIDとテレビジョン装置2のモデル情報(model)とを関連付けた情報バインド情報をDBの情報として、記憶部511へ登録する。 In step S33, the generation unit 514 of the TV gateway 5 registers the information binding information, which associates the acquired TVID (device ID), user ID, and model information (model) of the television device 2, as DB information in the storage unit 511.
また、テレビゲートウェイ5の生成部514は、パス・キー2051を生成する。また、ステップS34において、送信部513は、当該パス・キーをコンテンツ提供サーバ4へ送信する。当該パス・キーは、以下の情報を含む。
・“pass_key”:<pass_key>,(ステップS44以降の操作コマンド2090から操作コマンド2093の動作の際にこのpass_keyをIDとして用いる)
・“expires_in”:86400,(expires_inは最初のアクセスではpreferenceが用意できない場合でも10日とか猶予付きで返す。)
・“model”:<model name>(デバイスID応答のmodelの情報でテレビジョン装置2のモデル即ち表示画面インチや2K、4K、8K等の画素数情報等)
Furthermore, the generation unit 514 of the TV gateway 5 generates a pass key 2051. Also, in step S34, the transmission unit 513 transmits the pass key to the content provision server 4. The pass key includes the following information.
• “pass_key”: <pass_key>, (This pass_key is used as the ID when executing operation commands 2090 to 2093 from step S44 onwards)
• “expires_in”: 86400 (expires_in returns a grace period of 10 days or so even if preference cannot be provided on the first access.)
• “model”: <model name> (Information about the model in the device ID response, such as the model of the television device 2, i.e., the display screen size in inches, and pixel count information such as 2K, 4K, 8K, etc.)
また、ステップS35において、テレビゲートウェイ5の生成部514は、生成したパス・キーを記憶部511に記憶する。 Furthermore, in step S35, the generation unit 514 of the television gateway 5 stores the generated pass key in the storage unit 511.
コンテンツ提供サーバ4は、テレビゲートウェイ5からパス・キーを取得すると、パス・キーに含まれた情報を記憶する。具体的には、ECサイトのユーザID毎に下記の情報が記憶される。
・access_token
・refresh_token
・pass_key
・model // 連携したTVモデル情報
When the content provision server 4 obtains a pass key from the TV gateway 5, it stores the information contained in the pass key. Specifically, the following information is stored for each user ID of the e-commerce site.
・access_token
・refresh_token
・pass_key
• model // Linked TV model information
ステップS36において、ユーザ端末1050は、アプリケーションの起動により、コンテンツ提供サーバ4が提供するサービスにサービスログインをする。これにより、スマートフォン1は、ECサイト画面を表示する。当該アプリケーションが出力するECサイト画面には、テレビジョン装置2へ接続するためのボタンも出力する。なお、ステップS37において、コンテンツ提供サーバ4は、ステップS36のログインに応じて、ユーザ端末1050にデバイス情報2070を送信する。ここでいうデバイス情報2070とは、パス・キー2051に含まれるデバイスID、ユーザID、モデルネームのいずれか1つまたは2つまたは3つの組み合わせである。 In step S36, the user terminal 1050 logs in to the service provided by the content provision server 4 by launching the application. As a result, the smartphone 1 displays the e-commerce site screen. The e-commerce site screen output by the application also displays a button for connecting to the television device 2. In step S37, the content provision server 4 sends device information 2070 to the user terminal 1050 in response to the login in step S36. The device information 2070 here refers to one, two, or three combinations of the device ID, user ID, and model name included in the pass key 2051.
スマートフォン1のユーザは、ECサイト画面のリンク先について、テレビジョン装置2へ接続するためのボタンを選択する。ステップS38において、ユーザ端末1050は、当該選択に応じて、リンク先のURLをコンテンツ提供サーバ4へ送信することで、テレビ表示要求(TV表示要求2071)を送信する。 The user of smartphone 1 selects a button on the EC site screen to connect to television device 2. In step S38, the user terminal 1050 sends a television display request (TV display request 2071) by transmitting the URL of the linked destination to the content provision server 4, in accordance with the selection.
コンテンツ提供サーバ4は、ユーザ端末1050からTV表示要求2071を受信すると、ステップS39において、テレビゲートウェイ5に対して、トークン、パス・キー、およびリンク先のURLを含む表示要求2072を送信することで、テレビジョン装置2に対して表示要求をする。表示要求2072の情報の構成は、以下の通りである。
POST https://tv-common.example.com/common/devices/control
Authorization:“Bearer ”+<access_token>
x-api-key:<pass_key>
Content-type:application/jison
{“command_type”:“keycode”
”keycode”:“<common key code>”}
{“command_type”:“webview”,
”site”:“<Website URL>”,
“Template”:“full”}
When the content provision server 4 receives a TV display request 2071 from the user terminal 1050, in step S39, it sends a display request 2072 to the television gateway 5, which includes a token, a pass key, and the URL of the link destination, thereby making a display request to the television device 2. The information in the display request 2072 is structured as follows.
POST https://tv-common. example. com/common/devices/control
Authorization: “Bearer” + <access_token>
x-api-key:<pass_key>
Content-type:application/jison
{“command_type”: “keycode”
“keycode”: “<common key code>”}
{“command_type”: “webview”,
“site”: “<Website URL>”,
“Template”: “full”}
テレビゲートウェイ5の取得部512は、コンテンツ提供サーバ4から、トークン、パス・キー、およびリンク先のURLを含む表示要求2072の情報を受信する。そして、取得部512は、x-api-keyのヘッダからpass_keyを取り出す。 The acquisition unit 512 of the TV gateway 5 receives information from the content provision server 4 regarding the display request 2072, including the token, pass key, and the URL of the linked page. The acquisition unit 512 then extracts the pass_key from the x-api-key header.
ステップS40において、取得部512は、当該パス・キー(pass_key)および記憶部511に記憶されている情報を用いて、アクセス先とアクセス元を判別する。ステップS41において、送信部513は、判別した結果をもとにTVクラウド3にトークン・URLを含む情報を送信すると共に、表示要求をする。このように、送信部513は、送信先のTVクラウド3へトークンと、表示対象の画像のアクセス先とを送信する。なお、テレビゲートウェイ5は、アクセス元とメーカ別にアクセス数を計測する。 In step S40, the acquisition unit 512 uses the pass key (pass_key) and the information stored in the storage unit 511 to determine the access destination and access source. In step S41, the transmission unit 513 transmits information including the token URL to the TV cloud 3 based on the determination result, and also sends a display request. In this way, the transmission unit 513 transmits the token and the access destination of the image to be displayed to the destination TV cloud 3. The TV gateway 5 measures the number of accesses by access source and manufacturer.
送信部513が、TVクラウド3に送信する表示要求2073には、トークン、クライアントID、URL、メッセージが含まれている。当該情報の例は、以下の通りである。
POST https://each-maker.example.com/common/devices/control
Authorization:“Bearer ”+<access_token>
x-api-key:<メーカ共通サイトと各メーカで定めたランダム秘密>
Content-type:application/json
{“command_type”:“keycode”,
“keycode”:<common key code>,
“client_id”:<client_id>,
“messageid:<message ID>}
{“command_type”:“webview”,
“site”: <Website URL>(テレビ用Website URL),
“template”:“full”,
“client_id”:<client_id>,
“messageid”:<message ID>}
The display request 2073 that the transmitting unit 513 sends to the TV cloud 3 includes a token, client ID, URL, and message. An example of this information is as follows:
POST https://each-maker. example. com/common/devices/control
Authorization: “Bearer” + <access_token>
x-api-key: <A common site for manufacturers and a random secret set by each manufacturer>
Content-type:application/json
{“command_type”: “keycode”,
“keycode”: <common key code>,
“client_id”:<client_id>,
“messageid:<message ID>}
{“command_type”: “webview”,
“site”: <Website URL> (Website URL for TV),
“template”: “full”,
“client_id”:<client_id>,
“messageid”:<message ID>}
TVクラウド3の取得部312は、テレビゲートウェイ5から表示要求2073を受信する。取得部312は、表示要求2073のAuthorizationヘッダからaccess_tokenを取り出し、テレビジョン装置2を判別する。ステップS42において、TVクラウド3の送信部313は、判別した結果に基づいてテレビジョン装置2へ表示要求2074を出力する。なお、当該表示要求は、メーカ独自の表示要求コマンドに置き換えられてもよい。また、必要に応じて、TVクラウド3は、client_id毎のアクセスを集計してテレビにリクエストを行ってもよい。 The acquisition unit 312 of the TV Cloud 3 receives a display request 2073 from the TV gateway 5. The acquisition unit 312 extracts the access_token from the Authorization header of the display request 2073 and identifies the television device 2. In step S42, the transmission unit 313 of the TV Cloud 3 outputs a display request 2074 to the television device 2 based on the identification result. Note that this display request may be replaced with a manufacturer-specific display request command. Furthermore, if necessary, the TV Cloud 3 may aggregate access data for each client_id and send requests to the television.
ステップS43において、テレビジョン装置2は、表示要求に応じてブラウザを起動させ、onLoadやonClickのEvent等でjavascript(登録商標)を実行し、表示対象のURL先の画像を表示出力する。また、テレビジョン装置2は、サービサー、ユーザ、TVメーカ、表示した広告を識別する表示操作結果通知2080を計測サーバ6へ通知する。計測サーバ6は、TVクラウド3が複数のテレビジョン装置2へ広告表示した結果を集計する。その集計結果を基にメーカまたはテレビゲートウェイ5、または計測サーバ6の所有者がコンテンツ提供サーバ4を所有するEコマースのプラットフォーマへ広告宣伝費を要求する。 In step S43, the television device 2 launches a browser in response to a display request, executes JavaScript (registered trademark) in an onLoad or onClick event, and displays the image at the URL to be displayed. The television device 2 also notifies the measurement server 6 of a display operation result notification 2080, identifying the servicer, user, TV manufacturer, and the displayed advertisement. The measurement server 6 aggregates the results of the advertisement display by the TV cloud 3 to multiple television devices 2. Based on these aggregated results, the manufacturer, TV gateway 5, or the owner of the measurement server 6 requests advertising fees from the e-commerce platform provider that owns the content provision server 4.
ユーザ端末1050のアプリケーションはテレビジョン装置2の画面をステップS44における操作コマンド2090を基に操作することができる。ユーザ端末1050からの操作に応じてコンテンツ提供サーバ4に操作コマンド2090を送る。 The application on the user terminal 1050 can operate the screen of the television device 2 based on the operation command 2090 in step S44. The operation command 2090 is sent to the content provision server 4 in response to the operation from the user terminal 1050.
ステップS45において、コンテンツ提供サーバ4は、ステップS44で送信された操作コマンド2090をもとに共通キーコードを含む操作コマンド2091をテレビゲートウェイ5に送信する。共通キーコードはテレビ操作リモコン操作ボタンに対応したように構成されたコマンドである。数字、十字カーソル、ボリューム/チャネル/電源、カラーキー、機能キー、メディアコントロール、メーカ固有のコマンドがある。このメーカ固有のコマンドとは、各メーカ独自に動作させるためのコマンドである。すなわち、メーカ固有コマンドとは、各メーカにより設定された、メーカ独自の動作用コマンドである。共通キーコードはメーカ固有のコマンドを除きメーカ間で共通の操作を行うためのキーコードである。 In step S45, the content provision server 4 sends an operation command 2091, including a common key code, to the TV gateway 5 based on the operation command 2090 sent in step S44. The common key code is a command configured to correspond to the operation buttons on a TV remote control. It includes numbers, directional cursors, volume/channel/power, color keys, function keys, media controls, and manufacturer-specific commands. These manufacturer-specific commands are commands used to operate the system uniquely for each manufacturer. In other words, manufacturer-specific commands are manufacturer-specific operation commands set by each manufacturer. The common key code, excluding the manufacturer-specific commands, is a key code used for common operations across manufacturers.
数字コマンドは“11”“12”“0”“1”“2”“3”“4”“5”“6”“7”“8”“9”“.”である。 The number commands are "11", "12", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", and ".".
十字カーソルコマンドは“up”“down”“left”“right”“page up”“page down”“page left”“page right”“enter”“exit”“back”である。 The crosshair cursor commands are “up”, “down”, “left”, “right”, “page up”, “page down”, “page left”, “page right”, “enter”, “exit”, and “back”.
ボリューム/チャネル/電源コマンドは“power”“power off”“power on”“volume up”“volume down”“channel up”“channel down”である。 The volume/channel/power commands are “power”, “power off”, “power on”, “volume up”, “volume down”, “channel up”, and “channel down”.
カラーキーは“blue”“red”“green”“yellow”である。 The color keys are "blue," "red," "green," and "yellow."
機能キーコマンドは“electronic program guide”“initial configuration”“select broadcast type”“input select”“display information”“mute”“contents menu”“closed caption”である。 The function key commands are “electronic program guide”, “initial configuration”, “select broadcast type”, “input select”, “display information”, “mute”, “contents menu”, and “closed caption”.
メディアコントロールコマンドは“Play”“stop”“pause”“rewind ”“forward”“backward”“skip forward”“skip backward”“record”である。 The media control commands are "Play," "Stop," "Pause," "Rewind," "Forward," "Backward," "Skip Forward," "Skip Backward," and "Record."
テレビゲートウェイ5は、ステップS45における操作コマンド2091を受信すると、ステップS46においてTVクラウド3に操作コマンド2092を送付する。操作コマンド2092は操作コマンド2091と同じコマンドである。
ステップS47において、テレビゲートウェイ5は、応答メッセージとして応答メッセージID2094をコンテンツ提供サーバ4に送信する。メッセージIDは以下の構成である。
{messageid: <message ID>}
When the TV gateway 5 receives the operation command 2091 in step S45, it sends the operation command 2092 to the TV cloud 3 in step S46. Operation command 2092 is the same command as operation command 2091.
In step S47, the TV gateway 5 sends response message ID 2094 as a response message to the content provision server 4. The message ID has the following structure:
{messageid: <message ID>}
TVクラウド3は、テレビゲートウェイ5から操作コマンド2092を受信すると、ステップS48において、操作コマンド2093をテレビジョン装置2に送信する。操作コマンド2093は操作コマンド2092と同じまたは同等の情報で、テレビジョン装置2の表示画面の操作を行うメーカ独自のコマンドである。TVクラウド3は、操作コマンド2092をテレビジョン装置2の操作するための各社キーコードである操作コマンド2093に置き換える。テレビジョン装置2の操作コマンドの標準化が進んだ場合、操作コマンド2092を変換せずに、そのまま操作コマンド2093として利用することができる。 When TV Cloud 3 receives operation command 2092 from the TV Gateway 5, in step S48, it transmits operation command 2093 to the television device 2. Operation command 2093 is a manufacturer-specific command that controls the display screen of the television device 2, containing the same or equivalent information as operation command 2092. TV Cloud 3 replaces operation command 2092 with operation command 2093, which is the manufacturer's key code for operating the television device 2. If the operation commands of the television device 2 become standardized, operation command 2092 can be used directly as operation command 2093 without conversion.
テレビジョン装置2は、操作コマンド2093に基づき、テレビジョン装置2の映像表示部233に表示された画像を操作する。また、ステップS49において、テレビジョン装置2は、操作コマンドを識別する操作結果通知2081を計測サーバ6へ通知する。 The television device 2 operates the image displayed on its video display unit 233 based on the operation command 2093. Furthermore, in step S49, the television device 2 notifies the measurement server 6 of an operation result notification 2081 that identifies the operation command.
図11に示したフローチャートは、複数のメーカを統合してプラットフォーマのコンテンツ提供サーバ4にアクセスする処理の説明であるが、第1実施形態のTVクラウド3のように、メーカが単独でコンテンツ提供サーバ4にアクセスすることもできる。この場合、TVクラウド3は、テレビゲートウェイ5の動作を合わせたものになる。この時、TVクラウド3とテレビゲートウェイ5との間の情報のやり取りは省略される。 The flowchart shown in Figure 11 illustrates the process of integrating multiple manufacturers to access the platform provider's content delivery server 4. However, as in the first embodiment's TV Cloud 3, a manufacturer can also access the content delivery server 4 independently. In this case, the TV Cloud 3 combines the operation of the TV Gateway 5. At this time, the exchange of information between the TV Cloud 3 and the TV Gateway 5 is omitted.
テレビゲートウェイ5は、コンテンツ提供サーバ4から認証コードを取得し、認証コードに基づいて特定された送信先のTVクラウド3へ当該認証コードを送信し、コンテンツ提供サーバ4からトークンと、表示対象の画像のアクセス先とを取得し、送信先のTVクラウド3へ当該トークンと、表示対象の画像のアクセス先とを送信する。これにより、コンテンツ提供サーバ4側からは、複数のTVクラウド3のいずれに送信すべきか判断することなく、処理することができる。 The TV gateway 5 obtains an authentication code from the content provider server 4, sends the authentication code to the destination TV cloud 3 identified based on the authentication code, obtains a token and the access destination of the image to be displayed from the content provider server 4, and sends the token and the access destination of the image to the destination TV cloud 3. This allows the content provider server 4 to process the data without having to decide which of the multiple TV clouds 3 to send it to.
なお、本実施形態の各装置(ユーザ端末1050、テレビジョン装置2、TVクラウド3、コンテンツ提供サーバ4、テレビゲートウェイ5、計測サーバ6)で実行されるプログラムは、インストール可能な形式又は実行可能な形式のファイルでCD(Compact Disc)-ROM(Read Only Memory)、フレキシブルディスク(FD)、CD-R(Recordable)、DVD(Digital Versatile Disk)等のコンピュータ装置で読み取り可能な記録媒体に記録して提供することができる。また、当該プログラムを、インターネット等のネットワーク経由で提供または配布するようにしてもよい。 Furthermore, the programs executed by each device in this embodiment (user terminal 1050, television device 2, TV cloud 3, content provision server 4, TV gateway 5, measurement server 6) can be provided as installable or executable files recorded on a computer-readable recording medium such as a CD (Compact Disc)-ROM (Read Only Memory), flexible disk (FD), CD-R (Recordable), or DVD (Digital Versatile Disk). Alternatively, these programs may be provided or distributed via a network such as the Internet.
(第3実施形態)
第3実施形態にかかる情報連携システムSは、第2実施形態の情報連携システムSの全体構成と同様である。第3実施形態にかかる情報連携システムSでは、テレビゲートウェイ5が、TVクラウド3からだけではなく、コンテンツ提供サーバ4からもトークンを取得し、これらのトークンを用いて、テレビジョン装置2のIDと、ユーザ端末1050のユーザIDとを連携する。
(Third Embodiment)
The information sharing system S according to the third embodiment has the same overall configuration as the information sharing system S according to the second embodiment. In the information sharing system S according to the third embodiment, the TV gateway 5 obtains tokens not only from the TV cloud 3 but also from the content provision server 4, and uses these tokens to link the ID of the television device 2 with the user ID of the user terminal 1050.
なお、図6に示した、TVクラウド3が記憶するデータの構造が異なる。具体的に、TVクラウド3は、図6に示したTVIDの代わりに、HA-IDを記憶する。また、図6に示したECサイトサーバIDの代わりに、PF-IDを記憶する。HA-IDは、テレビメーカの会社IDであるTC-IDと、テレビジョン装置2のデバイスIDであるTV-IDとを含む識別情報である。PF-IDは、ビデオプラットフォームの会社IDである。TC-IDは、TVクラウド3を識別する識別子となる。また、PF-IDは、コンテンツ提供サーバ4を識別する識別子となる。 Note that the data structure stored by TV Cloud 3, as shown in Figure 6, is different. Specifically, TV Cloud 3 stores an HA-ID instead of the TVID shown in Figure 6. Also, it stores a PF-ID instead of the EC site server ID shown in Figure 6. The HA-ID is identification information that includes the TC-ID, which is the company ID of the TV manufacturer, and the TV-ID, which is the device ID of the television equipment 2. The PF-ID is the company ID of the video platform. The TC-ID serves as an identifier to identify TV Cloud 3. Furthermore, the PF-ID serves as an identifier to identify the content provision server 4.
次に、第3実施形態の情報連携システムSにおける各構成の処理の流れについて説明する。図12は、第3実施形態の情報連携システムSにおける全体処理を示すフローチャートである。図12に示すフローチャートも、ユーザがテレビジョン装置2のリモコン等を操作して、いわゆるポータル画面で、ユーザがスマートフォン1と連携させたいECサイト(例えば、コンテンツ提供を受けるサーバ)を指定する場面をスタートとする。なお、TVクラウド3が生成する認証コードおよびトークンは、メーカを識別する情報を含むものとする。すなわち、TVクラウド3は、自装置を識別する情報を認証コードおよびトークンに含めるものとする。 Next, the processing flow of each component in the information linkage system S of the third embodiment will be described. Figure 12 is a flowchart of the overall processing in the information linkage system S of the third embodiment. The flowchart shown in Figure 12 also starts with the user operating the remote control of the television device 2, etc., to specify the e-commerce site (for example, a server that provides content) that the user wants to link with their smartphone 1 on a so-called portal screen. The authentication code and token generated by TV Cloud 3 include information that identifies the manufacturer. That is, TV Cloud 3 includes information that identifies its own device in the authentication code and token.
また、図12のステップS61は、図7のステップS1、図11のステップS12と同様である。なお、ステップS61では、テレビジョン装置2は、ユーザが指定したECサイト(ビデオプラットフォーム)に対応するPF-IDをTVクラウド3へ送信する。 Furthermore, step S61 in Figure 12 is the same as step S1 in Figure 7 and step S12 in Figure 11. In step S61, the television device 2 transmits the PF-ID corresponding to the EC site (video platform) specified by the user to the TV cloud 3.
ステップS62において、TVクラウド3は、レスポンスとして、テレビゲートウェイ5のURLとURL認証コードとを含むQRコードをテレビジョン装置2に送付する。当該QRコードには、テレビゲートウェイ5のURLと、下記の時限付き認証コードが含まれる。 In step S62, the TV Cloud 3 sends a QR code containing the URL of the TV Gateway 5 and a URL authentication code to the Television Device 2 as a response. This QR code contains the URL of the TV Gateway 5 and the following time-limited authentication code.
{“code”:<authorization code>(認証コード),
“state”:HEX(JSON.stringify({“tcid”;<TC-ID>,“pfid”;<PF-ID>,“salt”;<random string>})+hash)(state情報)}
{"code": <authorization code> (authentication code),
“state”: HEX (JSON. stringify ({“tcid”; <TC-ID>, “pfid”; <PF-ID>, “salt”; <random string>}) + hash) (state information)}
URL認証コードは、テレビゲートウェイ5を特定するURL情報と、コンテンツ提供サーバ4およびTVクラウド3間の認証を行うための認証コードと、state情報とを含んだ情報である。認証コードは、テレビジョン装置2のメーカを判別するための部分とテレビジョン装置2を判別するための部分を含むようにしてもよい。また、認証コードに含まれるテレビジョン装置2を判別するため部分は、ランダムな値である。また、TVクラウド3は、この値をテレビジョン装置2へ送信した時刻を記憶部311のDBの情報として対応付けてもよい。state情報は、メーカのTC-IDとビデオプラットフォームのPF-IDとがエンコードされた情報を含むようにしてもよい。 The URL authentication code is information that includes URL information to identify the TV gateway 5, an authentication code for authentication between the content provision server 4 and the TV cloud 3, and state information. The authentication code may include a portion for identifying the manufacturer of the television device 2 and a portion for identifying the television device 2. The portion of the authentication code used to identify the television device 2 is a random value. The TV cloud 3 may also associate the time this value was transmitted to the television device 2 with information in the database of the storage unit 311. The state information may include information encoded with the manufacturer's TC-ID and the video platform's PF-ID.
URL認証コードの情報の例は、以下の通りである。
https://XXXXXXX YYYYYYYYY
Xの部分にはテレビゲートウェイ5のURL、Yの部分にはOAuth2のauthorization codeが入っている。authorization codeの部分にはメーカとテレビを特定できる情報が入っている。メーカとテレビジョン装置2を特定できる情報はどちらか1つでもよい。URL認証コードの送付形式は上記の情報が含まれていれば、どのような形式でもよい。なお、Yの部分にstate情報を含めてもよい。
An example of URL authentication code information is as follows:
https://XXXXXXXX YYYYYYYYY
The X part contains the URL of TV Gateway 5, and the Y part contains the authorization code for OAuth2. The authorization code contains information that identifies the manufacturer and the television. Either one of the pieces of information that identifies the manufacturer or the television device 2 is sufficient. The URL authentication code can be sent in any format as long as it contains the above information. Note that state information may also be included in the Y part.
テレビジョン装置2の取得部243は、TVクラウド3からURL認証コードを取得すると、表示制御部244が、当該URL認証コードの内容を映像表示部233で光学的に画像または映像として表示出力する。なお、表示制御部244での表示形態は、QRコード、バーコード、テキスト等で、上記URL認証コードに含まれる情報を光学的に画像または映像として表示出力できればよい。また、第1実施形態および第2実施形態では、QRコードで説明しているが、本実施形態と同様にQRコードに限定されるものではない。 When the acquisition unit 243 of the television device 2 acquires a URL authentication code from the TV cloud 3, the display control unit 244 optically displays the contents of the URL authentication code as an image or video using the video display unit 233. The display format used by the display control unit 244 can be a QR code, barcode, text, etc., as long as the information contained in the URL authentication code can be optically displayed as an image or video. Furthermore, while the first and second embodiments use QR codes for explanation, the invention is not limited to QR codes, as is the case in these embodiments.
また、図7のステップS3、図11のステップS23と同様、ステップS63において、ユーザ端末1050は、撮像手段で光学的に撮影した画像情報からURL認証コード読み取り機能により、映像表示部233に光学的に表示されたURL認証コードの情報を読み取る。これにより、ユーザ端末1050は、テレビゲートウェイ5のURLおよび認証コード等を取得する。当該認証コード部分は、時限付き認証コードで以下のように構成されている。
“code” : <authorization code>,
“state” : <string> // 乱数
Furthermore, similar to step S3 in Figure 7 and step S23 in Figure 11, in step S63, the user terminal 1050 reads the URL authentication code information optically displayed on the video display unit 233 from the image information optically captured by the imaging means using the URL authentication code reading function. As a result, the user terminal 1050 obtains the URL and authentication code of the TV gateway 5. The authentication code portion is a time-limited authentication code and is configured as follows.
“code”: <authorization code>,
“state”: <string> // Random number
ステップS64において、ユーザ端末1050は、テレビゲートウェイ5のURL、認証コード、およびstate情報を取得すると、当該URLに基づいて、テレビゲートウェイ5へアクセスすると共に、認証コードおよびstate情報を送信し、認証リクエストする。なお、state情報は、上述のように、TC-IDとPF-IDとを含む。 In step S64, the user terminal 1050 obtains the URL, authentication code, and state information of the TV gateway 5. Based on the URL, it accesses the TV gateway 5, transmits the authentication code and state information, and submits an authentication request. The state information includes the TC-ID and PF-ID, as described above.
認証リクエスト時に送信する情報は、以下の通りである。
“code” : <authorization code>,
“state” : <string> // 乱数
The information to be sent when submitting an authentication request is as follows:
“code”: <authorization code>,
“state”: <string> // Random number
ステップS65において、テレビゲートウェイ5の取得部512が、認証コードおよびstate情報を受信すると、テレビゲートウェイ5の送信部513が、連携指示を示す連携ボタンを含むHTML形式の画面をユーザ端末1050へ送信する。当該HTMLは、PF-IDのOAuth2 Authorization EndpointにアクセスするURLとパラメータを含むようにしてもよい。 In step S65, when the acquisition unit 512 of the TV gateway 5 receives the authentication code and state information, the transmission unit 513 of the TV gateway 5 sends an HTML screen containing a linking button indicating a linking instruction to the user terminal 1050. This HTML may include a URL and parameters for accessing the PF-ID's OAuth2 Authorization Endpoint.
ユーザ端末1050は、上記のHTML形式の画面を取得する。そして、ユーザ端末1050のユーザ操作により連携ボタンが押下されると(ステップS66)、ビデオプラットフォームであるコンテンツ提供サーバ4に対して認可リクエストをする。また、コンテンツ提供サーバ4は、当該認可リクエストを受信し、それに応答する旨の情報をユーザ端末1050へ送信する(ステップS67)。 The user terminal 1050 acquires the HTML-formatted screen shown above. When the user terminal 1050 presses the link button (step S66), it sends an authorization request to the content provision server 4, which is the video platform. The content provision server 4 receives this authorization request and sends information to the user terminal 1050 indicating its response (step S67).
上記認可リクエスト時に送信する情報は、例えば、以下の構成である。
Authorization: “Basic ” + Base64(<client_id> + “:” + <client_secret>)Request
{
“response_type”:“code”
“code”:<authorization code> (認証コード)
“redirect_uri”:<TGW Endpoint>(テレビゲートウェイ5のエンドポイント)
“client_id”:<TG-ID> (テレビゲートウェイ5のID)
“scope”:<VPF提供> (トークンの認証範囲)
“state”:HEX(JSON.stringify({“tcid”;<TC-ID>,“pfid”;<PF-ID>,“salt”;<random string>})+hash)(state情報)
}
The information sent when making the above authorization request may consist of the following, for example:
Authorization: “Basic” + Base64 (<client_id> + “:” + <client_secret>) Request
{
“response_type”: “code”
“code”: <authorization code> (authentication code)
“redrect_uri”: <TGW Endpoint> (Endpoint of TV Gateway 5)
“client_id”: <TG-ID> (ID of TV Gateway 5)
“scope”: <Provided by VPF> (Token authentication scope)
“state”: HEX (JSON. stringify ({“tcid”; <TC-ID>, “pfid”; <PF-ID>, “salt”; <random string>}) + hash) (state information)
}
コンテンツ提供サーバ4においてユーザ情報が登録されていない場合、ユーザ端末1050およびコンテンツ提供サーバ4の間で、ユーザ登録処理をする(ステップS68)。ここで、ユーザ登録処理とは、コンテンツ提供サーバ4にログインするための情報であるユーザIDおよびパスワードを登録したり、ユーザの属性情報を登録したりする処理である。 If user information is not registered on the content provision server 4, a user registration process is performed between the user terminal 1050 and the content provision server 4 (step S68). Here, the user registration process involves registering the user ID and password, which are the information needed to log in to the content provision server 4, and registering the user's attribute information.
続いて、ユーザ端末1050が、コンテンツ提供サーバ4へログイン要求をして、コンテンツ提供サーバ4は、当該ログイン要求に応じたレスポンスをする(ステップS69)。当該レスポンスの例として以下の情報(認可コード)を出力する。
Response
{“code” : <authorization code>,
“state” : <state>}
Next, the user terminal 1050 requests login from the content provision server 4, and the content provision server 4 responds to the login request (step S69). As an example of the response, the following information (authorization code) is output.
Response
{“code”: <authorization code>,
“state”: <state>}
ユーザ端末1050は、上記レスポンスを受信すると、テレビゲートウェイ5へ連携指示を示すリダイレクトをする(ステップS70)。なお、ユーザ端末1050は、上記認可コードをテレビゲートウェイ5へ送信するようにしてもよい。 Upon receiving the above response, the user terminal 1050 redirects to the TV gateway 5 to instruct it to cooperate (step S70). Alternatively, the user terminal 1050 may also transmit the above authorization code to the TV gateway 5.
テレビゲートウェイ5の取得部512が、連携指示を示すリダイレクトを受け付けると、テレビゲートウェイ5は、ユーザ端末1050から取得したstate情報に含まれるTC-IDに基づいて、メーカを特定する。すなわち、テレビゲートウェイ5は、メーカを割り振る(ステップS71)。 When the acquisition unit 512 of the TV gateway 5 receives a redirect indicating a linkage instruction, the TV gateway 5 identifies the manufacturer based on the TC-ID contained in the state information acquired from the user terminal 1050. That is, the TV gateway 5 assigns the manufacturer (step S71).
そして、ステップS72において、テレビゲートウェイ5の送信部513は、送信先のTVクラウド3へ認証コードを送信することでトークン要求をする(ステップS72)。 Then, in step S72, the transmission unit 513 of the TV gateway 5 requests a token by sending an authentication code to the destination TV cloud 3 (step S72).
当該トークン要求時に送信する情報は、例えば、以下の構成である。
Authorization: “Basic ” + Base64(TG-ID + “:” + <client_secret>)
Request Parameters
{
grant_type:“authorization_code”、
code :<authorization code> (認証コード)、
state :<string> (state情報)、
redirect_uri:<redirect_uri>、
client_id:<TG-ID>
}
The information sent when requesting the token may consist of the following, for example:
Authorization: “Basic” + Base64 (TG-ID + “:” + <client_secret>)
Request Parameters
{
grant_type: “authorization_code”,
code: <authorization code> (authentication code)
state: <string> (state information),
redirect_uri:<redirect_uri>,
client_id:<TG-ID>
}
TVクラウド3の生成部314は、記憶部311のDBを参照し、取得部312により取得されたコンテンツ提供サーバ4を識別する情報(例えば、state情報に含まれる情報)および認証コードに対応する情報があるか否かを判断することで認証する。生成部314は、記憶部311のDBを参照し、取得部312により取得されたコンテンツ提供サーバ4を識別する情報および認証コードに対応する情報がある場合、トークン(第1トークン)を生成する。また、生成部314は、上記DBにおける取得部312により取得されたコンテンツ提供サーバ4を識別する情報および認証コードを有する情報に、第1トークンをさらに対応付ける。 The generation unit 314 of the TV Cloud 3 authenticates by referring to the DB of the storage unit 311 and determining whether there is information corresponding to the information identifying the content provider server 4 (for example, information included in the state information) and the authentication code acquired by the acquisition unit 312. The generation unit 314 refers to the DB of the storage unit 311 and, if there is information corresponding to the information identifying the content provider server 4 and the authentication code acquired by the acquisition unit 312, generates a token (first token). Furthermore, the generation unit 314 associates the first token with the information in the DB that identifies the content provider server 4 and the authentication code acquired by the acquisition unit 312.
ステップS73において、TVクラウド3の送信部313は、生成部314により生成された第1トークンをテレビゲートウェイ5へ送信する。 In step S73, the transmission unit 313 of the TV cloud 3 transmits the first token generated by the generation unit 314 to the TV gateway 5.
具体的に、TVクラウド3の送信部313は、OAuth2のToken Responseをトークンとしてテレビゲートウェイ5に送付する。このレスポンスのOAuth2 Access Token Responseは以下のように構成される。
Response
{“access_token”: <access token>,
“token_type”: “Bearer”,
“expires_in”: 3600,
“refresh_token”: <refresh token>}
Specifically, the transmission unit 313 of the TV Cloud 3 sends the OAuth2 Token Response as a token to the TV Gateway 5. The OAuth2 Access Token Response in this response is structured as follows.
Response
{“access_token”: <access token>,
“token_type”: “Bearer”,
“expires_in”: 3600,
“refresh_token”: <refresh token>}
TVクラウド3がテレビゲートウェイ5にアクセスするときはaccess_tokenを付ける。expires_inは、access_token の有効期間(秒)であり、access_tokenを受け取ったときに無効になる時刻と共に記憶しておき、それまではこのaccess_tokenを繰り返し使う。refresh_tokenは、コンテンツ提供サーバ4が秘密に保管する。セキュリティ上、単純にlocal storageに置いておくのは良くないためである。access_token、refresh_tokenを各メーカで発行時、先頭にテレビメーカを識別する識別子を付けることでテレビメーカを特定することができる。 When TV Cloud 3 accesses TV Gateway 5, it attaches an access_token. `expires_in` is the validity period (in seconds) of the access_token; it is stored along with the time it expires when the access_token is received, and the access_token is reused repeatedly until then. The refresh_token is stored secretly by the content provision server 4. For security reasons, simply storing it in local storage is not advisable. When each manufacturer issues an access_token and refresh_token, they can identify the TV manufacturer by adding an identifier to the beginning of the token.
テレビゲートウェイ5の取得部512が、上記第1トークンを取得すると、テレビゲートウェイ5の送信部513が、認可コードを含む情報を送信すると共にコンテンツ提供サーバ4へトークン要求をする(ステップS74)。 When the acquisition unit 512 of the TV gateway 5 acquires the first token, the transmission unit 513 of the TV gateway 5 transmits information including the authorization code and requests a token from the content provision server 4 (step S74).
当該トークン要求時に送信する情報は、例えば、以下の構成である。
Authorization: “Basic” + Base64(TG-ID + “:” + <client_secret>)
Request
{
grant_type:“authorization_code”、
code :<code> (認可コード)、
state :<string> (state情報)、
redirect_uri:<TGW Endpoint>、
client_id:<TG-ID>
}
The information sent when requesting the token may consist of the following, for example:
Authorization: “Basic” + Base64 (TG-ID + “:” + <client_secret>)
Request
{
grant_type: “authorization_code”,
code: <code> (authorization code),
state: <string> (state information),
redirect_uri:<TGW Endpoint>,
client_id:<TG-ID>
}
コンテンツ提供サーバ4は、テレビゲートウェイ5から取得する認可コードに基づいて、当該認可コードに対応するユーザIDを特定する。そして、コンテンツ提供サーバ4は、当該ユーザIDに基づくトークンである第2トークンを生成する。 The content provision server 4 identifies the user ID corresponding to the authorization code obtained from the TV gateway 5. Then, the content provision server 4 generates a second token, which is a token based on that user ID.
ステップS75において、コンテンツ提供サーバ4は、生成した第2トークンをテレビゲートウェイ5へ送信する。なお、コンテンツ提供サーバ4は、第2トークンと、ユーザIDと、ユーザ属性情報とを対応付けて記憶するようにしてもよい。 In step S75, the content provision server 4 transmits the generated second token to the television gateway 5. The content provision server 4 may also store the second token in association with the user ID and user attribute information.
具体的に、コンテンツ提供サーバ4は、OAuth2のToken Responseをトークンとしてテレビゲートウェイ5に送付する。このレスポンスのOAuth2 Access Token Responseは以下のように構成される。
{“access_token”: <access token>,
“token_type”: “Bearer”,
“expires_in”: 3600,
“refresh_token”: <refresh token>}
Specifically, the content provider server 4 sends the OAuth2 Token Response as a token to the TV gateway 5. The OAuth2 Access Token Response in this response is structured as follows.
{“access_token”: <access token>,
“token_type”: “Bearer”,
“expires_in”: 3600,
“refresh_token”: <refresh token>}
テレビゲートウェイ5の取得部512は、コンテンツ提供サーバ4から第2トークンを取得する。そして、テレビゲートウェイ5の送信部513は、第2トークンをコンテンツ提供サーバ4へ送信すると共にコンテンツ提供サーバ4へユーザ情報要求をする(ステップS76)。 The acquisition unit 512 of the TV gateway 5 acquires a second token from the content provision server 4. Then, the transmission unit 513 of the TV gateway 5 transmits the second token to the content provision server 4 and requests user information from the content provision server 4 (step S76).
当該ユーザ情報要求時に送信する情報は、例えば、以下の構成である。
Authorization: “Bearer” + <access token>)
The information transmitted when requesting user information may consist of the following, for example:
Authorization: “Bearer” + <access token>)
コンテンツ提供サーバ4は、テレビゲートウェイ5から取得した第2トークンに対応するユーザIDおよびユーザの属性情報を検索し、これらの情報をレスポンスとしてテレビゲートウェイ5へ送信する(ステップS77)。これにより、テレビゲートウェイ5の取得部512は、ユーザIDおよびユーザの属性情報を取得する。当該レスポンスの情報は、以下のように構成される。
Response
{“user_id”: <UR-ID>(コンテンツ提供サーバ4のサイトにおけるユーザID),
“Preference”: <現在のユーザ属性>(ユーザの生年月日、性別、郵便番号、購買履歴等)}
The content provision server 4 searches for the user ID and user attribute information corresponding to the second token obtained from the TV gateway 5, and sends this information to the TV gateway 5 as a response (step S77). As a result, the acquisition unit 512 of the TV gateway 5 obtains the user ID and user attribute information. The information in the response is structured as follows.
Response
{"user_id": <UR-ID> (User ID on the content provision server 4 site),
"Preference": <Current user attributes>(User's date of birth, gender, postal code, purchase history, etc.)
ステップS78において、コンテンツ提供サーバ4は、PF-IDを送信すると共に、デバイス情報要求をする。当該デバイス情報要求時に送信する情報は、例えば、以下の構成である。
Authorization: “Basic”+Base64(PF-ID + “:” + <client_secret>)
In step S78, the content provision server 4 transmits the PF-ID and requests device information. The information transmitted at the time of the device information request is, for example, configured as follows.
Authorization: “Basic” + Base64 (PF-ID + “:” + <client_secret>)
テレビゲートウェイ5の取得部512が、コンテンツ提供サーバ4からデバイス情報要求を受信すると、テレビゲートウェイ5の送信部513は、ステップS74で送信した第2トークンに対応する第1トークンをTVクラウド3に送信すると共に、デバイス情報要求する(ステップS79)。当該デバイス情報要求時に送信する情報は、例えば、以下の構成である。
Authorization: “Bearer” + <access token>)
When the acquisition unit 512 of the TV gateway 5 receives a device information request from the content provision server 4, the transmission unit 513 of the TV gateway 5 transmits a first token corresponding to the second token transmitted in step S74 to the TV cloud 3, and also requests device information (step S79). The information transmitted at the time of the device information request has the following configuration, for example.
Authorization: “Bearer” + <access token>)
TVクラウド3の取得部312は、第1トークンを取得すると、当該第1トークンに対応するHA-IDと、当該HA-IDに対応するデバイスの情報(当該HA-IDに対応するテレビジョン装置2の属性情報)を取得する。 When the acquisition unit 312 of the TV Cloud 3 acquires the first token, it acquires the HA-ID corresponding to the first token and the device information corresponding to the HA-ID (attribute information of the television device 2 corresponding to the HA-ID).
ステップS80において、TVクラウド3の送信部313は、HA-ID等の情報をレスポンスとして、テレビゲートウェイ5へ送信する。テレビゲートウェイ5の取得部512は、HA-IDと、当該HA-IDに対応するデバイスの情報を取得する。当該レスポンスの例として以下のようなものがある。
Response
{
・“device_id”:<HA-ID>(HA-ID)
・“model”:<model name>(テレビジョン装置2のモデル即ち表示画面インチや2K、4K、8K等の画素数情報等)
}
In step S80, the transmission unit 313 of the TV cloud 3 sends information such as the HA-ID as a response to the TV gateway 5. The acquisition unit 512 of the TV gateway 5 acquires the HA-ID and information about the device corresponding to the HA-ID. An example of such a response is as follows.
Response
{
・“device_id”: <HA-ID> (HA-ID)
• “model”: <model name> (the model of the television device 2, i.e., display screen size in inches, pixel count information such as 2K, 4K, 8K, etc.)
}
ステップS81において、テレビゲートウェイ5の生成部514は、取得したHA-IDと、ユーザIDと、テレビジョン装置2の属性情報であるモデル情報(model)と、PF-IDと、を関連付けたバインド情報をDBの情報として、記憶部511へ登録する。なお、テレビゲートウェイ5の生成部514は、バインド情報として、ユーザの属性情報をさらに含めるようにしてもよい。 In step S81, the generation unit 514 of the TV gateway 5 registers the acquired HA-ID, user ID, model information (model), and PF-ID as bind information in the storage unit 511 as DB information. The generation unit 514 of the TV gateway 5 may also include user attribute information as part of the bind information.
また、テレビゲートウェイ5の生成部514は、パス・キーを生成する。また、ステップS82において、送信部513は、当該パス・キーをコンテンツ提供サーバ4へ送信する。当該パス・キーは、以下の情報を含む。
・“pass_key”:<pass_key>,(操作コマンドの動作の際にこのpass_keyをIDとして用いる)
・“expires_in”:86400,(expires_inは最初のアクセスではpreferenceが用意できない場合でも10日とか猶予付きで返す。)
・“model”:<model name>(デバイスID応答のmodelの情報でテレビジョン装置2のモデル即ち表示画面インチや2K、4K、8K等の画素数情報等)
Furthermore, the generation unit 514 of the TV gateway 5 generates a pass key. Also, in step S82, the transmission unit 513 transmits the pass key to the content provision server 4. The pass key includes the following information.
• “pass_key”: <pass_key> (This pass_key is used as the ID when executing operation commands)
• “expires_in”: 86400 (expires_in returns a grace period of 10 days or so even if preference cannot be provided on the first access.)
• “model”: <model name> (Information about the model in the device ID response, such as the model of the television device 2, i.e., the display screen size in inches, and pixel count information such as 2K, 4K, 8K, etc.)
また、テレビゲートウェイ5の生成部514は、生成したパス・キーを記憶部511に記憶する。 Furthermore, the generation unit 514 of the TV gateway 5 stores the generated pass key in the storage unit 511.
コンテンツ提供サーバ4は、テレビゲートウェイ5からパス・キーを取得すると、パス・キーに含まれた情報を記憶する。具体的に、コンテンツ提供サーバ4は、ECサイトのユーザID毎に下記の情報を記憶する。
・access_token
・refresh_token
・pass_key
・model // 連携したTVモデル情報
When the content provision server 4 obtains a pass key from the TV gateway 5, it stores the information contained in the pass key. Specifically, the content provision server 4 stores the following information for each user ID of the e-commerce site.
・access_token
・refresh_token
・pass_key
• model // Linked TV model information
テレビゲートウェイ5は、ユーザ端末1050から認証コードを取得し、認証コードに基づいて特定された送信先のTVクラウド3へ当該認証コードを送信し、TVクラウド3から第1トークンを取得し、コンテンツ提供サーバ4から第2トークンを取得する。そして、テレビゲートウェイ5は、当該第2トークンをコンテンツ提供サーバ4へ送信することで、ユーザIDを取得して、第1トークンをTVクラウド3へ送信することで、テレビジョン装置2のID(例えば、HA-ID)を取得する。このように、テレビゲートウェイ5は、コンテンツ提供サーバ4からユーザIDを取得し、TVクラウド3からテレビジョン装置2のIDを取得することで、ユーザIDとテレビジョン装置2のIDとを対応付けることができる。 The TV gateway 5 obtains an authentication code from the user terminal 1050, transmits the authentication code to the TV cloud 3 (the destination identified based on the authentication code), obtains a first token from the TV cloud 3, and obtains a second token from the content provision server 4. Then, the TV gateway 5 obtains the user ID by transmitting the second token to the content provision server 4, and obtains the ID of the television device 2 (e.g., HA-ID) by transmitting the first token to the TV cloud 3. In this way, the TV gateway 5 can associate the user ID with the ID of the television device 2 by obtaining the user ID from the content provision server 4 and the ID of the television device 2 from the TV cloud 3.
この場合、テレビゲートウェイ5が、ユーザIDとテレビジョン装置2のIDとを対応付けて記憶するので、TVクラウド3は、ユーザIDを管理する必要がなく、TVクラウド3の情報管理負担を軽減することができる。また、テレビゲートウェイ5は、ユーザ端末1050から認証コードを取得しているので、コンテンツ提供サーバ4が当該認証コードをテレビゲートウェイ5に送信する必要がなく、コンテンツ提供サーバ4の処理負担も軽減することができる。すなわち、テレビゲートウェイ5は、受信機の識別子(テレビジョン装置2のID)と、端末の識別子(ユーザ端末1050のユーザID)とを連携する処理を適切に実行することができる。 In this case, since the TV gateway 5 stores the user ID in association with the ID of the television device 2, the TV cloud 3 does not need to manage the user ID, thus reducing the information management burden on the TV cloud 3. Furthermore, since the TV gateway 5 obtains the authentication code from the user terminal 1050, the content provision server 4 does not need to transmit the authentication code to the TV gateway 5, thus reducing the processing burden on the content provision server 4. In other words, the TV gateway 5 can appropriately perform the process of linking the receiver identifier (the ID of the television device 2) with the terminal identifier (the user ID of the user terminal 1050).
(第4実施形態)
第4実施形態にかかる情報連携システムSは、第2実施形態の情報連携システムSの全体構成と同様である。第2実施形態では、認証コードもQRコードに含める場合について述べたが、第4実施形態にかかる情報連携システムSでは、認証コードについては、別途ピンコードで表示するものである。
(Fourth Embodiment)
The information sharing system S according to the fourth embodiment has the same overall configuration as the information sharing system S according to the second embodiment. In the second embodiment, the case in which the authentication code is also included in the QR code was described, but in the information sharing system S according to the fourth embodiment, the authentication code is displayed separately as a PIN code.
次に、第4実施形態の情報連携システムSにおける各構成の処理の流れについて説明する。図13のステップS21は、図11のステップS21および図7のステップS1と同様のため、説明を省略する。 Next, the processing flow of each component in the information sharing system S of the fourth embodiment will be described. Step S21 in Figure 13 is the same as step S21 in Figure 11 and step S1 in Figure 7, so its explanation will be omitted.
ステップS91において、TVクラウド3は、URLを含むQRコードをテレビジョン装置2に送信する。また、TVクラウド3は、認証コードに対応するピンコードをテレビジョン装置2に送信する。 In step S91, the TV Cloud 3 transmits a QR code containing a URL to the television device 2. The TV Cloud 3 also transmits a PIN code corresponding to the authentication code to the television device 2.
QRコードに含まれるURLの情報の例は、以下の通りである。
https://XXXXXXX
Xの部分にはコンテンツ提供サーバ4のURLが入っている。QRコードのURLの送付形式は上記の情報が含まれていれば、どのような形式でもよい。
Examples of URL information contained in a QR code are as follows:
https://XXXXXXXX
The "X" part contains the URL of content provider server 4. The URL of the QR code can be sent in any format as long as it includes the above information.
テレビジョン装置2の取得部243は、TVクラウド3からQRコードおよびピンコードを取得すると、表示制御部244は、当該QRコードを映像表示部233で光学的に画像または映像として表示出力する。また、表示制御部244は、ピンコードを表示出力する。 When the acquisition unit 243 of the television device 2 acquires a QR code and a PIN code from the TV cloud 3, the display control unit 244 optically displays and outputs the QR code as an image or video on the video display unit 233. The display control unit 244 also displays and outputs the PIN code.
ステップS92において、ユーザ端末1050は、撮像手段で光学的に撮影した画像情報から読み取り機能により、映像表示部233に光学的に表示されたURLの情報を読み取る。 In step S92, the user terminal 1050 reads the URL information optically displayed on the video display unit 233 using a reading function from the image information optically captured by the imaging means.
ステップS93において、ユーザ端末1050は、アプリケーション(アプリ)を起動し、ピンコードの入力を受け付け可能な状態にする。 In step S93, the user terminal 1050 launches the application (app) and makes it ready to accept PIN code input.
ステップS94において、ユーザ操作によりPINコードが入力されると、ユーザ端末1050は、当該PINコードを認証コードとして取得する。ステップS24~ステップS35は、それぞれ図11のステップS24~ステップS35と同様である。 In step S94, when a PIN code is entered by the user, the user terminal 1050 acquires the PIN code as an authentication code. Steps S24 to S35 are the same as steps S24 to S35 in Figure 11.
第4実施形態にかかるTVクラウド3は、認証コードに対応するピンコードをテレビジョン装置2に送信し、テレビジョン装置2が当該ピンコードを表示する。そして、ユーザ端末1050のユーザが、当該ピンコードに基づいて入力操作をし、ユーザ端末1050が、当該ピンコードを認証コードとしてコンテンツ提供サーバ4へ送信する。 In the fourth embodiment, the TV Cloud 3 transmits a PIN code corresponding to the authentication code to the television device 2, which then displays the PIN code. The user of the user terminal 1050 then performs an input operation based on the PIN code, and the user terminal 1050 transmits the PIN code as the authentication code to the content provision server 4.
この場合、URLと共に認証コードを2次元コードに含めることができない場合でも、ユーザ端末1050から認証コードをコンテンツ提供サーバ4へ送信することができる。 In this case, even if the authentication code cannot be included in the 2D code along with the URL, the user terminal 1050 can still send the authentication code to the content provision server 4.
(第5実施形態)
第5実施形態にかかる情報連携システムSは、第3実施形態の情報連携システムSの全体構成と同様である。第5実施形態にかかる情報連携システムSでは、第3実施形態にかかる情報連携システムSにおける、テレビジョン装置2のIDと、ユーザ端末1050のユーザIDとを連携する処理を促すための促進情報としてキャンペーン情報をテレビゲートウェイ5がテレビジョン装置2へ送信する。情報連携システムSでは、テレビジョン装置2が、促進情報に基づいてテレビジョン装置2のIDと、ユーザ端末1050のユーザIDとを連携する処理の指示した場合、テレビジョン装置2のIDと、ユーザ端末1050のユーザIDとを連携する処理を実行する。
(Fifth Embodiment)
The information linkage system S according to the fifth embodiment has the same overall configuration as the information linkage system S according to the third embodiment. In the information linkage system S according to the fifth embodiment, the television gateway 5 transmits campaign information to the television device 2 as promotional information to encourage the process of linking the ID of the television device 2 with the user ID of the user terminal 1050, as in the information linkage system S according to the third embodiment. In the information linkage system S, when the television device 2 is instructed to link the ID of the television device 2 with the user ID of the user terminal 1050 based on the promotional information, the process of linking the ID of the television device 2 with the user ID of the user terminal 1050 is executed.
情報連携システムSでは、テレビジョン装置2が、番組表情報の取得要求をすると、テレビゲートウェイ5が番組表情報の取得要求を受け付ける。テレビゲートウェイ5は、番組表構成情報を取得し、番組表構成情報をテレビジョン装置2へ送信する。番組表構成情報は、事業者情報、チャンネル情報、番組情報、CM情報、およびVOD情報を含む。なお、テレビゲートウェイ5を実現するファイルサーバが、番組表構成情報を記憶している。すなわち、テレビゲートウェイ5は、番組構成情報を記憶しており、テレビジョン装置2からの番組表情報の取得要求に応じて、記憶している番組構成情報をテレビジョン装置2へ送信する。 In the information sharing system S, when the television device 2 requests the acquisition of program guide information, the television gateway 5 accepts the request. The television gateway 5 acquires program guide configuration information and transmits it to the television device 2. The program guide configuration information includes carrier information, channel information, program information, commercial information, and VOD information. The file server that implements the television gateway 5 stores the program guide configuration information. In other words, the television gateway 5 stores the program configuration information and transmits the stored program configuration information to the television device 2 in response to a program guide information acquisition request from the television device 2.
テレビゲートウェイ5は、キャンペーン情報を記憶しており、番組表構成情報を送信する際、テレビジョン装置2からの要求に応じてキャンペーン情報を送信する。 The TV gateway 5 stores campaign information and transmits campaign information in response to requests from the television device 2 when transmitting program schedule configuration information.
ここで、キャンペーン情報の内容について図14を用いて説明する。図14は、促進情報の例を示す図である。キャンペーン情報は、通常連携データ部分330と、キャンペーン連携データ部分340と、1又は複数の広告情報部分350とを有する。 Here, the content of the campaign information will be explained using Figure 14. Figure 14 shows an example of promotional information. The campaign information typically consists of a linked data section 330, a campaign linked data section 340, and one or more advertising information sections 350.
通常連携データ部分330は、ID連携用データのObjectを示す情報(idbind)と、イメージファイルが格納されているURLのベースURLを示す情報(img_base_url)と、連携方法を説明する画像を示す情報(bindのexplanation_img)と、連携解除方法を説明する画像を示す情報(unbindのexplanation_img)とを含む。 The standard linked data section 330 includes information indicating the Object for ID linking data (idbind), information indicating the base URL of the URL where the image file is stored (img_base_url), information indicating an image explaining the linking method (explanation_img of bind), and information indicating an image explaining the unlinking method (explanation_img of unbind).
キャンペーン連携データ部分340は、キャンペーン情報のobjectのArrayを示す情報(idbind_campaign)と、キャンペーン対象のTVメーカを示す情報(tv)と、イメージファイルが格納されているURLのベースURLを示す情報(img_base_url)と、キャンペーンの内容を説明する画像を示す情報(campaign_img)と、すでに連携済みだった場合に表示する画像を示す情報(hasbound_img)と、連携方法を説明する画像を示す情報(explanation_img)と、IFA-IDによるトラッキングを許可することをお勧めする画像を示す情報(recommend_tracking_img)と、キャンペーン開始日時を示す情報(start)と、キャンペーン終了日時を示す情報(end)とを含む。 The campaign integration data section 340 includes information indicating the Array status of the campaign information object (idbind_campaign), information indicating the target TV manufacturer (tv), information indicating the base URL of the URL where the image file is stored (img_base_url), information indicating an image explaining the campaign content (campaign_img), information indicating an image to display if integration has already been completed (hasbound_img), information indicating an image explaining the integration method (explanation_img), information indicating an image recommending permission for tracking via IFA-ID (recommend_tracking_img), information indicating the campaign start date and time (start), and information indicating the campaign end date and time (end).
キャンペーン連携データ部分340における画像を示す情報を、マクロ等によりTVメーカ毎に異なるように設定されていてもよい。これにより、簡易な構成で複数のTVメーカのそれぞれで異なるキャンペーン画像を割り当てることができる。 The image information in the campaign linkage data section 340 may be set differently for each TV manufacturer using macros or similar methods. This allows for the assignment of different campaign images to multiple TV manufacturers with a simple configuration.
広告情報部分350は、表示対象のTVメーカを示す配列情報(tv)と、ad_info固有識別子(id)と、広告の表示種類や広告の内容を示す情報を含む広告情報(ad_info)と、表示開始日時(start)と、表示終了日時(end)とを含む。 The advertising information section 350 includes sequence information (tv) indicating the target TV manufacturer, an ad_info unique identifier (id), advertising information (ad_info) including information indicating the type of advertisement and the content of the advertisement, the display start date and time (start), and the display end date and time (end).
また、広告情報は、図14および図15に示すように、広告の表示種類を示す情報(type)と、表示する画面のIDを示す情報(place)と、広告の表示種類がtextの場合に表示するテキストメッセージ(message)と、広告の表示種類がimageの場合に表示する表示イメージのURL(image)と、広告の表示種類がmovieの場合に表示する動画のURL(movie)と、広告の表示期間を示す情報(period)とを含む。上記テキストメッセージ、表示イメージのURL、および動画のURLが、広告の内容を示す情報の一例である。 Furthermore, as shown in Figures 14 and 15, the advertisement information includes information indicating the type of advertisement (type), information indicating the ID of the screen on which it will be displayed (place), the text message to be displayed if the advertisement type is text (message), the URL of the display image to be displayed if the advertisement type is image (image), the URL of the video to be displayed if the advertisement type is movie (movie), and information indicating the advertisement's display period (period). The text message, the URL of the display image, and the URL of the video are examples of information indicating the content of the advertisement.
図14に示すキャンペーン情報には、広告の種類がtextの広告情報部分350aと、広告の種類がimageの広告情報部分350bと、広告の表示種類がmovieの広告情報部分350cとが含まれている。テレビジョン装置2が、図14に示すキャンペーン情報を受信した場合、テキストメッセージの広告を表示し、表示イメージの広告を表示し、動画の広告を表示する。 The campaign information shown in Figure 14 includes an ad information section 350a for text ads, an ad information section 350b for image ads, and an ad information section 350c for movie ads. When the television device 2 receives the campaign information shown in Figure 14, it displays a text message ad, an image ad, and a video ad.
続いて、キャンペーン情報に基づいて広告を表示する手順について、図16を用いて説明する。図16は、キャンペーン情報の広告の表示処理を示すフローチャートである。 Next, we will explain the procedure for displaying advertisements based on campaign information, using Figure 16. Figure 16 is a flowchart showing the process for displaying advertisements based on campaign information.
図16に示す処理は、テレビジョン装置2が、番組表の表示処理において実行する処理である。テレビジョン装置2は、ユーザの操作に応じて、テレビゲートウェイ5に対して、ユーザが指定したECサイトの番組表構成情報(番組表)の取得要求をする。テレビジョン装置2が、番組表情報の取得要求をすると、テレビゲートウェイ5が番組表情報の取得要求を受け付ける。テレビゲートウェイ5は、番組表構成情報をテレビジョン装置2へ送信する。テレビジョン装置2は、番組表構成情報を表示する。番組表構成情報は、事業者情報、チャンネル情報、番組情報、CM情報、およびVOD情報を含む。 The process shown in Figure 16 is executed by the television device 2 in the program guide display process. In response to user operation, the television device 2 requests the television gateway 5 to retrieve program guide information (program guide) for the e-commerce site specified by the user. When the television device 2 requests the program guide information, the television gateway 5 accepts the request. The television gateway 5 transmits the program guide information to the television device 2. The television device 2 then displays the program guide information. The program guide information includes carrier information, channel information, program information, commercial information, and VOD information.
このように、テレビジョン装置2が、番組表構成情報を表示した際、テレビゲートウェイ5へキャンペーン情報の取得要求をする。テレビジョン装置2は、テレビゲートウェイ5からキャンペーン情報を取得しなかった場合(ステップS101:No)、処理を終了する。 Thus, when the television device 2 displays the program guide information, it requests the television gateway 5 to retrieve campaign information. If the television device 2 does not retrieve campaign information from the television gateway 5 (step S101: No), it terminates the process.
テレビジョン装置2は、テレビゲートウェイ5からキャンペーン情報を取得した場合(ステップS101:Yes)、キャンペーン情報を参照して、表示開始日時と表示終了日時とに基づいた有効期間内の広告情報の有無を判断する(ステップS102)。テレビジョン装置2は、有効期間内の広告情報が無い場合(ステップS102:No)、処理を終了する。 If the television device 2 obtains campaign information from the television gateway 5 (step S101: Yes), it refers to the campaign information and determines whether there is any advertising information within the validity period based on the display start date and time and display end date and time (step S102). If there is no advertising information within the validity period (step S102: No), the television device 2 terminates the process.
テレビジョン装置2は、有効期間内の広告情報がある場合(ステップS102:Yes)、キャンペーン情報から表示する情報を抽出する(ステップS103)。そして、テレビジョン装置2は、抽出した情報を全て表示する又はユーザ操作により番組表表示を終了するまでの間、ステップS104のループ処理を実行する。 If television device 2 has advertising information within its validity period (step S102: Yes), it extracts the information to be displayed from the campaign information (step S103). Then, television device 2 executes the loop process in step S104 until all the extracted information is displayed or the program guide display is terminated by user operation.
ステップS104のループ処理では、テレビジョン装置2は、広告の種類に応じて、広告を表示する(ステップS105)。 In the loop processing of step S104, the television device 2 displays an advertisement according to the type of advertisement (step S105).
また、テレビジョン装置2は、広告を表示している際に(例えば、ステップS104のループ処理の間)、ユーザによりキャンペーンに応募する旨の選択がされた場合、アンケート情報を表示し、アンケート情報の入力を受け付けて、連携指示要求をするようにしてもよい。このアンケートは、ユーザの属性(性別、住所等)の入力を受け付けるアンケートである。 Furthermore, the television device 2 may, while displaying an advertisement (for example, during the loop processing in step S104), display survey information, accept input of the survey information, and request a linking instruction if the user selects to apply for the campaign. This survey accepts input of the user's attributes (gender, address, etc.).
なお、テレビジョン装置2は、キャンペーン情報を参照して、先にキャンペーンの応募を選択可能な画面を表示して、その後で、図16に示すフローチャートの処理を実行するようにしてもよい。すなわち、テレビジョン装置2は、広告表示に関する処理と、ID連携に関する処理とを別々に独立して実行するようにしてもよい。 Furthermore, the television device 2 may refer to the campaign information, first display a screen where users can select to apply for the campaign, and then execute the flowchart shown in Figure 16. In other words, the television device 2 may execute the advertising display process and the ID linking process separately and independently.
続いて、図17を用いて連携処理手順を説明する。図17は、連携処理手順を示すフローチャートである。TVクラウド3が生成する認証コードおよびトークンは、メーカを識別する情報を含むものとする。すなわち、TVクラウド3は、自装置を識別する情報を認証コードおよびトークンに含めるものとする。 Next, the linkage processing procedure will be explained using Figure 17. Figure 17 is a flowchart of the linkage processing procedure. The authentication code and token generated by TV Cloud 3 shall include information identifying the manufacturer. That is, TV Cloud 3 shall include information identifying its own device in the authentication code and token.
図16に示したフローチャートの処理を実行する前に、テレビジョン装置2は、IFA-IDを乱数により生成し、TVクラウド3へ通知する(ステップS111)。このIFA-IDは、一意であることが保証できる程度の桁数を有する数値である。なお、テレビジョン装置2は、テレビジョン装置2のTVモデル名を送信するようにしてもよい。また、ステップS111およびステップS112において、ベアラ認証をするようにしてもよい。 Before executing the flowchart shown in Figure 16, the television device 2 generates an IFA-ID using random numbers and notifies the TV cloud 3 (step S111). This IFA-ID is a numerical value with a sufficient number of digits to guarantee uniqueness. The television device 2 may also transmit its TV model name. Furthermore, bearer authentication may be performed in steps S111 and S112.
TVクラウド3は、IFA-IDをテレビゲートウェイ5へ送信する(ステップS112)。その後に、ステップS113において、図16に示したフローチャートの処理を実行する。ステップS113において、連携指示がなされると、テレビジョン装置2は、QRコード要求をする(ステップS114)。 TV Cloud 3 transmits the IFA-ID to the TV Gateway 5 (step S112). Then, in step S113, the flowchart shown in Figure 16 is executed. When a linkage instruction is given in step S113, the television device 2 requests a QR code (step S114).
また、図17のステップS114は、図7のステップS1、図11のステップS12、および図12のステップS61と同様である。なお、ステップS114では、テレビジョン装置2は、ユーザが指定したECサイト(ビデオプラットフォーム)に対応するPF-IDをTVクラウド3へ送信する。 Furthermore, step S114 in Figure 17 is the same as step S1 in Figure 7, step S12 in Figure 11, and step S61 in Figure 12. In step S114, the television device 2 transmits the PF-ID corresponding to the EC site (video platform) specified by the user to the TV cloud 3.
ステップS115において、TVクラウド3は、レスポンスとして、テレビゲートウェイ5のURLとURL認証コードとを含むQRコードをテレビジョン装置2に送付する。当該QRコードには、テレビゲートウェイ5のURLと、下記の時限付き認証コードが含まれる。 In step S115, the TV Cloud 3 sends a QR code containing the URL of the TV Gateway 5 and a URL authentication code to the Television Device 2 as a response. This QR code contains the URL of the TV Gateway 5 and the following time-limited authentication code.
{“code”:<authorization code>(認証コード),
“state”:HEX(JSON.stringify({“tcid”;<TC-ID>,“pfid”;<PF-ID>,“salt”;<random string>})+hash)(state情報)}
{"code": <authorization code> (authentication code),
“state”: HEX (JSON. stringify ({“tcid”; <TC-ID>, “pfid”; <PF-ID>, “salt”; <random string>}) + hash) (state information)}
URL認証コードは、テレビゲートウェイ5を特定するURL情報と、コンテンツ提供サーバ4およびTVクラウド3間の認証を行うための認証コードと、state情報とを含んだ情報である。認証コードは、テレビジョン装置2のメーカを判別するための部分とテレビジョン装置2を判別するための部分を含むようにしてもよい。また、認証コードに含まれるテレビジョン装置2を判別するため部分は、ランダムな値である。また、TVクラウド3は、この値をテレビジョン装置2へ送信した時刻を記憶部311のDBの情報として対応付けてもよい。state情報は、メーカのTC-IDとビデオプラットフォームのPF-IDとがエンコードされた情報を含むようにしてもよい。 The URL authentication code is information that includes URL information to identify the TV gateway 5, an authentication code for authentication between the content provision server 4 and the TV cloud 3, and state information. The authentication code may include a portion for identifying the manufacturer of the television device 2 and a portion for identifying the television device 2. The portion of the authentication code used to identify the television device 2 is a random value. The TV cloud 3 may also associate the time this value was transmitted to the television device 2 with information in the database of the storage unit 311. The state information may include information encoded with the manufacturer's TC-ID and the video platform's PF-ID.
URL認証コードの情報の例は、以下の通りである。
https://XXXXXXX YYYYYYYYY
Xの部分にはテレビゲートウェイ5のURL、Yの部分にはOAuth2のauthorization codeが入っている。authorization codeの部分にはメーカとテレビを特定できる情報が入っている。メーカとテレビジョン装置2を特定できる情報はどちらか1つでもよい。URL認証コードの送付形式は上記の情報が含まれていれば、どのような形式でもよい。なお、Yの部分にstate情報を含めてもよい。
An example of URL authentication code information is as follows:
https://XXXXXXXX YYYYYYYYY
The X part contains the URL of TV Gateway 5, and the Y part contains the authorization code for OAuth2. The authorization code contains information that identifies the manufacturer and the television. Either one of the pieces of information that identifies the manufacturer or the television device 2 is sufficient. The URL authentication code can be sent in any format as long as it contains the above information. Note that state information may also be included in the Y part.
テレビジョン装置2の取得部243は、TVクラウド3からURL認証コードを取得すると、表示制御部244が、当該URL認証コードの内容を映像表示部233で光学的に画像または映像として表示出力する。なお、表示制御部244での表示形態は、QRコード、バーコード、テキスト等で、上記URL認証コードに含まれる情報を光学的に画像または映像として表示出力できればよい。また、第1実施形態および第2実施形態では、QRコードで説明しているが、本実施形態と同様にQRコードに限定されるものではない。 When the acquisition unit 243 of the television device 2 acquires a URL authentication code from the TV cloud 3, the display control unit 244 optically displays the contents of the URL authentication code as an image or video using the video display unit 233. The display format used by the display control unit 244 can be a QR code, barcode, text, etc., as long as the information contained in the URL authentication code can be optically displayed as an image or video. Furthermore, while the first and second embodiments use QR codes for explanation, the invention is not limited to QR codes, as is the case in these embodiments.
また、図7のステップS3、図11のステップS23、図12のステップS63と同様、ステップS116において、ユーザ端末1050は、撮像手段で光学的に撮影した画像情報からURL認証コード読み取り機能により、映像表示部233に光学的に表示されたURL認証コードの情報を読み取る。これにより、ユーザ端末1050は、テレビゲートウェイ5のURLおよび認証コード等を取得する。当該認証コード部分は、時限付き認証コードで以下のように構成されている。
“code” : <authorization code>,
“state” : <string> // 乱数
Furthermore, similar to step S3 in Figure 7, step S23 in Figure 11, and step S63 in Figure 12, in step S116, the user terminal 1050 reads the URL authentication code information optically displayed on the video display unit 233 from the image information optically captured by the imaging means using the URL authentication code reading function. As a result, the user terminal 1050 obtains the URL and authentication code of the TV gateway 5. The authentication code portion is a time-limited authentication code and is configured as follows.
“code”: <authorization code>,
“state”: <string> // Random number
ステップS117において、ユーザ端末1050は、テレビゲートウェイ5のURL、認証コード、およびstate情報を取得すると、当該URLに基づいて、テレビゲートウェイ5へアクセスすると共に、認証コードおよびstate情報を送信し、認証リクエストする。なお、state情報は、上述のように、TC-IDとPF-IDとを含む。 In step S117, the user terminal 1050 obtains the URL, authentication code, and state information of the TV gateway 5. Based on the URL, it accesses the TV gateway 5, transmits the authentication code and state information, and submits an authentication request. The state information includes the TC-ID and PF-ID, as described above.
認証リクエスト時に送信する情報は、以下の通りである。
“code” : <authorization code>,
“state” : <string> // 乱数
The information to be sent when submitting an authentication request is as follows:
“code”: <authorization code>,
“state”: <string> // Random number
ステップS118において、テレビゲートウェイ5の取得部512が、認証コードおよびstate情報を受信すると、テレビゲートウェイ5の送信部513が、連携指示を示す連携ボタンを含むHTML形式の画面をユーザ端末1050へ送信する。当該HTMLは、PF-IDのOAuth2 Authorization EndpointにアクセスするURLとパラメータを含むようにしてもよい。 In step S118, when the acquisition unit 512 of the TV gateway 5 receives the authentication code and state information, the transmission unit 513 of the TV gateway 5 sends an HTML screen containing a linking button indicating a linking instruction to the user terminal 1050. This HTML may include a URL and parameters for accessing the PF-ID's OAuth2 Authorization Endpoint.
ユーザ端末1050は、上記のHTML形式の画面を取得する。そして、ユーザ端末1050のユーザ操作により連携ボタンが押下されると(ステップS119)、ビデオプラットフォームであるコンテンツ提供サーバ4に対して認可リクエストをする。また、コンテンツ提供サーバ4は、当該認可リクエストを受信し、それに応答する旨の情報をユーザ端末1050へ送信する(ステップS120)。 The user terminal 1050 acquires the HTML-formatted screen shown above. When the user terminal 1050 presses the link button (step S119), it sends an authorization request to the content provision server 4, which is the video platform. The content provision server 4 receives this authorization request and sends information to the user terminal 1050 indicating its response (step S120).
上記認可リクエスト時に送信する情報は、例えば、以下の構成である。
Authorization: “Basic ” + Base64(<client_id> + “:” + <client_secret>)Request
{
“response_type”:“code”
“code”:<authorization code> (認証コード)
“redirect_uri”:<TGW Endpoint>(テレビゲートウェイ5のエンドポイント)
“client_id”:<TG-ID> (テレビゲートウェイ5のID)
“scope”:<VPF提供> (トークンの認証範囲)
“state”:HEX(JSON.stringify({“tcid”;<TC-ID>,“pfid”;<PF-ID>,“salt”;<random string>})+hash)(state情報)
}
The information sent when making the above authorization request may consist of the following, for example:
Authorization: “Basic” + Base64 (<client_id> + “:” + <client_secret>) Request
{
“response_type”: “code”
“code”: <authorization code> (authentication code)
“redrect_uri”: <TGW Endpoint> (Endpoint of TV Gateway 5)
“client_id”: <TG-ID> (ID of TV Gateway 5)
“scope”: <Provided by VPF> (Token authentication scope)
“state”: HEX (JSON. stringify ({“tcid”; <TC-ID>, “pfid”; <PF-ID>, “salt”; <random string>}) + hash) (state information)
}
なお、テレビジョン装置2が、ステップS119の時点で、TVクラウド3を介して、テレビゲートウェイ5に対して連携状態の確認要求をした場合(ステップS151、ステップS152)、テレビゲートウェイ5は、連携完了していない旨の情報をテレビジョン装置2へ送信する(ステップS153、ステップS154)。 Furthermore, if the television device 2 requests confirmation of the connection status from the television gateway 5 via the TV cloud 3 at step S119 (steps S151 and S152), the television gateway 5 transmits information to the television device 2 indicating that the connection is not yet complete (steps S153 and S154).
コンテンツ提供サーバ4においてユーザ情報が登録されていない場合、ユーザ端末1050およびコンテンツ提供サーバ4の間で、ユーザ登録処理をする(ステップS121)。ここで、ユーザ登録処理とは、コンテンツ提供サーバ4にログインするための情報であるユーザIDおよびパスワードを登録したり、ユーザの属性情報を登録したりする処理である。 If user information is not registered on the content provision server 4, a user registration process is performed between the user terminal 1050 and the content provision server 4 (step S121). Here, the user registration process involves registering the user ID and password, which are the information needed to log in to the content provision server 4, and registering the user's attribute information.
続いて、ユーザ端末1050が、コンテンツ提供サーバ4へログイン要求をして、コンテンツ提供サーバ4は、当該ログイン要求に応じたレスポンスをする(ステップS122)。当該レスポンスの例として以下の情報(認可コード)を出力する。
Response
{“code” : <authorization code>,
“state” : <state>}
Next, the user terminal 1050 requests login from the content provision server 4, and the content provision server 4 responds to the login request (step S122). As an example of the response, the following information (authorization code) is output.
Response
{“code”: <authorization code>,
“state”: <state>}
ユーザ端末1050は、上記レスポンスを受信すると、テレビゲートウェイ5へ連携指示を示すリダイレクトをする(ステップS123)。なお、ユーザ端末1050は、上記認可コードをテレビゲートウェイ5へ送信するようにしてもよい。 Upon receiving the above response, the user terminal 1050 redirects to the TV gateway 5 to instruct it to cooperate (step S123). Alternatively, the user terminal 1050 may also transmit the above authorization code to the TV gateway 5.
テレビゲートウェイ5の取得部512が、連携指示を示すリダイレクトを受け付けると、テレビゲートウェイ5は、ユーザ端末1050から取得したstate情報に含まれるTC-IDに基づいて、メーカを特定する。すなわち、テレビゲートウェイ5は、メーカを割り振る(ステップS124)。 When the acquisition unit 512 of the TV gateway 5 receives a redirect indicating a linkage instruction, the TV gateway 5 identifies the manufacturer based on the TC-ID contained in the state information acquired from the user terminal 1050. That is, the TV gateway 5 assigns the manufacturer (step S124).
そして、ステップS125において、テレビゲートウェイ5の送信部513は、送信先のTVクラウド3へ認証コードを送信することでトークン要求をする(ステップS125)。 Then, in step S125, the transmission unit 513 of the TV gateway 5 requests a token by sending an authentication code to the destination TV cloud 3 (step S125).
当該トークン要求時に送信する情報は、例えば、以下の構成である。
Authorization: “Basic ” + Base64(TG-ID + “:” + <client_secret>)
Request Parameters
{
grant_type:“authorization_code”、
code :<authorization code> (認証コード)、
state :<string> (state情報)、
redirect_uri:<redirect_uri>、
client_id:<TG-ID>
}
The information sent when requesting the token may consist of the following, for example:
Authorization: “Basic” + Base64 (TG-ID + “:” + <client_secret>)
Request Parameters
{
grant_type: “authorization_code”,
code: <authorization code> (authentication code)
state: <string> (state information),
redirect_uri:<redirect_uri>,
client_id:<TG-ID>
}
TVクラウド3の生成部314は、記憶部311のDBを参照し、取得部312により取得されたコンテンツ提供サーバ4を識別する情報(例えば、state情報に含まれる情報)および認証コードに対応する情報があるか否かを判断することで認証する。生成部314は、記憶部311のDBを参照し、取得部312により取得されたコンテンツ提供サーバ4を識別する情報および認証コードに対応する情報がある場合、トークン(第1トークン)を生成する。また、生成部314は、上記DBにおける取得部312により取得されたコンテンツ提供サーバ4を識別する情報および認証コードを有する情報に、第1トークンをさらに対応付ける。 The generation unit 314 of the TV Cloud 3 authenticates by referring to the DB of the storage unit 311 and determining whether there is information corresponding to the information identifying the content provider server 4 (for example, information included in the state information) and the authentication code acquired by the acquisition unit 312. The generation unit 314 refers to the DB of the storage unit 311 and, if there is information corresponding to the information identifying the content provider server 4 and the authentication code acquired by the acquisition unit 312, generates a token (first token). Furthermore, the generation unit 314 associates the first token with the information in the DB that identifies the content provider server 4 and the authentication code acquired by the acquisition unit 312.
ステップS126において、TVクラウド3の送信部313は、生成部314により生成された第1トークンをテレビゲートウェイ5へ送信する。 In step S126, the transmission unit 313 of the TV cloud 3 transmits the first token generated by the generation unit 314 to the TV gateway 5.
具体的に、TVクラウド3の送信部313は、OAuth2のToken Responseをトークンとしてテレビゲートウェイ5に送付する。このレスポンスのOAuth2 Access Token Responseは以下のように構成される。
Response
{“access_token”: <access token>,
“token_type”: “Bearer”,
“expires_in”: 3600,
“refresh_token”: <refresh token>}
Specifically, the transmission unit 313 of the TV Cloud 3 sends the OAuth2 Token Response as a token to the TV Gateway 5. The OAuth2 Access Token Response in this response is structured as follows.
Response
{“access_token”: <access token>,
“token_type”: “Bearer”,
“expires_in”: 3600,
“refresh_token”: <refresh token>}
TVクラウド3がテレビゲートウェイ5にアクセスするときはaccess_tokenを付ける。expires_inは、access_token の有効期間(秒)であり、access_tokenを受け取ったときに無効になる時刻と共に記憶しておき、それまではこのaccess_tokenを繰り返し使う。refresh_tokenは、コンテンツ提供サーバ4が秘密に保管する。セキュリティ上、単純にlocal storageに置いておくのは良くないためである。access_token、refresh_tokenを各メーカで発行時、先頭にテレビメーカを識別する識別子を付けることでテレビメーカを特定することができる。 When TV Cloud 3 accesses TV Gateway 5, it attaches an access_token. `expires_in` is the validity period (in seconds) of the access_token; it is stored along with the time it expires when the access_token is received, and the access_token is reused repeatedly until then. The refresh_token is stored secretly by the content provision server 4. For security reasons, simply storing it in local storage is not advisable. When each manufacturer issues an access_token and refresh_token, they can identify the TV manufacturer by adding an identifier to the beginning of the token.
テレビゲートウェイ5の取得部512が、上記第1トークンを取得すると、テレビゲートウェイ5の送信部513が、認可コードを含む情報を送信すると共にコンテンツ提供サーバ4へトークン要求をする(ステップS127)。 When the acquisition unit 512 of the TV gateway 5 acquires the first token, the transmission unit 513 of the TV gateway 5 transmits information including the authorization code and requests a token from the content provision server 4 (step S127).
当該トークン要求時に送信する情報は、例えば、以下の構成である。
Authorization: “Basic” + Base64(TG-ID + “:” + <client_secret>)
Request
{
grant_type:“authorization_code”、
code :<code> (認可コード)、
state :<string> (state情報)、
redirect_uri:<TGW Endpoint>、
client_id:<TG-ID>
}
The information sent when requesting the token may consist of the following, for example:
Authorization: “Basic” + Base64 (TG-ID + “:” + <client_secret>)
Request
{
grant_type: “authorization_code”,
code: <code> (authorization code),
state: <string> (state information),
redirect_uri:<TGW Endpoint>,
client_id:<TG-ID>
}
コンテンツ提供サーバ4は、テレビゲートウェイ5から取得する認可コードに基づいて、当該認可コードに対応するユーザIDを特定する。そして、コンテンツ提供サーバ4は、当該ユーザIDに基づくトークンである第2トークンを生成する。 The content provision server 4 identifies the user ID corresponding to the authorization code obtained from the TV gateway 5. Then, the content provision server 4 generates a second token, which is a token based on that user ID.
ステップS128において、コンテンツ提供サーバ4は、生成した第2トークンをテレビゲートウェイ5へ送信する。なお、コンテンツ提供サーバ4は、第2トークンと、ユーザIDと、ユーザ属性情報とを対応付けて記憶するようにしてもよい。 In step S128, the content provision server 4 transmits the generated second token to the television gateway 5. The content provision server 4 may also store the second token in association with the user ID and user attribute information.
具体的に、コンテンツ提供サーバ4は、OAuth2のToken Responseをトークンとしてテレビゲートウェイ5に送付する。このレスポンスのOAuth2 Access Token Responseは以下のように構成される。
{“access_token”: <access token>,
“token_type”: “Bearer”,
“expires_in”: 3600,
“refresh_token”: <refresh token>}
Specifically, the content provider server 4 sends the OAuth2 Token Response as a token to the TV gateway 5. The OAuth2 Access Token Response in this response is structured as follows.
{“access_token”: <access token>,
“token_type”: “Bearer”,
“expires_in”: 3600,
“refresh_token”: <refresh token>}
テレビゲートウェイ5の取得部512は、コンテンツ提供サーバ4から第2トークンを取得する。そして、テレビゲートウェイ5の送信部513は、第2トークンをコンテンツ提供サーバ4へ送信すると共にコンテンツ提供サーバ4へユーザ情報要求をする(ステップS129)。 The acquisition unit 512 of the TV gateway 5 acquires a second token from the content provision server 4. Then, the transmission unit 513 of the TV gateway 5 transmits the second token to the content provision server 4 and requests user information from the content provision server 4 (step S129).
当該ユーザ情報要求時に送信する情報は、例えば、以下の構成である。
Authorization: “Bearer” + <access token>)
The information transmitted when requesting user information may consist of the following, for example:
Authorization: “Bearer” + <access token>)
コンテンツ提供サーバ4は、テレビゲートウェイ5から取得した第2トークンに対応するユーザIDおよびユーザの属性情報を検索し、これらの情報をレスポンスとしてテレビゲートウェイ5へ送信する(ステップS130)。これにより、テレビゲートウェイ5の取得部512は、ユーザIDおよびユーザの属性情報を取得する。当該レスポンスの情報は、以下のように構成される。
Response
{“user_id”: <UR-ID>(コンテンツ提供サーバ4のサイトにおけるユーザID),
“Preference”: <現在のユーザ属性>(ユーザの生年月日、性別、郵便番号、購買履歴等)}
The content provision server 4 searches for the user ID and user attribute information corresponding to the second token obtained from the TV gateway 5, and sends this information to the TV gateway 5 as a response (step S130). As a result, the acquisition unit 512 of the TV gateway 5 obtains the user ID and user attribute information. The information in the response is configured as follows.
Response
{"user_id": <UR-ID> (User ID on the content provision server 4 site),
"Preference": <Current user attributes>(User's date of birth, gender, postal code, purchase history, etc.)
ステップS131において、コンテンツ提供サーバ4は、PF-IDを送信すると共に、デバイス情報要求をする。当該デバイス情報要求時に送信する情報は、例えば、以下の構成である。
Authorization: “Basic”+Base64(PF-ID + “:” + <client_secret>)
In step S131, the content provision server 4 transmits the PF-ID and requests device information. The information transmitted at the time of the device information request is, for example, configured as follows.
Authorization: “Basic” + Base64 (PF-ID + “:” + <client_secret>)
テレビゲートウェイ5の取得部512が、コンテンツ提供サーバ4からデバイス情報要求を受信すると、テレビゲートウェイ5の送信部513は、ステップS127で送信した第2トークンに対応する第1トークンをTVクラウド3に送信すると共に、デバイス情報要求する(ステップS132)。当該デバイス情報要求時に送信する情報は、例えば、以下の構成である。
Authorization: “Bearer” + <access token>)
When the acquisition unit 512 of the TV gateway 5 receives a device information request from the content provision server 4, the transmission unit 513 of the TV gateway 5 sends a first token corresponding to the second token sent in step S127 to the TV cloud 3 and requests device information (step S132). The information sent at the time of the device information request has the following configuration, for example.
Authorization: “Bearer” + <access token>)
TVクラウド3の取得部312は、第1トークンを取得すると、当該第1トークンに対応するHA-IDと、当該HA-IDに対応するデバイスの情報(当該HA-IDに対応するテレビジョン装置2の属性情報)を取得する。 When the acquisition unit 312 of the TV Cloud 3 acquires the first token, it acquires the HA-ID corresponding to the first token and the device information corresponding to the HA-ID (attribute information of the television device 2 corresponding to the HA-ID).
ステップS133において、TVクラウド3の送信部313は、HA-ID等の情報をレスポンスとして、テレビゲートウェイ5へ送信する。テレビゲートウェイ5の取得部512は、HA-IDと、当該HA-IDに対応するデバイスの情報を取得する。当該レスポンスの例として以下のようなものがある。
Response
{
・“device_id”:<HA-ID>(HA-ID)
・“model”:<model name>(テレビジョン装置2のモデル即ち表示画面インチや2K、4K、8K等の画素数情報等)
}
In step S133, the transmission unit 313 of the TV cloud 3 sends information such as the HA-ID as a response to the TV gateway 5. The acquisition unit 512 of the TV gateway 5 acquires the HA-ID and information about the device corresponding to the HA-ID. An example of such a response is as follows.
Response
{
・“device_id”: <HA-ID> (HA-ID)
• “model”: <model name> (the model of the television device 2, i.e., display screen size in inches, pixel count information such as 2K, 4K, 8K, etc.)
}
ステップS134において、テレビゲートウェイ5の生成部514は、取得したHA-IDと、ユーザIDと、テレビジョン装置2の属性情報であるモデル情報(model)と、PF-IDと、を関連付けたバインド情報をDBの情報として、記憶部511へ登録する。なお、テレビゲートウェイ5の生成部514は、バインド情報として、ユーザの属性情報をさらに含めるようにしてもよい。 In step S134, the generation unit 514 of the TV gateway 5 registers the acquired HA-ID, user ID, model information (model), and PF-ID as bind information in the storage unit 511 as database information. The generation unit 514 of the TV gateway 5 may also include user attribute information as part of the bind information.
ステップS135において、テレビゲートウェイ5は、ユーザ端末1050に対して、上記認可コードと共にレスポンスする(ステップS135)。 In step S135, the TV gateway 5 responds to the user terminal 1050 with the authorization code (step S135).
ステップS134以降に、テレビジョン装置2が、TVクラウド3を介して、テレビゲートウェイ5に対して連携状態の確認要求をした場合(ステップS136、ステップS137)、テレビゲートウェイ5は、連携完了した旨の情報(連携したコンテンツ提供サーバ4を識別する情報等)をテレビジョン装置2へ送信する(ステップS138、ステップS139)。また、テレビゲートウェイ5は、IFA-IDをコンテンツ提供サーバ4へ通知する(ステップS140)。 If, after step S134, the television device 2 requests confirmation of the connection status from the television gateway 5 via the TV cloud 3 (steps S136, S137), the television gateway 5 transmits information indicating the completion of the connection (such as information identifying the connected content provision server 4) to the television device 2 (steps S138, S139). The television gateway 5 also notifies the content provision server 4 of the IFA-ID (step S140).
また、テレビジョン装置2において、IFA-IDを更新した場合、更新後のIFA-IDをTVクラウド3へ通知する(ステップS141)。TVクラウド3は、更新後のIFA-IDをテレビゲートウェイ5へ送信する。テレビゲートウェイ5は、更新後のIFA-IDをコンテンツ提供サーバ4へ送信する(ステップS143)。 Furthermore, if the IFA-ID is updated in the television device 2, the updated IFA-ID is notified to the TV cloud 3 (step S141). The TV cloud 3 then transmits the updated IFA-ID to the television gateway 5. The television gateway 5 then transmits the updated IFA-ID to the content provision server 4 (step S143).
続いて、連携取り消し処理について図18に示すフローチャートを用いて説明する。図18は、連携取り消し処理を示すフローチャートである。テレビジョン装置2は、ユーザの操作に応じて、TVクラウド3に対して連携取り消し要求をする(ステップS161)。TVクラウド3は、テレビジョン装置2からの取り消し要求に応じて、テレビゲートウェイ5へ連携取り消し要求をする(ステップS162)。なお、ステップS161およびステップS162において、テレビジョン装置2またはTVクラウド3は、連携取り消し要求共にIFA-IDを送信するようにしてもよい。 Next, the link cancellation process will be explained using the flowchart shown in Figure 18. Figure 18 is a flowchart of the link cancellation process. The television device 2 requests a link cancellation from the TV cloud 3 in response to user operation (step S161). The TV cloud 3, in response to the cancellation request from the television device 2, requests a link cancellation from the TV gateway 5 (step S162). Note that in steps S161 and S162, the television device 2 or the TV cloud 3 may also transmit an IFA-ID along with the link cancellation request.
テレビゲートウェイ5は、コンテンツ提供サーバ4に対して連携取り消し要求を通知する(ステップS163)。コンテンツ提供サーバ4は、生成した第2トークンを削除する。テレビゲートウェイ5は、バインド情報を削除して、削除した旨をTVクラウド3へ通知する(ステップS164)。TVクラウド3は、バインド情報が削除された旨をテレビジョン装置2へ通知する(ステップS165)。また、TVクラウド3は、第1トークンを削除するようにしてもよい。また、コンテンツ提供サーバ4は、連携を取り消した旨をテレビゲートウェイ5へ通知し(ステップS166)、テレビゲートウェイ5は、TVクラウド3へ連携を取り消した旨を通知する(ステップS167)。 The TV gateway 5 notifies the content provider server 4 of a request to cancel the connection (step S163). The content provider server 4 deletes the generated second token. The TV gateway 5 deletes the bind information and notifies the TV cloud 3 of the deletion (step S164). The TV cloud 3 notifies the television device 2 that the bind information has been deleted (step S165). The TV cloud 3 may also delete the first token. Furthermore, the content provider server 4 notifies the TV gateway 5 that the connection has been canceled (step S166), and the TV gateway 5 notifies the TV cloud 3 that the connection has been canceled (step S167).
続いて、ユーザ端末1050の操作を介して連携を取り消す処理手順について図19を用いて説明する。図19は、ユーザ端末1050の操作を介して連携を取り消す処理手順を示すフローチャートである。 Next, the procedure for canceling the connection via the user terminal 1050 will be explained using Figure 19. Figure 19 is a flowchart showing the procedure for canceling the connection via the user terminal 1050.
ユーザがテレビジョン装置2のリモコン等を操作して、いわゆるポータル画面で、ユーザがスマートフォン1と連携を取り消したいコンテンツ提供サーバ4を指定する場面をスタートとする。 The process begins with the user operating the remote control or similar device of the television unit 2 to specify the content provider server 4 on a portal screen, where the user wishes to revoke the connection with smartphone 1.
図19のステップS180は、図7のステップS1、図11のステップS12と同様である。なお、ステップS180では、テレビジョン装置2は、ユーザが指定したコンテンツ提供サーバ4に対応するPF-IDをTVクラウド3へ送信する。 Step S180 in Figure 19 is the same as step S1 in Figure 7 and step S12 in Figure 11. In step S180, the television device 2 transmits the PF-ID corresponding to the content provision server 4 specified by the user to the TV cloud 3.
ステップS181において、TVクラウド3は、レスポンスとして、テレビゲートウェイ5のURLとURL認証コードとを含むQRコードをテレビジョン装置2に送付する。当該QRコードには、テレビゲートウェイ5のURLと、下記の時限付き認証コードが含まれる。 In step S181, the TV Cloud 3 sends a QR code containing the URL of the TV Gateway 5 and a URL authentication code to the Television Device 2 as a response. This QR code contains the URL of the TV Gateway 5 and the following time-limited authentication code.
{“code”:<authorization code>(認証コード),
“state”:HEX(JSON.stringify({“tcid”;<TC-ID>,“pfid”;<PF-ID>,“salt”;<random string>})+hash)(state情報)}
{"code": <authorization code> (authentication code),
“state”: HEX (JSON. stringify ({“tcid”; <TC-ID>, “pfid”; <PF-ID>, “salt”; <random string>}) + hash) (state information)}
URL認証コードは、テレビゲートウェイ5を特定するURL情報と、コンテンツ提供サーバ4およびTVクラウド3間の認証を行うための認証コードと、state情報とを含んだ情報である。認証コードは、テレビジョン装置2のメーカを判別するための部分とテレビジョン装置2を判別するための部分を含むようにしてもよい。また、認証コードに含まれるテレビジョン装置2を判別するため部分は、ランダムな値である。また、TVクラウド3は、この値をテレビジョン装置2へ送信した時刻を記憶部311のDBの情報として対応付けてもよい。state情報は、メーカのTC-IDとビデオプラットフォームのPF-IDとがエンコードされた情報を含むようにしてもよい。 The URL authentication code is information that includes URL information to identify the TV gateway 5, an authentication code for authentication between the content provision server 4 and the TV cloud 3, and state information. The authentication code may include a portion for identifying the manufacturer of the television device 2 and a portion for identifying the television device 2. The portion of the authentication code used to identify the television device 2 is a random value. The TV cloud 3 may also associate the time this value was transmitted to the television device 2 with information in the database of the storage unit 311. The state information may include information encoded with the manufacturer's TC-ID and the video platform's PF-ID.
URL認証コードの情報の例は、以下の通りである。
https://XXXXXXX YYYYYYYYY
Xの部分にはテレビゲートウェイ5のURL、Yの部分にはOAuth2のauthorization codeが入っている。authorization codeの部分にはメーカとテレビを特定できる情報が入っている。メーカとテレビジョン装置2を特定できる情報はどちらか1つでもよい。URL認証コードの送付形式は上記の情報が含まれていれば、どのような形式でもよい。なお、Yの部分にstate情報を含めてもよい。
An example of URL authentication code information is as follows:
https://XXXXXXXX YYYYYYYYY
The X part contains the URL of TV Gateway 5, and the Y part contains the authorization code for OAuth2. The authorization code contains information that identifies the manufacturer and the television. Either one of the pieces of information that identifies the manufacturer or the television device 2 is sufficient. The URL authentication code can be sent in any format as long as it contains the above information. Note that state information may also be included in the Y part.
テレビジョン装置2の取得部243は、TVクラウド3からURL認証コードを取得すると、表示制御部244が、当該URL認証コードの内容を映像表示部233で光学的に画像または映像として表示出力する。なお、表示制御部244での表示形態は、QRコード、バーコード、テキスト等で、上記URL認証コードに含まれる情報を光学的に画像または映像として表示出力できればよい。また、第1実施形態および第2実施形態では、QRコードで説明しているが、本実施形態と同様にQRコードに限定されるものではない。 When the acquisition unit 243 of the television device 2 acquires a URL authentication code from the TV cloud 3, the display control unit 244 optically displays the contents of the URL authentication code as an image or video using the video display unit 233. The display format used by the display control unit 244 can be a QR code, barcode, text, etc., as long as the information contained in the URL authentication code can be optically displayed as an image or video. Furthermore, while the first and second embodiments use QR codes for explanation, the invention is not limited to QR codes, as is the case in these embodiments.
また、図7のステップS3、図11のステップS23と同様、ステップS182において、ユーザ端末1050は、撮像手段で光学的に撮影した画像情報からURL認証コード読み取り機能により、映像表示部233に光学的に表示されたURL認証コードの情報を読み取る。これにより、ユーザ端末1050は、テレビゲートウェイ5のURLおよび認証コード等を取得する。当該認証コード部分は、時限付き認証コードで以下のように構成されている。
“code” : <authorization code>,
“state” : <string> // 乱数
Furthermore, similar to step S3 in Figure 7 and step S23 in Figure 11, in step S182, the user terminal 1050 reads the URL authentication code information optically displayed on the video display unit 233 from the image information optically captured by the imaging means using the URL authentication code reading function. As a result, the user terminal 1050 obtains the URL and authentication code of the TV gateway 5. The authentication code portion is a time-limited authentication code and is configured as follows.
“code”: <authorization code>,
“state”: <string> // Random number
ステップS183において、ユーザ端末1050は、テレビゲートウェイ5のURL、認証コード、およびstate情報を取得すると、当該URLに基づいて、テレビゲートウェイ5へアクセスすると共に、認証コードおよびstate情報を送信し、認証リクエストする。なお、state情報は、上述のように、TC-IDとPF-IDとを含む。 In step S183, the user terminal 1050 obtains the URL, authentication code, and state information of the TV gateway 5. Based on the URL, it accesses the TV gateway 5, transmits the authentication code and state information, and submits an authentication request. The state information includes the TC-ID and PF-ID, as described above.
認証リクエスト時に送信する情報は、以下の通りである。
“code” : <authorization code>,
“state” : <string> // 乱数
The information to be sent when submitting an authentication request is as follows:
“code”: <authorization code>,
“state”: <string> // Random number
ステップS184において、テレビゲートウェイ5の取得部512が、認証コードおよびstate情報を受信すると、テレビゲートウェイ5の送信部513が、連携取り消し指示を示す連携取り消しボタンを含むHTML形式の画面をユーザ端末1050へ送信する。当該HTMLは、PF-IDのOAuth2 Authorization EndpointにアクセスするURLとパラメータを含むようにしてもよい。 In step S184, when the acquisition unit 512 of the TV gateway 5 receives the authentication code and state information, the transmission unit 513 of the TV gateway 5 sends an HTML screen containing a link cancellation button indicating a link cancellation instruction to the user terminal 1050. This HTML may also include a URL and parameters for accessing the PF-ID's OAuth2 Authorization Endpoint.
ユーザ端末1050は、上記のHTML形式の画面を取得する。そして、ユーザ端末1050のユーザ操作により連携取り消しボタンが押下されると(ステップS185)、ビデオプラットフォームであるコンテンツ提供サーバ4に対して認可リクエストをする。また、コンテンツ提供サーバ4は、当該認可リクエストを受信し、それに応答する旨の情報をユーザ端末1050へ送信する(ステップS186)。 The user terminal 1050 acquires the HTML-formatted screen shown above. When the user terminal 1050 presses the "cancel link" button (step S185), it sends an authorization request to the content provision server 4, which is the video platform. The content provision server 4 receives this authorization request and sends information to the user terminal 1050 indicating its response (step S186).
上記認可リクエスト時に送信する情報は、例えば、以下の構成である。
Authorization: “Basic ” + Base64(<client_id> + “:” + <client_secret>)Request
{
“response_type”:“code”
“code”:<authorization code> (認証コード)
“redirect_uri”:<TGW Endpoint>(テレビゲートウェイ5のエンドポイント)
“client_id”:<TG-ID> (テレビゲートウェイ5のID)
“scope”:<VPF提供> (トークンの認証範囲)
“state”:HEX(JSON.stringify({“tcid”;<TC-ID>,“pfid”;<PF-ID>,“salt”;<random string>})+hash)(state情報)
}
The information sent when making the above authorization request may consist of the following, for example:
Authorization: “Basic” + Base64 (<client_id> + “:” + <client_secret>) Request
{
“response_type”: “code”
“code”: <authorization code> (authentication code)
“redrect_uri”: <TGW Endpoint> (Endpoint of TV Gateway 5)
“client_id”: <TG-ID> (ID of TV Gateway 5)
“scope”: <Provided by VPF> (Token authentication scope)
“state”: HEX (JSON. stringify ({“tcid”; <TC-ID>, “pfid”; <PF-ID>, “salt”; <random string>}) + hash) (state information)
}
なお、テレビジョン装置2が、ステップS185の時点で、TVクラウド3を介して、テレビゲートウェイ5に対して連携状態の確認要求をした場合(ステップS251、ステップS252)、テレビゲートウェイ5は、連携している旨の情報をテレビジョン装置2へ送信する(ステップS253、ステップS254)。 Furthermore, if the television device 2 requests confirmation of the connection status from the television gateway 5 via the TV cloud 3 at step S185 (steps S251 and S252), the television gateway 5 transmits information indicating that the connection is established to the television device 2 (steps S253 and S254).
続いて、ユーザ端末1050が、コンテンツ提供サーバ4へログイン要求をして、コンテンツ提供サーバ4は、当該ログイン要求に応じたレスポンスをする(ステップS188)。当該レスポンスの例として以下の情報(認可コード)を出力する。
Response
{“code” : <authorization code>,
“state” : <state>}
Next, the user terminal 1050 requests login from the content provision server 4, and the content provision server 4 responds to the login request (step S188). As an example of the response, the following information (authorization code) is output.
Response
{“code”: <authorization code>,
“state”: <state>}
ユーザ端末1050は、上記レスポンスを受信すると、テレビゲートウェイ5へ連携指示を示すリダイレクトをする(ステップS189)。なお、ユーザ端末1050は、上記認可コードをテレビゲートウェイ5へ送信するようにしてもよい。 Upon receiving the above response, the user terminal 1050 redirects to the TV gateway 5 to instruct it to cooperate (step S189). Alternatively, the user terminal 1050 may also transmit the above authorization code to the TV gateway 5.
そして、ステップS72において、テレビゲートウェイ5の送信部513は、送信先のTVクラウド3へ認証コードを送信することでトークン要求をする(ステップS190)。 Then, in step S72, the transmission unit 513 of the TV gateway 5 requests a token by sending an authentication code to the destination TV cloud 3 (step S190).
当該トークン要求時に送信する情報は、例えば、以下の構成である。
Authorization: “Basic ” + Base64(TG-ID + “:” + <client_secret>)
Request Parameters
{
grant_type:“authorization_code”、
code :<authorization code> (認証コード)、
state :<string> (state情報)、
redirect_uri:<redirect_uri>、
client_id:<TG-ID>
}
The information sent when requesting the token may consist of the following, for example:
Authorization: “Basic” + Base64 (TG-ID + “:” + <client_secret>)
Request Parameters
{
grant_type: “authorization_code”,
code: <authorization code> (authentication code)
state: <string> (state information),
redirect_uri:<redirect_uri>,
client_id:<TG-ID>
}
TVクラウド3の生成部314は、記憶部311のDBを参照し、取得部312により取得されたコンテンツ提供サーバ4を識別する情報(例えば、state情報に含まれる情報)および認証コードに対応する情報があるか否かを判断することで認証する。生成部314は、記憶部311のDBを参照し、取得部312により取得されたコンテンツ提供サーバ4を識別する情報および認証コードに対応する情報がある場合、TVクラウド3の送信部313は、第1トークンをテレビゲートウェイ5へ送信する(ステップS191)。 The generation unit 314 of the TV Cloud 3 authenticates by referring to the database in the storage unit 311 and determining whether there is information identifying the content provider server 4 (for example, information included in the state information) and information corresponding to the authentication code obtained by the acquisition unit 312. If the generation unit 314 refers to the database in the storage unit 311 and finds information identifying the content provider server 4 and information corresponding to the authentication code obtained by the acquisition unit 312, the transmission unit 313 of the TV Cloud 3 transmits the first token to the TV gateway 5 (step S191).
具体的に、TVクラウド3の送信部313は、OAuth2のToken Responseをトークンとしてテレビゲートウェイ5に送付する。このレスポンスのOAuth2 Access Token Responseは以下のように構成される。
Response
{“access_token”: <access token>,
“token_type”: “Bearer”,
“expires_in”: 3600,
“refresh_token”: <refresh token>}
Specifically, the transmission unit 313 of the TV Cloud 3 sends the OAuth2 Token Response as a token to the TV Gateway 5. The OAuth2 Access Token Response in this response is structured as follows.
Response
{“access_token”: <access token>,
“token_type”: “Bearer”,
“expires_in”: 3600,
“refresh_token”: <refresh token>}
TVクラウド3がテレビゲートウェイ5にアクセスするときはaccess_tokenを付ける。expires_inは、access_token の有効期間(秒)であり、access_tokenを受け取ったときに無効になる時刻と共に記憶しておき、それまではこのaccess_tokenを繰り返し使う。refresh_tokenは、コンテンツ提供サーバ4が秘密に保管する。セキュリティ上、単純にlocal storageに置いておくのは良くないためである。access_token、refresh_tokenを各メーカで発行時、先頭にテレビメーカを識別する識別子を付けることでテレビメーカを特定することができる。 When TV Cloud 3 accesses TV Gateway 5, it attaches an access_token. `expires_in` is the validity period (in seconds) of the access_token; it is stored along with the time it expires when the access_token is received, and the access_token is reused repeatedly until then. The refresh_token is stored secretly by the content provision server 4. For security reasons, simply storing it in local storage is not advisable. When each manufacturer issues an access_token and refresh_token, they can identify the TV manufacturer by adding an identifier to the beginning of the token.
テレビゲートウェイ5の取得部512が、上記第1トークンを取得すると、テレビゲートウェイ5の送信部513が、認可コードを含む情報を送信すると共にコンテンツ提供サーバ4へトークン要求をする(ステップS192)。 When the acquisition unit 512 of the TV gateway 5 acquires the first token, the transmission unit 513 of the TV gateway 5 transmits information including the authorization code and requests a token from the content provision server 4 (step S192).
当該トークン要求時に送信する情報は、例えば、以下の構成である。
Authorization: “Basic” + Base64(TG-ID + “:” + <client_secret>)
Request
{
grant_type:“authorization_code”、
code :<code> (認可コード)、
state :<string> (state情報)、
redirect_uri:<TGW Endpoint>、
client_id:<TG-ID>
}
The information sent when requesting the token may consist of the following, for example:
Authorization: “Basic” + Base64 (TG-ID + “:” + <client_secret>)
Request
{
grant_type: “authorization_code”,
code: <code> (authorization code),
state: <string> (state information),
redirect_uri:<TGW Endpoint>,
client_id:<TG-ID>
}
ステップS193において、コンテンツ提供サーバ4は、生成した第2トークンをテレビゲートウェイ5へ送信する。 In step S193, the content provision server 4 transmits the generated second token to the television gateway 5.
具体的に、コンテンツ提供サーバ4は、OAuth2のToken Responseをトークンとしてテレビゲートウェイ5に送付する。このレスポンスのOAuth2 Access Token Responseは以下のように構成される。
{“access_token”: <access token>,
“token_type”: “Bearer”,
“expires_in”: 3600,
“refresh_token”: <refresh token>}
Specifically, the content provider server 4 sends the OAuth2 Token Response as a token to the TV gateway 5. The OAuth2 Access Token Response in this response is structured as follows.
{“access_token”: <access token>,
“token_type”: “Bearer”,
“expires_in”: 3600,
“refresh_token”: <refresh token>}
テレビゲートウェイ5の取得部512は、コンテンツ提供サーバ4から第2トークンを取得する。そして、テレビゲートウェイ5の送信部513は、第2トークンをコンテンツ提供サーバ4へ送信すると共にコンテンツ提供サーバ4へユーザ情報要求をする(ステップS194)。 The acquisition unit 512 of the TV gateway 5 acquires a second token from the content provision server 4. Then, the transmission unit 513 of the TV gateway 5 transmits the second token to the content provision server 4 and requests user information from the content provision server 4 (step S194).
当該ユーザ情報要求時に送信する情報は、例えば、以下の構成である。
Authorization: “Bearer” + <access token>)
The information transmitted when requesting user information may consist of the following, for example:
Authorization: “Bearer” + <access token>)
コンテンツ提供サーバ4は、テレビゲートウェイ5から取得した第2トークンに対応するユーザIDおよびユーザの属性情報を検索し、これらの情報をレスポンスとしてテレビゲートウェイ5へ送信する(ステップS195)。これにより、テレビゲートウェイ5の取得部512は、ユーザIDおよびユーザの属性情報を取得する。当該レスポンスの情報は、以下のように構成される。
Response
{“user_id”: <UR-ID>(コンテンツ提供サーバ4のサイトにおけるユーザID),
“Preference”: <現在のユーザ属性>(ユーザの生年月日、性別、郵便番号、購買履歴等)}
The content provision server 4 searches for the user ID and user attribute information corresponding to the second token obtained from the TV gateway 5, and sends this information to the TV gateway 5 as a response (step S195). As a result, the acquisition unit 512 of the TV gateway 5 obtains the user ID and user attribute information. The information in the response is configured as follows.
Response
{"user_id": <UR-ID> (User ID on the content provision server 4 site),
"Preference": <Current user attributes>(User's date of birth, gender, postal code, purchase history, etc.)
テレビゲートウェイ5の送信部513は、第1トークンをTVクラウド3に送信すると共に、デバイス情報要求する(ステップS196)。当該デバイス情報要求時に送信する情報は、例えば、以下の構成である。
Authorization: “Bearer” + <access token>)
The transmission unit 513 of the TV gateway 5 transmits the first token to the TV cloud 3 and requests device information (step S196). The information transmitted when requesting device information has the following configuration, for example.
Authorization: “Bearer” + <access token>)
TVクラウド3の取得部312は、第1トークンを取得すると、当該第1トークンに対応するHA-IDと、当該HA-IDに対応するデバイスの情報(当該HA-IDに対応するテレビジョン装置2の属性情報)を取得する。 When the acquisition unit 312 of the TV Cloud 3 acquires the first token, it acquires the HA-ID corresponding to the first token and the device information corresponding to the HA-ID (attribute information of the television device 2 corresponding to the HA-ID).
ステップS197において、TVクラウド3の送信部313は、HA-ID等の情報をレスポンスとして、テレビゲートウェイ5へ送信する。テレビゲートウェイ5の取得部512は、HA-IDと、当該HA-IDに対応するデバイスの情報を取得する。当該レスポンスの例として以下のようなものがある。
Response
{
・“device_id”:<HA-ID>(HA-ID)
・“model”:<model name>(テレビジョン装置2のモデル即ち表示画面インチや2K、4K、8K等の画素数情報等)
}
In step S197, the transmission unit 313 of the TV cloud 3 sends information such as the HA-ID as a response to the TV gateway 5. The acquisition unit 512 of the TV gateway 5 acquires the HA-ID and information about the device corresponding to the HA-ID. An example of such a response is as follows.
Response
{
・“device_id”: <HA-ID> (HA-ID)
• “model”: <model name> (the model of the television device 2, i.e., display screen size in inches, pixel count information such as 2K, 4K, 8K, etc.)
}
テレビゲートウェイ5は、バインド情報を削除して、削除した旨をコンテンツ提供サーバ4へ通知する(ステップS198)。なお、テレビゲートウェイ5は、バインド情報を削除した旨をTVクラウド3へ通知してもよい。 The TV gateway 5 deletes the bind information and notifies the content provider server 4 of the deletion (step S198). Alternatively, the TV gateway 5 may also notify the TV cloud 3 of the deletion.
テレビジョン装置2が、ステップS198以降に、TVクラウド3を介して、テレビゲートウェイ5に対して連携状態の確認要求をした場合(ステップS199、ステップS200)、テレビゲートウェイ5は、連携していない旨の情報をテレビジョン装置2へ送信する(ステップS201、ステップS202)。 If the television device 2 requests confirmation of the connection status from the television gateway 5 via the TV cloud 3 after step S198 (steps S199, S200), the television gateway 5 transmits information to the television device 2 indicating that the connection is not established (steps S201, S202).
上述の実施形態では、番組表を表示する際に、キャンペーン情報を表示する場合について述べたが、ネッワークを介して番組放送中(リニアに配信されている動画コンテンツ配信の番組)に指定されたタイミングで画面上に広告を表示する際に、キャンペーン情報を表示するようにしてもよい。 In the above embodiment, we described the case where campaign information is displayed when displaying the program guide. However, campaign information may also be displayed when displaying advertisements on the screen at a specified timing during program broadcast (a program with linearly distributed video content) via the network.
例えば、図20に示すようなクリッカブル広告を用いてキャンペーン情報を表示するようにしてもよい。図20は、クリッカブル広告の情報の例である。この広告情報は、広告情報のObjectのArrayを示す情報(ad_list)と、広告タイプを示す情報(ad_type)と、広告イメージのURLを示す情報(img_url)等を含む。 For example, campaign information may be displayed using clickable ads as shown in Figure 20. Figure 20 shows an example of clickable ad information. This ad information includes information indicating an array of ad information objects (ad_list), information indicating the ad type (ad_type), information indicating the URL of the ad image (img_url), etc.
上述の実施形態では、図17に示したフローチャートの処理において、テレビゲートウェイ5がコンテンツ提供サーバ4に対してユーザ情報要求して、コンテンツ提供サーバ4からUR-IDを取得する場合について述べたが、これに限られない。例えば、図21に、図17のフローチャートの変形例を示す。図17で説明した処理と同様の部分については、説明を省略する。図21に示すステップS128もしくはS130でコンテンツ提供サーバ4がUR-IDを提供する代わりに、ステップS118にてテレビゲートウェイ5が、仮UR-IDを発行してHTML形式のコードに含まれる“state”の値にそのパラメータを含むようにしてもよい。この場合、ステップS120にてユーザ端末1050が、この値をコンテンツ提供サーバ4へ送信する。また、図12のフローチャートにおいても、上記のように、テレビゲートウェイ5が、仮UR-IDを発行するようにしてもよい。 In the embodiment described above, the flowchart in Figure 17 describes a case where the TV gateway 5 requests user information from the content provision server 4 and obtains a UR-ID from the content provision server 4. However, the embodiment is not limited to this. For example, Figure 21 shows a modified version of the flowchart in Figure 17. Parts of the process similar to those described in Figure 17 will be omitted from the explanation. Instead of the content provision server 4 providing the UR-ID in step S128 or S130 shown in Figure 21, the TV gateway 5 may issue a temporary UR-ID in step S118 and include its parameter in the value of "state" in the HTML code. In this case, the user terminal 1050 sends this value to the content provision server 4 in step S120. Furthermore, in the flowchart of Figure 12, the TV gateway 5 may also issue a temporary UR-ID as described above.
本実施形態にかかるテレビゲートウェイ5は、キャンペーン情報を記憶しておき、テレビジョン装置2が番組表を表示するタイミング等、所定のタイミングでキャンペーン情報をテレビジョン装置2へ送信する。キャンペーン情報は、広告の表示種類を示す情報と、広告内容を示す情報とを含む広告情報部分350を有する。 The television gateway 5 in this embodiment stores campaign information and transmits the campaign information to the television device 2 at predetermined timings, such as when the television device 2 displays the program guide. The campaign information includes an advertising information section 350 that contains information indicating the type of advertisement to be displayed and information indicating the content of the advertisement.
また、テレビゲートウェイ5は、ユーザ端末1050から認証コードを取得し、認証コードに基づいて特定された送信先のTVクラウド3へ当該認証コードを送信し、TVクラウド3から第1トークンを取得し、コンテンツ提供サーバ4から第2トークンを取得する。そして、テレビゲートウェイ5は、当該第2トークンをコンテンツ提供サーバ4へ送信することで、ユーザIDを取得して、第1トークンをTVクラウド3へ送信することで、テレビジョン装置2のID(例えば、HA-ID)を取得する。このように、テレビゲートウェイ5は、コンテンツ提供サーバ4からユーザIDを取得し、TVクラウド3からテレビジョン装置2のIDを取得することで、ユーザIDとテレビジョン装置2のIDとを対応付けることができる。 Furthermore, the TV gateway 5 obtains an authentication code from the user terminal 1050, transmits the authentication code to the TV cloud 3 identified as the destination based on the authentication code, obtains a first token from the TV cloud 3, and obtains a second token from the content provision server 4. Then, the TV gateway 5 obtains the user ID by transmitting the second token to the content provision server 4, and obtains the ID of the television device 2 (e.g., HA-ID) by transmitting the first token to the TV cloud 3. In this way, the TV gateway 5 can associate the user ID with the ID of the television device 2 by obtaining the user ID from the content provision server 4 and the ID of the television device 2 from the TV cloud 3.
この場合、テレビゲートウェイ5が、ユーザIDとテレビジョン装置2のIDとを対応付けて記憶するので、TVクラウド3は、ユーザIDを管理する必要がなく、TVクラウド3の情報管理負担を軽減することができる。また、テレビゲートウェイ5は、ユーザ端末1050から認証コードを取得しているので、コンテンツ提供サーバ4が当該認証コードをテレビゲートウェイ5に送信する必要がなく、コンテンツ提供サーバ4の処理負担も軽減することができる。すなわち、テレビゲートウェイ5は、受信機の識別子(テレビジョン装置2のID)と、端末の識別子(ユーザ端末1050のユーザID)とを連携する処理を適切に実行することができる。また、テレビゲートウェイ5は、キャンペーン情報を出力することで、テレビジョン装置2のIDと、ユーザ端末1050のユーザIDとを連携する処理を促進させることができる。また、テレビゲートウェイ5は、キャンペーン情報に広告の表示種類を示す情報と、広告内容を示す情報とを含む広告情報を有しているので、テレビジョン装置2は、広告の表示種類に応じて表示態様を切り替えて広告情報を出力することで、ユーザ端末1050のユーザIDとを連携する処理をより促進させることができる。また、テレビゲートウェイ5は、キャンペーン情報に複数の広告情報を含めておくことで、テレビジョン装置2は、複数の広告を順次出力することができる。 In this case, since the TV gateway 5 stores the user ID in association with the ID of the television device 2, the TV cloud 3 does not need to manage the user ID, thus reducing the information management burden on the TV cloud 3. Furthermore, since the TV gateway 5 obtains the authentication code from the user terminal 1050, the content provision server 4 does not need to transmit the authentication code to the TV gateway 5, thus reducing the processing burden on the content provision server 4. In other words, the TV gateway 5 can appropriately perform the process of linking the receiver identifier (the ID of the television device 2) with the terminal identifier (the user ID of the user terminal 1050). Additionally, by outputting campaign information, the TV gateway 5 can facilitate the process of linking the ID of the television device 2 with the user ID of the user terminal 1050. Moreover, since the TV gateway 5 has advertising information that includes information indicating the type of advertisement to be displayed and information indicating the content of the advertisement, the television device 2 can further facilitate the process of linking with the user ID of the user terminal 1050 by switching the display mode according to the type of advertisement to output the advertising information. Furthermore, by including multiple advertisements in the campaign information of the TV gateway 5, the television device 2 can sequentially output multiple advertisements.
また、テレビゲートウェイ5は、テレビジョン装置2のIDと、ユーザ端末1050のユーザIDとを連携した後に、IFA-IDをコンテンツ提供サーバ4へ送信する。これにより、テレビゲートウェイ5は、テレビジョン装置2のIDをコンテンツ提供サーバ4へ開示することがなく、テレビジョン装置2を特定可能な情報を提供することができる。 Furthermore, the TV gateway 5 links the ID of the television device 2 with the user ID of the user terminal 1050, and then transmits the IFA-ID to the content provision server 4. This allows the TV gateway 5 to provide information that identifies the television device 2 without disclosing the ID of the television device 2 to the content provision server 4.
本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。例えば、上記実施形態におけるテレビジョン装置は、セットトップボックスや、レコーダのように、表示手段を備えず、外部の表示装置に対し、映像信号を出力する受信機能を備えた電子装置であってもよい。また、これら新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。
例えば、ユーザ端末に表示された画像アイコンのうち、テレビジョン装置で拡大表示可能な画像アイコンには、テレビジョン装置への拡大表示を指示するボタンを、その画像アイコン上、または、近傍に設けるようにしてもよく、また、その拡大表示可能な画像アイコンを、他の可拡大表示不可の画像アイコンとは識別可能に視認するための色彩や形状、表示形態を変更してもよい。また、ユーザ端末からテレビジョン装置への拡大表示を指示したとき、または、テレビジョン装置での表示処理の際、ユーザ端末またはテレビジョン装置を介して音声通知を行うようにしてもよい。
Although several embodiments of the present invention have been described, these embodiments are presented as examples only and are not intended to limit the scope of the invention. For example, the television device in the above embodiments may be an electronic device that does not have a display means, such as a set-top box or a recorder, but has a receiving function that outputs a video signal to an external display device. Furthermore, these novel embodiments can be carried out in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their variations are included in the scope and spirit of the invention, as well as in the claims of the invention and its equivalents.
For example, among the image icons displayed on the user terminal, image icons that can be enlarged on the television device may have a button on or near the image icon to instruct the television device to enlarge it. Alternatively, the color, shape, or display format of such enlargeable image icons may be changed to make them distinguishable from other image icons that cannot be enlarged. Furthermore, when the user terminal instructs the television device to enlarge the image, or during the display processing on the television device, an audio notification may be provided via the user terminal or the television device.
1…スマートフォン、2…テレビジョン装置、3…TVクラウド、4…コンテンツ提供サーバ、5…テレビゲートウェイ、6…計測サーバ、S…情報連携システム 1…Smartphone, 2…Television equipment, 3…TV cloud, 4…Content provision server, 5…TV gateway, 6…Measurement server, S…Information sharing system
Claims (2)
ユーザ端末から放送受信装置のメーカを識別する情報を含む認証コードを取得し、
放送受信装置と連携する連携ボタンを含む画面を前記ユーザ端末に送信し、
前記ユーザ端末から前記連携ボタンを押下した連携指示を受けた場合、前記放送受信装置のメーカを識別する情報を含む前記認証コードに基づいて前記認証コードに対応するサーバ装置を特定し、
特定した前記サーバ装置にトークン要求を行うため前記認証コードを送信し、
特定した前記サーバ装置から生成された第1トークンを取得し、
コンテンツ提供装置に前記認証コードとトークン要求とを送信し、
前記コンテンツ提供装置から生成された前記認証コードによって特定された前記ユーザ端末のユーザIDに基づく第2トークンを取得し、
前記コンテンツ提供装置に前記第2トークンとユーザ情報要求とを送信し、
前記コンテンツ提供装置から前記ユーザIDとユーザの属性情報とを取得し、デバイス情報要求を受け、
前記サーバ装置に前記第2トークンに対する第1トークンと前記デバイス情報要求とを送信し、
前記サーバ装置から前記第1トークンに対応する前記放送受信装置のIDと前記放送受信装置のIDに対応するデバイス情報とを取得し、
前記放送受信装置のIDと前記ユーザIDとを少なくとも関連付けて登録する、
サーバ管理装置の処理方法。 A processing method performed by a server management device capable of sending and receiving data with multiple server devices,
The user terminal obtains an authentication code containing information identifying the manufacturer of the broadcast receiving device.
A screen including a linking button for linking with the broadcast receiving device is sent to the user terminal.
When a linkage instruction is received from the user terminal by pressing the linkage button, the server device corresponding to the authentication code is identified based on the authentication code which includes information identifying the manufacturer of the broadcast receiving device.
The authentication code is sent to the identified server device in order to request a token .
Obtain the first token generated from the identified server device,
The authentication code and token request are sent to the content provider device.
A second token is obtained based on the user ID of the user terminal identified by the authentication code generated from the content providing device.
The second token and the user information request are transmitted to the content providing device.
The user ID and user attribute information are obtained from the content provisioning device, and a device information request is received.
The server device is sent the first token for the second token and the device information request.
The server device obtains the ID of the broadcast receiving device corresponding to the first token and the device information corresponding to the ID of the broadcast receiving device.
The ID of the broadcast receiving device and the user ID are registered in association with each other .
Processing method for server management devices.
請求項1に記載のサーバ管理装置の処理方法。 The authentication code, which includes information identifying the manufacturer of the broadcast receiving device, is sent from the server device to the content providing device via the broadcast receiving device.
The processing method for the server management device according to claim 1.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2025056962A JP7855110B2 (en) | 2025-03-28 | Processing method for server management device |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2022063747A JP7659520B2 (en) | 2022-04-07 | 2022-04-07 | Server management device |
| JP2025056962A JP7855110B2 (en) | 2025-03-28 | Processing method for server management device |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2022063747A Division JP7659520B2 (en) | 2021-10-14 | 2022-04-07 | Server management device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2025092660A JP2025092660A (en) | 2025-06-19 |
| JP7855110B2 true JP7855110B2 (en) | 2026-05-07 |
Family
ID=
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2022025607A (en) | 2020-07-29 | 2022-02-10 | Tvs Regza株式会社 | Server device, broadcast receiver, server management device, information cooperation system, and program |
| JP2022052607A (en) | 2020-09-23 | 2022-04-04 | Tvs Regza株式会社 | Server device, server managing device and program |
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2022025607A (en) | 2020-07-29 | 2022-02-10 | Tvs Regza株式会社 | Server device, broadcast receiver, server management device, information cooperation system, and program |
| JP2022052607A (en) | 2020-09-23 | 2022-04-04 | Tvs Regza株式会社 | Server device, server managing device and program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20140181855A1 (en) | Systems and methods for translating generic requests into device specific requests based on location information | |
| JP7667357B2 (en) | Server device and program | |
| US20110078715A1 (en) | Identifying a movie of interest from a widget used with movie commericials | |
| JP7710582B2 (en) | Server management device, system, and program | |
| JP7659520B2 (en) | Server management device | |
| JP7855110B2 (en) | Processing method for server management device | |
| JP7523617B2 (en) | Information sharing system | |
| JP7769068B2 (en) | Server management device, method and program | |
| US11722726B2 (en) | Television apparatus and display method | |
| CN104427396B (en) | Information processing device, information processing method, and program | |
| WO2023060949A1 (en) | Server management apparatus | |
| JP2008301265A (en) | COMMUNICATION SYSTEM, INFORMATION PROCESSING DEVICE, CONTROL DEVICE, CONTROLLED DEVICE, INFORMATION PROCESSING METHOD, AND PROGRAM |