CN104038480A - Equipment finding method and system in UPnP system - Google Patents

Equipment finding method and system in UPnP system Download PDF

Info

Publication number
CN104038480A
CN104038480A CN201410214043.XA CN201410214043A CN104038480A CN 104038480 A CN104038480 A CN 104038480A CN 201410214043 A CN201410214043 A CN 201410214043A CN 104038480 A CN104038480 A CN 104038480A
Authority
CN
China
Prior art keywords
equipment
dmc
description document
message
dmr
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.)
Granted
Application number
CN201410214043.XA
Other languages
Chinese (zh)
Other versions
CN104038480B (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201410214043.XA priority Critical patent/CN104038480B/en
Publication of CN104038480A publication Critical patent/CN104038480A/en
Application granted granted Critical
Publication of CN104038480B publication Critical patent/CN104038480B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention provides an equipment finding method and system in a UPnP system. The method includes the following steps that: a digital media controller (DMC) finds first equipment, wherein the first equipment includes a digital media renderer (DMR) or a digital media server (DMS); the DMC establishes a connection to the first equipment; and the first equipment determines that the DMC has found the first equipment according to the connection. With the equipment finding method and system in the UPnP system of the invention adopted, the DMR or the DMS can know that the DMC has found the DMR or the DMS, and therefore, bidirectional finding between the DMC and the first equipment can be realized.

Description

Method for discovering equipment and system in a kind of UPnP system
Technical field
The present invention relates to communication technical field, particularly relate to method for discovering equipment and system in a kind of UPnP system.
Background technology
UPnP (UniversalPlugandPlay, UPnP) agreement is the digital (DigitalLivingNetworkAlliance of alliance of life, DLNA) core protocol, the target of this agreement is to make the various device in home network (data sharing, communications and entertainment) and company's network can seamless link, and simplifies the realization of network of relation.UPnP is a kind of distributed, open network architecture.In any operating system, utilize any programming language can use UPnP equipment.
The framework of standard UPnP comprises the controller (DigitalMediaController of Digital Media, DMC), Digital Media renderer (DigitalMediaRenderer, and digital media server (DigitalMediaServer DMR), DMS), wherein, DMC for find consolidated network DMR and, and the broadcasting of the content of control DMS on DMR, DMR is for playing the media content from DMS, DMS is responsible for the management of media content (video, audio frequency and picture etc.), and the content that can play is provided to DMR by DMC.
In the prior art, DMC finds DMR and DMS, the equipment of discovery is added in local list, thereby realize the management to DMR and DMS.Inventor's discovery, in prior art, only DMC can find DMR and DMS, whether DMR and DMS cannot perception have and have how many DMC to be connected to oneself.
Therefore, need at present the urgent technical problem solving of those skilled in the art to be exactly: how DMR or DMS can know whether that existing DMC has found oneself.
Summary of the invention
Embodiment of the present invention technical problem to be solved is to provide the method for discovering equipment in a kind of UPnP system, has found oneself so that DMR or DMS can know whether existing DMC.
Accordingly, the embodiment of the present invention also provides the system for discovering in a kind of UPnP system, in order to ensure the implementation and application of said method.
In order to address the above problem, the invention discloses the method for discovering equipment in a kind of UPnP system, comprising: the controller DMC of Digital Media finds the first equipment, wherein, the first equipment comprises: the renderer DMR of Digital Media or digital media server DMS; DMC is established to and being connected of the first equipment; The first equipment determines that according to connecting DMC has been found that the first equipment.
Preferably, DMC is established to and being connected of the first equipment, and comprising: DMC is established to long connection of TCP of the first equipment; The first equipment determines that according to connecting DMC has been found that the first equipment, comprising: the first equipment determines that according to long connection of the TCP that is connected to the first equipment DMC has been found that the first equipment.
Preferably, be established to after being connected of the first equipment at DMC, said method also comprises: the first equipment determines that the long quantity connecting of the TCP of first equipment that is connected to is to find the quantity of the DMC of the first equipment.
Preferably, the first equipment determines that according to connecting DMC has been found that the first equipment, comprising: the first equipment receives the first message that DMC sends by connection, and the first message is used for informing that the first equipment DMC has been found that the first equipment; The first equipment determines that according to the first message DMC has been found that the first equipment.
Preferably, the first message is look-up command, and the first equipment receives the first message that DMC sends by connection, comprising: the first equipment receives the look-up command that DMC sends by connecting poll.
Preferably, DMC finds that the first equipment comprises: DMC judges the local description document that whether stores the first equipment, and if so, DMC uses the description document of local storage as the description document of first equipment of discovery; Otherwise DMC obtains the description document of the first equipment from the first equipment; The first equipment is added in the list of devices of DMC.
Preferably, DMC judges the local description document that whether stores the first equipment, comprising: DMC receives the second message that the first equipment sends, the message digest value of the mark that the second message comprises the first equipment and the current description document of the first equipment; DMC judges the local description document that whether stores the first equipment according to the mark of the first equipment, if do not had, DMC obtains the description document of the first equipment from the first equipment; If had, DMC judges whether the message digest value in message digest value and second message of description document of the first equipment of local storage mates, and if so, DMC uses the description document of local storage as the description document of first equipment of discovery; Otherwise DMC obtains the description document of the first equipment from the first equipment.
Preferably, at DMC, after the first equipment obtains the description document of the first equipment, said method also comprises: DMC stores the description document obtained and the message digest value of this description document in this locality.
Preferably, after DMC finds the first equipment, said method also comprises: DMC determines that the first equipment belongs to the equipment of the hope demonstration setting in advance; DMC shows the information of the first equipment.
Preferably, before DMC finds the first equipment, said method also comprises: the type of the first equipment that the pre-configured hope of DMC is found, type comprises: DMR and/or DMS.
In order to address the above problem, the invention discloses the system for discovering in a kind of UPnP system, comprising: the controller DMC of Digital Media and the first equipment, wherein, the first equipment comprises: the renderer DMR of Digital Media or digital media server DMS; DMC is used for finding the first equipment, and is established to and being connected of the first equipment; The first equipment is for determining that according to connecting DMC has been found that the first equipment.
Compared with prior art, the embodiment of the present invention comprises following advantage:
In the prior art, only have DMC can find DMR and DMS, whether DMR or DMS cannot be known has DMC to find oneself.In this application, DMC, after finding DMR or DMS, connects to DMR or DMS, and by this connection, DMR or DMS can know has DMC to find oneself.
Brief description of the drawings
Fig. 1 is the flow chart of steps of the method for discovering equipment embodiment in a kind of UPnP system of the present invention;
Fig. 2 is according to the schematic diagram of a kind of method for discovering equipment of the embodiment of the present invention;
Fig. 3 is according to the schematic diagram of the another kind of method for discovering equipment of the embodiment of the present invention;
Fig. 4 is the structured flowchart of the system for discovering embodiment in a kind of UPnP system of the present invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
One of core idea of the embodiment of the present invention is, DMC finds the first equipment, and wherein, the first equipment comprises: DMR or DMS; DMC is established to and being connected of the first equipment; The first equipment determines that according to connecting DMC has been found that the first equipment.In this application, DMC, after finding DMR or DMS, connects to DMR or DMS, and by this connection, DMR or DMS can know has DMC to find oneself.
With reference to Fig. 1, show the flow chart of steps of the method for discovering equipment embodiment in a kind of UPnP system of the present invention, specifically can comprise the steps:
Step 102, DMC finds the first equipment, wherein, the first equipment comprises: the renderer DMR of Digital Media or digital media server DMS;
In the time of specific implementation, in each process of finding the first equipment, DMC can obtain description document to the first equipment, thereby realizes the discovery to the first equipment.
In a preferred implementation of the embodiment of the present invention, in the process of first equipment of discovery, DMC also can judge the local description document that whether stores the first equipment, and if so, DMC uses the description document of local storage as the description document of first equipment of discovery; Otherwise DMC obtains the description document of the first equipment from the first equipment; No matter be to obtain description document from this locality, or obtain description document from the first equipment, can realize the discovery to the first equipment, then, the first equipment is added in the list of devices of DMC.Preferably, in this locality, storage can be by storing and realize in local buffer memory.In this embodiment, in the time that this locality stores the description document of the first equipment, adopt the description document of local storage, and without obtaining description document to the first equipment again, reduced the required time of Internet Transmission, can find fast the first equipment,, can realize the quick sensing of equipment.
In the time of specific implementation, DMC can judge the local description document that whether stores the first equipment in the following manner: DMC receives the second message that the first equipment sends, the message digest value of the mark that the second message comprises the first equipment and the current description document of the first equipment; DMC judges the local description document that whether stores the first equipment according to the mark of the first equipment, if do not had, DMC obtains the description document of the first equipment from the first equipment; If had, DMC judges whether the message digest value in message digest value and second message of description document of the first equipment of local storage mates, and if so, DMC uses the description document of local storage as the description document of first equipment of discovery; Otherwise DMC obtains the description document of the first equipment from the first equipment.Wherein, eap-message digest (MessageDigest, MD) claim again digital digest (DigitalDigest), an eap-message digest is exactly the digital finger-print of a data block,, data block to a random length is calculated, and unique finger mark of a regular length of generation can be used for the integrality of verification msg.Its algorithm mainly comprises MD series (for example MD2, MD4 and MD5), SHA series (for example SHA-1 and SHA-2) and MAC series.Because the description document of an equipment can change, the message digest value of different description document is different, in the present embodiment, judge that by message digest value the current description document of local description document whether with the first equipment of storing is identical, if, just adopt the description document of local storage, ensured the correctness of the description document using.
In the time of specific implementation, DMC is after the first equipment obtains the description document of the first equipment, can store in this locality the description document obtained and the message digest value of this description document.In the present embodiment, when DMC finds for the first time certain equipment and acquires after device description file, this description document and message digest value thereof are stored.Like this, in the time that DMC finds this equipment for the second time, just do not obtain description document at needs by network request, the 2nd, directly obtain from this locality, thereby accelerated device discovery procedure.
In another preferred embodiment of the embodiment of the present invention, can also in DMC, set in advance white list, this white list comprises the equipment of wishing demonstration, after DMC finds the first equipment, if need to show the equipment that this DMC finds, only show the information of the first equipment in white list, and, only show the information of wishing the first equipment showing, the information of this first equipment comprises title or the mark of the first equipment.This embodiment also can be described as white list and filters, and refers to that the device name that DMC need to be shown puts into white list, like this, the DMR comprising in non-white list, DMS just can not be placed in the list of devices of DMC.White list can set in advance, and can be also that user inputs.Wish that by arranging the white list of equipment that shows, DMC can only show that the first equipment in white list, to user, has reduced the amount that user need to read.
In another preferred embodiment of the embodiment of the present invention, can pre-configured DMC wish the type of the first equipment of finding, the type comprises: DMR and/or DMS, DMC only finds the first equipment of pre-configured type.
It should be noted that, the particular content of step 102 can be used as an independent embodiment, realizes DMC and finds fast DMR or DMS.
Step 104, DMC is established to and being connected of the first equipment;
In the time of specific implementation, DMC can set up between the first equipment for being connected of communicating by letter, and also can set up that TCP is long to be connected.In Transmission Control Protocol, there is dividing of long connection and short connection.Shortly will oneself disconnect after being connected to Packet Generation and completing, long be connected to give out a contract for a project after, can within the regular hour, keep connecting, therefore, TCP is long to be connected is concept clearly to those skilled in the art.
Step 106, the first equipment determines that according to this connection DMC has been found that the first equipment.
In a preferred embodiment of the embodiment of the present invention, if DMC foundation is the connection for communicating by letter, the first equipment receives by this connection the first message that DMC sends, and this first message is used for informing that this DMC of the first equipment has been found that the first equipment; Then, the first equipment can determine that according to the first message DMC has been found that the first equipment.Preferably, the first message is for searching Search order, and the first equipment receives the look-up command that DMC sends by connecting poll.
In another preferred embodiment of the embodiment of the present invention, if that DMC sets up is transmission control protocol (TransmissionControlProtocol, TCP) long connection, the first equipment determines that according to long connection of the TCP that is connected to the first equipment DMC has been found that the first equipment.Preferably, the first equipment determines that the long quantity connecting of TCP of first equipment that is connected to is to find the quantity of the DMC of the first equipment.
In the prior art, only have DMC can find DMR and DMS, whether DMR or DMS cannot be known has DMC to find oneself.In this application, DMC, after finding DMR or DMS, connects to DMR or DMS, and by this connection, DMR or DMS can know has DMC to find oneself, thereby the equipment of having realized is found mutually.
The embodiment of the present invention also provides a kind of method for discovering equipment, and the method is for carrying out fast device discovery, and the method can be found DMR or DMS for DMC separately, also can be combined with above-mentioned mutual discovery scheme.Fig. 2 is according to the schematic diagram of a kind of method for discovering equipment of the embodiment of the present invention, and as shown in Figure 2, the method comprises:
DMR or DMS are at SSDP (SimpleServiceDiscoveryProtocol, SSDP) exist and in (Alive) multicast, add HTML (Hypertext Markup Language) (Hypertexttransfer protocol, HTTP) head, this transmission be the message digest value of the description document of DMR or DMS.That embody message digest value can be " FILEMD5 ".Wherein, this Alive multicast is a kind of multicast of describing in SSDP agreement, is that DMR/DMS is used for to the multicast of the existence of other equipment (as the DMC) notice in local area network (LAN) oneself.
DMC is receiving after the Alive broadcast of DMR or DMS transmission, from HTTP head, take out unique device name (UniqueDeviceName, and message digest value UDN), DMC is (key) using UDN as key, searches whether there be description document and the message digest value thereof that this UDN is corresponding in local cache (cache).In the present embodiment, search description document as key with UDN, UDN is the general unique identifier (UniversallyUniqueIdentifier by DMR or DMS, UUID) generate, therefore, a DMR equipment be can be unique determine, will multiple different DMR or DMS can not be produced and correspond to the situation of same key as the key of buffer memory with UDN.As an alternative solution, also can adopt friendly name (FriendlyName) or other values as key, or buffer memory is not set hits standard.Other replaceable schemes relatively, are used UDN can guarantee the correspondence one by one of buffer memory and DMR or DMS as the scheme of key, ensure that the device description file obtaining from buffer memory and the description document of obtaining from network are identical in terms of content.
If there is the description document taking current UDN as key in buffer memory, and the message digest value of this description document is identical with the message digest value of carrying in HTTP head, can think that the description document of this DMR or DMS has been buffered in this locality, directly use the cache file of DMC local cache as the required cache file of device discovery, and without asking to DMR or DMS by network.
There is no if local the description document that buffer memory UDN is corresponding, or message digest value in the message digest value of the file of buffer memory and HTTP head do not mate, think cache invalidate, now can ask description document to DMR by network.Then, the description document of request and message digest value thereof are cached, during in order to next device discovery, use.
After device discovery completes, DMC adds the equipment of discovery in the list of devices of DMC, and whole device discovery procedure finishes.
For device discovery, prior art requires DMC in the time being found to DMR or DMS, need to obtain the description document of this equipment at every turn, acquisition process is that DMC accesses the Web server requesting service description document on DMR or DMS equipment by http protocol, and the process of this access to netwoks is consuming time longer.In the present embodiment, introduce caching mechanism and eap-message digest technology in device discovery procedure, in the SSDP of DMS and DMR protocol header, added " FILEMD5 " field simultaneously.Wherein caching mechanism has been preserved device description file in this locality, make the DMC needn't be at every turn all by this file of network request, eap-message digest technical guarantee our description document of taking from this locality and from the coupling (being with a file) of the description document of Network Capture, thereby can realize fast device discovery.
The embodiment of the present invention also provides a kind of method for discovering equipment, and the method for realizing the mutual discovery of equipment, that is, after DMC finds DMR or DMS, realizes DMR or DMS and finds DMC.Fig. 3 is according to the schematic diagram of a kind of method for discovering equipment of the embodiment of the present invention, and as shown in Figure 2, the method comprises:
DMC carrys out the equipment such as perception (discovery) DMS or DMR by the mode of active searching or passive receive SSDP multicast.DMC chooses after the DMR or DMS that will control, to IP and long connection of port initiation TCP of its appointment.
The http server (Server) of DMR or DMS is to support long connection, and long connection of in DMR or DMS TCP counter (TCPCounter) module therein, DMC being initiated counts.
If this is counted as 0, represent the equipment connection without any DMC, if count value is n (n>0), indicate that n DMC equipment connection arrived this DMR or DMS equipment.
In the present embodiment, grow and connect to come perception DMC by TCP, because the long connection of TCP can be served as the passage of DMC transmission instruction, therefore, the present embodiment has been realized connection multiplexing, in addition, due to after connection breaks, DMR or DMS can perceive at once, and therefore, the present embodiment has advantages of being connected between timely perception and DMC.
It should be noted that, also can adopt its mode to carry out perception DMC, for example, send Search order by DMC poll and inform that DMR or this DMC of DMS have found DMR or DMS.But, this method need DMC at a certain time interval (for example, one minute) ceaselessly send Search (UDP multicast), this operation frequently can quickening the consumption of equipment electric weight, its time precision will be greater than a polling cycle simultaneously, and accuracy is also lower.
In prior art, only having DMC to find the scheme of DMR and DMS, is unidirectional device discovery.In the present embodiment, increased DMR or the DMS aware scheme to DMC equipment, whether DMS or DMR can be perceived in current network environment has DMC to find oneself.Then, DMS and DMR can carry out subsequent operation, and for example, DMS is at the upper connection state from current DMC to user that show of user interface (UserInterface, UI) of oneself, and prompting user's oneself equipment is by others' access; Or DMS carries out the network optimization according to linking number.
It should be noted that, for embodiment of the method, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the embodiment of the present invention is not subject to the restriction of described sequence of movement, because according to the embodiment of the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and related action might not be that the embodiment of the present invention is necessary.
With reference to Fig. 4, show the structured flowchart of the system for discovering embodiment in a kind of UPnP system of the present invention, comprising: DMC402 and the first equipment 404, wherein, the first equipment 404 comprises: DMR or DMS; DMC402 is used for finding the first equipment 404, and is established to and being connected of the first equipment 404; The first equipment 404 is for determining that according to connecting DMC402 has been found that the first equipment 404.
In a preferred embodiment of the embodiment of the present invention, DMC402 is for being established to long connection of TCP of the first equipment 404; The first equipment 404 determines that according to long connection of the TCP that is connected to the first equipment 404 DMC402 has been found that the first equipment 404.
In a preferred embodiment of the embodiment of the present invention, be established to after being connected of the first equipment 404 at DMC402, the first equipment 404 is to find the quantity of the DMC402 of the first equipment 404 for the long quantity connecting of TCP of determining first equipment 404 that is connected to.
In a preferred embodiment of the embodiment of the present invention, the first message that the first equipment 404 sends by connection for receiving DMC402, the first message is used for informing that the first equipment 404DMC402 has been found that the first equipment 404; The first equipment 404 is also for determining that according to the first message DMC402 has been found that the first equipment 404.
In a preferred embodiment of the embodiment of the present invention, the first message is look-up command, the look-up command that the first equipment 404 sends by connecting poll for receiving DMC402.
In a preferred embodiment of the embodiment of the present invention, DMC402 is for judging the local description document that whether stores the first equipment 404, and if so, DMC402 uses the description document of local storage as the description document of first equipment 404 of discovery; Otherwise DMC402 obtains the description document of the first equipment 404 from the first equipment 404; The first equipment 404 is added in the list of devices of DMC402.
In a preferred embodiment of the embodiment of the present invention, DMC402 is for receiving the second message that the first equipment 404 sends, the message digest value of the mark that the second message comprises the first equipment 404 and the first equipment 404 current description document; DMC402 judges the local description document that whether stores the first equipment 404 according to the mark of the first equipment 404, if do not had, DMC402 obtains the description document of the first equipment 404 from the first equipment 404; If had, DMC402 judges whether the message digest value in message digest value and second message of description document of the first equipment 404 of local storage mates, if so, DMC402 uses the description document of local storage as the description document of first equipment 404 of discovery; Otherwise DMC402 obtains the description document of the first equipment 404 from the first equipment 404.
In a preferred embodiment of the embodiment of the present invention, at DMC402, after the first equipment 404 obtains the description document of the first equipment 404, DMC402 is for storing the description document obtained and the message digest value of this description document in this locality.
In a preferred embodiment of the embodiment of the present invention, after DMC402 finds the first equipment 404, DMC402 belongs to the equipment of the hope demonstration setting in advance for determining the first equipment 404; Show the information of the first equipment 404.
In a preferred embodiment of the embodiment of the present invention, before DMC402 finds the first equipment 404, the type of the first equipment 404 that DMC402 finds for pre-configured hope, the type comprises: DMR and/or DMS.
For system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment, between each embodiment identical similar part mutually referring to.
Those skilled in the art should understand, the embodiment of the embodiment of the present invention can be provided as method, device or computer program.Therefore, the embodiment of the present invention can adopt complete hardware implementation example, completely implement software example or the form in conjunction with the embodiment of software and hardware aspect.And the embodiment of the present invention can adopt the form at one or more upper computer programs of implementing of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) that wherein include computer usable program code.
The embodiment of the present invention is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present invention, terminal equipment (system) and computer program.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminal equipment to produce a machine, the instruction that makes to carry out by the processor of computer or other programmable data processing terminal equipment produces the device for realizing the function of specifying at flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing terminal equipment with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of specifying in flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded on computer or other programmable data processing terminal equipment, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable terminal equipment, thereby the instruction of carrying out is provided for realizing the step of the function of specifying in flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame on computer or other programmable terminal equipment.
Although described the preferred embodiment of the embodiment of the present invention, once those skilled in the art obtain the basic creative concept of cicada, can make other change and amendment to these embodiment.So claims are intended to be interpreted as comprising preferred embodiment and fall into all changes and the amendment of embodiment of the present invention scope.
Finally, also it should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the terminal equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or terminal equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the terminal equipment that comprises described key element and also have other identical element.
Above to method for discovering equipment and system in a kind of UPnP system provided by the present invention, be described in detail, applied specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.

Claims (11)

1. the method for discovering equipment in UPnP UPnP system, is characterized in that, comprising:
The controller DMC of Digital Media finds the first equipment, and wherein, described the first equipment comprises: the renderer DMR of Digital Media or digital media server DMS;
Described DMC is established to and being connected of described the first equipment;
Described the first equipment determines that according to described connection described DMC has been found that described the first equipment.
2. method according to claim 1, is characterized in that,
Described DMC is established to and being connected of described the first equipment, and comprising: described DMC is established to long connection of TCP of described the first equipment;
Described the first equipment determines that according to described connection described DMC has been found that described the first equipment, comprising:
Described the first equipment determines that according to long connection of the TCP that is connected to described the first equipment described DMC has been found that described the first equipment.
3. method according to claim 2, is characterized in that, is established to after being connected of described the first equipment at described DMC, and described method also comprises:
Described the first equipment determines that the quantity of the long connection of TCP that is connected to described the first equipment is to find the quantity of the DMC of described the first equipment.
4. method according to claim 1, is characterized in that, described the first equipment determines that according to described connection described DMC has been found that described the first equipment, comprising:
Described the first equipment receives the first message that described DMC sends by described connection, and described the first message is used for informing described in described the first equipment that DMC has been found that described the first equipment;
Described the first equipment determines that according to described the first message described DMC has been found that described the first equipment.
5. method according to claim 4, is characterized in that, described the first message is look-up command, and described the first equipment receives the first message that described DMC sends by described connection, comprising:
Described the first equipment receives the look-up command that described DMC sends by described connection poll.
6. method according to claim 1, is characterized in that, DMC finds that the first equipment comprises:
Described DMC judges the local description document that whether stores described the first equipment, and if so, described DMC uses the description document of local storage as the description document of finding described the first equipment; Otherwise described DMC obtains the description document of described the first equipment from described the first equipment;
Described the first equipment is added in the list of devices of described DMC.
7. method according to claim 6, is characterized in that, described DMC judges the local description document that whether stores described the first equipment, comprising:
Described DMC receives the second message that described the first equipment sends, the message digest value of the mark that described the second message comprises described the first equipment and the current description document of described the first equipment;
Described DMC judges the local description document that whether stores described the first equipment according to the mark of described the first equipment, if do not had, described DMC obtains the description document of described the first equipment from described the first equipment; If had, described DMC judges whether the message digest value in message digest value and described second message of description document of the first equipment of local storage mates, if so, described DMC uses the description document of local storage as the description document of finding described the first equipment; Otherwise described DMC obtains the description document of described the first equipment from described the first equipment.
8. method according to claim 6, is characterized in that, at described DMC, after described the first equipment obtains the description document of described the first equipment, described method also comprises:
Described DMC is in the description document of obtaining described in the storage of this locality and the message digest value of this description document.
9. method according to claim 1, is characterized in that, after DMC finds the first equipment, described method also comprises:
Described DMC determines that described the first equipment belongs to the equipment of the hope demonstration setting in advance;
Described DMC shows the information of described the first equipment.
10. method according to claim 1, is characterized in that, before DMC finds the first equipment, described method also comprises:
The type of described the first equipment that the pre-configured hope of described DMC is found, described type comprises: DMR and/or DMS.
System for discovering in 11. 1 kinds of UPnP UPnP systems, is characterized in that, comprising: the controller DMC of Digital Media and the first equipment, and wherein, described the first equipment comprises: the renderer DMR of Digital Media or digital media server DMS;
Described DMC is used for finding the first equipment, and is established to and being connected of described the first equipment;
Described the first equipment is for determining that according to described connection described DMC has been found that described the first equipment.
CN201410214043.XA 2014-05-20 2014-05-20 Method for discovering equipment and system in a kind of UPnP systems Active CN104038480B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410214043.XA CN104038480B (en) 2014-05-20 2014-05-20 Method for discovering equipment and system in a kind of UPnP systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410214043.XA CN104038480B (en) 2014-05-20 2014-05-20 Method for discovering equipment and system in a kind of UPnP systems

Publications (2)

Publication Number Publication Date
CN104038480A true CN104038480A (en) 2014-09-10
CN104038480B CN104038480B (en) 2017-11-10

Family

ID=51469069

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410214043.XA Active CN104038480B (en) 2014-05-20 2014-05-20 Method for discovering equipment and system in a kind of UPnP systems

Country Status (1)

Country Link
CN (1) CN104038480B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495571A (en) * 2018-11-22 2019-03-19 北京远特科技股份有限公司 File management method and file management system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101218805A (en) * 2005-07-13 2008-07-09 汤姆森许可贸易公司 Method for detection of the activity of a device in a network of distributed stations, as well as a network station for carrying out the method
US20110082922A1 (en) * 2009-10-06 2011-04-07 Korea Institute Of Science And Technology UPnP CONTROL POINT AND UPnP DEVICE BASED ON THE UPnP NETWORK AND CONNECTING METHOD USING THE SAME
CN102724334A (en) * 2012-06-30 2012-10-10 华为技术有限公司 Notification and acquisition method, device and system for address information change in digital living network alliance (DLNA)

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101218805A (en) * 2005-07-13 2008-07-09 汤姆森许可贸易公司 Method for detection of the activity of a device in a network of distributed stations, as well as a network station for carrying out the method
US20110082922A1 (en) * 2009-10-06 2011-04-07 Korea Institute Of Science And Technology UPnP CONTROL POINT AND UPnP DEVICE BASED ON THE UPnP NETWORK AND CONNECTING METHOD USING THE SAME
CN102724334A (en) * 2012-06-30 2012-10-10 华为技术有限公司 Notification and acquisition method, device and system for address information change in digital living network alliance (DLNA)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495571A (en) * 2018-11-22 2019-03-19 北京远特科技股份有限公司 File management method and file management system
CN109495571B (en) * 2018-11-22 2022-03-22 北京远特科技股份有限公司 File management method and file management system

Also Published As

Publication number Publication date
CN104038480B (en) 2017-11-10

Similar Documents

Publication Publication Date Title
EP2840741B1 (en) Method and apparatus for using service of home network device based on remote access
EP2424172B1 (en) Method and apparatus for establishing communication
US9773001B2 (en) Method, apparatus, and system for processing media resource playlist in local area network
US9621945B2 (en) Method and system for continuously playing media resource in device
CN105323628B (en) Cross-screen playing method and system based on DLNA (digital Living network alliance), browser end device and playing device
EP3216223A1 (en) Collaborative distributed/unstructured service management framework for wireless-display platform
US20190089648A1 (en) Resource subscription method, resource subscription apparatus, and resource subscription system
CN104283873B (en) Realization method and system based on digital media server under many network card equipments
US11909840B2 (en) Resource subscription method, device, and storage medium
KR101705279B1 (en) Server and method for providing device management service and device to be provided the service
CN111200622B (en) Resource transmission method and device and storage medium
JP5214929B2 (en) Method and apparatus for managing device services in home network
CN105991377B (en) The method for finding and communicating between universal plug and play UPnP device
JPWO2014207899A1 (en) Communication apparatus and communication method
KR20120138546A (en) Apparatus and method for discovery based on priority in distributed network and method for determining discovery backoff time
CN112311633B (en) Distribution network control method, distribution network control device, household appliance and storage medium
CN104243469A (en) Playing control method, device and system
CN104038480A (en) Equipment finding method and system in UPnP system
KR101329668B1 (en) Contents sharing system and method using push server
CN104038328A (en) Multi-screen interaction message transmission method, device and system
CN104519025A (en) Method, system and mobile terminal equipment for playing remote media files
US20150113099A1 (en) Method and device for making available a content, stored on a server in energy standby mode
US20150195322A1 (en) Media Resource Playback Method and System
US20240048990A1 (en) Bluetooth connection method and system, intelligent terminal, and computer storage medium
JP2012019328A (en) Communication program, communication method, and electrical device

Legal Events

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