[go: up one dir, main page]

CN105791338B - A method and system for multi-screen interaction based on WiFi AP - Google Patents

A method and system for multi-screen interaction based on WiFi AP Download PDF

Info

Publication number
CN105791338B
CN105791338B CN201410800937.7A CN201410800937A CN105791338B CN 105791338 B CN105791338 B CN 105791338B CN 201410800937 A CN201410800937 A CN 201410800937A CN 105791338 B CN105791338 B CN 105791338B
Authority
CN
China
Prior art keywords
service
cloud server
wifi
information
mac
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.)
Expired - Fee Related
Application number
CN201410800937.7A
Other languages
Chinese (zh)
Other versions
CN105791338A (en
Inventor
吕华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Corp
Original Assignee
TCL Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Corp filed Critical TCL Corp
Priority to CN201410800937.7A priority Critical patent/CN105791338B/en
Publication of CN105791338A publication Critical patent/CN105791338A/en
Application granted granted Critical
Publication of CN105791338B publication Critical patent/CN105791338B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention discloses a kind of multi-screen interaction method and system based on WiFi AP, wherein method is comprising steps of information of the service provider to cloud server registration including MAC, service cognizance code and service describing;Content providers connect cloud server, inquire and obtain service describing from cloud server according to MAC and service the information of cognizance code;Content providers will service cognizance code, order and data are sent to cloud server, push order and data to service provider by cloud server.The present invention includes the processes such as service registration, service discovery and content push, the service discovery of local network connection is needed not exist between Sink and Source equipment, it does not need to be connected to the same WiFi AP or in the same network segment, it does not need Sink and Source is directly connected to, only needing Sink to connect network with Source can be completed service discovery and multi-screen interactive yet.

Description

一种基于WiFi AP的多屏互动方法及系统A method and system for multi-screen interaction based on WiFi AP

技术领域technical field

本发明涉及网络服务领域,尤其涉及一种基于WiFi AP的多屏互动方法及系统。The invention relates to the field of network services, in particular to a multi-screen interaction method and system based on WiFi AP.

背景技术Background technique

现有技术中,网络服务发现协议主要有uPnP(通用即插即用)、mDNS(组播DNS),这两者都是基于IP网络广播实现,但广播通常在一个网段内有效,对于不在同一网段内的,需要依赖路由或网关的配置才能将服务能力广播出去。In the prior art, network service discovery protocols mainly include uPnP (Universal Plug and Play) and mDNS (Multicast DNS). In the same network segment, service capabilities need to be broadcasted depending on routing or gateway configuration.

因此,现有技术还有待于改进和发展。Therefore, the prior art still needs to be improved and developed.

发明内容Contents of the invention

鉴于上述现有技术的不足,本发明的目的在于提供一种基于WiFi AP的多屏互动方法及系统,旨在解决现有多屏互动方法需要设备均连接到同一个AP或在同一网段下的问题。In view of the above-mentioned deficiencies in the prior art, the purpose of the present invention is to provide a multi-screen interaction method and system based on WiFi AP, aiming at solving the problem that the existing multi-screen interaction method requires devices to be connected to the same AP or under the same network segment The problem.

本发明的技术方案如下:Technical scheme of the present invention is as follows:

一种基于WiFi AP的服务发现方法,其中,包括步骤:A service discovery method based on WiFi AP, wherein, comprising steps:

A、服务提供方向云端服务器注册包括MAC、服务识别代码和服务描述的信息;A. The service provider registers information including MAC, service identification code and service description with the cloud server;

B、内容提供方连接云端服务器,根据MAC从云端服务器查询并获取服务描述和服务识别代码的信息;B. The content provider connects to the cloud server, queries and obtains service description and service identification code information from the cloud server according to the MAC;

C、内容提供方将服务识别代码、命令和数据发送至云端服务器,通过云端服务器向服务提供方推送命令和数据。C. The content provider sends the service identification code, commands and data to the cloud server, and pushes the commands and data to the service provider through the cloud server.

所述的基于WiFi AP的服务发现方法,其中,所述步骤C之后还包括:The WiFi AP-based service discovery method, wherein, after the step C, also includes:

D、云端服务器接收服务提供方发送的MAC、服务识别代码和新的服务描述的信息,并进行更新。D. The cloud server receives and updates the MAC, service identification code and new service description information sent by the service provider.

所述的基于WiFi AP的服务发现方法,其中,所述步骤A具体包括:The service discovery method based on WiFi AP, wherein, the step A specifically includes:

A1、WiFi AP广播MAC至服务提供方;A1, WiFi AP broadcasts MAC to the service provider;

A2、服务提供方接收到MAC后,将MAC、服务识别代码和服务描述的信息发送至云端服务器;A2. After receiving the MAC, the service provider sends the MAC, service identification code and service description information to the cloud server;

A3、云端服务器建立MAC、服务识别代码和服务描述的列表。A3. The cloud server creates a list of MACs, service identification codes and service descriptions.

所述的基于WiFi AP的服务发现方法,其中,所述步骤B具体包括:The service discovery method based on WiFi AP, wherein, the step B specifically includes:

B1、WiFi AP广播MAC至内容提供方;B1. WiFi AP broadcasts MAC to the content provider;

B2、内容提供方将MAC发送至云端服务器请求查询;B2. The content provider sends the MAC to the cloud server to request query;

B3、云端服务器处理查询请求,并返回服务描述和服务识别代码的信息至内容提供方。B3. The cloud server processes the query request, and returns the service description and service identification code information to the content provider.

所述的基于WiFi AP的服务发现方法,其中,所述步骤C具体包括:The service discovery method based on WiFi AP, wherein, the step C specifically includes:

C1、内容提供方将服务识别代码、命令和数据发送至云端服务器;C1. The content provider sends the service identification code, commands and data to the cloud server;

C2、云端服务器根据所述服务识别代码向服务提供方推送命令和数据;C2. The cloud server pushes commands and data to the service provider according to the service identification code;

C3、服务提供方返回状态信息至云端服务器;C3. The service provider returns status information to the cloud server;

C4、云端服务器将服务提供方的状态信息返回至内容提供方。C4. The cloud server returns the status information of the service provider to the content provider.

所述的基于WiFi AP的服务发现方法,其中,所述步骤A中,服务提供方向云端服务器注册的信息还包括WiFi AP的SSID,所述步骤B中,内容提供方根据MAC和SSID来查询服务描述和服务识别代码的信息。The WiFi AP-based service discovery method, wherein, in the step A, the information registered by the service provider to the cloud server also includes the SSID of the WiFi AP, and in the step B, the content provider queries the service according to the MAC and SSID Description and service identification code information.

所述的基于WiFi AP的服务发现方法,其中,所述SSID名称定义的最大长度为30字节,保留2个字节,其中保留的倒数第2个字节为服务位掩码,保留的倒数第1个字节为MAC和SSID的检验和的最低位。The WiFi AP-based service discovery method, wherein, the maximum length defined by the SSID name is 30 bytes, and 2 bytes are reserved, wherein the second last byte reserved is a service bit mask, and the reserved second last byte is a service bit mask, and the reserved second last byte is The first byte is the lowest bit of the checksum of MAC and SSID.

一种基于WiFi AP的服务发现系统,其中,包括:A service discovery system based on WiFi AP, including:

服务注册模块,用于向云端服务器注册包括MAC、服务识别代码和服务描述的信息;The service registration module is used to register information including MAC, service identification code and service description with the cloud server;

服务发现模块,用于连接云端服务器,根据MAC从云端服务器查询并获取服务描述和服务识别代码的信息;The service discovery module is used to connect to the cloud server, query and obtain the service description and service identification code information from the cloud server according to the MAC;

推送通知模块,用于将服务识别代码、命令和数据发送至云端服务器,通过云端服务器向服务提供方推送命令和数据。The push notification module is used to send the service identification code, command and data to the cloud server, and push the command and data to the service provider through the cloud server.

所述的基于WiFi AP的服务发现系统,其中,还包括:The service discovery system based on WiFi AP, which also includes:

服务更新模块,用于接收服务提供方发送的MAC、服务识别代码和新的服务描述的信息,并进行更新。The service updating module is used for receiving the information of MAC, service identification code and new service description sent by the service provider, and updating them.

所述的基于WiFi AP的服务发现系统,其中,服务注册模块向云端服务器注册的信息还包括WiFi AP的SSID,所述服务发现模块中,根据MAC和SSID来查询服务描述和服务识别代码的信息。In the WiFi AP-based service discovery system, wherein, the information registered by the service registration module to the cloud server also includes the SSID of the WiFi AP, and in the service discovery module, the information of the service description and the service identification code is queried according to MAC and SSID .

有益效果:本发明包括服务注册、服务发现及内容推送等过程,Sink和Source这两设备之间不需要存在本地网络连接的服务发现,即不需要连接到同一个WiFi AP或者处于同一个网段,也不需要Sink和Source直接连接,只需Sink和Source连接网络即可完成服务发现以及多屏互动。Beneficial effects: the present invention includes processes such as service registration, service discovery, and content push. There is no need for local network connection service discovery between the Sink and Source devices, that is, they do not need to be connected to the same WiFi AP or be in the same network segment. , and there is no need for direct connection between Sink and Source, only the Sink and Source are connected to the network to complete service discovery and multi-screen interaction.

附图说明Description of drawings

图1为本发明一种基于WiFi AP的多屏互动方法较佳实施例的流程图。FIG. 1 is a flow chart of a preferred embodiment of a WiFi AP-based multi-screen interaction method in the present invention.

图2为本发明的设备部署架构图。FIG. 2 is a device deployment architecture diagram of the present invention.

图3为图1所示方法中步骤S101的具体流程图。FIG. 3 is a specific flowchart of step S101 in the method shown in FIG. 1 .

图4为图1所示方法中步骤S102的具体流程图。FIG. 4 is a specific flowchart of step S102 in the method shown in FIG. 1 .

图5为图1所示方法中步骤S103的具体流程图。FIG. 5 is a specific flowchart of step S103 in the method shown in FIG. 1 .

图6为图1所示方法中步骤S104的具体流程图。FIG. 6 is a specific flowchart of step S104 in the method shown in FIG. 1 .

图7为本发明一种基于WiFi AP的多屏互动系统较佳实施例的结构框图。FIG. 7 is a structural block diagram of a preferred embodiment of a WiFi AP-based multi-screen interactive system according to the present invention.

图8为图7所示系统的服务注册模块的结构框图。FIG. 8 is a structural block diagram of the service registration module of the system shown in FIG. 7 .

图9为图7所示系统的服务发现模块的结构框图。FIG. 9 is a structural block diagram of the service discovery module of the system shown in FIG. 7 .

图10为图7所示系统的服务更新模块的结构框图。FIG. 10 is a structural block diagram of the service update module of the system shown in FIG. 7 .

具体实施方式Detailed ways

本发明提供一种基于WiFi AP的多屏互动方法及系统,为使本发明的目的、技术方案及效果更加清楚、明确,以下对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention provides a multi-screen interactive method and system based on WiFi AP. In order to make the purpose, technical solution and effect of the present invention clearer and clearer, the present invention will be further described in detail below. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

请参阅图1,图1为本发明一种基于WiFi AP的服务发现方法较佳实施例的流程图,如图所示,其包括步骤:Please refer to FIG. 1. FIG. 1 is a flowchart of a preferred embodiment of a WiFi AP-based service discovery method according to the present invention. As shown in the figure, it includes steps:

S101、服务提供方向云端服务器注册包括MAC、服务识别代码和服务描述的信息;S101. The service provider registers information including MAC, service identification code and service description with the cloud server;

S102、内容提供方连接云端服务器,根据MAC从云端服务器查询并获取服务描述和服务识别代码的信息;S102. The content provider connects to the cloud server, queries and acquires service description and service identification code information from the cloud server according to the MAC;

S103、内容提供方将服务识别代码、命令和数据发送至云端服务器,通过云端服务器向服务提供方推送命令和数据。S103. The content provider sends the service identification code, command and data to the cloud server, and pushes the command and data to the service provider through the cloud server.

本发明较佳实施例中,服务提供方(Sink)先向云端服务器注册,在云端服务器保存包括MAC、服务识别代码和服务描述的信息,之后内容提供方(Source)连接云端服务器,获取这些信息,而Sink和Source这两设备之间不需要存在本地网络连接的服务发现,即不需要连接到同一个WiFi AP或者处于同一个网段,也不需要Sink和Source直接连接,只需Sink和Source连接网络即可完成服务发现,然后由内容提供方推送内容。In a preferred embodiment of the present invention, the service provider (Sink) first registers with the cloud server, and saves information including MAC, service identification code and service description on the cloud server, and then the content provider (Source) connects to the cloud server to obtain these information , and there is no need for local network connection service discovery between the Sink and Source, that is, it does not need to be connected to the same WiFi AP or in the same network segment, nor does it need to be directly connected to the Sink and Source, only the Sink and Source Service discovery can be completed by connecting to the network, and then the content provider will push the content.

本发明的设备部署架构,如图2所示,The device deployment architecture of the present invention, as shown in Figure 2,

其中的Source,如手机,需要建立与云端服务器的连接;其中Source的网络连接方式可以是WiFi或者移动网络等。The source, such as a mobile phone, needs to establish a connection with the cloud server; the network connection method of the source can be WiFi or mobile network.

其中的Sink,如智能电视,也需要建立与云端服务器的连接,其用于提供服务,对于Sink,其需支持WiFi网卡,将服务描述绑定到WiFi AP的MAC上,从而将上述信息注册到Internet网络的云端服务器。Sink的网络连接方式可以是WiFi STA(网卡模式)或者Ethernet(以太网)等。The Sink, such as a smart TV, also needs to establish a connection with the cloud server to provide services. For the Sink, it needs to support the WiFi network card, bind the service description to the MAC of the WiFi AP, and register the above information to the The cloud server of the Internet network. The network connection mode of Sink can be WiFi STA (network card mode) or Ethernet (Ethernet).

Sink和Source之间不需要建立任何连接,只需接收到WiFi AP广播的MAC信息即可,Sink和Source也可建立在同一个WiFi AP上;There is no need to establish any connection between Sink and Source, just receive the MAC information broadcast by WiFi AP, and Sink and Source can also be established on the same WiFi AP;

其中的WiFi AP可以是独立的路由,也可以是Sink设备内部的,即若Sink设备支持AP时可实现此功能。The WiFi AP can be an independent router, or it can be inside the Sink device, that is, if the Sink device supports AP, this function can be realized.

本发明中的服务是指设备能够提供的一种能力描述,例如智能电视具有接收移动终端发送过来的视频、或音频。The service in the present invention refers to a capability description that a device can provide, for example, a smart TV can receive video or audio sent from a mobile terminal.

下面结合附图对本发明进行更详细的说明。The present invention will be described in more detail below in conjunction with the accompanying drawings.

作为本发明更优选的实施例,如图3所示,所述的步骤S101具体包括步骤:As a more preferred embodiment of the present invention, as shown in Figure 3, the step S101 specifically includes steps:

S201、WiFi AP广播MAC至服务提供方;S201. The WiFi AP broadcasts the MAC address to the service provider;

S202、服务提供方接收到MAC后,将MAC、服务识别代码和服务描述的信息发送至云端服务器;S202. After receiving the MAC, the service provider sends the information of the MAC, the service identification code and the service description to the cloud server;

S203、云端服务器建立MAC、服务识别代码和服务描述的列表。S203. The cloud server creates a list of MACs, service identification codes, and service descriptions.

云端服务器接收到MAC、服务识别代码和服务描述的信息后,建立列表保存上述信息。即将MAC与服务识别代码和服务描述绑定。由于多个服务可以使用同一个WiFi AP信息注册,即云端服务器保存的MAC,可能包含多种服务,所以增加服务识别代码,其是服务的唯一标识,具体可使用GUID(全局唯一标识符)。After receiving the information of MAC, service identification code and service description, the cloud server creates a list to save the above information. That is to bind the MAC with the service identification code and service description. Since multiple services can be registered using the same WiFi AP information, that is, the MAC stored in the cloud server may contain multiple services, so the service identification code is added, which is the unique identifier of the service. Specifically, GUID (Globally Unique Identifier) can be used.

作为本发明更优选的实施例,如图4所示,所述的步骤S102具体包括步骤:As a more preferred embodiment of the present invention, as shown in FIG. 4, the step S102 specifically includes steps:

S301、WiFi AP广播MAC至内容提供方;S301. The WiFi AP broadcasts the MAC to the content provider;

S302、内容提供方将MAC发送至云端服务器请求查询;S302. The content provider sends the MAC to the cloud server to request query;

S303、云端服务器处理查询请求,并返回服务描述和服务识别代码的信息至内容提供方。S303, the cloud server processes the query request, and returns the service description and service identification code information to the content provider.

云端服务器可根据唯一的MAC来查询该MAC所对应的全部的服务描述和服务识别代码,并将查询的结果返回至内容提供方。The cloud server can query all service descriptions and service identification codes corresponding to the MAC according to the unique MAC, and return the query result to the content provider.

作为本发明更优选的实施例,如图5所示,所述的步骤S103具体包括步骤:As a more preferred embodiment of the present invention, as shown in Figure 5, the step S103 specifically includes steps:

S401、内容提供方将服务识别代码、命令和数据发送至云端服务器;S401. The content provider sends the service identification code, command and data to the cloud server;

S402、云端服务器根据所述服务识别代码向服务提供方推送命令和数据;S402. The cloud server pushes commands and data to the service provider according to the service identification code;

S403、服务提供方返回状态信息至云端服务器;S403, the service provider returns status information to the cloud server;

S404、云端服务器将服务提供方的状态信息返回至内容提供方。S404. The cloud server returns the status information of the service provider to the content provider.

即,内容提供方需要将某个内容推送到服务提供方时,可将服务识别代码、命令和数据发送到云端服务器,由云端服务器来转发命令和数据,从而使服务提供方按照命令来处理数据,例如显示图片或播放视频等等。此时服务提供方还返回状态信息至云端服务器,由云端服务器转发给内容提供方。That is, when the content provider needs to push certain content to the service provider, it can send the service identification code, command and data to the cloud server, and the cloud server will forward the command and data, so that the service provider can process the data according to the command , such as displaying pictures or playing videos, etc. At this time, the service provider also returns status information to the cloud server, and the cloud server forwards it to the content provider.

若服务提供方有状态更新时,可直接执行步骤S403和步骤S404,而无需经过步骤S401和步骤S402两个过程。If the service provider has a status update, step S403 and step S404 can be directly executed without going through the two processes of step S401 and step S402.

作为本发明更优选的实施例,所述步骤S103之后还包括:As a more preferred embodiment of the present invention, after the step S103, it also includes:

S104、云端服务器接收服务提供方发送的MAC、服务识别代码和新的服务描述的信息,并进行更新。S104. The cloud server receives and updates the MAC, service identification code and new service description information sent by the service provider.

具体来说,如图6所示,所述步骤S104具体包括:Specifically, as shown in FIG. 6, the step S104 specifically includes:

S501、服务提供方发送MAC、服务识别代码和新的服务描述的信息至云端服务器;S501. The service provider sends the MAC, service identification code and new service description information to the cloud server;

S502、云端服务器更新MAC、服务识别代码和服务描述的信息并保存;S502. The cloud server updates and saves the information of MAC, service identification code and service description;

S503、若存在正在使用原服务的设备,则通知Source,服务注销。S503. If there is a device using the original service, the Source is notified, and the service is canceled.

服务提供方如有新的服务描述,则需要再次将MAC、服务识别代码,以及新的服务描述的信息发送给云端服务器,云端服务器接收到信息后进行更新。此时如果内容提供方正在使用原来的服务,则此时通知内容提供方,服务注销。If the service provider has a new service description, it needs to send the MAC, the service identification code, and the information of the new service description to the cloud server again, and the cloud server will update it after receiving the information. At this time, if the content provider is using the original service, the content provider is notified at this time, and the service is canceled.

如果服务提供方与云端服务器的连接断开,则当连接断开时,如果有内容提供方正在使用服务,则也由云端服务器通知内容提供方,服务注销。If the connection between the service provider and the cloud server is disconnected, when the connection is disconnected, if any content provider is using the service, the cloud server will also notify the content provider, and the service will be logged out.

如果服务提供设备主动注销服务(例如注册的WiFi AP消失或变更,或者设备禁止网络远程控制等),那么也又云端服务器通知内容提供方,服务注销。If the service provider device actively cancels the service (for example, the registered WiFi AP disappears or changes, or the device prohibits network remote control, etc.), then the cloud server will notify the content provider to cancel the service.

在上述实施例中,MAC是必须注册的,由于MAC地址是全球唯一的,所以理论上只需在云端服务器保存MAC和服务描述的数据库即可,但如果Source对于每一个搜索到的AP都去执行云端服务器查询,其所需要处理的数据量比如很大,所以为了降低网络查询的数据量和提高查询效率,本发明还增加了SSID,在所述步骤S101中,服务提供方向云端服务器注册的信息还包括WiFi AP的SSID,所述步骤S102中,内容提供方根据MAC和SSID来查询服务描述和服务识别代码的信息。In the above embodiment, MAC must be registered. Since the MAC address is globally unique, it is only necessary to save the MAC and service description database on the cloud server in theory. However, if Source goes to the Executing cloud server query, the amount of data it needs to process is very large, so in order to reduce the data amount of network query and improve query efficiency, the present invention also increases the SSID, in the step S101, the service provider registers with the cloud server The information also includes the SSID of the WiFi AP. In the step S102, the content provider queries the service description and service identification code information according to the MAC and SSID.

进一步,还规范SSID命名,在查询时增加SSID匹配,从而更准确的获取信息,其规范规则为:Furthermore, the SSID naming is also standardized, and the SSID matching is added when querying, so as to obtain information more accurately. The specification rules are:

所述SSID名称定义的最大长度为30字节,保留2个字节,其中保留的倒数第2个字节为服务位掩码(bitmask),可定义每一位对应的服务,如bit0为视频,bit1为音频,字节内偶校验。保留的倒数第1个字节为MAC和SSID的检验和的最低位。The maximum length defined by the SSID name is 30 bytes, 2 bytes are reserved, and the second last byte reserved is the service bitmask (bitmask), which can define the service corresponding to each bit, such as bit0 is video , bit1 is audio, even parity in the byte. The penultimate byte reserved is the lowest bit of the checksum of MAC and SSID.

下面提供一具体应用实施例对本发明的应用场景进行具体说明。A specific application example is provided below to specifically describe the application scenario of the present invention.

1、A的手机和B的电视均支持基于Internet网络相邻服务的匿名发现协议。2、A的手机支持Miracast Source,B的电视也支持MiraCast Sink;1. Both A's mobile phone and B's TV support the anonymous discovery protocol based on Internet Adjacent Services. 2. A's mobile phone supports Miracast Source, and B's TV also supports Miracast Sink;

云端服务器保存有:[WiFi AP MAC地址,服务识别码GUID 1,Miracast sink][WiFi AP MAC地址,服务识别码GUID 2,DLNA] ,若B的电视支持DLNA,则会包含这个数据,[WiFi AP MAC 1地址,服务识别码GUID 3,xxx] ,其他设备注册的服务表;The cloud server saves: [WiFi AP MAC address, service identification code GUID 1, Miracast sink][WiFi AP MAC address, service identification code GUID 2, DLNA], if B’s TV supports DLNA, it will contain this data, [WiFi AP MAC 1 address, service identification code GUID 3, xxx], service table registered by other devices;

... ...3、B的家里配置情况是:有WiFi路由器,并且是任何设备都是可以公开的搜索到(连接可以有密码);若A到B家里做客,需要将手机上的内容给B的电视进行展示:这时,由于A的手机会自动发现B的电视支持MiraCast:发现过程:a. A的手机会将搜索到的WiFi AP MAC发送到云端服务器;b. 云端服务器将对应的MAC 服务列表返回:【WiFi APMAC地址,服务识别码GUID 1,Miracast sink】【WiFi AP MAC地址,服务识别码GUID 2,DLNA】,如果电视支持DLNA,就会包含这个数据,... 3. B's home configuration is: there is a WiFi router, and any device can be searched publicly (the connection can have a password); if A is a guest at B's home, the content on the phone needs to be saved Show B’s TV: At this time, because A’s mobile phone will automatically discover that B’s TV supports MiraCast: Discovery process: a. A’s mobile phone will send the searched WiFi AP MAC to the cloud server; b. The cloud server will correspond The MAC service list returns: [WiFi APMAC address, service identification code GUID 1, Miracast sink] [WiFi AP MAC address, service identification code GUID 2, DLNA], if the TV supports DLNA, this data will be included,

手机和电视启动Miracast功能,将手机的屏幕内容显示在B的电视上,而此时A的手机仍然未连接到B的WiFi路由上,即手机与电视不在同一个网段,但同样可实现多屏互动功能。The mobile phone and TV activate the Miracast function to display the screen content of the mobile phone on B’s TV, but at this time A’s mobile phone is still not connected to B’s WiFi router, that is, the mobile phone and the TV are not in the same network segment, but it can also achieve multiple Screen interaction function.

基于上述方法,本发明还提供一种基于WiFi AP的服务发现系统较佳实施例,如图7所示,其包括:Based on the above method, the present invention also provides a preferred embodiment of a WiFi AP-based service discovery system, as shown in FIG. 7 , which includes:

服务注册模块100,用于向云端服务器注册包括MAC、服务识别代码和服务描述的信息;The service registration module 100 is used to register information including MAC, service identification code and service description with the cloud server;

服务发现模块200,用于连接云端服务器,根据MAC从云端服务器查询并获取服务描述和服务识别代码的信息;The service discovery module 200 is used to connect to the cloud server, query and obtain the service description and service identification code information from the cloud server according to the MAC;

推送通知模块300,用于将服务识别代码、命令和数据发送至云端服务器,通过云端服务器向服务提供方推送命令和数据;The push notification module 300 is used to send the service identification code, command and data to the cloud server, and push the command and data to the service provider through the cloud server;

服务更新模块400,用于接收服务提供方发送的MAC、服务识别代码和新的服务描述的信息,并进行更新。The service update module 400 is configured to receive the information of MAC, service identification code and new service description sent by the service provider, and perform update.

其中,如图8所示,所述服务注册模块100具体包括:Wherein, as shown in FIG. 8, the service registration module 100 specifically includes:

第一广播单元110,用于广播MAC至服务提供方;The first broadcast unit 110 is configured to broadcast the MAC to the service provider;

信息发送单元120,用于接收到MAC后,将MAC、服务识别代码和服务描述的信息发送至云端服务器;The information sending unit 120 is configured to send the information of the MAC, the service identification code and the service description to the cloud server after receiving the MAC;

列表建立单元130,用于建立MAC、服务识别代码和服务描述的列表。A list building unit 130, configured to create a list of MACs, service identification codes and service descriptions.

如图9所示,所述服务发现模块200具体包括:As shown in Figure 9, the service discovery module 200 specifically includes:

第二广播单元210,用于广播MAC至内容提供方;The second broadcast unit 210 is configured to broadcast the MAC to the content provider;

请求发送单元220,用于将MAC发送至云端服务器请求查询;The request sending unit 220 is used to send the MAC to the cloud server to request an inquiry;

结果返回单元230,用于处理查询请求,并返回服务描述和服务识别代码的信息至内容提供方。The result returning unit 230 is configured to process the query request, and return the service description and service identification code information to the content provider.

如图10所示,所述推送通知模块300具体包括:As shown in Figure 10, the push notification module 300 specifically includes:

数据发送单元310,用于将服务识别代码、命令和数据发送至云端服务器;A data sending unit 310, configured to send service identification codes, commands and data to the cloud server;

数据推送单元320,用于根据所述服务识别代码向服务提供方推送命令和数据;A data push unit 320, configured to push commands and data to the service provider according to the service identification code;

状态发送单元330,用于返回状态信息至云端服务器;A status sending unit 330, configured to return status information to the cloud server;

状态返回单元340,用于将服务提供方的状态信息返回至内容提供方。The status return unit 340 is configured to return the status information of the service provider to the content provider.

服务注册模块100向云端服务器注册的信息还包括WiFi AP的SSID,所述服务发现模块200中,根据MAC和SSID来查询服务描述和服务识别代码的信息。The information registered with the cloud server by the service registration module 100 also includes the SSID of the WiFi AP. In the service discovery module 200, the information of the service description and service identification code is queried according to the MAC and SSID.

关于上述模块单元的技术细节在前面的方法中已有详述,故不再赘述。The technical details about the above-mentioned modular units have been described in detail in the previous method, so they will not be repeated here.

综上所述,本发明包括服务注册、服务发现及内容推送等过程,Sink和Source这两设备之间不需要存在本地网络连接的服务发现,即不需要连接到同一个WiFi AP或者处于同一个网段,也不需要Sink和Source直接连接,只需Sink和Source连接网络即可完成服务发现以及多屏互动。In summary, the present invention includes processes such as service registration, service discovery, and content push. There is no need for service discovery of a local network connection between the Sink and Source devices, that is, there is no need to connect to the same WiFi AP or be in the same WiFi AP. The network segment does not need to be directly connected to the Sink and the Source, and only the Sink and the Source are connected to the network to complete service discovery and multi-screen interaction.

应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。It should be understood that the application of the present invention is not limited to the above examples, and those skilled in the art can make improvements or transformations according to the above descriptions, and all these improvements and transformations should belong to the protection scope of the appended claims of the present invention.

Claims (8)

1. a kind of service discovery method based on WiFi AP, which is characterized in that comprising steps of
A, service provider includes the MAC Address of WIFI AP, services cognizance code and service describing to cloud server registration Information;
B, content providers connect cloud server, are inquired according to the MAC Address from cloud server and obtain service describing With the information of service cognizance code;
C, content providers will service cognizance code, order and data and be sent to cloud server, by cloud server to clothes Business provider pushes order and data;
The step A is specifically included:
A1, WiFi AP broadcast the MAC Address to service provider;
After A2, service provider receive the MAC Address, by the MAC Address, the letter of service cognizance code and service describing Breath is sent to cloud server;
The list that A3, cloud server establish the MAC Address, service cognizance code and service describing;
The step B is specifically included:
B1, WiFi AP broadcast MAC to content providers;
MAC is sent to cloud server request inquiry by B2, content providers;
B3, cloud server handle inquiry request, and return to service describing and service the information of cognizance code to content providers.
2. the service discovery method according to claim 1 based on WiFi AP, which is characterized in that after the step C also Include:
D, cloud server receives the MAC Address, service cognizance code and the new service describing that service provider is sent Information, and be updated.
3. the service discovery method according to claim 1 based on WiFi AP, which is characterized in that the step C is specifically wrapped It includes:
C1, content providers will service cognizance code, order and data are sent to cloud server;
C2, cloud server push order and data to service provider according to the service cognizance code;
C3, service provider return to status information to cloud server;
The status information of service provider is back to content providers by C4, cloud server.
4. the service discovery method according to claim 1 based on WiFi AP, which is characterized in that in the step A, clothes Business provide the registration of direction cloud server information further include WiFi AP SSID, in the step B, content providers according to The MAC Address and the SSID carry out the information of query service description and service cognizance code.
5. the service discovery method according to claim 4 based on WiFi AP, which is characterized in that the SSID name is fixed The maximum length of justice is 30 bytes, retains 2 bytes, wherein the second-to-last byte retained is service bitmask, reservation is fallen The 1st byte of number is the lowest order of the MAC Address and the inspection sum of SSID.
6. a kind of service discovery system based on WiFi AP characterized by comprising
Service register module, for MAC Address, service cognizance code and the service to cloud server registration including WIFI AP The information of description;
Service discovery module inquires from cloud server according to the MAC Address for connecting cloud server and obtains service The information of description and service cognizance code;
Sending out notice module, for that will service cognizance code, order and data will be sent to cloud server, pass through cloud server Order and data are pushed to service provider;
The service register module specifically includes:
First radio unit, for broadcasting MAC to service provider;
The information of MAC, service cognizance code and service describing are sent to cloud after receiving MAC by information transmitting unit Server;
Unit is established in list, the list for establishing MAC, servicing cognizance code and service describing;
The service discovery module specifically includes:
Second radio unit, for broadcasting MAC to content providers;
Request transmitting unit, for MAC to be sent to cloud server request inquiry;
As a result return unit, for handling inquiry request, and information to the content for returning to service describing and service cognizance code mentions Supplier.
7. the service discovery system according to claim 6 based on WiFi AP, which is characterized in that further include:
Update module is serviced, the MAC Address, service cognizance code and new service for receiving service provider transmission are retouched The information stated, and be updated.
8. the service discovery system according to claim 6 based on WiFi AP, which is characterized in that service register module to The information of cloud server registration further includes the SSID of WiFi AP, in the service discovery module, according to the MAC Address and The SSID carrys out the information of query service description and service cognizance code.
CN201410800937.7A 2014-12-22 2014-12-22 A method and system for multi-screen interaction based on WiFi AP Expired - Fee Related CN105791338B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410800937.7A CN105791338B (en) 2014-12-22 2014-12-22 A method and system for multi-screen interaction based on WiFi AP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410800937.7A CN105791338B (en) 2014-12-22 2014-12-22 A method and system for multi-screen interaction based on WiFi AP

Publications (2)

Publication Number Publication Date
CN105791338A CN105791338A (en) 2016-07-20
CN105791338B true CN105791338B (en) 2019-10-11

Family

ID=56385915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410800937.7A Expired - Fee Related CN105791338B (en) 2014-12-22 2014-12-22 A method and system for multi-screen interaction based on WiFi AP

Country Status (1)

Country Link
CN (1) CN105791338B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107809663A (en) * 2017-11-06 2018-03-16 深圳创维-Rgb电子有限公司 Miracast serving starting methods, intelligent television and storage medium
CN112291776A (en) * 2020-10-23 2021-01-29 四川长虹电器股份有限公司 Method for searching equipment in multi-screen cooperative system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231763A (en) * 2011-06-20 2011-11-02 北京思创银联科技股份有限公司 Sharing method based on NAT (Network Address Translation) penetration
CN102355448A (en) * 2011-06-29 2012-02-15 北京原力创新科技有限公司 Cloud streaming media data transmission method and system
CN202261376U (en) * 2011-06-29 2012-05-30 北京原力创新科技有限公司 Cloud streaming media data transmission system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101613320B1 (en) * 2009-12-24 2016-04-18 삼성전자주식회사 Apparatus and method for providing information for wireless network connection using wirelss-fidelity and system thereof
EP2733888A4 (en) * 2011-07-12 2015-01-21 Lg Electronics Inc Method for device discovery and method for downloading content

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231763A (en) * 2011-06-20 2011-11-02 北京思创银联科技股份有限公司 Sharing method based on NAT (Network Address Translation) penetration
CN102355448A (en) * 2011-06-29 2012-02-15 北京原力创新科技有限公司 Cloud streaming media data transmission method and system
CN202261376U (en) * 2011-06-29 2012-05-30 北京原力创新科技有限公司 Cloud streaming media data transmission system

Also Published As

Publication number Publication date
CN105791338A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
CN110366011B (en) Method and communication device for accessing service network
CN102739779B (en) A kind of digital home's exchange method based on DLNA, system and relevant device
CN106210049B (en) Cluster communication method and system based on message queue
WO2014183582A1 (en) Distributed iptv multi-screen gateway and iptv multi-screen interaction method
CN104539902B (en) The remote access method and system of a kind of IPC
US9948823B2 (en) Device discovery using broadcast technology
US20140365606A1 (en) Information processing apparatus, information processing method, and program
CN104917791A (en) Method and apparatus for transmitting control instructions
WO2018113693A1 (en) Local area network device communication management method and system, and gateway device
JP6511624B2 (en) Multimedia sharing method, registration method, server and proxy server
CN105791338B (en) A method and system for multi-screen interaction based on WiFi AP
CN108076025B (en) Method and device for registering network equipment
CN103684819A (en) Obtaining method and device for configuration parameter
CN107534598B (en) Method, device and system for media service proxy
WO2020048177A1 (en) Set top box management method and apparatus, and device and storage medium
CN105812909A (en) Video transmission method and device
CN114023058A (en) Remote control method, device, system, device and storage medium based on Bluetooth broadcasting
CN102811263A (en) Communication method and system based on IPv6 for mobile terminal and mobile terminal
US20150067050A1 (en) Method and system for social networking in a multi-screen environment
CN105721314A (en) Method and equipment for sending data packet
CN105191231A (en) Gateway device
US9609489B2 (en) Distribution of media content identifiers to wireless communication devices
CN105210347A (en) Monitoring server, parsing server, request device and node selection method
WO2023206558A1 (en) Address allocation method and apparatus
US11218523B2 (en) Method of providing information to an audio/video receiver device and corresponding apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191011