3

Google TV关于 android 平台上的远程应用程序如何工作的任何想法。我今天刚试过。通过无线网络配对它,它才开始工作。它背后的概念是什么?它似乎没有使用Bluetooth. 那么在电视上不安装任何组件的情况下它是如何工作的呢?

4

3 回答 3

11

Google TV 遥控器的代码已开源,因此您可以了解它是如何工作的。

https://code.google.com/p/google-tv-remote/

于 2011-05-11T21:32:03.053 回答
7

我知道这是一个老问题,但我想我会添加一些额外的细节,因为当前的答案不是很有帮助。它使用 IP 工作,通常通过 WiFi,但技术上不需要。以下是用于设备交互的实际通信的一些更具体的细节。

Google TV Remote 应用程序使用 Google 的Anymote协议,任何应用程序都可以使用该协议来创建第二屏幕样式的应用程序。Anymote 协议有几个部分。

第一个是发现阶段,其中多播 DNS消息用于发现网络上任何基于 GTV 的设备。mDNS 消息使用 224.0.0.251 端口 5353 的 IP 进行多播。收到此消息的任何 GTV 设备将以其机器名称响应。至此,我们现在有了一个可能的 GTV 设备列表。

第二/第三阶段是识别和认证阶段,电视向设备发出质询以完成。建立此配对后,设备之间会交换 SSL 证书,以便将来通过安全的 SSL/TLS 通道进行通信。

最后阶段涉及平板电脑/手机/等设备向 GTV 设备发送消息。Anymote 协议中定义了几条消息。例如,投掷消息在收到时会在 GTV 设备上转换为 Intent。可以以正常意图的任何方式使用此意图。

于 2012-01-17T17:15:33.860 回答
0

Looking into Open source licensing info of Android TV remote app I find out that they are using google tv pairing protocol for pairing of TV with Android phone

The Google TV Pairing Protocol works in conjunction with the Anymote Protocol for communication between TV and phone:

You can look into source code for the Google TV Android Remote application(Not Android TV app) to see how Anymote protocol is used:

Unfortunately, besides this there is no more information available on internet.

于 2019-01-16T10:07:31.570 回答