[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN102665134B - Method for realizing DLNA media sharing by using set-top box - Google Patents

Method for realizing DLNA media sharing by using set-top box Download PDF

Info

Publication number
CN102665134B
CN102665134B CN201210097146.3A CN201210097146A CN102665134B CN 102665134 B CN102665134 B CN 102665134B CN 201210097146 A CN201210097146 A CN 201210097146A CN 102665134 B CN102665134 B CN 102665134B
Authority
CN
China
Prior art keywords
equipment
media
dms
dmr
dmc
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
CN201210097146.3A
Other languages
Chinese (zh)
Other versions
CN102665134A (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201210097146.3A priority Critical patent/CN102665134B/en
Publication of CN102665134A publication Critical patent/CN102665134A/en
Application granted granted Critical
Publication of CN102665134B publication Critical patent/CN102665134B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention relates to a method for realizing DLNA media sharing by using a set-top box. An UPnP protocol stack which is realized based on an ISO/IEC29341 standard is selected as a component in a scheme. A media drive interface is taken as a component in the scheme. Based on the UPnP protocol stack, cooperated with an operating system socket API and a media drive interface in the set-top box, four types of equipment applications used under an IPTV set-top box application environment in a DLNA technical framework are realized: DMS equipment, DMP equipment, DMC equipment, and DMR equipment. According to the method of the invention, adding a media sharing function of the DLNA technical framework on an IPTV set-top box is realized, thus an IPTV set-top box can play a more important role in a home network environment and become central equipment of home media control gradually, people in a home environment can enjoy and share various entertainment media more effectively, and a way is paved for the development and expansion of other value-added services.

Description

A kind of Set Top Box realizes the method that DLNA media are shared
Technical field
The present invention relates to DLNA(Digital Living Network Alliance) realization of Technical Architecture is a kind of method that Set Top Box realizes DLNA media and shares specifically.The STB terminal (STB terminal equipment) of described Set Top Box espespecially in home network, namely STB terminal equipment (IPTV set top box) realizes DLNA(Digital Living Network Alliance in home network) function of Technical Architecture.
Background technology
IPTV, i.e. IPTV, be that one utilizes broadband cable net, integrate the multiple technologies such as the Internet, multimedia, communication; The technology of the multiple interactive services comprising Digital Television is provided to domestic consumer.The mode of network machine top box+general television set makes user that two kinds of modes can be had at home to enjoy IPTV service.It can adapt to the trend of current network develop rapidly well, fully effectively utilizes Internet resources.IPTV had both been different from traditional analog cable TV, was also different from classical Digital Television.Because, traditional analog cable TV and classical Digital Television all have frequency division system, regularly, the feature such as One-to-All Broadcast; Although the Digital Television of classics has many technological innovations relative to simulated television; But the just change of signal form; And do not touch the circulation way of media content.IPTV can provide the more broadcast mode such as program request, time shift to user, also supports the multi abilities such as picture browsing, audio and video playing simultaneously.It is also at present one of broad band telecommunication service of promoting mainly of telecommunications.
DLNA, DLNA, be one by many companies of the leading consumer electronics industry, computer industry, mobile device industry form across industrial organization.Target shares indoor and the outdoor wired and wireless network that forms such as consumer electronics (CE), PC (PC) and mobile device that can be interconnected, promotes sharing of digital multimedia content and service.The DLNA interconnected guilding principle being devoted to release based on open industry standard realizes the digital convergence across industry.DLNA digital home can provide 4 to be worth greatly for consumer:
1) stay at home Anywhere easily share, store, access digital music.
2) easily manage, browse, print and share digital photos.
3) easily the entertainment content liked is carried with to enjoy out of doors.
4) to the content of multi-user access can record and reset.
The mutual guilding principle of DLNA networked devices defines 12 classes (Class) equipment of point 3 species (Category).Each class can confirm entity as of DLNA, so DLNA product must realize the function of one or more equipment class.Home network scope is made up of 5 equipment classes, carrys out the systemic-function in shared home network with identical media formats and network connectivity requirements.Comprise following 5 kinds of equipment classes:
1) DMS(Digital Media Server): digital media server, provides media to obtain, records, stores and output function.
2) DMP(Digital Media Player): digital media player, search, obtain the content sent by DMS or M-DMS, provide and play and play up function.
3) DMC(Digital Media Controler): digital media controller, search the content that DMS provides, and match the rendering function of MDR, set up the connection of DMS to DMR.
4) DMR(Digital Media Render): Digital Media rendering apparatus, by after other Equipments Setting, play the content of DMS.The difference of DMR and DMP is that DMR needs to control to obtain by DMC the content of DMS transmission.
5) DMPr(Digital Media Printer): Digital Media printer, provides print service, and photo printing is the priority application of DLNA, but the content of other types also can be printed by DMPr.
The framework of DLNA:
1) network and connectivity.Equipment support 802.3,802.11, Bluetooth Connectivity and IPv4 etc. form interconnecting of physical link.
2) device discovery and control.Framework based on UPnP device realizes finding and controlling.
3) media management.The UPnP AV equipment defined based on UPnP AV framework and the control point application associated, realize equipment and the identification of applying the media content in home network, management and distribution.
4) media formats.DLNA media formats model has carried out specific definition for 3 class medium types (picture, Voice & Video), and that wherein must meet is JPEG, LPCM (dual track), MPEG2 respectively.
5) media delivery.DLNA device must be supported using HTTP as basic transmission means transmitting multimedia contents.Extra, RTP is as optional media transmission modes.But HTTP is necessary as mandatory requirement.
UPnP(Universal Plug and Play), UPnP is a set of procotol proposed by UPnP Forum.The target of this agreement is the various equipment seamless link mutually enable in home network (data sharing, communications and entertainment) and corporate networks, and simplifies the realization of network of relation.UPnP is realized this goal by the UPnP device control protocol defining and issue based on opening, Internet communication fidonetFido standard.The whole process of agreement is made up of 5 steps, is respectively discovery, description, control, event notice, existence.
SSDP(Simple Service Discovery Protocol), SSDP is a kind of application layer protocol, is one of core protocol forming (UPnP) technology.SSDP provides the mechanism of discovering device inside localized network.Control point (namely accepting the client of serving) by using SSDP, can provide the equipment of special services inside the localized network at oneself place according to the needs inquiry of oneself.Equipment (namely providing the server end of service) also by using SSDP, can state its existence to the control point inside the localized network at oneself place.
SOAP(Simple Object Access Protocol), Simple Object Access Protocol is a kind of standardized communication criterion, is mainly used in Web service (web service).The appearance of SOAP is to simplify web page server (Web Server) when extracting data from XML data storehouse, without the need to formatted pages of taking time, and can allow between different application through HTTP communications protocol, intercourse data each other in xml format, make itself and programming language, platform and hardware independent.This standard is proposed in 1998 years jointly by IBM, Microsoft, UserLand and DevelopMentor, and obtain IBM, lotus flower (Lotus), the support of the companies such as Compaq (Compaq), submitted to World Wide Web Consortium (World Wide Web Consortium in 2000; W3C), current SOAP 1.1 editions is the common standard of industry, belongs to XML agreement (technology of first generation tool main representative is XML-RPC and WDDX) of the second generation.With a simple example, SOAP use procedure is described, a SOAP message can be sent to the Web website that has Web Service function, such as, a database containing room rate information, indicate in the parameter of message that this is a query messages, this website will return the information of an XML form, wherein contain Query Result (price, position, feature, or other information).Because a kind of standardized analyzable structure of data is transmitted, thus can directly utilize by third party's website.
Summary of the invention
For the defect existed in prior art, a kind of Set Top Box is the object of the present invention is to provide to realize the shared method of DLNA media, the technical problem solved is the media sharing functionality making IPTV set top box have DLNA Technical Architecture to require, provides the ability supporting in IPTV set top box and in other home networks can automatically find between the equipment of DLNA Technical Architecture and media are shared.
For reaching above object, the technical scheme that the present invention takes is:
Set Top Box realizes the method that DLNA media are shared, and it is characterized in that, comprises the following steps:
Step 1, the assembly that configuration machine top box comprises, described Set Top Box is IPTV set top box: select the UPnP protocol stack based on ISO/IEC 29341 standard implementation, and described protocol stack selects to increase income version or business version, is included in scheme as assembly;
Be included in scheme using media-driven interface as assembly again, the interface that described media-driven interface and IPTV set top box play media is same set of, provides supporting by IPTV hardware chip scheme;
Step 2, on basis based on the UPnP protocol stack described in step 1, four kind equipments that can use under IPTV set top box applied environment in the operating system socket API in Set Top Box and media-driven Interface realization DLNA Technical Architecture are coordinated to apply: DMS equipment, DMP equipment, DMC equipment, DMR equipment.
On the basis of technique scheme, described DMS equipment is applied by DMS and is realized, and it is made up of directory content administration module and media play transmission control module,
Described DMC equipment is applied by DMC and is realized, and it is Controlling vertex, and its main body plays and plays up control module and DMS content search index module,
Described DMR equipment is applied by DMR and is realized, and its core is media hype module, and realizes the mutual of media hype module and media-driven interface, and output procedure is played up in the final decoding being realized media by media-driven interface interchange software and hardware decoder,
Described DMP equipment is applied by DMC and DMR applies these two incorporating aspects and formed.
On the basis of technique scheme, four described kind equipment application relate to three groups of workflows:
Flow process 1) DMS application workflow,
Flow process 2) DMR application plays up the flow process of display media content,
Flow process 3) applied by DMC, control DMR plays up the flow process playing the media content that DMS stores.
On the basis of technique scheme, described DMS application workflow, comprises the following steps:
S00, DMS start, and read the basic configuration information of application: the network equipment name that media content storing directory, DMS application uses, and then start DMS application;
S01, DMS UPnP declares, calls UPnP protocol stack, according to UPnP protocol requirement, starts declaration with the network equipment transmitting apparatus of setting in configuration;
S02, contents directory scan, and in DMS application, directory content administration module starts, according to the media content storing directory of setting in configuration, and scanning directory content, thus build directory content list, the operation of timing multiple scanning simultaneously, in order to upgrade directory content list;
S03, reception request, when receiving the request of DMC device request directory content, be transmitted to S04; When receiving the request of DMC device request play content, be transmitted to S05; When not receiving request, wait for;
S04, the list of feedback directory content, current up-to-date directory content list is obtained from directory content administration module, and it is sent to DMC by feedback response, then the request of S03 products for further is turned to, if contents list cannot be obtained in process or without the service, action etc. that provide contents list, turn to S06;
S05, the transmission of execution media play control, media data is sent to DMR by operating system Socket API HTTP or RTP mode, start media play transmission control module simultaneously, complete the control in transmission, go wrong if cannot perform in media delivery or transmitting procedure, turn to S06;
S06, abnormality processing, the DMC equipment in mutual sends errored response event, is discharged into the software resource that stage position of makeing mistakes takies simultaneously.
On the basis of technique scheme, the flow process of display media content is played up in described DMR application, comprises the following steps:
S10, DMR start, and call media-driven interface initialization Set Top Box display translation hardware, then start DMR application;
S11, DMR UPnP declares, calls UPnP protocol stack, and according to UPnP protocol requirement, transmitting apparatus starts declaration;
S12, reception request, enter S13, otherwise wait for after receiving DMC equipment to need the request of play content;
S13, foundation DMC request, receive DMS media data, according to the parameter obtained from request, from the media data that operating system socket API specifies DMS to send with the reception of HTTP or RTP form, if cannot process the request of DMC, turns to S15;
S14, media-driven interface is set, completes and play up output, resolve media data head, obtain media play parameter and then media-driven interface is set, finally data are pressed into media-driven interface interchange hardware to carry out playing up output, make mistakes if play up display, then turn to S15;
S15, abnormality processing, the DMC equipment in mutual sends errored response event, is discharged into the software and hardware resources that stage position of makeing mistakes takies simultaneously.
On the basis of technique scheme, describedly to be applied by DMC, control DMR plays up the flow process of the media content playing the upper storage of DMS, comprises the following steps:
S20, DMC start;
S21, DMC UPnP searches for, and calls UPnP protocol stack, according to UPnP protocol requirement, searches for online DMS and DMR equipment;
S22, output have found the friendly name of the equipment of DMS or unique device name, according to the Search Results in S21, export the friendly name of the DMS equipment found, if non-create name, export its unique device name; If there are many records, export with tabular form;
S23, reception user select operation, and wait-receiving mode user selects the DMS equipment needing access;
S24, to user select DMS send request, DMS contents list is exported according to response, wait for user in selecting content, according to UPnP protocol requirement, build UPnP control message, request DMS equipment feeds back its contents list, waiting receive response after, call DMS content search index module resolution response content, then export to user, user selects the content that will play then to turn to S23 to wait for; If occur abnormal in processing response or what directly receive is exactly the errored response that DMS, DMR equipment is sent, turn to S27;
S25, user to select on DMS after content, export the DMR equipment close friend or unique device name that can be used for exporting, receive user select need play DMS equipment on content after, according to the Search Results in S21, export the friendly name of the DMR equipment found or unique device name, user selects output equipment again then to turn to S23 to wait for; If the DMR equipment now endlessly found, turns to S27;
S26, to DMS send media play request, media hype request is sent to DMR, after receiving the DMR equipment of user's selection, call and play and play up control module, the content that the DMS equipment selected according to user in S24 and upper needs thereof are play, the DMR equipment that in S25, user selects, builds UPnP control message respectively, send media play request to DMS equipment, send media hype request to DMR; If receive the exception response of DMS, DMR equipment, then turn to S27;
S27, abnormality processing, DMS, DMR equipment in mutual sends errored response event, is discharged into the software resource that stage position of makeing mistakes takies simultaneously.
On the basis of technique scheme, the DMC equipment received in flow process 1 in DMC device request is the DMC application in IPTV set top box, or supports other DMC equipment of standard DLNA Technical Architecture;
When IPTV set top box uses DMP equipment, DMC, DMR equipment is exactly DMC, DMR application in IPTV set top box.
On the basis of technique scheme, the DMC equipment received in flow process 2 in DMC device request is the DMC application in IPTV set top box, or supports other DMC equipment of standard DLNA Technical Architecture;
When IPTV set top box uses DMP equipment, DMC, DMR equipment is exactly DMC, DMR application in IPTV set top box.
On the basis of technique scheme, in flow process 3, DMC, DMR are DMS, DMR application in IPTV set top box, or support other DMS, DMR equipment of standard DLNA Technical Architecture;
When IPTV set top box uses DMP equipment, DMC, DMR equipment is exactly DMC, DMR application in IPTV set top box.
Set Top Box of the present invention realizes the method that DLNA media are shared, achieve the media sharing functionality increasing DLNA Technical Architecture in IPTV set top box, can make IPTV set top box in home network environment, take on more importantly role, progressively become the central apparatus that home media controls; Can make that people are more effective in home environment to share and shared various entertainment medium, for the exploitation of other value-added services and expansion are paved the way.
Accompanying drawing explanation
The present invention has following accompanying drawing:
Fig. 1 is technical scheme structural representation in the present invention;
Fig. 2 is DMS application workflow diagram in the present invention;
Fig. 3 is that in the present invention, display media content flow chart is played up in DMR application;
Fig. 4 is applied by DMC in the present invention, and control DMR plays up the flow chart playing the media content that DMS stores.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail.
The present invention gives based on IPTV(Internet Protocol Television) on network television-set top-set-box basis, merge the scheme realizing DLNA Technical Architecture core media sharing functionality, achieve the media sharing functionality increasing DLNA Technical Architecture in IPTV set top box, can make IPTV set top box in home network environment, take on more importantly role, progressively become the central apparatus that home media controls; Can make that people are more effective in home environment to share and shared various entertainment medium, for the exploitation of other value-added services and expansion are paved the way.
Technical scheme structure of the present invention as shown in Figure 1.Set Top Box of the present invention realizes the method that DLNA media are shared, and comprises the following steps:
Step 1, the assembly that configuration machine top box comprises, described Set Top Box is IPTV set top box: select the UPnP protocol stack based on ISO/IEC 29341 standard implementation, and described protocol stack selects to increase income version or business version, is included in scheme as assembly; Based on the UPnP protocol stack based on ISO/IEC 29341 standard implementation, based on IPTV existing wireless and wired network physical equipment connectivity capabilities, the problem that the equipment required in solution DLNA Technical Architecture and equipment room find mutually;
Be included in scheme using media-driven interface as assembly again, the interface that described media-driven interface and IPTV set top box play media is same set of, provides supporting by IPTV hardware chip scheme; Media-driven interface provides support for the requirement in media formats in DLNA framework in this programme;
Step 2, on basis based on the UPnP protocol stack described in step 1, four kind equipments that can use under IPTV set top box applied environment in the operating system socket API in Set Top Box and media-driven Interface realization DLNA Technical Architecture are coordinated to apply: DMS equipment, DMP equipment, DMC equipment, DMR equipment.
On the basis of technique scheme, as shown in Figure 1, described DMS equipment is applied by DMS and is realized, and it is made up of directory content administration module and media play transmission control module,
Described DMC equipment is applied by DMC and is realized, and it is Controlling vertex, and its main body plays and plays up control module and DMS content search index module,
Described DMR equipment is applied by DMR and is realized, and its core is media hype module, and realizes the mutual of media hype module and media-driven interface, and output procedure is played up in the final decoding being realized media by media-driven interface interchange software and hardware decoder,
Described DMP equipment is applied by DMC and DMR applies these two incorporating aspects and formed, and does not do separate modular and realize.
On the basis of technique scheme, four described kind equipment application relate to three groups of workflows:
Flow process 1) DMS application workflow,
Flow process 2) DMR application plays up the flow process of display media content,
Flow process 3) applied by DMC, control DMR plays up the flow process playing the media content that DMS stores.
On the basis of technique scheme, as shown in Figure 2, described DMS application workflow, comprises the following steps:
S00, DMS start, and read the basic configuration information of application: the network equipment name that media content storing directory, DMS application uses, and then start DMS application;
S01, DMS UPnP declares, calls UPnP protocol stack, according to UPnP protocol requirement, starts declaration with the network equipment transmitting apparatus of setting in configuration;
S02, contents directory scan, and in DMS application, directory content administration module starts, according to the media content storing directory of setting in configuration, and scanning directory content, thus build directory content list, the operation of timing multiple scanning simultaneously, in order to upgrade directory content list;
S03, reception request, when receiving the request of DMC device request directory content, be transmitted to S04; When receiving the request of DMC device request play content, be transmitted to S05; When not receiving request, wait for;
S04, the list of feedback directory content, current up-to-date directory content list is obtained from directory content administration module, and it is sent to DMC by feedback response, then the request of S03 products for further is turned to, if contents list cannot be obtained in process or without the service, action etc. that provide contents list, turn to S06;
S05, the transmission of execution media play control, media data is sent to DMR by operating system Socket API HTTP or RTP mode, start media play transmission control module simultaneously, complete the control in transmission, go wrong if cannot perform in media delivery or transmitting procedure, turn to S06;
S06, abnormality processing, the DMC equipment in mutual sends errored response event, is discharged into the software resource that stage position of makeing mistakes takies simultaneously.
On the basis of technique scheme, as shown in Figure 3, the flow process of display media content is played up in described DMR application, comprises the following steps:
S10, DMR start, and call media-driven interface initialization Set Top Box display translation hardware, then start DMR application;
S11, DMR UPnP declares, calls UPnP protocol stack, and according to UPnP protocol requirement, transmitting apparatus starts declaration;
S12, reception request, enter S13, otherwise wait for after receiving DMC equipment to need the request of play content;
S13, foundation DMC request, receive DMS media data, according to the parameter obtained from request, from the media data that operating system socket API specifies DMS to send with the reception of HTTP or RTP form, if cannot process the request of DMC, turns to S15;
S14, media-driven interface is set, completes and play up output, resolve media data head, obtain media play parameter and then media-driven interface is set, finally data are pressed into media-driven interface interchange hardware to carry out playing up output, make mistakes if play up display, then turn to S15;
S15, abnormality processing, the DMC equipment in mutual sends errored response event, is discharged into the software and hardware resources that stage position of makeing mistakes takies simultaneously.
On the basis of technique scheme, as shown in Figure 4, describedly to be applied by DMC, control DMR plays up the flow process of the media content playing the upper storage of DMS, comprises the following steps:
S20, DMC start;
S21, DMC UPnP searches for, and calls UPnP protocol stack, according to UPnP protocol requirement, searches for online DMS and DMR equipment;
S22, output have found the friendly name of the equipment of DMS or unique device name, according to the Search Results in S21, export the friendly name of the DMS equipment found, if non-create name, export its unique device name; If there are many records, export with tabular form;
S23, reception user select operation, and wait-receiving mode user selects the DMS equipment needing access;
S24, to user select DMS send request, DMS contents list is exported according to response, wait for user in selecting content, according to UPnP protocol requirement, build UPnP control message, request DMS equipment feeds back its contents list, waiting receive response after, call DMS content search index module resolution response content, then export to user, user selects the content that will play then to turn to S23 to wait for; If occur abnormal in processing response or what directly receive is exactly the errored response that DMS, DMR equipment is sent, turn to S27;
S25, user to select on DMS after content, export the DMR equipment close friend or unique device name that can be used for exporting, receive user select need play DMS equipment on content after, according to the Search Results in S21, export the friendly name of the DMR equipment found or unique device name, user selects output equipment again then to turn to S23 to wait for; If the DMR equipment now endlessly found, turns to S27;
S26, to DMS send media play request, media hype request is sent to DMR, after receiving the DMR equipment of user's selection, call and play and play up control module, the content that the DMS equipment selected according to user in S24 and upper needs thereof are play, the DMR equipment that in S25, user selects, builds UPnP control message respectively, send media play request to DMS equipment, send media hype request to DMR; If receive the exception response of DMS, DMR equipment, then turn to S27;
S27, abnormality processing, DMS, DMR equipment in mutual sends errored response event, is discharged into the software resource that stage position of makeing mistakes takies simultaneously.
On the basis of technique scheme, the DMC equipment received in flow process 1 in DMC device request is the DMC application in IPTV set top box, or supports other DMC equipment of standard DLNA Technical Architecture;
When IPTV set top box uses DMP equipment, DMC, DMR equipment is exactly DMC, DMR application in IPTV set top box.
On the basis of technique scheme, the DMC equipment received in flow process 2 in DMC device request is the DMC application in IPTV set top box, or supports other DMC equipment of standard DLNA Technical Architecture;
When IPTV set top box uses DMP equipment, DMC, DMR equipment is exactly DMC, DMR application in IPTV set top box.
On the basis of technique scheme, in flow process 3, DMC, DMR are DMS, DMR application in IPTV set top box, or support other DMS, DMR equipment of standard DLNA Technical Architecture;
When IPTV set top box uses DMP equipment, DMC, DMR equipment is exactly DMC, DMR application in IPTV set top box.
Specific embodiment: below with the DMC application in IPTV set top box, DMR application, DMS application, through start-up course, then having DMC control DMR to play up the situation playing media content on DMS is example, and the course of work of the technical program is described.
First be start-up course.This process is applied by DMC, DMR applies, DMS application call UPnP protocol stack completes, and relates to step S00, S01 in Fig. 2 of accompanying drawing, and enters S02 waiting process; Relate to step S10 in Fig. 3, S11, and enter S12 waiting process; Relate to step S20 in Fig. 4, S21, S22, and enter S23 waiting process.
Process description:
1, the IPTV set top box with DMC application, DMR application, DMS application is added to network, and DMC application simultaneously, DMR application, DMS application are activated.The configuration information in configuration file can be read while starting: the network equipment name that media content storing directory, DLNA device use, also can call media-driven interface initialization Set Top Box display translation hardware.
2, DMC application start can send search M-SEARCH message by UPnP protocol stack, and wherein Man:ssdp:discover, attempts the specified type equipment in search network.Search the DMR equipment in DLNA standard and DMS equipment, message field needs to comprise ST field and searches device type in order to mark.
ST:urn:schemas-upnp-org:device:MediaRenderer:1
urn:schemas-upnp-org:device:MediaServer:1
When 3, DMR application, DMS application initial start-up access network, can send declaration Notify message by UPnP protocol stack, wherein NTS:ssdp:alive, announcement apparatus can be used.When the M-SEARCH message receiving DMC and send, 200 OK can be responded.The message body of two message is ssdp form, facility information wherein with being necessary: device type (deviceType), unique device name (UDN), DLNA device mark (dlna:X_DLNADOC xmlns:dlna=" urn:schemas-dlna-org:device-1-0 "), the service list (serviceList) provided.In addition the friendly name (friendlyName) of equipment, sequence number (serialNumber), the type (serviceType) of every service, the ID(serviceId of every service), the selectable items specified in the DLNA standards such as the function collection address (SCPDURL) of every service is then added as required voluntarily.
Example: DMR applies corresponding message body:
<?xml?version="1.0"?>
<root?xmlns="urn:schemas-upnp-org:device-1-0">
<device>
<deviceType>urn:schemas-upnp-org:device:MediaRenderer:1</deviceType>
<friendlyName>Fiberhome?DMR</friendlyName>
<UDN>uuid:00000000-abcd-1010-8000-543219c74ad7</UDN>
<dlna:X_DLNADOC?xmlns:dlna="urn:schemas-dlna-org:device-1-0">
DMR-1.50
</dlna:X_DLNADOC>
<serviceList>
<service>
……
</service>
<service>
<serviceType>
urn:schemas-upnp-org:service:ConnectionManager:1
</serviceType>
<serviceId>
urn:upnp-org:serviceId:ConnectionManager
</serviceId>
<SCPDURL>/ConnectionManagerSCPD.xml</SCPDURL>
<controlURL>/upnp/control/ConnectionManager</controlURL>
<eventSubURL>/upnp/event/ConnectionManager</eventSubURL>
</service>
……
</serviceList>
</device>
</root>
Example: DMS applies corresponding message body:
<?xml?version="1.0"?>
<root?xmlns="urn:schemas-upnp-org:device-1-0">
<device>
<dlna:X_DLNADOC?xmlns:dlna="urn:schemas-dlna-org:device-1-0">
DMS-1.50
</dlna:X_DLNADOC>
<dlna:X_DLNACAP?xmlns:dlna="urn:schemas-dlna-org:device-1-0">
av-upload,image-upload,audio-upload
</dlna:X_DLNACAP>
<deviceType>
urn:schemas-upnp-org:device:MediaServer:1
</deviceType>
<UDN>uuid:7654321f-6e65-1234-8074-0015eb12000b</UDN>
<friendlyName>Fiberhome?DLNA?Media?Server</friendlyName>
<serviceList>
<service>
<serviceType>
urn:schemas-upnp-org:service:ContentDirectory:1
</serviceType>
<serviceId>
urn:upnp-org:serviceId:ContentDirectory
</serviceId>
<SCPDURL>ContentDirectory.xml</SCPDURL>
<eventSubURL>ContentDirectory/Event</eventSubURL>
<controlURL>ContentDirectory/Control</controlURL></service>
<service>
……
</service>
……
</serviceList>
</device>
</root>
4, in DMS application, according to the media content storing directory of setting in configuration, directory content administration module scanning directory content.After having scanned, build directory content list.Start a timing, repeated priming scan operation after timing time-out, in order to upgrade directory content list simultaneously.
5, after DMC is applied in and receives DMR application, the announcement message of DMS application or 200 OK responses of search message, call UPnP protocol stack, parse critical field wherein and build " device control block (DCB) " data structure and preserve.Then export the DMS equipment result found, the friendly name of way of output prioritizing selection DMS equipment, if do not arrange, exports its unique device name.
Meanwhile, according to the SCPDURL information in the service service field in response, access obtains service description file, thus obtains service ability collection.The description document of service also occurs with SSDP form.
Example: service description file ContentDirectory.xml
<?xml?version="1.0"?>
<scpd?xmlns="urn:schemas-upnp-org:service-1-0">
<actionList>
<action>
<name>Search</name>
<argumentList>
<argument>
<name>ContainerID</name>
<direction>in</direction>
<relatedStateVariable>
A_ARG_TYPE_ObjectID
</relatedStateVariable>
</argument>
<argument>
……
</argument>
……
<action>
……
</action>
……
</actionList>
</scpd>
6, DMR application, DMS application enter Messages-Waiting, the selection operation of DMC applications wait user.
Next is that DMC control DMR plays up the process playing media content on DMS.
1, DMC application receives user and selects, and to browse in IPTV set top box media content in DMS application.By UPnP protocol stack, DMC application sends POST control message request or the request of M-POST control message to DMS application.Message body is SOAP form, action name actionName will be set to SEARCH, ContentDirectory is appointed as in service, desired parameters is set in its child node as ContainerID, derive from the SSDP message of declaration or search response, the description in function collection address (SCPDURL) given content of every service.
Example: request action, POST message, message body
<s:Envelope
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:SEARCH?xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1">
<ContainerID>in?arg?value</ContainerID>
……
</u:?SEARCH>
</s:Body>
</s:Envelope>
2, DMS application receives POST action request and processes.According to request service item ContentDirectory, perform SEARCH operation, feed back startup stage in build and timing upgrade directory content list.Feedback message is responded by UPnP protocol 200 OK and sends, and message body is the same with POST message is also SOAP form, and structure is corresponding one by one with project in POST message, is only that former " u:SEARCH " action becomes " u:SEARCHResponse ".Directory content list, constructs one by one according to different parameters project and is filled in message body.
If there is no SEARCH method of operating in undefined ContentDirectory service or service in DMS application, should abnormality processing be entered, give the DMC application UPnP response of message.POST message is returned " 405 Method Not Allowd ", for M-POST message return " 501 Not Implemented " or " 510 Not Extended " DMC application receive DMS feedback normal response after, analyzed the information of the directory content list comprised in message body by UPnP protocol stack, export to user.Abnormality processing flow process is entered equally for exception response.
3, DMC applications wait user is according to directory content list, selects the media content wishing to play.After selected, export at friendly name or the unique device name through exploring and declare all DMR for exporting obtained to user, waiting for that user selects again.
4, DMC application receives after user requires that the DMR application of content in IPTV set top box is exported the selection of playing up, and send POST action request respectively to DMS application and DMR application: request DMS sends media content, request DMR plays up the content from appointment DMR.Message body remains SOAP form.
5, after DMS is applied in and receives action request, according to request content, media data is sent to appointment DMR.The control section of media play transmission simultaneously controls whole process of transmitting and monitors.
6, after DMR is applied in and receives action request, according to request content, the data of specifying DMR to transmit are received.
7, DMR analytic application media data head decode key configuration information.According to these information, media-driven interface is set.Reach and play after minimum threshold receiving data, render in media-driven interface and carry out decoding and play up output.
The content be not described in detail in this specification belongs to the known prior art of professional and technical personnel in the field.

Claims (6)

1. Set Top Box realizes the method that DLNA media are shared, and it is characterized in that, comprises the following steps:
Step 1, the assembly that configuration machine top box comprises, described Set Top Box is IPTV set top box: select the UPnP protocol stack based on ISO/IEC 29341 standard implementation, and described protocol stack selects to increase income version or business version, is included in scheme as assembly;
Be included in scheme using media-driven interface as assembly again, the interface that described media-driven interface and IPTV set top box play media is same set of, provides supporting by IPTV hardware chip scheme;
Step 2, on basis based on the UPnP protocol stack described in step 1, four kind equipments that can use under IPTV set top box applied environment in the operating system socket API in Set Top Box and media-driven Interface realization DLNA Technical Architecture are coordinated to apply: DMS equipment, DMP equipment, DMC equipment, DMR equipment;
Described DMS equipment is applied by DMS and is realized, and it is made up of directory content administration module and media play transmission control module,
Described DMC equipment is applied by DMC and is realized, and it is Controlling vertex, and its main body plays and plays up control module and DMS content search index module,
Described DMR equipment is applied by DMR and is realized, and its core is media hype module, and realizes the mutual of media hype module and media-driven interface, and output procedure is played up in the final decoding being realized media by media-driven interface interchange software and hardware decoder,
Described DMP equipment is applied by DMC and DMR applies these two incorporating aspects and formed;
Four described kind equipment application relate to three groups of workflows:
Flow process 1) DMS application workflow,
Flow process 2) DMR application plays up the flow process of display media content,
Flow process 3) applied by DMC, control DMR plays up the flow process playing the media content that DMS stores;
Described DMS application workflow, comprises the following steps:
S00, DMS start, and read the basic configuration information of application: the network equipment name that media content storing directory, DMS application uses, and then start DMS application;
S01, DMS UPnP declares, calls UPnP protocol stack, according to UPnP protocol requirement, starts declaration with the network equipment transmitting apparatus of setting in configuration;
S02, contents directory scan, and in DMS application, directory content administration module starts, according to the media content storing directory of setting in configuration, and scanning directory content, thus build directory content list, the operation of timing multiple scanning simultaneously, in order to upgrade directory content list;
S03, reception request, when receiving the request of DMC device request directory content, turn to S04; When receiving the request of DMC device request play content, turn to S05; When not receiving request, wait for;
S04, the list of feedback directory content, current up-to-date directory content list is obtained from directory content administration module, and it is sent to DMC by feedback response, then the request of S03 products for further is turned to, if contents list cannot be obtained in process or without the service, the action that provide contents list, turn to S06;
S05, the transmission of execution media play control, media data is sent to DMR by operating system Socket API HTTP or RTP mode, start media play transmission control module simultaneously, complete the control in transmission, go wrong if cannot perform in media delivery or transmitting procedure, turn to S06;
S06, abnormality processing, the DMC equipment in mutual sends errored response event, is discharged into the software resource that stage position of makeing mistakes takies simultaneously.
2. Set Top Box as claimed in claim 1 realizes the method that DLNA media are shared, and it is characterized in that: the flow process of display media content is played up in described DMR application, comprises the following steps:
S10, DMR start, and call media-driven interface initialization Set Top Box display translation hardware, then start DMR application;
S11, DMR UPnP declares, calls UPnP protocol stack, and according to UPnP protocol requirement, transmitting apparatus starts declaration;
S12, reception request, enter S13, otherwise wait for after receiving DMC equipment to need the request of play content;
S13, foundation DMC request, receive DMS media data, according to the parameter obtained from request, from the media data that operating system socket API specifies DMS to send with the reception of HTTP or RTP form, if cannot process the request of DMC, turns to S15;
S14, media-driven interface is set, completes and play up output, resolve media data head, obtain media play parameter and then media-driven interface is set, finally data are pressed into media-driven interface interchange hardware to carry out playing up output, make mistakes if play up display, then turn to S15;
S15, abnormality processing, the DMC equipment in mutual sends errored response event, is discharged into the software and hardware resources that stage position of makeing mistakes takies simultaneously.
3. Set Top Box as claimed in claim 1 realizes the method that DLNA media are shared, and it is characterized in that: describedly applied by DMC, and controls DMR plays up the flow process of the media content playing storage on DMS, comprises the following steps:
S20, DMC start;
S21, DMC UPnP searches for, and calls UPnP protocol stack, according to UPnP protocol requirement, searches for online DMS and DMR equipment;
S22, output have found the friendly name of the equipment of DMS or unique device name, according to the Search Results in S21, export the friendly name of the DMS equipment found, if non-create name, export its unique device name; If there are many records, export with tabular form;
S23, reception user select operation, and wait-receiving mode user selects the DMS equipment needing access;
S24, to user select DMS send request, DMS contents list is exported according to response, wait for user in selecting content, according to UPnP protocol requirement, build UPnP control message, request DMS equipment feeds back its contents list, waiting receive response after, call DMS content search index module resolution response content, then export to user, user selects the content that will play then to turn to S23 to wait for; If occur abnormal in processing response or what directly receive is exactly the errored response that DMS, DMR equipment is sent, turn to S27;
S25, user to select on DMS after content, export the friendly name of the DMR equipment that can be used for exporting or unique device name, receive user select need play DMS equipment on content after, according to the Search Results in S21, export the friendly name of the DMR equipment found or unique device name, user selects output equipment again then to turn to S23 to wait for; If the DMR equipment now endlessly found, turns to S27;
S26, to DMS send media play request, media hype request is sent to DMR, after receiving the DMR equipment of user's selection, call and play and play up control module, the content that the DMS equipment selected according to user in S24 and upper needs thereof are play, the DMR equipment that in S25, user selects, builds UPnP control message respectively, send media play request to DMS equipment, send media hype request to DMR; If receive the exception response of DMS, DMR equipment, then turn to S27;
S27, abnormality processing, DMS, DMR equipment in mutual sends errored response event, is discharged into the software resource that stage position of makeing mistakes takies simultaneously.
4. Set Top Box as claimed in claim 1 realizes the method that DLNA media are shared, it is characterized in that: flow process 1) in the DMC equipment received in DMC device request be DMC application in IPTV set top box, or support other DMC equipment of standard DLNA Technical Architecture;
When IPTV set top box uses DMP equipment, DMC, DMR equipment is exactly DMC, DMR application in IPTV set top box.
5. Set Top Box as claimed in claim 2 realizes the method that DLNA media are shared, it is characterized in that: flow process 2) in the DMC equipment received in DMC device request be DMC application in IPTV set top box, or support other DMC equipment of standard DLNA Technical Architecture;
When IPTV set top box uses DMP equipment, DMC, DMR equipment is exactly DMC, DMR application in IPTV set top box.
6. Set Top Box as claimed in claim 3 realizes the method that DLNA media are shared, and it is characterized in that: flow process 3) in DMC, DMR be DMS, DMR application in IPTV set top box, or support other DMS, DMR equipment of standard DLNA Technical Architecture;
When IPTV set top box uses DMP equipment, DMC, DMR equipment is exactly DMC, DMR application in IPTV set top box.
CN201210097146.3A 2012-04-05 2012-04-05 Method for realizing DLNA media sharing by using set-top box Active CN102665134B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210097146.3A CN102665134B (en) 2012-04-05 2012-04-05 Method for realizing DLNA media sharing by using set-top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210097146.3A CN102665134B (en) 2012-04-05 2012-04-05 Method for realizing DLNA media sharing by using set-top box

Publications (2)

Publication Number Publication Date
CN102665134A CN102665134A (en) 2012-09-12
CN102665134B true CN102665134B (en) 2015-01-14

Family

ID=46774525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210097146.3A Active CN102665134B (en) 2012-04-05 2012-04-05 Method for realizing DLNA media sharing by using set-top box

Country Status (1)

Country Link
CN (1) CN102665134B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051957B (en) * 2012-12-17 2016-04-06 北京歌华有线电视网络股份有限公司 The collocation method of DLNA program schedule data and system in digital TV set-top box
CN103237053A (en) * 2013-03-28 2013-08-07 东莞宇龙通信科技有限公司 Media file sharing method and TV box
CN104243469B (en) * 2014-09-10 2017-10-31 广东欧珀移动通信有限公司 A kind of method for controlling to play, apparatus and system
CN104468526B (en) * 2014-11-14 2018-01-19 广东欧珀移动通信有限公司 A kind of content sharing method of digital media server, access method and relevant apparatus
CN104469477B (en) * 2014-11-28 2017-08-11 广东欧珀移动通信有限公司 Media resource method for pushing and device
CN106791944A (en) * 2015-11-23 2017-05-31 北大方正集团有限公司 Multi-screen interaction method, multi-screen interactive device and Multi-screen interaction system
CN105721945A (en) * 2016-02-02 2016-06-29 四川长虹电器股份有限公司 Method for playing iso mirror image film in local area networkonline with television
CN113453084A (en) * 2020-03-27 2021-09-28 华为技术有限公司 Program playing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594279A (en) * 2008-05-29 2009-12-02 索尼株式会社 Messaging device, information processing method, program and information processing system
CN101809933A (en) * 2007-10-22 2010-08-18 索尼爱立信移动通讯有限公司 Digital living network alliance (DLNA) enabled portable electronic devices, DLNA management consoles and related methods of operating DLNA enabled portable electronic devices
CN102204192A (en) * 2011-05-26 2011-09-28 华为技术有限公司 A method for mounting network attachment storage nas device and a digital media player dmp

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101809933A (en) * 2007-10-22 2010-08-18 索尼爱立信移动通讯有限公司 Digital living network alliance (DLNA) enabled portable electronic devices, DLNA management consoles and related methods of operating DLNA enabled portable electronic devices
CN101594279A (en) * 2008-05-29 2009-12-02 索尼株式会社 Messaging device, information processing method, program and information processing system
CN102204192A (en) * 2011-05-26 2011-09-28 华为技术有限公司 A method for mounting network attachment storage nas device and a digital media player dmp

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《烽火新一代机顶盒组建家庭业务中心》;郑刚;《通信世界》;20111024(第37期);第20页 *

Also Published As

Publication number Publication date
CN102665134A (en) 2012-09-12

Similar Documents

Publication Publication Date Title
CN102665134B (en) Method for realizing DLNA media sharing by using set-top box
US11115507B2 (en) Service discovery
EP2311259B1 (en) Apparatus and method for sharing a bookmark with other user in a home network
KR100782503B1 (en) Method And System For Transforming Contents of Broadcasting in DLNA Network
US7085814B1 (en) Data driven remote device control model with general programming interface-to-network messaging adapter
CN110830841B (en) Screen projection method, system and intelligent device under different local area networks
US20100235531A1 (en) Upnp-based media contents reproducing system and method thereof
EP1696606B1 (en) Service framework for home network
WO2007105460A1 (en) Information processing device, information communication system, information processing method, and computer program
JP2006148804A (en) Gateway apparatus, network system, communication program, and communication method
CN102172009A (en) Method and system for providing input in home network using upnp
CN102804686A (en) Content output system and codec information sharing method in same system
US9204091B2 (en) Apparatus and method for configuring high-definition video telephony between computer devices
CN1943171B (en) Method for controlling a device in a network of distributed stations, and network station
EP2666256B1 (en) Method and apparatus for phone communication using home network
US20040133678A1 (en) Data processing system, information processing apparatus and method, and computer program
US7962598B2 (en) Concurrent IGRS-UPnP
CN101867508B (en) Method, system and device for realizing home network interconnection
CN104519077A (en) Multimedia sharing method, registration method, server and proxy server
US20070130308A1 (en) Method for updating contents of a DMS in a DLNA system
EP1642418B1 (en) Method for controlling a network station in a network of a first type from a network station in a network of a second type, and connection unit for the connection of the networks of the first and second types
JP2010033277A (en) Server device
KR101732189B1 (en) Method and apparatus for providing service of external network to home network device
Heredia An introduction to the DLNA architecture: network technologies for media devices
JP2005123686A (en) Seamless device control method and system thereof, gateway apparatus, terminal, and domain controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant