CN105323125B - Cross-home network processing method, HTTP gateway and DLNA (digital living network alliance) equipment - Google Patents

Cross-home network processing method, HTTP gateway and DLNA (digital living network alliance) equipment Download PDF

Info

Publication number
CN105323125B
CN105323125B CN201410360715.8A CN201410360715A CN105323125B CN 105323125 B CN105323125 B CN 105323125B CN 201410360715 A CN201410360715 A CN 201410360715A CN 105323125 B CN105323125 B CN 105323125B
Authority
CN
China
Prior art keywords
home network
dmr
dms
request
http
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410360715.8A
Other languages
Chinese (zh)
Other versions
CN105323125A (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.)
ZTE Corp
Original Assignee
ZTE 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 ZTE Corp filed Critical ZTE Corp
Priority to CN201410360715.8A priority Critical patent/CN105323125B/en
Priority to PCT/CN2014/086309 priority patent/WO2015117306A1/en
Publication of CN105323125A publication Critical patent/CN105323125A/en
Application granted granted Critical
Publication of CN105323125B publication Critical patent/CN105323125B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

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

The invention provides a cross-home network processing method, an HTTP gateway and DLNA equipment, wherein the method comprises the following steps: the HTTP gateway establishes reverse HTTP connection with DMS and DMR in each home network respectively; respectively sending a device information acquisition request to the DMS and the DMR in each home network through the reverse HTTP connection, receiving a response through the reverse HTTP connection, and acquiring and storing device description information and service description information of the DMS and the DMR in each home network; and after receiving a device information acquisition request sent by the DMC in one of the home networks, returning a response to the DMC, wherein the response carries the stored device description information and service description information of the DMS and the DMR in the plurality of home networks. The invention can realize multimedia resource sharing across home networks.

Description

Cross-home network processing method, HTTP gateway and DLNA (digital living network alliance) equipment
Technical Field
The invention relates to the field of digital home networks, in particular to a cross-home-network processing method, an HTTP gateway and DLNA equipment.
Background
DLNA (Digital Living Network alliance) is a non-profit organization initiated by sony, intel and microsoft and is intended to address the sharing of Digital media content between consumer electronic devices. DLNA uses UPnP (Universal Plug and Play) protocol for device discovery, description and control, on the basis of which various DLNA device roles are defined: DMS (Digital Media Server), DMP (Digital Media Player), DMC (Digital Media Controller), and DMR (Digital Media Renderer).
The DMS and the DMR are basic device types of UPnP, and need to broadcast their online information and description information to a network through an SSDP (Simple Service discovery protocol), so that the DMC can play media content shared by the DMS on the DMR or the DMP can play media content shared by the DMS. The communication Protocol between them is HTTP (Hyper Text Transfer Protocol), UDP (user datagram Protocol) or TCP (Transmission Control Protocol) may be used for carrying, for example, SSDP uses HTTP over UDP, and the device description information and the service description information are obtained and then device Control uses HTTP over TCP.
The reverse HTTP connection is a draft issued by IETF in 2009, and aims to solve the problem that the current HTTP protocol cannot process HTTP requests on a non-server side. The method is practically applied to the Airplay protocol of apple, and is used for receiving asynchronous events of an Airplay player by an Airplay client.
The sharing of the home network is usually limited to the same network segment device under a certain local area network, and the media resource files are generally required to be uploaded to a network disk server to realize the cross-home network sharing at present, so that the multimedia files under different home networks are difficult to be directly shared.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a cross-home network processing method, an HTTP gateway and DLNA equipment so as to realize cross-home network multimedia resource sharing.
In order to solve the above technical problem, the present invention provides a cross-home-network processing method, applied to an HTTP gateway connected to digital living network alliance DLNA devices of at least two home networks,
the DLNA device of the home network comprises a digital media controller DMC, a digital media server DMS and a digital media renderer DMR, the method comprising:
the HTTP gateway establishes reverse HTTP connection with DMS and DMR in each home network respectively;
respectively sending a device information acquisition request to the DMS and the DMR in each home network through the reverse HTTP connection, receiving a response through the reverse HTTP connection, and acquiring and storing device description information and service description information of the DMS and the DMR in each home network;
and after receiving a device information acquisition request sent by the DMC in one of the home networks, returning a response to the DMC, wherein the response carries the stored device description information and service description information of the DMS and the DMR in the plurality of home networks.
Further, the method also has the following characteristics: the home network includes a first home network and a second home network,
the method further comprises the following steps:
receiving an operation request for second home network DLNA equipment sent by first home network DLNA equipment, wherein the operation request carries an equipment identifier of the second home network DLNA equipment;
inquiring whether the equipment identifier of the DLNA equipment of the second home network is stored locally, and if so, sending the operation request to the DLNA equipment of the second home network through reverse HTTP connection;
and after receiving a response to the operation request, returned by the second home network DLNA device through the reverse HTTP connection, returning the response to the first home network DLNA device.
Further, the method also has the following characteristics: the home network includes a first home network and a second home network, and the method further includes:
receiving a playing request sent by a first home network DMC and used for enabling a second home network DMR to play a specified media resource in a first home network DMS, wherein the playing request carries a device identifier of the second home network DMR and a device identifier of the first home network DMS; inquiring whether the equipment identifier of the second home network DMR is locally stored, and if so, sending the play request to the second home network DMR through a reverse HTTP connection; after receiving the response of the second home network DMR through a reverse HTTP connection, sending the response to the first home network DMC;
receiving a request for acquiring the media content of the first home network DMS, which is sent by the second home network DMR, wherein the request comprises a device identifier of the first home network DMS; inquiring whether the device identification of the first home network DMS is stored locally, if so, sending a request for acquiring media content to the first home network DMS through reverse HTTP connection;
and after receiving the media content returned by the first home network DMS through the reverse HTTP connection, sending the media content to the second home network DMR.
Further, the method also has the following characteristics: the method further comprises the following steps:
receiving a play state request which is sent by the first home network DMC and used for inquiring the second home network DMR, wherein the play state request carries the equipment identification of the second home network DMR;
inquiring whether the equipment identifier of the second home network DMR is locally stored, and if so, sending the play state request to the second home network DMR through a reverse HTTP connection;
and after receiving a response to the play state request returned by the second home network DMR through a reverse HTTP connection, sending the response to the first home network DMC.
Further, the method also has the following characteristics: the method further comprises the following steps:
receiving a request which is sent by the first home network DMC and used for stopping the playing of the second home network DMR, wherein the request carries the equipment identification of the second home network DMR;
inquiring whether the equipment identifier of the second home network DMR is locally stored, and if so, sending the request to the second home network DMR through a reverse HTTP connection;
and after receiving a response to the request, which is returned by the second home network DMR through a reverse HTTP connection, sending the response to the DMC of the first home network.
Further, the method also has the following characteristics: the process of respectively establishing reverse HTTP connections with the DMS and the DMR in each home network comprises the following steps:
a request to establish a reverse HTTP connection is received from the DMS or DMR in either home network,
prompting the DMS or the DMR to provide identity authentication information, authenticating the identity authentication information provided by the DMS or the DMR according to the identity authentication information set by the user, and returning a response agreeing to establish a reverse HTTP connection to the DMS or the DMR if the authentication is passed.
In order to solve the above problem, the present invention further provides a hypertext transfer protocol HTTP gateway, including:
the establishing module is used for respectively establishing reverse HTTP connection with the DMS and the DMR in each home network;
the acquisition module is used for respectively sending an equipment information acquisition request to the DMS and the DMR in each home network through the reverse HTTP connection, receiving a response through the reverse HTTP connection, and acquiring and storing equipment description information and service description information of the DMS and the DMR in the home networks;
and the processing module is used for returning a response to the DMC after receiving a device information acquisition request sent by the DMC in one of the home networks, and the response carries the stored device description information and service description information of the DMS and the DMR in the plurality of home networks.
Further, the HTTP gateway has the following features: 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 DLNA device of the second home network, where the operation request is sent by the DLNA device of the first home network and carries a device identifier of the DLNA device of the second home network; inquiring whether the equipment identifier of the DLNA equipment of the second home network is stored locally, and if so, sending the operation request to the DLNA equipment of the second home network through reverse HTTP connection; and after receiving a response to the operation request, returned by the second home network DLNA device through the reverse HTTP connection, returning the response to the first home network DLNA device.
Further, the HTTP gateway has the following features: further comprising: the authentication module is used for authenticating the user,
the establishing module triggers the verifying module after receiving a request for establishing reverse HTTP connection of DMS or DMR in any home network; after receiving the notification of the verification module, returning a response of agreeing to establish a reverse HTTP connection to the DMS or the DMR;
the verification module prompts the DMS or the DMR to provide identity verification information, verifies the identity verification information provided by the DMS or the DMR according to the identity verification information set by the user, and informs the establishment module if the verification is passed.
In order to solve the above problem, the present invention further provides a cross-home network processing method, applied to a digital media server DMS and a digital media renderer DMR in a home network, the method including:
establishing a reverse HTTP connection with the HTTP gateway, and monitoring a request of the HTTP gateway in real time through the reverse HTTP connection;
and receiving a request for acquiring equipment information sent by the HTTP gateway through reverse HTTP connection, and sending equipment description information and service description information of the equipment to the HTTP gateway for storage, wherein the equipment description information comprises equipment identification information.
Further, the method also has the following characteristics: the method further comprises the following steps:
sending an operation request to a DMS or DMR of another home network to the HTTP gateway, and receiving an operation response returned by the HTTP gateway; and
and receiving an operation request sent by the HTTP gateway through a reverse HTTP connection, and sending a response to the operation request to the HTTP gateway through the reverse HTTP connection.
In order to solve the above problem, the present invention further provides a DLNA device of a digital living network alliance, wherein the DLNA device comprises a digital media server DMS or a digital media renderer DMR, and the DLNA device comprises:
the establishing module is used for establishing a reverse HTTP connection with the HTTP gateway and monitoring the request of the HTTP gateway in real time through the reverse HTTP connection;
and the processing module is used for receiving an equipment information acquisition request sent by the HTTP gateway through reverse HTTP connection, and sending equipment description information and service description information of the equipment to the HTTP gateway for storage, wherein the equipment description information comprises equipment identification information.
Further, the DLNA device described above also has the following features:
the processing module is further configured to send an operation request to the HTTP gateway for a DMS or DMR of another home network, and receive an operation response returned by the HTTP gateway; and receiving an operation request sent by the HTTP gateway through a reverse HTTP connection, and sending a response to the operation request to the HTTP gateway through the reverse HTTP connection.
In summary, the present invention provides a processing method across home networks, an HTTP gateway, and a DLNA device, which can implement multimedia resource sharing across home networks.
Drawings
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 DLNA device side cross-home network processing method 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 an interaction flowchart of remote sharing of DLNA devices according to an embodiment of the present invention;
FIG. 5 is a 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.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
Fig. 1 is a flowchart of a method for processing a HTTP gateway side across home networks according to an embodiment of the present invention, where the method of the present embodiment is applied to HTTP gateways connected to at least two home networks, where the home networks include a DMC, a DMS, and a DMR, and as shown in fig. 1, the method of the present embodiment includes:
step 11, establishing reverse HTTP connection with DMS and DMR in each home network respectively;
step 12, respectively sending a request for obtaining device information to the DMC and the DMR in each home network through the reverse HTTP connection, receiving a response through the reverse HTTP connection, obtaining and storing device description information and service description information of the DMS and the DMR in each home network;
and step 13, after receiving the device information acquisition request sent by the DMC in one of the home networks, returning a response to the DMC, wherein the response carries the stored device description information and service description information of the DMS and the DMR in the plurality of home networks.
The process of establishing the reverse HTTP connection with the DMS and DMR in each home network in step 11 includes:
a request to establish a reverse HTTP connection is received from the DMS or DMR in either home network,
prompting the DMS or the DMR to provide identity authentication information, authenticating the identity authentication information provided by the DMS or the DMR according to the identity authentication information set by the user, and returning a response agreeing to establish a reverse HTTP connection to the DMS or the DMR if the authentication is passed.
In the flow, the connections on which the requests and responses are based are as follows:
the HTTP gateway is used as a request initiated by the client to the DLNA equipment, and the DLNA equipment is used as a response returned by the server, and the response is transmitted through the established reverse HTTP connection. And the DLNA equipment monitors the request of the gateway in real time through the reverse HTTP connection.
The DLNA device is used as a client to send a request to the HTTP gateway, and the HTTP gateway is used as a server to return a response, and the request and the response are transmitted through forward HTTP connection.
The locally stored device description information and service description information of the DLNA device returned by the HTTP gateway may be the stored device description information and service description information of all DLNA devices. Wherein the device description information comprises a device identification. And if the certain equipment identification acquired by the DMC from the HTTP gateway exists in the equipment identifications acquired from the current network at the same time, the equipment identifications are DLNA equipment of the current network, and otherwise, the equipment identifications are remote DLNA equipment.
In another example, the locally stored device description information and service description information of the DLNA device returned by the HTTP gateway may also be stored device description information and service description information of a part of DLNA devices. The home network to which the DLNA device belongs is recorded while the HTTP gateway queries and stores the device description information and the service description information of the DLAN device, and after receiving a device query request sent by a DMC in a certain home network, only the device description information and the service description information of remote DLNA devices of other home networks may be returned to the DMC. At this time, the device identifiers acquired by the DMC device from the HTTP gateway are all remote device identifiers.
In a preferred embodiment, an HTTP gateway receives an operation request for a DLNA device of a second home network sent by a DLNA device of a first home network, where the operation request carries a device identifier of the DLNA device of the second home network;
inquiring whether the equipment identifier of the DLNA equipment of the second home network is stored locally, and if so, sending the operation request to the DLNA equipment of the second home network through reverse HTTP connection;
and after receiving a response to the operation request, returned by the second home network DLNA device through the reverse HTTP connection, returning the response to the first home network DLNA device.
The operation request and the response are respectively packaged in the HTTP request and the HTTP response for transmission.
Fig. 2 is a flowchart of a processing method across a home network on a DLNA device side according to an embodiment of the present invention, where the method of the present embodiment is applied to a digital media server DMS and a digital media renderer DMR in the home network, as shown in fig. 2, the method of the present embodiment includes:
step 21, establishing a reverse HTTP connection with the HTTP gateway, and monitoring a request of the HTTP gateway in real time through the reverse HTTP connection;
step 22, receiving the request for obtaining the device information sent by the HTTP gateway through the reverse HTTP connection, and sending the device description information and the service description information of the device to the HTTP gateway for storage, where the device description information includes device identification information.
In a preferred embodiment, the method may further include: sending an operation request to a DMS or DMR of another home network to the HTTP gateway, and receiving an operation response returned by the HTTP gateway; and
and receiving an operation request sent by the HTTP gateway through a reverse HTTP connection, and sending a response to the operation request to the HTTP gateway through the reverse HTTP connection.
The HTTP protocol is asymmetric, namely one end of communication is required to be used as a client to initiate an HTTP request; and the other end, as a server, responds to the HTTP request. The principle of reverse HTTP connection is that a device can both initiate and process HTTP requests on the same end, and simultaneously serve as a server and a client. In the embodiment of the present invention, various DLNA devices (DMR, DMS) in the home Network need to establish a reverse HTTP connection with the HTTP gateway, so that an external HTTP request from the HTTP gateway can be processed regardless of whether the DLNA devices are in a NAT (Network Address Translation) Network or a firewall.
DLNA devices all have a globally unique device identification (UUID), and the HTTP gateway can distinguish between different remote DLNA devices by this field. When the DMC controls the remote DLNA device, the device identifier needs to be carried in the message, so as to access different DLNA devices through a reverse HTTP connection.
The HTTP gateway can authenticate and authorize the remote DLNA equipment, and when a first reverse connection request message of the remote DLNA equipment is received, the user is authenticated by responding to a user name and a password provided by the user 401, so that different users can be controlled to access different remote DLNA equipment.
The embodiment of the invention introduces an independently addressable HTTP gateway, acquires the state information of the DLNA equipment under different home networks through reverse HTTP connection, enables the DLNA equipment of different home networks to discover and control each other, finally realizes multimedia resource sharing across the home networks, and extends DLNA sharing to a plurality of home networks.
Through the embodiment of the invention, the user can share across home networks, for example, the user has own home networks at home and at a workplace, the user is currently in the home network at the workplace, and the family of the user is at home; the user finds out a media resource of interest to be shared with the home network at home, and the user can see the media resource by only assigning the media resource to the remote DMR for playing. The user can remotely control the DLNA equipment in the house, for example, the specified media content is played for the family, and the family does not need to control the DLNA equipment.
In the embodiment of the invention, a user needs to register and log in an HTTP gateway so as to manage DLNA (digital living network alliance) equipment of the user on different home networks; when the DLNA equipment of the user establishes client connection with the HTTP gateway, the identity of the user is verified through an HTTP authentication mechanism.
In the embodiment of the invention, the DLNA devices DMR and DMS positioned in different home networks respectively establish reverse HTTP connection with the HTTP gateway so as to acquire the current device state information and send a request to a remote DLNA device in the following multimedia sharing.
In the embodiment of the invention, after the DLNA equipment DMC positioned in a certain home network acquires the information of local DLNA equipment, other remote DLNA equipment which is not positioned in the current home network is inquired from the HTTP gateway, and the local home network or the remote home network is identified by the equipment identification.
In the embodiment of the invention, a user realizes remote multimedia sharing through a local DMC, for example: downloading DMS resources in different home networks; querying states of DLNA equipment under different home networks; controlling the multimedia resource of the local DMS to play under another home network; uploading the local DMS resource to the DMS of another home network; controls the native player to play the DMS resource of another home network, and so on. The reverse HTTP connection established before the DLNA equipment on the HTTP gateway is used, the request of the DMC to the remote DLNA equipment is provided with the equipment identification UUID, different reverse HTTP connections can be distinguished, and the operation request of the DMC is forwarded to the specific remote DLNA equipment.
The following describes the implementation of the present invention in detail with reference to the drawings.
Fig. 3 is a DLNA device networking diagram across a home network according to an embodiment of the present invention. The first home network is provided with a television used as DMP and DMR, a mobile phone terminal used as DMC, DMS and DMP and a PC with four DLNA device roles, and the personal consumer electronic devices are connected through a router and have IP addresses of the same subnet to form a digital home network which can be shared by DLNA. Other home networks also have similar networking structures, such as the second home network shown in fig. 3.
As shown in fig. 4, the DLNA devices DMC and DMS located in the first home network, the DLNA device DMR located in the second home network, and the HTTP gateway which is independently addressable, i.e., the DLNA devices in the two home networks can directly communicate with the HTTP gateway, but cannot directly communicate therebetween.
The process can realize that the DMC shares DMS resources positioned in the same home network to the DMR of the remote home network for playing, and a user can check the playing progress of the remote DMR through the DMC and also can stop the media playing of the remote DMR through the DMC. As shown in fig. 4, the method comprises the following steps:
step 201, after a remote DMR device is started, notifying a local home network of device online information; meanwhile, as an HTTP client, the HTTP client establishes a TCP connection with an HTTP gateway and sends an HTTP POST (transfer) request to establish a reverse HTTP connection;
the request includes the HTTP header fields upgrad and CONNECTION specified in RFC 2616, while setting the value of the upgrad header field to PTTH/1.0 and the value of the CONNECTION header field to UPGRADE; if the DMR equipment is positioned in an NAT internal network or a firewall, the HOST (HOST) of the HTTP header field needs to be empty, because the HOST HOST is an invalid IP address for the HTTP gateway, the external HTTP gateway cannot directly communicate with the NAT or the HOST in the firewall;
step 202, after the HTTP gateway serving as an HTTP server receives a request for establishing a reverse HTTP connection from a DMR, the HTTP gateway indicates agreement to establish the reverse HTTP connection through a 101 state code and a UPGRAGE header field; thus, the reverse HTTP connection between the DMR and the HTTP gateway is successfully established, and the remote DMR can be used as an HTTP server to process HTTP requests from the HTTP gateway;
step 203, the device description and service description information of the DMR is announced through UDP (User Data Protocol) broadcast, and the scope of the notification is limited to the current home network, so that the HTTP gateway needs to obtain the device description and service description information of the DMR through the previously established reverse HTTP connection; the HTTP gateway serving as an HTTP client initiates an HTTP request for acquiring equipment information to the DMR through reverse HTTP connection;
step 204, the DMR serves as a reverse HTTP server and sends the device description information and the service description information to the HTTP gateway through a reverse HTTP connection; thus, the HTTP gateway can know the DLNA devices in different home networks.
Step 205, after the DMS device in the first home network is started, 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 is used as an HTTP server side to respond with 101 to show that the reverse HTTP connection is established;
step 207, the HTTP gateway, as an HTTP client, sends an inquiry request to the DMS device by establishing the reverse HTTP connection in advance, so as to inquire 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 via the 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. When the DMC is started, it is necessary to acquire other remote DMS or DMR devices of the HTTP gateway, in addition to querying the DMS and DMR devices under the local home network. The DMC is used as an HTTP client to initiate a request message to an HTTP gateway, and a remote DMS or a DMR device which establishes reverse connection on the HTTP gateway is obtained;
step 210, the HTTP gateway sends the information of the remote DMS or the DMR device which establishes the reverse HTTP connection with the HTTP gateway currently as an HTTP response message to the DMC;
step 211, the DMC, besides querying the remote DMS and DMR device of the HTTP gateway, also needs to query the DMS and DMR device in the current network through UDP broadcast message;
step 212, if a DLNA device located in the same home network as the DMC exists, the DMC receives an online notification message of the DLNA device, where the online notification message includes device description information and service description information of the DLNA device; the DMC can obtain corresponding device description information and service description information according to the UPnP specification; and comparing the identifier with the device identifier UUID of the DLNA device acquired from the HTTP gateway, so that whether the DLNA device is a remote DLNA device can be distinguished.
Step 213, the DMC obtains the multimedia resource information shared by the DMS through the content directory service of the DMS, and designates a certain multimedia resource therein to a remote DMR for playing; the remote DMR is not in the same home network as the DMS, so this request needs to be handled through the HTTP gateway; the DMC is used as an HTTP client to send an HTTP request message of a SOAP (Simple object Access Protocol) request to an HTTP gateway, so that a remote DMR plays DMS media resources in the current home network, and the message contains a device identifier UUID of the remote DMR and a device identifier of a local DMS;
step 214, after receiving the HTTP request message, the HTTP gateway searches for a UUID of the device currently establishing the reverse HTTP connection, and if there is a matching result, sends a SOAP request message for setting a URL (Uniform Resource Locator) of the current media Resource to the audio and video transmission service of the remote DMR through the reverse HTTP connection; if there is no match, the request fails.
Step 215, the DMR compares the own playability information with the description information of the media resource, and if there is a match, returns a SOAP request success message 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; at this time, the DMC may initiate a play request to an AVT (Audio Video Transport, Audio Video Transport service) of the remote DMR through the HTTP gateway, and when the remote DMR receives the play request message, the following procedure is started;
step 217, the remote DMR and the DMS are not in the same home network, so that the media content of the DMS needs to be acquired through the HTTP gateway, and the remote DMR sends an HTTP request message for acquiring the media content, where the request message includes the device identifier of the remote DMS;
step 218, the HTTP gateway queries a DMS currently establishing a reverse HTTP connection, and if there is a matching result, sends a request for acquiring media content through the reverse HTTP connection established with the DMS;
step 219, the DMS responds to the media content acquisition request through the 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 for playing through the reverse connection with the DMR, so that the user at the DMR can view the media content of the DMS;
step 221, the DMC may query the HTTP gateway for the play state of the remote DMR, the HTTP gateway forwards the request for querying the play state to the remote DMR through the reverse HTTP connection, and the remote DMR may actively push the play state message of the remote DMR through the reverse HTTP connection, where the play state message includes the current play position and the play state, such as being buffered;
step 222, after the DMC obtains the play status message of the remote DMR, the user can 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 message to the HTTP gateway to stop the remote DMR from playing, where the message includes the device identifier of the remote DMR;
step 224, the HTTP gateway searches for DLNA equipment currently establishing a reverse HTTP connection, and if there is a matching result, sends a request to stop playing SOAP to DMR equipment through the reverse HTTP connection; if there is no match, the request fails.
Step 225, the DMR processes the SOAP playing stopping request and notifies a SOAP processing result message through 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, and as shown in fig. 5, the HTTP gateway according to the embodiment includes:
the establishing module is used for respectively establishing reverse HTTP connection with the DMS and the DMR in each home network;
the acquisition module is used for respectively sending an equipment information acquisition request to the DMS and the DMR in each home network through the reverse HTTP connection, receiving a response through the reverse HTTP connection, and acquiring and storing equipment description information and service description information of the DMS and the DMR in the home networks;
and the processing module is used for returning a response to the DMC after receiving the device information acquisition request sent by the DMC in one of the home networks, and the response carries the stored device description information and the stored service description information of the DMC and the DMR in the plurality of home networks.
In a preferred embodiment, the home network comprises a first home network and a second home network,
the processing module is further configured to receive an operation request for the DLNA device of the second home network, where the operation request is sent by the DLNA device of the first home network and carries a device identifier of the DLNA device of the second home network; inquiring whether the equipment identifier of the DLNA equipment of the second home network is stored locally, and if so, sending the operation request to the DLNA equipment of the second home network through reverse HTTP connection; and after receiving a response to the operation request, returned by the second home network DLNA device through the reverse HTTP connection, returning the response to the first home network DLNA device.
In a preferred embodiment, the HTTP gateway of this embodiment may further include, an authentication module,
the establishing module triggers the verifying module after receiving a request for establishing reverse HTTP connection of DMS or DMR in any home network; after receiving the notification of the verification module, returning a response of agreeing to establish a reverse HTTP connection to the DMS or the DMR;
the verification module prompts the DMS or the DMR to provide identity verification information, verifies the identity verification information provided by the DMS or the DMR according to the identity verification information set by the user, and informs the establishment module if the verification is passed.
Fig. 6 is a schematic diagram of a DLNA device according to an embodiment of the present invention, and as shown in fig. 6, the DLNA device of the present embodiment includes a DMS or DMR, including:
the establishing module is used for establishing a reverse HTTP connection with the HTTP gateway and monitoring the request of the HTTP gateway in real time through the reverse HTTP connection;
and the processing module is used for receiving an equipment information acquisition request sent by the HTTP gateway through reverse HTTP connection, and sending equipment description information and service description information of the equipment to the HTTP gateway for storage, wherein the equipment description information comprises equipment identification information.
In a preferred embodiment, the processing module is further configured to send an operation request to the DMS or DMR of another home network to the HTTP gateway, and receive an operation response returned by the HTTP gateway; and receiving an operation request sent by the HTTP gateway through a reverse HTTP connection, and sending a response to the operation request to the HTTP gateway through the reverse HTTP connection.
It will be understood by those skilled in the art that all or part of the steps of the above methods may be implemented by instructing the relevant hardware through a program, and the program may be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, and the like. Alternatively, all or part of the steps of the above embodiments may be implemented using one or more integrated circuits. Accordingly, each module/unit in the above embodiments may be implemented in the form of hardware, and may also be implemented in the form of a software functional module. The present invention is not limited to any specific form of combination of hardware and software.
The foregoing is only a preferred embodiment of the present invention, and naturally there are many other embodiments of the present invention, and those skilled in the art can make various corresponding changes and modifications according to the present invention without departing from the spirit and the essence of the present invention, and these corresponding changes and modifications should fall within the scope of the appended claims.

Claims (13)

1. A cross-home network processing method is applied to an HTTP gateway connected with Digital Living Network Alliance (DLNA) equipment of at least two home networks,
the DLNA device of the home network comprises a digital media controller DMC, a digital media server DMS and a digital media renderer DMR, the method comprising:
the HTTP gateway establishes reverse HTTP connection with DMS and DMR in each home network respectively;
respectively sending a device information acquisition request to the DMS and the DMR in each home network through the reverse HTTP connection, receiving a response through the reverse HTTP connection, and acquiring and storing device description information and service description information of the DMS and the DMR in each home network;
and after receiving a device information acquisition request sent by the DMC in one of the home networks, returning a response to the DMC, wherein the response carries the stored device description information and service description information of the DMS and the DMR in the plurality of home networks.
2. The method of claim 1, wherein:
the home network includes a first home network and a second home network,
the method further comprises the following steps:
receiving an operation request for second home network DLNA equipment sent by first home network DLNA equipment, wherein the operation request carries an equipment identifier of the second home network DLNA equipment;
inquiring whether the equipment identifier of the DLNA equipment of the second home network is stored locally, and if so, sending the operation request to the DLNA equipment of the second home network through reverse HTTP connection;
and after receiving a response to the operation request, returned by the second home network DLNA device through the reverse HTTP connection, returning the response to the first home network DLNA device.
3. The method of claim 1, wherein:
the home network includes a first home network and a second home network,
the method further comprises the following steps:
receiving a playing request sent by a first home network DMC and used for enabling a second home network DMR to play a specified media resource in a first home network DMS, wherein the playing request carries a device identifier of the second home network DMR and a device identifier of the first home network DMS; inquiring whether the equipment identifier of the second home network DMR is locally stored, and if so, sending the play request to the second home network DMR through a reverse HTTP connection; after receiving the response of the second home network DMR through a reverse HTTP connection, sending the response to the first home network DMC;
receiving a request for acquiring the media content of the first home network DMS, which is sent by the second home network DMR, wherein the request comprises a device identifier of the first home network DMS; inquiring whether the device identification of the first home network DMS is stored locally, if so, sending a request for acquiring media content to the first home network DMS through reverse HTTP connection;
and after receiving the media content returned by the first home network DMS through the reverse HTTP connection, sending the media content to the second home network DMR.
4. The method of claim 3, wherein: the method further comprises the following steps:
receiving a play state request which is sent by the first home network DMC and used for inquiring the second home network DMR, wherein the play state request carries the equipment identification of the second home network DMR;
inquiring whether the equipment identifier of the second home network DMR is locally stored, and if so, sending the play state request to the second home network DMR through a reverse HTTP connection;
and after receiving a response to the play state request returned by the second home network DMR through a reverse HTTP connection, sending the response to the first home network DMC.
5. The method of claim 3 or 4, wherein: the method further comprises the following steps:
receiving a request which is sent by the first home network DMC and used for stopping the playing of the second home network DMR, wherein the request carries the equipment identification of the second home network DMR;
inquiring whether the equipment identifier of the second home network DMR is locally stored, and if so, sending the request to the second home network DMR through a reverse HTTP connection;
and after receiving a response to the request, which is returned by the second home network DMR through a reverse HTTP connection, sending the response to the DMC of the first home network.
6. The method of claim 1, wherein: the process of respectively establishing reverse HTTP connections with the DMS and the DMR in each home network comprises the following steps:
a request to establish a reverse HTTP connection is received from the DMS or DMR in either home network,
prompting the DMS or the DMR to provide identity authentication information, authenticating the identity authentication information provided by the DMS or the DMR according to the identity authentication information set by the user, and returning a response agreeing to establish a reverse HTTP connection to the DMS or the DMR if the authentication is passed.
7. A hypertext transfer protocol, HTTP, gateway, comprising:
the establishing module is used for respectively establishing reverse HTTP connection with the DMS and the DMR in each home network;
the acquisition module is used for respectively sending an equipment information acquisition request to the DMS and the DMR in each home network through the reverse HTTP connection, receiving a response through the reverse HTTP connection, and acquiring and storing equipment description information and service description information of the DMS and the DMR in the home networks;
and the processing module is used for returning a response to the DMC after receiving a device information acquisition request sent by the DMC in one of the home networks, and the response carries the stored device description information and service description information of the DMS and the DMR in the plurality of home networks.
8. The HTTP gateway of claim 7, wherein the home network comprises a first home network and a second home network,
the processing module is further configured to receive an operation request for the DLNA device of the second home network, where the operation request is sent by the DLNA device of the first home network and carries a device identifier of the DLNA device of the second home network; inquiring whether the equipment identifier of the DLNA equipment of the second home network is stored locally, and if so, sending the operation request to the DLNA equipment of the second home network through reverse HTTP connection; and after receiving a response to the operation request, returned by the second home network DLNA device through the reverse HTTP connection, returning the response to the first home network DLNA device.
9. The HTTP gateway of claim 7 or 8, further comprising: the authentication module is used for authenticating the user,
the establishing module triggers the verifying module after receiving a request for establishing reverse HTTP connection of DMS or DMR in any home network; after receiving the notification of the verification module, returning a response of agreeing to establish a reverse HTTP connection to the DMS or the DMR;
the verification module prompts the DMS or the DMR to provide identity verification information, verifies the identity verification information provided by the DMS or the DMR according to the identity verification information set by the user, and informs the establishment module if the verification is passed.
10. A processing method across a home network, applied to a digital media server DMS and a digital media renderer DMR in the home network, the method comprising:
establishing a reverse HTTP connection with the HTTP gateway, and monitoring a request of the HTTP gateway in real time through the reverse HTTP connection;
and receiving a request for acquiring equipment information sent by the HTTP gateway through reverse HTTP connection, and sending equipment description information and service description information of the equipment to the HTTP gateway for storage, wherein the equipment description information comprises equipment identification information.
11. The method of claim 10, wherein: the method further comprises the following steps:
sending an operation request to a DMS or DMR of another home network to the HTTP gateway, and receiving an operation response returned by the HTTP gateway; and
and receiving an operation request sent by the HTTP gateway through a reverse HTTP connection, and sending a response to the operation request to the HTTP gateway through the reverse HTTP connection.
12. A digital living network alliance, DLNA, device comprising a digital media server, DMS, or a digital media renderer, DMR, comprising:
the establishing module is used for establishing a reverse HTTP connection with the HTTP gateway and monitoring the request of the HTTP gateway in real time through the reverse HTTP connection;
and the processing module is used for receiving an equipment information acquisition request sent by the HTTP gateway through reverse HTTP connection, and sending equipment description information and service description information of the equipment to the HTTP gateway for storage, wherein the equipment description information comprises equipment identification information.
13. The DLNA device of claim 12, wherein:
the processing module is further configured to send an operation request to the HTTP gateway for a DMS or DMR of another home network, and receive an operation response returned by the HTTP gateway; and receiving an operation request sent by the HTTP gateway through a reverse HTTP connection, and sending a response to the operation request to the HTTP gateway through the reverse HTTP connection.
CN201410360715.8A 2014-07-25 2014-07-25 Cross-home network processing method, HTTP gateway and DLNA (digital living network alliance) equipment Active CN105323125B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410360715.8A CN105323125B (en) 2014-07-25 2014-07-25 Cross-home network processing method, HTTP gateway and DLNA (digital living network alliance) equipment
PCT/CN2014/086309 WO2015117306A1 (en) 2014-07-25 2014-09-11 Cross-home network processing method, http gateway and dlna device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410360715.8A CN105323125B (en) 2014-07-25 2014-07-25 Cross-home network processing method, HTTP gateway and DLNA (digital living network alliance) equipment

Publications (2)

Publication Number Publication Date
CN105323125A CN105323125A (en) 2016-02-10
CN105323125B true CN105323125B (en) 2020-03-31

Family

ID=53777138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410360715.8A Active CN105323125B (en) 2014-07-25 2014-07-25 Cross-home network processing method, HTTP gateway and DLNA (digital living network alliance) equipment

Country Status (2)

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

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375453B (en) * 2016-09-05 2020-03-20 珠海市魅族科技有限公司 Bidirectional communication equipment, system and method based on HTTP connection
CN111212090A (en) * 2020-02-20 2020-05-29 上海聚力传媒技术有限公司 Terminal list acquisition method and device, computer equipment and storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040074713A (en) * 2003-02-18 2004-08-26 삼성전자주식회사 A control point server system and method thereof enabling efficient access of home network devices
CN101212384B (en) * 2006-12-31 2011-04-20 华为技术有限公司 Method, system, and equipment for implement home network interconnection
US8181238B2 (en) * 2007-08-30 2012-05-15 Software Ag Systems and/or methods for streaming reverse HTTP gateway, and network including the same
CN101383789B (en) * 2008-10-24 2012-09-26 中兴通讯股份有限公司 Household gateway device, system and method implementing access to and controlling household network
JP5517733B2 (en) * 2010-05-12 2014-06-11 株式会社日立ソリューションズ Content distribution system, gateway device, and program
CN102123065B (en) * 2010-12-29 2013-08-28 东软集团股份有限公司 Inter-home digital living network alliance (DLNA) equipment discovering and controlling method and device
CN103166771A (en) * 2011-12-08 2013-06-19 中兴通讯股份有限公司 Method and system for managing gateway and under hanging device
CN103248616A (en) * 2012-02-14 2013-08-14 中兴通讯股份有限公司 Method, device and system for identity verification in DLNA (digital living network alliance) network
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 (en) * 2012-08-15 2018-10-09 中兴通讯股份有限公司 DLNA device sharing method and device
CN103001959B (en) * 2012-11-29 2015-04-15 东软集团股份有限公司 Method and system for discovering devices among households

Also Published As

Publication number Publication date
WO2015117306A1 (en) 2015-08-13
CN105323125A (en) 2016-02-10

Similar Documents

Publication Publication Date Title
US9948686B2 (en) Method and apparatus for sharing DLNA device
EP3073699B1 (en) System and method for controlling mutual access of smart devices
US8307093B2 (en) Remote access between UPnP devices
JP4829350B2 (en) Method and arrangement for remotely controlling multimedia communications across both ends of a local network
US8127028B2 (en) Method and arrangement of a multimedia gateway and communication terminals
US20120226817A1 (en) Methods for Transferring Media Sessions Between Local Networks Using an External Network Connected ue and Related Devices
KR101424718B1 (en) Apparatus and method for providing accessible home network information in remote access environment
US9660873B2 (en) Method and apparatus for providing remote access service
KR101499549B1 (en) UPnP apparatus for providing remote access service and method thereof
TWI574164B (en) Private cloud routing server connection mechanism for use in a private communication architecture
JP2009230256A (en) Communication controller, communication control method and communication control program
US8302155B2 (en) UPnP apparatus and method for providing remote access service
CN105323125B (en) Cross-home network processing method, HTTP gateway and DLNA (digital living network alliance) equipment
JP4886712B2 (en) Access control system, access control method, access control apparatus, and access control program
US8031641B2 (en) Method and system for serving multi-media data between hetero UPnP networks
KR101624645B1 (en) UPnP apparatus for providing remote access service and method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant