WO2015117306A1 - 一种跨家庭网络的处理方法及http网关、dlna设备 - Google Patents

一种跨家庭网络的处理方法及http网关、dlna设备 Download PDF

Info

Publication number
WO2015117306A1
WO2015117306A1 PCT/CN2014/086309 CN2014086309W WO2015117306A1 WO 2015117306 A1 WO2015117306 A1 WO 2015117306A1 CN 2014086309 W CN2014086309 W CN 2014086309W WO 2015117306 A1 WO2015117306 A1 WO 2015117306A1
Authority
WO
WIPO (PCT)
Prior art keywords
home network
dmr
dms
request
http
Prior art date
Application number
PCT/CN2014/086309
Other languages
English (en)
French (fr)
Inventor
梁洁辉
周煜申
李建勇
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015117306A1 publication Critical patent/WO2015117306A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/283Processing of data at an internetworking point of a home automation network
    • H04L12/2832Interconnection of the control functionalities between home networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • H04L12/2812Exchanging configuration information on appliance services in a home automation network describing content present in a home automation network, e.g. audio video content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Definitions

  • the present invention relates to the field of digital home networks, and in particular, to a method for processing a cross-home network, an HTTP gateway, and a DLNA device.
  • DLNA Digital Living Network Allicance
  • DLNA Digital Living Network Allicance
  • UPnP Universal Plug and Play
  • DMS Digital Media Server
  • DMP Digital Media Player, Digital Media Controller
  • DMC Digital Media Controller
  • DMR Digital Media Renderer
  • DMS and DMR need to broadcast their own online information and description information to the network through SSDP (Simple Service Discovery Protocol), so that DMC can play the media content shared by DMS on the DMR or DMP is capable of playing media content shared on the DMS.
  • the communication protocol between them is HTTP (Hyper Text Transfer Protocol), and can be carried by UDP (User Datagram Protocol) or TCP (Transmission Control Protocol) protocol, for example, SSDP uses HTTP over UDP to obtain device description information and service description information, and subsequent device control uses HTTP over TCP.
  • the reverse HTTP connection is a draft released by the IETF in 2009 to solve the problem that the current HTTP protocol cannot handle HTTP requests on the non-server side.
  • the actual application in Apple's Airplay protocol is used by the Airplay client to receive asynchronous events from the Airplay player.
  • the sharing of the home network is usually limited to the same network segment device under a certain local area network.
  • To achieve cross-home network sharing it is usually necessary to upload the media resource file to the network disk server, and it is difficult to directly share the multimedia files under different home networks.
  • the technical problem to be solved by the present invention is to provide a processing method for a cross-home network, an HTTP gateway, and a DLNA device, so as to realize multimedia resource sharing across a home network.
  • the present invention provides a cross-home network processing method, which is applied to an HTTP gateway connected to a digital living network alliance DLNA device of at least two home networks.
  • the DLNA device of the home network includes a digital media controller DMC, a digital media server DMS, and a digital media renderer DMR, and the method includes:
  • the HTTP gateway establishes a reverse HTTP connection with the DMS and the DMR in each home network
  • the device After receiving the acquiring device information request sent by the DMC in one of the home networks, the device returns a response to the DMC, and carries the device description information and the service description information of the DMS and the DMR in the saved multiple home networks.
  • the above method further has the following feature: the home network comprises a first home network and a second home network,
  • the method further includes:
  • the response After receiving the response to the operation request returned by the second home network DLNA device through the reverse HTTP connection, the response is returned to the first home network DLNA device.
  • the method further has the following feature: the home network includes a first home network and a second home network, and the method further includes:
  • the media content After receiving the media content returned by the first home network DMS through the reverse HTTP connection, the media content is sent to the second home network DMR.
  • the above method further has the following features: the method further includes:
  • the response After receiving the response to the play status request returned by the second home network DMR through the reverse HTTP connection, the response is sent to the first home network DMC.
  • the above method further has the following features: the method further includes:
  • the response After receiving the response to the request returned by the second home network DMR through the reverse HTTP connection, the response is sent to the DMC of the first home network.
  • the process of establishing a reverse HTTP connection with the DMS and the DMR in each home network includes:
  • the present invention also provides a hypertext transfer protocol HTTP gateway, including:
  • Establish a module set to: establish a reverse HTTP connection with the DMS and the DMR in each home network;
  • the obtaining module is configured to: respectively send a device information request to the DMS and the DMR in each home network through the reverse HTTP connection, receive a response through a reverse HTTP connection, and obtain a device description of the DMS and the DMR in multiple home networks. Information and service description information and save;
  • the processing module is configured to: after receiving the request for acquiring device information sent by the DMC in one of the home networks, return a response to the DMC, and carry the device description information and the service description information of the DMS and the DMR in the saved multiple home networks. .
  • the foregoing HTTP gateway further has the following feature: the home network includes a first home network and a second home network,
  • the processing module is further configured to: receive an operation request for the second home network DLNA device sent by the first home network DLNA device, where the operation request carries the device identifier of the second home network DLNA device; Saving the device identifier of the second home network DLNA device, sending the operation request to the second home network DLNA device through a reverse HTTP connection; receiving the second home network DLNA device by using a reverse HTTP connection After returning the response to the operation request, the response is returned to the first home network DLNA device.
  • the foregoing HTTP gateway further has the following features: further comprising: a verification module,
  • the establishing module is configured to: after receiving a reverse HTTP connection request of a DMS or a DMR in any home network, triggering the verification module; and receiving the notification of the verification module, and then sending the notification to the DMS or DMR Return to agree to establish a response to the reverse HTTP connection;
  • the verification module is configured to: prompt the DMS or DMR to provide identity verification information, and root
  • the authentication information provided by the DMS or the DMR is verified according to the authentication information set by the user, and if the verification is passed, the establishment module is notified.
  • the present invention further provides a processing method for a cross-home network, which is applied to a digital media server DMS and a digital media renderer DMR in a home network, the method comprising:
  • the above method further has the following features: the method further includes:
  • the present invention also provides a Digital Living Network Alliance DLNA device, where the DLNA device includes a digital media server DMS or a digital media renderer DMR, including:
  • Establishing a module configured to: establish a reverse HTTP connection with the HTTP gateway, and listen to the request of the HTTP gateway in real time through the reverse HTTP connection;
  • the processing module is configured to: receive the device information request sent by the HTTP gateway through the reverse HTTP connection, and send the device description information and the service description information of the device to the HTTP gateway, where the device description information includes the device Identification information.
  • the above DLNA device further has the following features:
  • the processing module is further configured to: send an operation request to the HTTP gateway to a DMS or DMR of another home network, and receive an operation response returned by the HTTP gateway; and receive the HTTP gateway by using a reverse HTTP connection.
  • the sent operation request sends a response to the operation request to the HTTP gateway over a reverse HTTP connection.
  • the embodiments of the present invention provide a method for processing a cross-home network, an HTTP gateway, and a DLNA device, which can implement multimedia resource sharing across a home network.
  • FIG. 1 is a flowchart of a method for processing an HTTP gateway side across a home network according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for processing a DLNA device side across a home network according to an embodiment of the present invention
  • FIG. 3 is a networking diagram of a DLNA device across a home network according to an embodiment of the present invention
  • FIG. 4 is a flow chart of interaction of remote sharing of a DLNA device according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of an HTTP gateway according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a DLNA device according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for processing an HTTP gateway side across a home network according to an embodiment of the present invention.
  • the method in this embodiment is applied to an HTTP gateway connected to at least two home networks, where the home network includes a DMC, a DMS, and a DMR.
  • the method in this embodiment includes:
  • Step 11 Establish a reverse HTTP connection with the DMS and the DMR in each home network.
  • Step 12 Send a device information request to the DMC and the DMR in each home network through the reverse HTTP connection, receive a response through a reverse HTTP connection, and obtain device description information and a service description of the DMS and the DMR in each home network.
  • Information and save
  • Step 13 After receiving the acquiring device information request sent by the DMC in one of the home networks, returning a response to the DMC, carrying the device description information and the service description information of the DMS and the DMR in the saved multiple home networks.
  • the process of establishing a reverse HTTP connection with the DMS and the DMR in each home network in step 11 includes:
  • connections on which the request and response are based are as follows:
  • the HTTP gateway acts as a request initiated by the client to the DLNA device, and the response returned by the DLNA device as the server is transmitted through the established reverse HTTP connection.
  • the DLNA device listens to the gateway's request in real time through the reverse HTTP connection.
  • the DLNA device acts as a client to send a request to the HTTP gateway, and the response returned by the HTTP gateway as a server is transmitted over a forward HTTP connection.
  • the device description information and the service description information of the locally saved DLNA device returned by the HTTP gateway may be device description information and service description information of all saved DLNA devices.
  • the device description information includes a device identifier. A device identifier obtained by the DMC from the HTTP gateway. If the device identifier exists in the device identifier acquired from the current network, it identifies the DLNA device of the current network, and otherwise identifies the remote DLNA device.
  • the device description information and the service description information of the locally saved DLNA device returned by the HTTP gateway may also be the device description information and the service description information of the saved part of the DLNA device.
  • the HTTP gateway queries and saves the device description information and the service description information of the DLAN device the home network to which the DLNA device belongs is also recorded.
  • the other device After receiving the device query request sent by the DMC in a home network, the other device may only The device description information and service description information of the remote DLNA device of the home network are returned to the DMC.
  • the device identifiers obtained by the DMC device from the HTTP gateway are all remote device identifiers.
  • the HTTP gateway receives an operation request for the second home network DLNA device sent by the first home network DLNA device, where the operation request carries the device identifier of the second home network DLNA device;
  • the response After receiving the response to the operation request returned by the second home network DLNA device through the reverse HTTP connection, the response is returned to the first home network DLNA device.
  • the operation request and response are separately encapsulated in an HTTP request and response.
  • FIG. 2 is a flowchart of a method for processing a cross-home network on a DLNA device side according to an embodiment of the present invention.
  • the method in this embodiment is applied to a digital media server DMS and a digital media renderer DMR in a home network, as shown in FIG. 2 .
  • the method of this embodiment includes:
  • Step 21 Establish a reverse HTTP connection with the HTTP gateway, and listen to the request of the HTTP gateway in real time through the reverse HTTP connection.
  • Step 22 Receive the device information request sent by the HTTP gateway through the reverse HTTP connection, and send the device description information and the service description information of the device to the HTTP gateway, where the device description information includes device identification information.
  • the method may further include: sending an operation request to the HTTP gateway to a DMS or DMR of another home network, and receiving an operation response returned by the HTTP gateway; and
  • the HTTP protocol is asymmetric, that is, one end of the communication is required to act as a client to initiate an HTTP request, and the other end is used as a server to respond to an HTTP request.
  • the principle of a reverse HTTP connection is to allow the device to initiate both HTTP and HTTP requests on the same end, both as a server and as a client.
  • various DLNA devices (DMR, DMS) in the home network need to establish a reverse HTTP connection with the HTTP gateway, so that whether the DLNA device is in a Network Address Translation (NAT) network or In the firewall, it can handle external HTTP requests from the HTTP gateway.
  • NAT Network Address Translation
  • DLNA devices have a globally unique device identifier (UUID) that the HTTP gateway can use to distinguish between different remote DLNA devices.
  • UUID globally unique device identifier
  • the DMC controls the remote DLNA device, it needs to carry the device identifier in the packet to access different DLNA devices through the reverse HTTP connection.
  • the HTTP gateway can authenticate and authorize the remote DLNA device.
  • the 401 response allows the user to provide the user name and password for authentication, so that different users can be controlled to access different Remote DLNA device.
  • the embodiment of the present invention introduces an independently addressable HTTP gateway, and obtains state information of DLNA devices in different home networks through a reverse HTTP connection, so that DLNA devices of different home networks can discover and control each other, and finally realize cross-home network.
  • Multimedia resource sharing extends DLNA sharing across multiple home networks.
  • the user shares across the home network, for example, the user has his or her own home network in the home and the workplace, the user is currently in the home network in the workplace, and the user's family is at home; the user finds an interested
  • the media resources are shared with the home network in the home.
  • the user can view the media resources by assigning the media resources to the remote DMR.
  • Users can remotely control their home DLNA devices, such as playing specified media content to their families, while family members do not need control.
  • the user needs to register the login on the HTTP gateway to manage the DLNA device of the user on different home networks; when the user's DLNA device establishes a client connection with the HTTP gateway, the user is authenticated through the HTTP authentication mechanism. .
  • the DLNA devices DMR and DMS located in different home networks respectively establish a reverse HTTP connection with the HTTP gateway, so as to be able to obtain current device state information, so that the request is sent to the remote DLNA device in the subsequent multimedia sharing. .
  • the DLNA device DMC located in a home network queries the HTTP gateway for other remote DLNA devices that are not in the current home network, and identifies whether it is a local home network or a remote device through the device identifier. Home network.
  • the user implements remote multimedia sharing through a local DMC, for example, downloading DMS resources in different home networks, querying DLNA device status in different home networks, and controlling local DMS multimedia resources to play in another home network.
  • the reverse HTTP connection established before the DLNA device on the HTTP gateway is required.
  • the request of the DMC to the remote DLNA device carries the device identification UUID, which can distinguish different reverse HTTP connections and forward the DMC operation request to the specific remote DLNA device.
  • FIG. 3 is a networking diagram of a DLNA device across a home network according to an embodiment of the present invention.
  • the first home network there are TVs as DMPs and DMRs, as mobile terminals for DMC, DMS and DMP.
  • These personal consumer electronic devices are connected by routers and have IP addresses of the same subnet to form a digital home network that can be shared by DLNA.
  • Other home networks have similar networking structures, such as the second home network shown in Figure 3.
  • This process enables the DMC to share the DMS resources located on the same home network to the DMR of the remote home network for playback.
  • the DMC can view the playback progress of the remote DMR through the DMC, and can also stop the media playback of the remote DMR through the DMC. As shown in Figure 4, the following steps are included:
  • Step 201 After the remote DMR device is started, notify the local home network of the device online information; at the same time, establish an TCP connection with the HTTP gateway as an HTTP client, and send an HTTP POST request to establish a reverse HTTP connection;
  • the HTTP header fields UPGRADE and CONNECTION specified in RFC 2616 are included, and the value of the UPGRADE header field is set to PTTH/1.0 and the value of the CONNECTION header field is Upgrade; if the DMR device Located in the NAT intranet or firewall, you also need to empty the HTTP header field HOST (host), because the HOST host is an invalid IP address for the HTTP gateway, the external HTTP gateway cannot directly communicate with the host within the NAT or firewall. ;
  • Step 202 After receiving the reverse HTTP connection request by the DMR as the HTTP server, the HTTP gateway agrees to establish a reverse HTTP connection by using the 101 status code and the UPGRAGE header field; thus, the reverse HTTP connection between the DMR and the HTTP gateway is established. Successful, and the remote DMR can act as an HTTP server to handle HTTP requests from the HTTP gateway;
  • Step 203 The device description and the service description information of the DMR are advertised through a UDP (User Data Protocol) broadcast, and the scope is limited to the current home network, and thus the HTTP gateway is required to pass the previously established reverse HTTP connection.
  • UDP User Data Protocol
  • the HTTP gateway acts as an HTTP client to initiate an HTTP request for acquiring device information to the DMR through a reverse HTTP connection;
  • Step 204 The DMR acts as a reverse HTTP server, and describes the device description and service.
  • the information is sent to the HTTP gateway over a reverse HTTP connection; this way the HTTP gateway can learn about DLNA devices located on different home networks.
  • Step 205 After the DMS device in the first home network starts, it also needs to establish a reverse HTTP request with the HTTP gateway, initiate an HTTP POST request, and prepare to establish a reverse HTTP connection with the HTTP gateway.
  • Step 206 The HTTP gateway responds with the 101 as an HTTP server to agree to establish a reverse HTTP connection.
  • Step 207 The HTTP gateway sends an inquiry request to the DMS device by using the reverse HTTP connection before the HTTP client as the HTTP client to query the DMS device description information and the service description information.
  • Step 208 The DMS device sends its own device description information and service description information to the HTTP gateway through a reverse HTTP connection.
  • Step 209 The user needs to manage and control the DLNA devices under different home networks through the DMC: DMS and DMR. After the DMC is started, in addition to querying the DMS and DMR devices under the local home network, it is necessary to acquire other remote DMS or DMR devices of the HTTP gateway.
  • the DMC acts as an HTTP client to initiate a request message to the HTTP gateway, and obtains a remote DMS or DMR device that establishes a reverse connection on the HTTP gateway;
  • Step 210 The HTTP gateway sends the remote DMS or DMR device information currently establishing a reverse HTTP connection to the DMC as an HTTP response message.
  • Step 211 In addition to querying the remote DMS and the DMR device of the HTTP gateway, the DMC also needs to query the DMS and the DMR device under the current network by using a UDP broadcast message.
  • Step 212 If the DLNA device in the same home network as the DMC exists, the DMC receives the online notification message of the DLNA device, where the message includes the device description information and the service description information of the DLNA device; the DMC can obtain the corresponding information according to the UPnP specification. Device description information and service description information; comparing it with the device identification UUID of the DLNA device acquired from the HTTP gateway, it can be distinguished whether it is a remote DLNA device.
  • Step 213 The DMC obtains the multimedia resource information shared by the DMS through the content directory service of the DMS, and specifies a certain multimedia resource to be played to the remote DMR.
  • the remote DMR and the DMS are not in the same home network, and therefore the HTTP gateway is required to process the Request;
  • DMC Sending an HTTP request message of the SOAP (Simple Object Access Protocol) request to the HTTP gateway as an HTTP client, and allowing the remote DMR to play the DMS media resource in the current home network, where the message includes the device identifier UUID of the remote DMR and Device ID of the local DMS;
  • SOAP Simple Object Access Protocol
  • Step 214 After receiving the HTTP request message, the HTTP gateway searches for the UUID of the device that is currently establishing the reverse HTTP connection. If there is a matching result, the audio and video transmission service to the remote DMR is sent through the reverse HTTP connection, and the URL of the current media resource is sent. (Uniform Resource Locator) SOAP request message; if there is no match, the request fails.
  • UUID Uniform Resource Locator
  • Step 215 The DMR compares the self-playing capability information with the description information of the media resource. If there is a match, the SOAP request success message is returned through a reverse HTTP connection; if there is no match, the request fails.
  • Step 216 The HTTP gateway forwards the SOAP request success message to the DMC.
  • the DMC can initiate a play request to the AVT (Audio Video Transport) of the remote DMR through the HTTP gateway, and when the remote DMR receives the play request message, Then start the following process;
  • AVT Audio Video Transport
  • Step 217 The remote DMR and the DMS are not in the same home network, so the media content of the DMS needs to be obtained through the HTTP gateway, and the remote DMR sends an HTTP request message for obtaining the media content, where the request message includes the device identifier of the remote DMS.
  • Step 218 The HTTP gateway queries the DMS that currently establishes a reverse HTTP connection, and if there is a matching result, sends a media content request by using a reverse HTTP connection established with the DMS.
  • Step 219 The DMS responds to the media content acquisition request by using a reverse HTTP connection, and sends the media content to the HTTP gateway.
  • Step 220 The HTTP gateway forwards the streaming media content from the DMS to the DMR through the reverse connection with the DMR, so that the user located in the DMR can view the media content of the DMS.
  • Step 221 The DMC may query the HTTP gateway for the playback status of the remote DMR, and the HTTP gateway forwards the query play status request to the remote DMR through the reverse HTTP connection, and the remote DMR may actively push the play status message through the reverse HTTP connection, including the current play. Position and playback status, such as being buffered, etc.
  • Step 222 After obtaining the playback status message of the remote DMR, the DMC can let the user know the current status of the remote DMR device.
  • Step 223 When the user no longer shares the media resource of the local DMS, the DMC sends a stop remote DMR play message to the HTTP gateway, where the message includes the device identifier of the remote DMR.
  • Step 224 The HTTP gateway searches for the DLNA device that currently establishes the reverse HTTP connection. If there is a matching result, the reverse HTTP connection is sent to the DMR device to stop playing the SOAP request; if there is no matching result, the request fails.
  • Step 225 The DMR processes the stop of playing the SOAP request, and notifies the SOAP processing result message by using a reverse HTTP connection.
  • Step 226 The HTTP gateway forwards the SOAP message processing result to the DMC.
  • FIG. 5 is a schematic diagram of an HTTP gateway according to an embodiment of the present invention. As shown in FIG. 5, the HTTP gateway in this embodiment includes:
  • An obtaining module configured to send, by using the reverse HTTP connection, a device information request to a DMS and a DMR in each home network, and receive a response through a reverse HTTP connection, and obtain device description information of DMS and DMR in multiple home networks. And service description information and save;
  • the processing module is configured to: after receiving the acquiring device information request sent by the DMC in one of the home networks, return a response to the DMC, and carry the device description information and the service description information of the DMC and the DMR in the saved multiple home networks.
  • the home network includes a first home network and a second home network.
  • the processing module is further configured to receive, by the first home network DLNA device, an operation request for the second home network DLNA device, where the operation request carries the device identifier of the second home network DLNA device; Having the device identifier of the second home network DLNA device, if yes, transmitting the operation request to the second home network DLNA device through a reverse HTTP connection; receiving the second home network DLNA device by reverse After the HTTP connection returns a response to the operation request, the response is returned to the first home network DLNA device.
  • the HTTP gateway of this embodiment may further include: a verification module,
  • the establishing module after receiving the reverse HTTP connection request of the DMS or the DMR in any home network, triggering the verification module; after receiving the notification of the verification module, returning to the DMS or the DMR to agree to establish The response of the reverse HTTP connection;
  • the verification module prompts the DMS or the DMR to provide identity verification information, and verifies the identity verification information provided by the DMS or the DMR according to the identity verification information set by the user, and if the verification passes, notifies the establishment module.
  • FIG. 6 is a schematic diagram of a DLNA device according to an embodiment of the present invention.
  • the DLNA device in this embodiment includes a DMS or a DMR, and includes:
  • Establishing a module configured to establish a reverse HTTP connection with the HTTP gateway, and listen to the request of the HTTP gateway in real time through the reverse HTTP connection;
  • the processing module is configured to receive the device information request sent by the HTTP gateway through the reverse HTTP connection, and send the device description information and the service description information of the device to the HTTP gateway, where the device description information includes the device identifier. information.
  • the processing module is further configured to send an operation request to the HTTP gateway to a DMS or DMR of another home network, and receive an operation response returned by the HTTP gateway; and
  • the connection receives an operation request sent by the HTTP gateway, and sends a response to the operation request to the HTTP gateway through a reverse HTTP connection.
  • the embodiments of the present invention provide a method for processing a cross-home network, and an HTTP gateway and a DLNA device, which can implement multimedia resource sharing across a home network.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Multimedia (AREA)
  • Computing Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)

Abstract

一种跨家庭网络的处理方法及超文本传输协议HTTP网关、数字生活网络联盟DLNA设备,该方法包括:所述HTTP网关与各家庭网络中的数字媒体服务器DMS和数字媒体渲染器DMR分别建立反向HTTP连接;通过所述反向HTTP连接向各家庭网络中的DMS和DMR分别发送获取设备信息请求,通过反向HTTP连接接收响应,获取各个家庭网络中的DMS和DMR的设备描述信息和服务描述信息并保存;接收到其中一家庭网络中的数字媒体控制器DMC发送的获取设备信息请求后,向所述DMC返回响应,携带保存的多个家庭网络中的DMS和DMR的设备描述信息和服务描述信息。通过本发明实施例可以实现跨家庭网络的多媒体资源共享。

Description

一种跨家庭网络的处理方法及HTTP网关、DLNA设备 技术领域
本发明涉及数字家庭网络领域,特别是涉及一种跨家庭网络的处理方法及HTTP网关、DLNA设备。
背景技术
DLNA(Digital Living Network Allicance,数字生活网络联盟)是由索尼、英特尔和微软发起的一个非盈利性组织,旨在解决消费电子设备之间共享数字媒体内容。DLNA使用UPnP(Universal Plug and Play,通用即插即用)协议来进行设备发现、描述和控制,在此基础上定义了各种各样的DLNA设备角色:DMS(Digital Media Server,数字媒体服务器)、DMP(Digital Media Player,数字媒体播放器),DMC(Digital Media Controller,数字媒体控制器)和DMR(Digital Media Renderer,数字媒体渲染器)。
DMS和DMR作为UPnP的基本设备类型,需要通过SSDP(Simple Service Discovery Protocol,简单业务发现协议)向网络广播自己的在线信息和描述信息,以便DMC能够将DMS共享的媒体内容在DMR上进行播放或者DMP能够播放DMS上共享的媒体内容。它们之间的通信协议为HTTP(Hyper Text Transfer Protocol,超文本传输协议),可以采用UDP(User Datagram Protocol,用户数据报协议)或者TCP(Transmission Control Protocol,传输控制协议)协议来进行承载,例如SSDP就是使用HTTP over UDP,而获取设备描述信息和业务描述信息以及之后的设备控制则使用HTTP over TCP。
反向HTTP连接是IETF于2009年发布的一个草案,旨在解决目前的HTTP协议在非服务器端上无法处理HTTP请求的问题。在苹果公司的Airplay协议中得到实际应用,用于Airplay客户端接收Airplay播放器的异步事件。
家庭网络的共享通常仅限于某一局域网下的同网段设备,实现跨家庭网络共享目前通常需要将媒体资源文件上传到网盘服务器,很难直接共享处于不同家庭网络下的多媒体文件。
发明内容
本发明要解决的技术问题是提供一种跨家庭网络的处理方法及HTTP网关、DLNA设备,以实现跨家庭网络的多媒体资源共享。
为了解决上述技术问题,本发明提供了一种跨家庭网络的处理方法,应用于与至少两个家庭网络的数字生活网络联盟DLNA设备连接的HTTP网关,
所述家庭网络的DLNA设备包括数字媒体控制器DMC、数字媒体服务器DMS和数字媒体渲染器DMR,所述方法包括:
所述HTTP网关与各家庭网络中的DMS和DMR分别建立反向HTTP连接;
通过所述反向HTTP连接向各家庭网络中的DMS和DMR分别发送获取设备信息请求,通过反向HTTP连接接收响应,获取各个家庭网络中的DMS和DMR的设备描述信息和服务描述信息并保存;
接收到其中一家庭网络中的DMC发送的获取设备信息请求后,向所述DMC返回响应,携带保存的多个家庭网络中的DMS和DMR的设备描述信息和服务描述信息。
优选地,上述方法还具有下面特点:所述家庭网络包括第一家庭网络和第二家庭网络,
所述方法还包括:
接收到第一家庭网络DLNA设备发送的对第二家庭网络DLNA设备的操作请求,该操作请求中携带所述第二家庭网络DLNA设备的设备标识;
查询本地是否保存有所述第二家庭网络DLNA设备的设备标识,如有,则通过反向HTTP连接向所述第二家庭网络DLNA设备发送所述操作请求;
接收到所述第二家庭网络DLNA设备通过反向HTTP连接返回的针对所述操作请求的响应后,将所述响应返回给所述第一家庭网络DLNA设备。
优选地,上述方法还具有下面特点:所述家庭网络包括第一家庭网络和第二家庭网络,所述方法还包括:
接收到第一家庭网络DMC发送的让第二家庭网络DMR播放第一家庭网络DMS中指定媒体资源的播放请求,所述播放请求携带所述第二家庭网络DMR的设备标识和所述第一家庭网络DMS的设备标识;查询本地是否保存有所述第二家庭网络DMR的设备标识,如有,则通过反向HTTP连接向所述第二家庭网络DMR发送所述播放请求;通过反向HTTP连接接收到所述第二家庭网络DMR的响应后,将该响应发送给所述第一家庭网络DMC;
接收到所述第二家庭网络DMR发送的获取所述第一家庭网络DMS的媒体内容的请求,该请求包括所述第一家庭网络DMS的设备标识;查询本地是否保存有所述第一家庭网络DMS的设备标识,如有,则通过反向HTTP连接向所述第一家庭网络DMS发送获取媒体内容请求;
接收到所述第一家庭网络DMS通过反向HTTP连接返回的媒体内容后,将所述媒体内容发送给所述第二家庭网络DMR。
优选地,上述方法还具有下面特点:所述方法还包括:
接收到所述第一家庭网络DMC发送的查询所述第二家庭网络DMR的播放状态请求,该播放状态请求携带所述第二家庭网络DMR的设备标识;
查询本地是否保存有所述第二家庭网络DMR的设备标识,如有,则通过反向HTTP连接向所述第二家庭网络DMR发送所述播放状态请求;
接收到所述第二家庭网络DMR通过反向HTTP连接返回的针对所述播放状态请求的响应后,将所述响应发送给所述第一家庭网络DMC。
优选地,上述方法还具有下面特点:所述方法还包括:
接收到所述第一家庭网络DMC发送的停止所述第二家庭网络DMR播放的请求,该请求携带所述第二家庭网络DMR的设备标识;
查询本地是否保存有所述第二家庭网络DMR的设备标识,如有,则通过反向HTTP连接向所述第二家庭网络DMR发送所述请求;
接收到所述第二家庭网络DMR通过反向HTTP连接返回的针对所述请求的响应后,将所述响应发送给所述第一家庭网络的DMC。
优选地,上述方法还具有下面特点:所述与各个家庭网络中的DMS和DMR分别建立反向HTTP连接的过程中包括:
接收到任一家庭网络中的DMS或DMR的建立反向HTTP连接请求,
提示所述DMS或DMR提供身份验证信息,根据用户设置的身份验证信息对所述DMS或DMR提供的身份验证信息进行验证,如果验证通过,向所述DMS或DMR返回同意建立反向HTTP连接的响应。
为了解决上述问题,本发明还提供了一种超文本传输协议HTTP网关,包括:
建立模块,设置为:与各个家庭网络中的DMS和DMR分别建立反向HTTP连接;
获取模块,设置为:通过所述反向HTTP连接向各家庭网络中的DMS和DMR分别发送获取设备信息请求,通过反向HTTP连接接收响应,获取多个家庭网络中的DMS和DMR的设备描述信息和服务描述信息并保存;
处理模块,设置为:接收到其中一家庭网络中的DMC发送的获取设备信息请求后,向所述DMC返回响应,携带保存的多个家庭网络中的DMS和DMR的设备描述信息和服务描述信息。
优选地,上述HTTP网关还具有下面特点:所述家庭网络包括第一家庭网络和第二家庭网络,
所述处理模块,还设置为:接收到第一家庭网络DLNA设备发送的对第二家庭网络DLNA设备的操作请求,该操作请求中携带所述第二家庭网络DLNA设备的设备标识;如果查询本地保存有所述第二家庭网络DLNA设备的设备标识,则通过反向HTTP连接向所述第二家庭网络DLNA设备发送所述操作请求;接收到所述第二家庭网络DLNA设备通过反向HTTP连接返回的针对所述操作请求的响应后,将所述响应返回给所述第一家庭网络DLNA设备。
优选地,上述HTTP网关还具有下面特点:还包括:验证模块,
所述建立模块,设置为:接收到任一家庭网络中的DMS或DMR的建立反向HTTP连接请求后,触发所述验证模块;接收到所述验证模块的通知后再向所述DMS或DMR返回同意建立反向HTTP连接的响应;
所述验证模块,设置为:提示所述DMS或DMR提供身份验证信息,根 据用户设置的身份验证信息对所述DMS或DMR提供的身份验证信息进行验证,如果验证通过,则通知所述建立模块。
为了解决上述问题,本发明还提供了一种跨家庭网络的处理方法,应用于家庭网络中的数字媒体服务器DMS和数字媒体渲染器DMR,所述方法包括:
与所述HTTP网关建立起反向HTTP连接,通过所述反向HTTP连接实时监听所述HTTP网关的请求;
接收到所述HTTP网关通过反向HTTP连接发送的获取设备信息请求,将本设备的设备描述信息和服务描述信息发送给所述HTTP网关保存,所述设备描述信息包括设备标识信息。
优选地,上述方法还具有下面特点:所述方法还包括:
向所述HTTP网关发送对另一家庭网络的DMS或DMR的操作请求,并接收所述HTTP网关返回的操作响应;及
通过反向HTTP连接接收所述HTTP网关发送的操作请求,通过反向HTTP连接向所述HTTP网关发送对所述操作请求的响应。
为了解决上述问题,本发明还提供了一种数字生活网络联盟DLNA设备,所述DLNA设备包括数字媒体服务器DMS或数字媒体渲染器DMR,包括:
建立模块,设置为:与所述HTTP网关建立起反向HTTP连接,通过所述反向HTTP连接实时监听所述HTTP网关的请求;
处理模块,设置为:接收到所述HTTP网关通过反向HTTP连接发送的获取设备信息请求,将本设备的设备描述信息和服务描述信息发送给所述HTTP网关保存,所述设备描述信息包括设备标识信息。
优选地,上述DLNA设备还具有下面特点:
所述处理模块,还设置为:向所述HTTP网关发送对另一家庭网络的DMS或DMR的操作请求,并接收所述HTTP网关返回的操作响应;及通过反向HTTP连接接收所述HTTP网关发送的操作请求,通过反向HTTP连接向所述HTTP网关发送对所述操作请求的响应。
综上,本发明实施例提供一种跨家庭网络的处理方法及HTTP网关、DLNA设备,可以实现跨家庭网络的多媒体资源共享。
附图概述
图1为本发明实施例的HTTP网关侧跨家庭网络的处理方法的流程图;
图2为本发明实施例的DLNA设备侧跨家庭网络的处理方法的流程图;
图3为本发明实施例的跨家庭网络DLNA设备的组网图;
图4为本发明实施例的DLNA设备远程共享的交互流程图;
图5为本发明实施例的HTTP网关的示意图;
图6为本发明实施例的DLNA设备的示意图。
本发明的较佳实施方式
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
图1为本发明实施例的HTTP网关侧跨家庭网络的处理方法的流程图,本实施例的方法应用于与至少两个家庭网络连接的HTTP网关,所述家庭网络中包括DMC、DMS和DMR,如图1所示,本实施例的方法包括:
步骤11、与各家庭网络中的DMS和DMR分别建立反向HTTP连接;
步骤12、通过所述反向HTTP连接向各家庭网络中的DMC和DMR分别发送获取设备信息请求,通过反向HTTP连接接收响应,获取各家庭网络中的DMS和DMR的设备描述信息和服务描述信息并保存;
步骤13、接收到其中一家庭网络中的DMC发送的获取设备信息请求后,向所述DMC返回响应,携带保存的多个家庭网络中的DMS和DMR的设备描述信息和服务描述信息。
在步骤11与各家庭网络中的DMS和DMR分别建立反向HTTP连接的过程中包括:
接收到任一家庭网络中的DMS或DMR的建立反向HTTP连接请求,
提示所述DMS或DMR提供身份验证信息,根据用户设置的身份验证信息对所述DMS或DMR提供的身份验证信息进行验证,如果验证通过,向所述DMS或DMR返回同意建立反向HTTP连接的响应。
流程中,请求和响应所基于的连接如下:
HTTP网关作为客户端向DLNA设备发起的请求,及DLNA设备作为服务端返回的响应,是通过建立的所述反向HTTP连接传输的。DLNA设备通过所述反向HTTP连接实时监听网关的请求。
DLNA设备作为客户端向HTTP网关发送的请求,及HTTP网关作为服务端返回的响应,是通过正向HTTP连接传输的。
上述HTTP网关返回的本地保存的DLNA设备的设备描述信息和服务描述信息,可以是保存的所有DLNA设备的设备描述信息和服务描述信息。其中,设备描述信息包括设备标识。DMC从HTTP网关获取的某一设备标识,如该设备标识同时存在于从当前网络获取的设备标识中,则其标识的是当前网络的DLNA设备,否则标识的是远程DLNA设备。
在另一示例中,上述HTTP网关返回的本地保存的DLNA设备的设备描述信息和服务描述信息,也可以是保存的部分DLNA设备的设备描述信息和服务描述信息。在此前HTTP网关查询和保存DLAN设备的设备描述信息和服务描述信息的同时还记录所述DLNA设备所属的家庭网络,在收到某一家庭网络中DMC发送的设备查询请求后,可以只将其他家庭网络的远程DLNA设备的设备描述信息和服务描述信息返回给该DMC。此时,DMC设备从HTTP网关获取的设备标识均为远程设备标识。
在一优先实施例中,HTTP网关接收到第一家庭网络DLNA设备发送的对第二家庭网络DLNA设备的操作请求,该操作请求中携带所述第二家庭网络DLNA设备的设备标识;
查询本地是否保存有所述第二家庭网络DLNA设备的设备标识,如有,则通过反向HTTP连接向所述第二家庭网络DLNA设备发送所述操作请求;
接收到所述第二家庭网络DLNA设备通过反向HTTP连接返回的针对所述操作请求的响应后,将所述响应返回给所述第一家庭网络DLNA设备。
所述操作请求及响应是分别封装在HTTP请求及响应中传输的。
图2为本发明实施例的DLNA设备侧的跨家庭网络的处理方法的流程图,本实施例的方法应用于家庭网络中的数字媒体服务器DMS和数字媒体渲染器DMR,如图2所示,本实施例的方法包括:
步骤21、与所述HTTP网关建立起反向HTTP连接,通过所述反向HTTP连接实时监听所述HTTP网关的请求;
步骤22、接收到所述HTTP网关通过反向HTTP连接发送的获取设备信息请求,将本设备的设备描述信息和服务描述信息发送给所述HTTP网关保存,所述设备描述信息包括设备标识信息。
在一优选实施例中,所述方法还可以包括:向所述HTTP网关发送对另一家庭网络的DMS或DMR的操作请求,并接收所述HTTP网关返回的操作响应;及
通过反向HTTP连接接收所述HTTP网关发送的操作请求,通过反向HTTP连接向所述HTTP网关发送对所述操作请求的响应。
HTTP协议是非对称的,即要求通信的一端作为客户端,发起HTTP请求;而另一端作为服务端,响应HTTP请求。反向HTTP连接的原理就是让设备在同一端上既能发起HTTP请求,也能处理HTTP请求,同时作为服务端和客户端。在本发明实施例中,处于家庭网络中的各种DLNA设备(DMR、DMS)都需要与HTTP网关建立反向HTTP连接,这样不管DLNA设备是否处于NAT(Network Address Translation,网络地址转换)网络或者防火墙之中,都能够处理来自HTTP网关的外部HTTP请求。
DLNA设备都有一个全球唯一的设备标识(UUID),HTTP网关可以通过此字段来区分不同的远程DLNA设备。当DMC控制远程DLNA设备时,需要在报文中携带此设备标识,以便通过反向HTTP连接访问不同的DLNA设备。
HTTP网关可以对远程DLNA设备进行认证授权,当收到远程DLNA设备的第一个反向连接请求消息时,通过401响应让用户提供用户名和密码来进行认证,这样能够控制不同的用户访问不同的远程DLNA设备。
本发明实施例引入一个可独立寻址的HTTP网关,通过反向HTTP连接获取不同家庭网络下的DLNA设备的状态信息,使得不同家庭网络的DLNA设备能够相互发现和控制,最终实现跨家庭网络的多媒体资源共享,将DLNA共享延伸到多个家庭网络上。
通过本发明实施例,用户跨家庭网络进行共享,例如用户在家中和工作场所都有自己的家庭网络,用户目前处于工作场所中的家庭网络,而用户的家人则处于家中;用户找到一个感兴趣的媒体资源要共享给家中的家庭网络,用户只要把媒体资源指定给远程DMR播放,用户的家人就可以看到此媒体资源。用户能够远程控制自己家里的DLNA设备,例如给家人播放指定媒体内容,而家人不需要进行控制。
本发明实施例中,用户需要在HTTP网关上注册登录,以便管理用户在不同家庭网络上的DLNA设备;当用户的DLNA设备与HTTP网关建立客户端连接时,通过HTTP鉴权机制来验证用户身份。
本发明实施例中,位于不同家庭网络的DLNA设备DMR和DMS分别与HTTP网关建立反向HTTP连接,以便能够获取当前设备状态信息,以有在之后的多媒体共享中将请求发送到远程DLNA设备上。
本发明实施例中,位于某一家庭网络的DLNA设备DMC在获取本地的DLNA设备信息后,向HTTP网关查询不在当前家庭网络的其它远程DLNA设备,通过设备标识来识别是本地家庭网络,还是远程家庭网络。
本发明实施例中,用户通过本地DMC来实现远程多媒体共享,例如:下载处于不同家庭网络的DMS资源;查询不同家庭网络下的DLNA设备状态;控制本地DMS的多媒体资源在另外一个家庭网络下播放;上传本地DMS资源到另外一个家庭网络的DMS;控制本地播放器播放另外一个家庭网络的DMS资源等等。需要使用HTTP网关上DLNA设备之前建立的反向HTTP连接,DMC向远程DLNA设备的请求带有设备标识UUID,能够区分不同的反向HTTP连接,将DMC的操作请求转发到特定远程DLNA设备上。
以下结合图示详细说明本发明的实施过程。
图3是本发明实施例的跨家庭网络的DLNA设备组网图。在第一个家庭网络中有作为DMP和DMR的电视,作为DMC、DMS和DMP的手机终端, 兼有四种DLNA设备角色的PC,这些个人消费电子设备通过路由器进行连接,具有相同子网的IP地址,组成一个可以DLNA共享的数字家庭网络。其它家庭网络也有类似的组网结构,如图3所示的第二个家庭网络。
如图4所示,位于第一个家庭网络中的DLNA设备DMC和DMS,位于第二个家庭网络中的DLNA设备DMR,以及可独立寻址的HTTP网关,即两个家庭网络中的DLNA设备可以与HTTP网关直接进行通信,但它们之间无法直接进行通信。
这个流程可以实现DMC把位于同一家庭网络的DMS资源共享到远程家庭网络的DMR上进行播放,用户通过DMC可以查看远程DMR的播放进度,也能通过DMC停止远程DMR的媒体播放。如图4所示,包括以下步骤:
步骤201、远程DMR设备启动后,向其本地家庭网络通告设备在线信息;同时作为HTTP客户端与HTTP网关建立TCP连接,发送HTTP POST(传送)请求,以建立反向HTTP连接;
在此请求中包含RFC 2616中规定的HTTP头部字段UPGRADE(升级)和CONNECTION(连接),同时将UPGRADE头部字段的值置为PTTH/1.0而CONNECTION头部字段的值为Upgrade;如果DMR设备位于NAT内网或者防火墙中,还需要把HTTP的头部字段HOST(主机)置空,因为HOST主机对于HTTP网关是无效的IP地址,外部HTTP网关无法直接跟NAT或者防火墙之内的主机进行通信;
步骤202、HTTP网关作为HTTP服务端收到DMR的建立反向HTTP连接请求后,通过101状态码和UPGRAGE头部字段表示同意建立反向HTTP连接;这样DMR与HTTP网关的反向HTTP连接就建立成功,而远程DMR就可以作为HTTP服务端,处理来自HTTP网关的HTTP请求;
步骤203、DMR的设备描述和服务描述信息是通过UDP(User Data Protocol,用户数据报协议)广播进行通告的,其范围仅限于当前家庭网络中,因而需要HTTP网关通过之前建立的反向HTTP连接来获取DMR设备描述和服务描述信息;HTTP网关作为HTTP客户端通过反向HTTP连接向DMR发起获取设备信息的HTTP请求;
步骤204、DMR作为反向HTTP服务器端,将设备描述信息和服务描述 信息通过反向HTTP连接发送给HTTP网关;这样HTTP网关就可以了解位于不同家庭网络下的DLNA设备了。
步骤205、位于第一家庭网络中的DMS设备启动后,也需要与HTTP网关建立反向HTTP请求,发起HTTP POST请求,准备与HTTP网关建立反向HTTP连接;
步骤206、HTTP网关作为HTTP服务端以101响应表示同意建立反向HTTP连接;
步骤207、HTTP网关作为HTTP客户端通过之前建立反向HTTP连接向DMS设备发送查询请求,以查询DMS设备描述信息和服务描述信息;
步骤208、DMS设备将自己的设备描述信息和服务描述信息通过反向HTTP连接发送到HTTP网关。
步骤209、用户需要通过DMC来管理和控制不同家庭网络下的DLNA设备:DMS和DMR。当DMC启动之后,除了查询本地家庭网络下的DMS和DMR设备,还需要获取HTTP网关的其它远程DMS或者DMR设备。DMC作为HTTP客户端向HTTP网关发起请求消息,获取HTTP网关上建立反向连接的远程DMS或者DMR设备;
步骤210、HTTP网关把当前与其建立反向HTTP连接的远程DMS或者DMR设备信息作为HTTP响应消息发送给DMC;
步骤211、DMC除了查询HTTP网关的远程DMS和DMR设备,还需要通过UDP广播消息查询当前网络下的DMS和DMR设备;
步骤212、如果与DMC位于同一家庭网络的DLNA设备存在,DMC会收到DLNA设备的在线通知消息,在此消息中包含DLNA设备的设备描述信息和服务描述信息;DMC可以按照UPnP规范获取相应的设备描述信息和服务描述信息;将其与从HTTP网关获取的DLNA设备的设备标识UUID进行比较,可以区分是否为远程DLNA设备。
步骤213、DMC通过DMS的内容目录服务获取DMS共享的多媒体资源信息,指定其中的某一多媒体资源到远程DMR进行播放;远程DMR与DMS未处于同一家庭网络,因此需要通过HTTP网关来处理这一请求;DMC 作为HTTP客户端向HTTP网关发送SOAP(Simple Object Access Protocol,简单对象访问协议)请求的HTTP请求消息,让远程DMR播放当前家庭网络中的DMS媒体资源,此消息中包含远程DMR的设备标识UUID以及本地DMS的设备标识;
步骤214、HTTP网关接收到HTTP请求消息后,查找当前建立反向HTTP连接的设备UUID,如果有匹配结果,则通过反向HTTP连接向远程DMR的音视频传输服务,发送设置当前媒体资源的URL(Uniform Resource Locator,统一资源***)的SOAP请求消息;如果没有匹配,则请求失败。
步骤215、DMR比较自己的播放能力信息与媒体资源的描述信息,如果有匹配,则通过反向HTTP连接返回SOAP请求成功消息;如果没有匹配,则请求失败。
步骤216、HTTP网关将此SOAP请求成功消息转发给DMC;这时DMC可以通过HTTP网关向远程DMR的AVT(Audio Video Transport,音视频传输服务)发起播放请求,当远程DMR收到播放请求消息,则开始以下流程;
步骤217、远程DMR与DMS未处于同一家庭网络,因此需要通过HTTP网关来获取DMS的媒体内容,远程DMR发送获取媒体内容的HTTP请求消息,此请求消息中包含远程DMS的设备标识;
步骤218、HTTP网关查询当前建立反向HTTP连接的DMS,如果有匹配结果,则通过与此DMS建立的反向HTTP连接发送获取媒体内容请求;
步骤219、DMS通过反向HTTP连接响应媒体内容获取请求,将媒体内容发送到HTTP网关;
步骤220、HTTP网关将来自DMS的流式媒体内容通过与DMR的反向连接转发到DMR进行播放,这样位于DMR的用户就可以观看到DMS的媒体内容;
步骤221、DMC可以向HTTP网关查询远程DMR的播放状态,HTTP网关通过反向HTTP连接向远程DMR转发查询播放状态请求,远程DMR可以通过反向HTTP连接主动推送自已的播放状态消息,包括当前播放位置和播放状态,例如正在缓冲中等等;
步骤222、DMC得到远程DMR的播放状态消息后,可以让用户了解到远程DMR设备的当前状态;
步骤223、当用户不再共享本地DMS的媒体资源时,DMC向HTTP网关发送停止远程DMR播放消息,此消息包含远程DMR的设备标识;
步骤224、HTTP网关查找当前建立反向HTTP连接的DLNA设备,如果有匹配结果,则通过此反向HTTP连接向DMR设备发送停止播放SOAP请求;如果无匹配结果,则请求失败。
步骤225、DMR处理此停止播放SOAP请求,并通过反向HTTP连接通知SOAP处理结果消息;
步骤226、HTTP网关将SOAP消息处理结果转发给DMC。
图5为本发明实施例的HTTP网关的示意图,如图5所示,本实施例的HTTP网关包括:
建立模块,用于与各个家庭网络中的DMS和DMR分别建立反向HTTP连接;
获取模块,用于通过所述反向HTTP连接向各家庭网络中的DMS和DMR分别发送获取设备信息请求,通过反向HTTP连接接收响应,获取多个家庭网络中的DMS和DMR的设备描述信息和服务描述信息并保存;
处理模块,用于接收到其中一家庭网络中的DMC发送的获取设备信息请求后,向所述DMC返回响应,携带保存的多个家庭网络中的DMC和DMR的设备描述信息和服务描述信息。
在一优选实施例中,所述家庭网络包括第一家庭网络和第二家庭网络,
所述处理模块,还用于接收到第一家庭网络DLNA设备发送的对第二家庭网络DLNA设备的操作请求,该操作请求中携带所述第二家庭网络DLNA设备的设备标识;查询本地是否保存有所述第二家庭网络DLNA设备的设备标识,如有,则通过反向HTTP连接向所述第二家庭网络DLNA设备发送所述操作请求;接收到所述第二家庭网络DLNA设备通过反向HTTP连接返回的针对所述操作请求的响应后,将所述响应返回给所述第一家庭网络DLNA设备。
在一优选实施例中,本实施例的HTTP网关还可以包括,验证模块,
所述建立模块,接收到任一家庭网络中的DMS或DMR的建立反向HTTP连接请求后,触发所述验证模块;接收到所述验证模块的通知后再向所述DMS或DMR返回同意建立反向HTTP连接的响应;
所述验证模块,提示所述DMS或DMR提供身份验证信息,根据用户设置的身份验证信息对所述DMS或DMR提供的身份验证信息进行验证,如果验证通过,则通知所述建立模块。
图6为本发明实施例的DLNA设备的示意图,如图6所示,本实施例的DLNA设备包括DMS或DMR,其中,包括:
建立模块,用于与所述HTTP网关建立起反向HTTP连接,通过所述反向HTTP连接实时监听所述HTTP网关的请求;
处理模块,用于接收到所述HTTP网关通过反向HTTP连接发送的获取设备信息请求,将本设备的设备描述信息和服务描述信息发送给所述HTTP网关保存,所述设备描述信息包括设备标识信息。
在一优选实施例中,所述处理模块,还用于向所述HTTP网关发送对另一家庭网络的DMS或DMR的操作请求,并接收所述HTTP网关返回的操作响应;及通过反向HTTP连接接收所述HTTP网关发送的操作请求,通过反向HTTP连接向所述HTTP网关发送对所述操作请求的响应。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。
以上仅为本发明的优选实施例,当然,本发明还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明 所附的权利要求的保护范围。
工业实用性
本发明实施例提供一种跨家庭网络的处理方法及HTTP网关、DLNA设备,可以实现跨家庭网络的多媒体资源共享。

Claims (13)

  1. 一种跨家庭网络的处理方法,应用于与至少两个家庭网络的数字生活网络联盟DLNA设备连接的超文本传输协议HTTP网关,
    所述家庭网络的DLNA设备包括数字媒体控制器DMC、数字媒体服务器DMS和数字媒体渲染器DMR,所述方法包括:
    所述HTTP网关与各家庭网络中的DMS和DMR分别建立反向HTTP连接;
    通过所述反向HTTP连接向各家庭网络中的DMS和DMR分别发送获取设备信息请求,通过反向HTTP连接接收响应,获取各个家庭网络中的DMS和DMR的设备描述信息和服务描述信息并保存;
    接收到其中一家庭网络中的DMC发送的获取设备信息请求后,向所述DMC返回响应,携带保存的多个家庭网络中的DMS和DMR的设备描述信息和服务描述信息。
  2. 如权利要求1所述的方法,其中,
    所述家庭网络包括第一家庭网络和第二家庭网络,
    所述方法还包括:
    接收到第一家庭网络DLNA设备发送的对第二家庭网络DLNA设备的操作请求,该操作请求中携带所述第二家庭网络DLNA设备的设备标识;
    查询本地是否保存有所述第二家庭网络DLNA设备的设备标识,如有,则通过反向HTTP连接向所述第二家庭网络DLNA设备发送所述操作请求;
    接收到所述第二家庭网络DLNA设备通过反向HTTP连接返回的针对所述操作请求的响应后,将所述响应返回给所述第一家庭网络DLNA设备。
  3. 如权利要求1所述的方法,其中,
    所述家庭网络包括第一家庭网络和第二家庭网络,
    所述方法还包括:
    接收到第一家庭网络DMC发送的让第二家庭网络DMR播放第一家庭网络DMS中指定媒体资源的播放请求,所述播放请求携带所述第二家庭网 络DMR的设备标识和所述第一家庭网络DMS的设备标识;查询本地是否保存有所述第二家庭网络DMR的设备标识,如有,则通过反向HTTP连接向所述第二家庭网络DMR发送所述播放请求;通过反向HTTP连接接收到所述第二家庭网络DMR的响应后,将该响应发送给所述第一家庭网络DMC;
    接收到所述第二家庭网络DMR发送的获取所述第一家庭网络DMS的媒体内容的请求,该请求包括所述第一家庭网络DMS的设备标识;查询本地是否保存有所述第一家庭网络DMS的设备标识,如有,则通过反向HTTP连接向所述第一家庭网络DMS发送获取媒体内容请求;
    接收到所述第一家庭网络DMS通过反向HTTP连接返回的媒体内容后,将所述媒体内容发送给所述第二家庭网络DMR。
  4. 如权利要求3所述的方法,其中,所述方法还包括:
    接收到所述第一家庭网络DMC发送的查询所述第二家庭网络DMR的播放状态请求,该播放状态请求携带所述第二家庭网络DMR的设备标识;
    查询本地是否保存有所述第二家庭网络DMR的设备标识,如有,则通过反向HTTP连接向所述第二家庭网络DMR发送所述播放状态请求;
    接收到所述第二家庭网络DMR通过反向HTTP连接返回的针对所述播放状态请求的响应后,将所述响应发送给所述第一家庭网络DMC。
  5. 如权利要求3或4所述的方法,其中,所述方法还包括:
    接收到所述第一家庭网络DMC发送的停止所述第二家庭网络DMR播放的请求,该请求携带所述第二家庭网络DMR的设备标识;
    查询本地是否保存有所述第二家庭网络DMR的设备标识,如有,则通过反向HTTP连接向所述第二家庭网络DMR发送所述请求;
    接收到所述第二家庭网络DMR通过反向HTTP连接返回的针对所述请求的响应后,将所述响应发送给所述第一家庭网络的DMC。
  6. 如权利要求1所述的方法,其中,所述与各个家庭网络中的DMS和DMR分别建立反向HTTP连接的过程中包括:
    接收到任一家庭网络中的DMS或DMR的建立反向HTTP连接请求,
    提示所述DMS或DMR提供身份验证信息,根据用户设置的身份验证信息对所述DMS或DMR提供的身份验证信息进行验证,如果验证通过,向所述DMS或DMR返回同意建立反向HTTP连接的响应。
  7. 一种超文本传输协议HTTP网关,包括:
    建立模块,设置为:与各个家庭网络中的数字媒体服务器DMS和数字媒体渲染器DMR分别建立反向HTTP连接;
    获取模块,设置为:通过所述反向HTTP连接向各家庭网络中的DMS和DMR分别发送获取设备信息请求,通过反向HTTP连接接收响应,获取多个家庭网络中的DMS和DMR的设备描述信息和服务描述信息并保存;
    处理模块,设置为:接收到其中一家庭网络中的数字媒体控制器DMC发送的获取设备信息请求后,向所述DMC返回响应,携带保存的多个家庭网络中的DMS和DMR的设备描述信息和服务描述信息。
  8. 如权利要求7所述的HTTP网关,其中,所述家庭网络包括第一家庭网络和第二家庭网络,
    所述处理模块,还设置为:接收到第一家庭网络数字生活网络联盟DLNA设备发送的对第二家庭网络DLNA设备的操作请求,该操作请求中携带所述第二家庭网络DLNA设备的设备标识;如果查询本地保存有所述第二家庭网络DLNA设备的设备标识,则通过反向HTTP连接向所述第二家庭网络DLNA设备发送所述操作请求;接收到所述第二家庭网络DLNA设备通过反向HTTP连接返回的针对所述操作请求的响应后,将所述响应返回给所述第一家庭网络DLNA设备。
  9. 如权利要求7或8所述的HTTP网关,还包括:验证模块,
    所述建立模块,设置为:接收到任一家庭网络中的DMS或DMR的建立反向HTTP连接请求后,触发所述验证模块;接收到所述验证模块的通知后再向所述DMS或DMR返回同意建立反向HTTP连接的响应;
    所述验证模块,设置为:提示所述DMS或DMR提供身份验证信息,根据用户设置的身份验证信息对所述DMS或DMR提供的身份验证信息进行验证,如果验证通过,则通知所述建立模块。
  10. 一种跨家庭网络的处理方法,应用于家庭网络中的数字媒体服务器DMS和数字媒体渲染器DMR,所述方法包括:
    与超文本传输协议HTTP网关建立起反向HTTP连接,通过所述反向HTTP连接实时监听所述HTTP网关的请求;
    接收到所述HTTP网关通过反向HTTP连接发送的获取设备信息请求,将本设备的设备描述信息和服务描述信息发送给所述HTTP网关保存,所述设备描述信息包括设备标识信息。
  11. 如权利要求10所述的方法,所述方法还包括:
    向所述HTTP网关发送对另一家庭网络的DMS或DMR的操作请求,并接收所述HTTP网关返回的操作响应;及
    通过反向HTTP连接接收所述HTTP网关发送的操作请求,通过反向HTTP连接向所述HTTP网关发送对所述操作请求的响应。
  12. 一种数字生活网络联盟DLNA设备,所述DLNA设备包括数字媒体服务器DMS或数字媒体渲染器DMR,包括:
    建立模块,设置为:与超文本传输协议HTTP网关建立起反向HTTP连接,通过所述反向HTTP连接实时监听所述HTTP网关的请求;
    处理模块,设置为:接收到所述HTTP网关通过反向HTTP连接发送的获取设备信息请求,将本设备的设备描述信息和服务描述信息发送给所述HTTP网关保存,所述设备描述信息包括设备标识信息。
  13. 如权利要求12所述的DLNA设备,其中,
    所述处理模块,还设置为:向所述HTTP网关发送对另一家庭网络的DMS或DMR的操作请求,并接收所述HTTP网关返回的操作响应;及通过反向HTTP连接接收所述HTTP网关发送的操作请求,通过反向HTTP连接向所述HTTP网关发送对所述操作请求的响应。
PCT/CN2014/086309 2014-07-25 2014-09-11 一种跨家庭网络的处理方法及http网关、dlna设备 WO2015117306A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410360715.8A CN105323125B (zh) 2014-07-25 2014-07-25 一种跨家庭网络的处理方法及http网关、dlna设备
CN201410360715.8 2014-07-25

Publications (1)

Publication Number Publication Date
WO2015117306A1 true WO2015117306A1 (zh) 2015-08-13

Family

ID=53777138

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/086309 WO2015117306A1 (zh) 2014-07-25 2014-09-11 一种跨家庭网络的处理方法及http网关、dlna设备

Country Status (2)

Country Link
CN (1) CN105323125B (zh)
WO (1) WO2015117306A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375453B (zh) * 2016-09-05 2020-03-20 珠海市魅族科技有限公司 基于http连接的双向通讯设备、***和方法
CN111212090A (zh) * 2020-02-20 2020-05-29 上海聚力传媒技术有限公司 终端列表获取方法、装置、计算机设备和存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1523828A (zh) * 2003-02-18 2004-08-25 ���ǵ�����ʽ���� 允许有效地访问家庭网络设备的控制点服务器***和方法
CN101212384A (zh) * 2006-12-31 2008-07-02 华为技术有限公司 实现家庭网络互联的方法、***及设备
EP2031817A1 (en) * 2007-08-30 2009-03-04 Software Ag Systems and/or methods for streaming reverse HTTP gateway and network including the same
CN101383789A (zh) * 2008-10-24 2009-03-11 中兴通讯股份有限公司 一种实现访问并控制家庭网络的家庭网关装置、***和方法
CN102244654A (zh) * 2010-05-12 2011-11-16 日立***解决方案有限公司 内容传输***、网关装置以及程序

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123065B (zh) * 2010-12-29 2013-08-28 东软集团股份有限公司 家庭间dlna设备发现和控制方法及装置
CN103166771A (zh) * 2011-12-08 2013-06-19 中兴通讯股份有限公司 一种管理网关下挂设备的方法及***
CN103248616A (zh) * 2012-02-14 2013-08-14 中兴通讯股份有限公司 Dlna网络中进行身份验证的方法及装置、***
US9137281B2 (en) * 2012-06-22 2015-09-15 Guest Tek Interactive Entertainment Ltd. Dynamically enabling guest device supporting network-based media sharing protocol to share media content over local area computer network of lodging establishment with subset of in-room media devices connected thereto
CN102811223B (zh) * 2012-08-15 2018-10-09 中兴通讯股份有限公司 Dlna设备共享方法及装置
CN103001959B (zh) * 2012-11-29 2015-04-15 东软集团股份有限公司 家庭间设备发现方法和***

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1523828A (zh) * 2003-02-18 2004-08-25 ���ǵ�����ʽ���� 允许有效地访问家庭网络设备的控制点服务器***和方法
CN101212384A (zh) * 2006-12-31 2008-07-02 华为技术有限公司 实现家庭网络互联的方法、***及设备
EP2031817A1 (en) * 2007-08-30 2009-03-04 Software Ag Systems and/or methods for streaming reverse HTTP gateway and network including the same
CN101383789A (zh) * 2008-10-24 2009-03-11 中兴通讯股份有限公司 一种实现访问并控制家庭网络的家庭网关装置、***和方法
CN102244654A (zh) * 2010-05-12 2011-11-16 日立***解决方案有限公司 内容传输***、网关装置以及程序

Also Published As

Publication number Publication date
CN105323125A (zh) 2016-02-10
CN105323125B (zh) 2020-03-31

Similar Documents

Publication Publication Date Title
US9948686B2 (en) Method and apparatus for sharing DLNA device
US8307093B2 (en) Remote access between UPnP devices
JP4829350B2 (ja) ローカルネットワークの両端にわたってマルチメディア通信を遠隔制御する方法及び配置構成
US8037538B2 (en) Access control processing method
US8127028B2 (en) Method and arrangement of a multimedia gateway and communication terminals
EP2201465B1 (en) Apparatus and method for providing accessible home network information in remote access environment
US20120226817A1 (en) Methods for Transferring Media Sessions Between Local Networks Using an External Network Connected ue and Related Devices
TWI574164B (zh) 用於私有通訊架構之私有雲端路由服務器連接機制
US9660873B2 (en) Method and apparatus for providing remote access service
WO2012103721A1 (zh) 终端访问数字家庭设备的方法和设备
KR20090078719A (ko) 원격 접속 서비스를 제공하는 UPnP 장치 및 그 방법
US8302155B2 (en) UPnP apparatus and method for providing remote access service
JP2009230256A (ja) 通信制御装置、通信制御方法および通信制御プログラム
WO2015117306A1 (zh) 一种跨家庭网络的处理方法及http网关、dlna设备
US8031641B2 (en) Method and system for serving multi-media data between hetero UPnP networks
JP2009188622A (ja) アクセス制御システム、アクセス制御方法、アクセス制御装置およびアクセス制御プログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14881803

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14881803

Country of ref document: EP

Kind code of ref document: A1