CN102665134A - 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
CN102665134A
CN102665134A CN2012100971463A CN201210097146A CN102665134A CN 102665134 A CN102665134 A CN 102665134A CN 2012100971463 A CN2012100971463 A CN 2012100971463A CN 201210097146 A CN201210097146 A CN 201210097146A CN 102665134 A CN102665134 A CN 102665134A
Authority
CN
China
Prior art keywords
equipment
dms
dmr
dmc
media
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
CN2012100971463A
Other languages
Chinese (zh)
Other versions
CN102665134B (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

Images

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 STB is realized the method that the DLNA medium are shared
Technical field
The present invention relates to the realization of DLNA (Digital Living Network Alliance) Technical Architecture, is that a kind of STB is realized the method that the DLNA medium are shared specifically.Said STB refers to the STB terminal (STB terminal equipment) in the home network especially, and promptly STB terminal equipment (IPTV STB) is gone up the function that realizes DLNA (Digital Living Network Alliance) Technical Architecture in home network.
Background technology
IPTV, promptly IPTV is a kind of broadband cabled television network that utilizes, and integrates multiple technologies such as the Internet, multimedia, communication; The technology of the multiple interactive services that comprises DTV is provided to the domestic consumer.The mode of network machine top box+general television set makes the user can have dual mode to enjoy the IPTV service at home.The trend that it can adapt to current network develop rapidly well fully effectively utilizes Internet resources.IPTV both had been different from conventional analogue formula cable TV, also was different from classical DTV.Because, conventional analogue formula cable TV and classical DTV all have frequency division system, regularly, characteristics such as One-to-All Broadcast; Although classical DTV has many technological innovations with respect to simulated television; But the just change of signal form; And the circulation way of not touching media content.IPTV can provide more broadcast mode such as program request, time shift to the user, also supports multiple abilities such as picture browsing, audio frequency and video broadcast simultaneously.It at present also is one of broad band telecommunication service of promoting mainly of telecommunications.
DLNA, DLNA, be many companies by the leading consumer electronics industry, computer industry, mobile device industry form stride industrial organization.Target is to share indoor and the outdoor wired and wireless network that constitutes such as consumer electronics (CE), PC (PC) and mobile device that can be interconnected, promotion digital multimedia content and service shared.DLNA is devoted to release the digital convergence that realizes the industry of striding based on the interconnected guilding principle of open industry standard.DLNA digital home can provide 4 to be worth greatly for the consumer:
1) stay at home share easily Anywhere, storage, visit digital music.
2) easily manage, browse, print and share digital photos.
3) easily the entertainment content of liking is carried to enjoy out of doors.
4) but the content of multi-user access is write down and resets.
The mutual guilding principle of DLNA networked devices has defined 12 types of (Class) equipment that divide 3 species (Category).Each type can be confirmed entity as of DLNA, so DLNA product must be realized the function of one or more equipment class.The home network scope is made up of 5 equipment class, shares the systemic-function in the home network with identical media formats and network connection request.Comprise following 5 kinds of equipment class:
1) DMS (Digital Media Server): digital media server provides that medium obtain, write down, storage and output function.
2) DMP (Digital Media Player): digital media player, search, obtain the content of sending by DMS or M-DMS, provide and play and play up function.
3) DMC (Digital Media Controler): the 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): the Digital Media rendering apparatus, through after other equipment disposition, play the content of DMS.The difference of DMR and DMP is that DMR need just can obtain the content that DMS sends through DMC control.
5) DMPr (Digital Media Printer): the Digital Media printer, print service is provided, it is the priority application of DLNA that photo is printed, but the content of other types also can print through DMPr.
The framework of DLNA:
1) network and connectivity.Interconnecting of formation physical links such as equipment support 802.3,802.11, Bluetooth Connectivity and IPv4.
2) device discovery and control.Realize finding and control based on the framework of UPnP equipment.
3) media management.UPnP AV equipment and associated control points based on UPnP AV architecture definition are used, realization equipment and identification, management and the distribution of using the media content in the home network.
4) media formats.DLNA media formats model has carried out specific definition to 3 types of medium types (picture, Voice & Video), and that wherein must satisfy is respectively JPEG, LPCM (dual track), MPEG2.
5) media delivery.DLNA equipment must be supported with HTTP as basic transmission means transmitting multimedia contents.Extra, RTP is as optional media delivery mode.But HTTP is necessary as mandatory requirement.
UPnP (Universal Plug and Play), UPnP are cover procotols that is proposed by UPnP Forum.The target of this agreement is the various device seamless link each other that makes in home network (data sharing, communications and entertainment) and the company's network, and simplifies the realization of network of relation.UPnP realizes this goal based on the UPnP device control protocol of opening, internet communication network consensus standard through definition and issue.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 that constitutes (UPnP) technology.SSDP provides the mechanism at localized network the inside discovering device.The equipment that special services is provided in the localized network the inside at oneself place can be inquired about through using SSDP in control point (just accepting the client of service) according to the needs of oneself.Equipment (server end of service just is provided) also can be through using SSDP, to its existence of statement of the control point of the localized network the inside that oneself belongs to.
SOAP (Simple Object Access Protocol), Simple Object Access Protocol is a kind of standardized communication standard, is mainly used in the Web service (web service).The appearance of SOAP is in order to simplify web page server (Web Server) when from the XML database, extracting data; Need not the formatted pages of taking time; And can let between the different application through the HTTP communications protocol; Intercourse data each other with the XML form, make itself and programming language, platform and hardware independent.This standard is by IBM, Microsoft, UserLand and the DevelopMentor common proposition in 1998; And obtain IBM; Lotus flower (Lotus), World Wide Web Consortium (World Wide Web Consortium was submitted in the support of Compaq companies such as (Compaq) in 2000; W3C), SOAP 1.1 editions is the common standard of industry at present, belongs to the XML agreement (the main representational technology of first generation tool is XML-RPC and WDDX) of the second generation.With a simple example SOAP use is described, a SOAP message can send to a Web website with Web Service function, for example; One contains the room rate database of information, indicates in the parameter of message that this is a query messages, and this website will return the information of an XML form; Wherein comprised Query Result (price; The position, characteristics, perhaps other information).Because data are transmitted with a kind of standardized analyzable structure, so can directly be utilized by third party's website.
Summary of the invention
To the defective that exists in the prior art; The object of the present invention is to provide a kind of STB to realize the method that the DLNA medium are shared; The technical problem that solves is to make the IPTV STB have the medium sharing functionality that the DLNA Technical Architecture requires, the ability that provides on the IPTV STB and support in other home networks can find automatically between the equipment of DLNA Technical Architecture to share with medium.
For reaching above purpose, the technical scheme that the present invention takes is:
A kind of STB is realized the method that the DLNA medium are shared, and it is characterized in that, may further comprise the steps:
Step 1, the assembly that the configuration machine top box comprises, said STB are the IPTV STB: select the UPnP protocol stack based on the realization of ISO/IEC 29341 standards, said protocol stack selects to increase income version or commercial version, is included in the scheme as assembly;
The media-driven interface is included in the scheme as assembly, the interface of said media-driven interface and IPTV STB playing media is same set of, provides supporting by IPTV hardware chip scheme again;
Step 2; On the basis based on the described UPnP protocol stack of step 1, four kind equipments that under IPTV set-top box application environment, can use in operating system socket API in the cooperation STB and the media-driven interface realization DLNA Technical Architecture are used: DMS equipment, DMP equipment, DMC equipment, DMR equipment.
On the basis of technique scheme, said DMS equipment is by the DMS Application and implementation, and it is made up of directory content administration module and media play transmission control module,
Said DMC equipment is by the DMC Application and implementation, and it is a Control Node, and its main body is to play and play up control module and DMS content search index module,
Said DMR equipment is by the DMR Application and implementation, and its core is the media hype module, and realizes the mutual of media hype module and media-driven interface, realizes that through media-driven interface interchange software and hardware decoder output procedure is played up in the final decoding of medium,
Said DMP equipment is used by DMC and these two parts of DMR application make up and form.
On the basis of technique scheme, described four kind equipments are used and are related to three groups of workflows:
Flow process 1) DMS uses workflow,
Flow process 2) DMR uses the flow process of playing up display media content,
Flow process 3) use through DMC, control DMR plays up and plays the flow process that DMS goes up the media content of storage.
On the basis of technique scheme, said DMS uses workflow, may further comprise the steps:
S00, DMS start, and read the basic configuration information of application: media content storing directory, DMS use the network equipment name of using, and start DMS then and use;
The UPnP protocol stack is called in S01, DMS UPnP declaration, according to the UPnP protocol requirement, starts declaration with the network equipment transmitting apparatus of setting in the configuration;
S02, contents directory scanning, the directory content administration module started during DMS used, according to the media content storing directory of setting in the configuration, the scanning directory content, thus making up the directory content tabulation, regularly multiple scanning operation simultaneously is in order to upgrade the directory content tabulation;
S03, reception request when receiving the request of DMC device request directory content, pass to S04; When receiving the request of DMC device request play content, pass to S05; When not receiving request, wait for;
S04, the tabulation of feedback directory content; Obtain current up-to-date directory content tabulation from the directory content administration module; And it is sent to DMC through feedback response; Turn to the request of S03 products for further then, provide the service of contents list, action etc. then to turn to S06 as if obtaining contents list or nothing in the process;
S05, execution media play transmission control; Send media data through operating system Socket API with HTTP or RTP mode and give DMR; Start the media play transmission control module simultaneously, accomplish the control in the transmission, then turn to S06 if can't carry out to go wrong in media delivery or the transmission course;
S06, abnormality processing, the DMC equipment in mutual sends the errored response incident, is discharged into the software resource that the stage position of makeing mistakes takies simultaneously.
On the basis of technique scheme, said DMR uses the flow process of playing up display media content, may further comprise the steps:
S10, DMR start, and call media-driven interface initialization STB and show output hardware, start DMR then and use;
The UPnP protocol stack is called in S11, DMR UPnP declaration, and according to the UPnP protocol requirement, transmitting apparatus starts declaration;
S12, receive request, need to get into S13 after the request of play content when receiving DMC equipment, otherwise wait for;
S13, according to DMC request, receive the DMS media data, according to the parameter of from request, obtaining, receive the media data of specifying DMS to send with HTTP or RTP form from operating system socket API, then turn to S15 if can't handle the request of DMC;
S14, the media-driven interface is set, accomplishes and play up output, resolve the media data head; Obtain the media play parameter media-driven interface is set then; At last data are pressed into media-driven interface interchange hardware and play up output, make mistakes, then turn to S15 if play up demonstration;
S15, abnormality processing, the DMC equipment in mutual sends the errored response incident, is discharged into the software and hardware resources that the stage position of makeing mistakes takies simultaneously.
On the basis of technique scheme, said through the DMC application, control DMR plays up and plays the flow process that DMS goes up the media content of storage, may further comprise the steps:
S20, DMC start;
The UPnP protocol stack is called in S21, DMC UPnP search, according to the UPnP protocol requirement, searches for online DMS and DMR equipment;
The friendly name of equipment or the unique implementor name of DMS found in S22, output, and according to the Search Results among the S21, the friendly name of the DMS equipment that output has been found is not if create name is then exported its unique implementor name; If many records occurring then exports with tabular form;
S23, reception user selection operation are waited for the DMS equipment that the user need to select visit that receives;
S24, the DMS that selects to the user send request, according to response output DMS contents list, wait for user in selecting content; According to the UPnP protocol requirement, make up the UPnP control messages, its contents list of request DMS equipment feedback; After waiting to receive response; Call DMS content search index module resolution response content, export to the user again, turn to S23 to wait for that the user selects the content that will play then; If occur unusually in the processing response or what directly receive is exactly that the errored response of sending of DMS, DMR equipment then turns to S27;
After S25, user select DMS to go up content; Friendly or the unique implementor name of the DMR equipment that output can be used for exporting; After receiving the content on the DMS equipment that the user selects need to play; According to the Search Results among the S21, the friendly name of the DMR equipment that output has been found or unique implementor name then turn to S23 to wait for that the user selects output equipment once more; If the DMR equipment that endlessly find this moment then turns to S27;
S26, send media play request, send the media hype request to DMR to DMS, receive the DMR equipment that the user selects after; Call and play and play up control module; According to the content that the DMS equipment and the last needs thereof of user's selection among the S24 are play, the DMR equipment that the user selects among the S25 makes up the UPnP control messages respectively; Send media play request to DMS equipment, send the media hype request to DMR; If receive the exception response of DMS, DMR equipment, then turn to S27;
S27, abnormality processing, the DMS in mutual, DMR equipment send the errored response incident, are discharged into the software resource that the stage position of makeing mistakes takies simultaneously.
On the basis of technique scheme, the DMC equipment that receives in the flow process 1 in the DMC device request is the DMC application on the IPTV STB, or other DMC equipment of the standard of support DLNA Technical Architecture;
When the IPTV STB used DMP equipment, DMC, DMR equipment were exactly DMC, the DMR application on the IPTV STB.
On the basis of technique scheme, the DMC equipment that receives in the flow process 2 in the DMC device request is the DMC application on the IPTV STB, or other DMC equipment of the standard of support DLNA Technical Architecture;
When the IPTV STB used DMP equipment, DMC, DMR equipment were exactly DMC, the DMR application on the IPTV STB.
On the basis of technique scheme, DMC, DMR are DMS, the DMR application on the IPTV STB in the flow process 3, or other DMS, the DMR equipment of the standard of support DLNA Technical Architecture;
When the IPTV STB used DMP equipment, DMC, DMR equipment were exactly DMC, the DMR application on the IPTV STB.
STB of the present invention is realized the method that the DLNA medium are shared; Realized on the IPTV STB, increasing the medium sharing functionality of DLNA Technical Architecture; Can make the IPTV STB in home network environment, take on more importantly role, progressively become the central apparatus of home media control; Can make people's more effective sharing and shared various entertainment mediums in home environment, for the exploitation and the expansion of other value-added services are paved the way.
Description of drawings
The present invention has following accompanying drawing:
Fig. 1 is technical scheme structural representation among the present invention;
Fig. 2 uses workflow diagram for DMS among the present invention;
Fig. 3 plays up the display media content flow chart for DMR among the present invention uses;
Fig. 4 is for using through DMC among the present invention, and control DMR plays up and plays the flow chart that DMS goes up the media content of storage.
Embodiment
Below in conjunction with accompanying drawing the present invention is done further explain.
The present invention has provided based on IPTV (Internet Protocol Television) the network television-set top-set-box basis; Merge the scheme that realizes DLNA Technical Architecture core medium sharing functionality; Realized on the IPTV STB, increasing the medium sharing functionality of DLNA Technical Architecture; Can make the IPTV STB in home network environment, take on more importantly role, progressively become the central apparatus of home media control; Can make people's more effective sharing and shared various entertainment mediums in home environment, for the exploitation and the expansion of other value-added services are paved the way.
Technical scheme structure of the present invention is as shown in Figure 1.STB of the present invention is realized the method that the DLNA medium are shared, and may further comprise the steps:
Step 1, the assembly that the configuration machine top box comprises, said STB are the IPTV STB: select the UPnP protocol stack based on the realization of ISO/IEC 29341 standards, said protocol stack selects to increase income version or commercial version, is included in the scheme as assembly; UPnP protocol stack to realize based on ISO/IEC 29341 standards is the basis, based on the existing wireless and wired network physical equipment of IPTV connectivity capabilities, and the problem that equipment that requires in the solution DLNA Technical Architecture and equipment room are found each other;
The media-driven interface is included in the scheme as assembly, the interface of said media-driven interface and IPTV STB playing media is same set of, provides supporting by IPTV hardware chip scheme again; The media-driven interface provides support for the requirement aspect the media formats in the DLNA framework in this programme;
Step 2; On the basis based on the described UPnP protocol stack of step 1, four kind equipments that under IPTV set-top box application environment, can use in operating system socket API in the cooperation STB and the media-driven interface realization DLNA Technical Architecture are used: DMS equipment, DMP equipment, DMC equipment, DMR equipment.
On the basis of technique scheme, as shown in Figure 1, said DMS equipment is by the DMS Application and implementation, and it is made up of directory content administration module and media play transmission control module,
Said DMC equipment is by the DMC Application and implementation, and it is a Control Node, and its main body is to play and play up control module and DMS content search index module,
Said DMR equipment is by the DMR Application and implementation, and its core is the media hype module, and realizes the mutual of media hype module and media-driven interface, realizes that through media-driven interface interchange software and hardware decoder output procedure is played up in the final decoding of medium,
Said DMP equipment is used by DMC and these two parts of DMR application make up and form, and does not do separate modular and realizes.
On the basis of technique scheme, described four kind equipments are used and are related to three groups of workflows:
Flow process 1) DMS uses workflow,
Flow process 2) DMR uses the flow process of playing up display media content,
Flow process 3) use through DMC, control DMR plays up and plays the flow process that DMS goes up the media content of storage.
On the basis of technique scheme, as shown in Figure 2, said DMS uses workflow, may further comprise the steps:
S00, DMS start, and read the basic configuration information of application: media content storing directory, DMS use the network equipment name of using, and start DMS then and use;
The UPnP protocol stack is called in S01, DMS UPnP declaration, according to the UPnP protocol requirement, starts declaration with the network equipment transmitting apparatus of setting in the configuration;
S02, contents directory scanning, the directory content administration module started during DMS used, according to the media content storing directory of setting in the configuration, the scanning directory content, thus making up the directory content tabulation, regularly multiple scanning operation simultaneously is in order to upgrade the directory content tabulation;
S03, reception request when receiving the request of DMC device request directory content, pass to S04; When receiving the request of DMC device request play content, pass to S05; When not receiving request, wait for;
S04, the tabulation of feedback directory content; Obtain current up-to-date directory content tabulation from the directory content administration module; And it is sent to DMC through feedback response; Turn to the request of S03 products for further then, provide the service of contents list, action etc. then to turn to S06 as if obtaining contents list or nothing in the process;
S05, execution media play transmission control; Send media data through operating system Socket API with HTTP or RTP mode and give DMR; Start the media play transmission control module simultaneously, accomplish the control in the transmission, then turn to S06 if can't carry out to go wrong in media delivery or the transmission course;
S06, abnormality processing, the DMC equipment in mutual sends the errored response incident, is discharged into the software resource that the stage position of makeing mistakes takies simultaneously.
On the basis of technique scheme, as shown in Figure 3, said DMR uses the flow process of playing up display media content, may further comprise the steps:
S10, DMR start, and call media-driven interface initialization STB and show output hardware, start DMR then and use;
The UPnP protocol stack is called in S11, DMR UPnP declaration, and according to the UPnP protocol requirement, transmitting apparatus starts declaration;
S12, receive request, need to get into S13 after the request of play content when receiving DMC equipment, otherwise wait for;
S13, according to DMC request, receive the DMS media data, according to the parameter of from request, obtaining, receive the media data of specifying DMS to send with HTTP or RTP form from operating system socket API, then turn to S15 if can't handle the request of DMC;
S14, the media-driven interface is set, accomplishes and play up output, resolve the media data head; Obtain the media play parameter media-driven interface is set then; At last data are pressed into media-driven interface interchange hardware and play up output, make mistakes, then turn to S15 if play up demonstration;
S15, abnormality processing, the DMC equipment in mutual sends the errored response incident, is discharged into the software and hardware resources that the stage position of makeing mistakes takies simultaneously.
On the basis of technique scheme, as shown in Figure 4, said through the DMC application, control DMR plays up and plays the flow process that DMS goes up the media content of storage, may further comprise the steps:
S20, DMC start;
The UPnP protocol stack is called in S21, DMC UPnP search, according to the UPnP protocol requirement, searches for online DMS and DMR equipment;
The friendly name of equipment or the unique implementor name of DMS found in S22, output, and according to the Search Results among the S21, the friendly name of the DMS equipment that output has been found is not if create name is then exported its unique implementor name; If many records occurring then exports with tabular form;
S23, reception user selection operation are waited for the DMS equipment that the user need to select visit that receives;
S24, the DMS that selects to the user send request, according to response output DMS contents list, wait for user in selecting content; According to the UPnP protocol requirement, make up the UPnP control messages, its contents list of request DMS equipment feedback; After waiting to receive response; Call DMS content search index module resolution response content, export to the user again, turn to S23 to wait for that the user selects the content that will play then; If occur unusually in the processing response or what directly receive is exactly that the errored response of sending of DMS, DMR equipment then turns to S27;
After S25, user select DMS to go up content; Friendly or the unique implementor name of the DMR equipment that output can be used for exporting; After receiving the content on the DMS equipment that the user selects need to play; According to the Search Results among the S21, the friendly name of the DMR equipment that output has been found or unique implementor name then turn to S23 to wait for that the user selects output equipment once more; If the DMR equipment that endlessly find this moment then turns to S27;
S26, send media play request, send the media hype request to DMR to DMS, receive the DMR equipment that the user selects after; Call and play and play up control module; According to the content that the DMS equipment and the last needs thereof of user's selection among the S24 are play, the DMR equipment that the user selects among the S25 makes up the UPnP control messages respectively; Send media play request to DMS equipment, send the media hype request to DMR; If receive the exception response of DMS, DMR equipment, then turn to S27;
S27, abnormality processing, the DMS in mutual, DMR equipment send the errored response incident, are discharged into the software resource that the stage position of makeing mistakes takies simultaneously.
On the basis of technique scheme, the DMC equipment that receives in the flow process 1 in the DMC device request is the DMC application on the IPTV STB, or other DMC equipment of the standard of support DLNA Technical Architecture;
When the IPTV STB used DMP equipment, DMC, DMR equipment were exactly DMC, the DMR application on the IPTV STB.
On the basis of technique scheme, the DMC equipment that receives in the flow process 2 in the DMC device request is the DMC application on the IPTV STB, or other DMC equipment of the standard of support DLNA Technical Architecture;
When the IPTV STB used DMP equipment, DMC, DMR equipment were exactly DMC, the DMR application on the IPTV STB.
On the basis of technique scheme, DMC, DMR are DMS, the DMR application on the IPTV STB in the flow process 3, or other DMS, the DMR equipment of the standard of support DLNA Technical Architecture;
When the IPTV STB used DMP equipment, DMC, DMR equipment were exactly DMC, the DMR application on the IPTV STB.
Specific embodiment: following with the DMC on the IPTV STB use, DMR uses, DMS uses, through start-up course, the situation that has DMC control DMR to play up then to play DMS to go up media content is an example, and the course of work of present technique scheme is described.
It at first is start-up course.This process by DMC use, DMR uses, DMS application call UPnP protocol stack is accomplished, and relates to step S00, S01 among Fig. 2 of accompanying drawing, and get into S02 and wait for process; Relate to step S10, S11 among Fig. 3, and get into S12 wait process; Relate to step S20, S21, S22 among Fig. 4, and get into S23 wait process.
Process description:
1, have the IPTV STB that DMC uses, DMR uses, DMS uses and be added to network, DMC uses simultaneously, DMR uses, DMS uses and is activated.Can read the configuration information in the configuration file when starting: the network equipment name that media content storing directory, DLNA equipment use, also can call media-driven interface initialization STB and show output hardware.
2, the DMC application start can send search M-SEARCH message through the UPnP protocol stack, and wherein Man:ssdp:discover attempts the specified type equipment in the search network.Search DMR equipment and DMS equipment in the DLNA standard, message field need comprise the ST field and search device type in order to mark.
ST:urn:schemas-upnp-org:device:MediaRenderer:1
urn:schemas-upnp-org:device:MediaServer:1
3, DMR uses, DMS uses under the situation of initial start-up access network, can send declaration Notify message through the UPnP protocol stack, NTS:ssdp:alive wherein, and announcement apparatus can be used.M-SEARCH message when receiving that DMC sends can respond 200 OK.The message body of two message is the ssdp form; Wherein have necessary facility information: device type (deviceType); Unique implementor name (UDN); DLNA device identification (dlna:X_DLNADOC xmlns:dlna=" urn:schemas-dlna-org:device-1-0 "), the service list that provides (serviceList).In addition the friendly name of equipment (friendlyName); Sequence number (serialNumber); The type of every service (serviceType); The ID of every service (serviceId), the selectable items of stipulating in the function collection address DLNA standards such as (SCPDURL) of every service is then added as required voluntarily.
Example: DMR uses 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 uses 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, during DMS uses, according to the media content storing directory of setting in the configuration, directory content administration module scanning directory content.After scanning is accomplished, make up the directory content tabulation.Start a timing simultaneously, the repeated priming scan operation of regularly overtime back is in order to upgrade the directory content tabulation.
5, DMC is applied in after 200 OK that receive DMR uses, DMS uses announcement message or search message respond, and calls the UPnP protocol stack, parses critical field wherein and makes up " device control block (DCB) " data structure and preserve.Then the DMS equipment result who has found is exported, the way of output is preferentially selected the friendly name of DMS equipment, does not then export its unique implementor name if be provided with.
Simultaneously, according to the SCPDURL information in the service service field in the response, service description file is obtained in visit, thereby obtains the service ability collection.The description document of service also occurs with the 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 use and get into Messages-Waiting, DMC applications wait user's selection operation.
Next is that DMC control DMR plays up the process that DMS goes up media content of playing.
1, DMC uses and to receive the user and select, and browse media content during DMS uses on the IPTV STB.By the UPnP protocol stack, DMC uses to DMS and uses POST control messages request or the request of M-POST control messages of sending.Message body is the SOAP form; Action name actionName will be set to SEARCH; ContentDirectory is appointed as in service; Desired parameters such as ContainerID are set in its child node, 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 uses and receives POST action request and processing.According to requested service project ContentDirectory, carry out the SEARCH operation, feedback the startup stage in the directory content tabulation that makes up and regularly upgrade.Feedback message sends through UPnP agreement 200 OK response, and message body is the same with POST message also to be the SOAP form, and structure is corresponding one by one with POST message item, only is that former " u:SEARCH " action becomes " u:SEARCHResponse ".Directory content is tabulated, and constructs one by one according to the different parameters project to be filled in the message body.
If do not have the SEARCH method of operating in undefined ContentDirectory service or the service during DMS uses, should get into abnormality processing, give the response that DMC uses UPnP message.Return " 405 Method Not Allowd " for POST message; After returning " 501 Not Implemented " or " 510 Not Extended " DMC and use the normal response receive the DMS feedback for M-POST message; Analyze the information of the directory content tabulation that comprises in the message body through the UPnP protocol stack, export to the user.Get into the abnormality processing flow process equally for exception response.
3, DMC applications wait user tabulates according to directory content, selects to hope the media content of broadcast.After the chosen, to friendly name or the unique implementor name of user's output at all DMR that can supply export that process is explored and declaration is obtained, the wait user selects once more.
4, DMC use receive customer requirements with content after the DMR on the IPTV STB uses the selection that output plays up, use to use with DMR to DMS and send the POST action request respectively: request DMS sends media content, and request DMR plays up the content from appointment DMR.Message body remains the SOAP form.
5, after DMS is applied in and receives action request,, send media data and give appointment DMR according to request content.The control section of media play transmission is simultaneously controlled and is monitored whole process of transmitting.
6, after DMR is applied in and receives action request,, receive the data of specifying DMR to transmit according to request content.
7, DMR analytic application media data head decode key is provided with information.According to these information setting media-driven interfaces.After receiving that data reach the broadcast minimum threshold, rendering to decodes in the media-driven interface plays up output.
The content of not doing in this specification to describe in detail belongs to this area professional and technical personnel's known prior art.

Claims (9)

1. a STB is realized the method that the DLNA medium are shared, and it is characterized in that, may further comprise the steps:
Step 1, the assembly that the configuration machine top box comprises, said STB are the IPTV STB: select the UPnP protocol stack based on the realization of ISO/IEC 29341 standards, said protocol stack selects to increase income version or commercial version, is included in the scheme as assembly;
The media-driven interface is included in the scheme as assembly, the interface of said media-driven interface and IPTV STB playing media is same set of, provides supporting by IPTV hardware chip scheme again;
Step 2; On the basis based on the described UPnP protocol stack of step 1, four kind equipments that under IPTV set-top box application environment, can use in operating system socket API in the cooperation STB and the media-driven interface realization DLNA Technical Architecture are used: DMS equipment, DMP equipment, DMC equipment, DMR equipment.
2. STB as claimed in claim 1 is realized the method that the DLNA medium are shared, and it is characterized in that: said DMS equipment is by the DMS Application and implementation, and it is made up of directory content administration module and media play transmission control module,
Said DMC equipment is by the DMC Application and implementation, and it is a Control Node, and its main body is to play and play up control module and DMS content search index module,
Said DMR equipment is by the DMR Application and implementation, and its core is the media hype module, and realizes the mutual of media hype module and media-driven interface, realizes that through media-driven interface interchange software and hardware decoder output procedure is played up in the final decoding of medium,
Said DMP equipment is used by DMC and these two parts of DMR application make up and form.
3. STB as claimed in claim 2 is realized the method that the DLNA medium are shared, and it is characterized in that: described four kind equipments are used and are related to three groups of workflows:
Flow process 1) DMS uses workflow,
Flow process 2) DMR uses the flow process of playing up display media content,
Flow process 3) use through DMC, control DMR plays up and plays the flow process that DMS goes up the media content of storage.
4. STB as claimed in claim 3 is realized the method that the DLNA medium are shared, and it is characterized in that: said DMS uses workflow, may further comprise the steps:
S00, DMS start, and read the basic configuration information of application: media content storing directory, DMS use the network equipment name of using, and start DMS then and use;
The UPnP protocol stack is called in S01, DMS UPnP declaration, according to the UPnP protocol requirement, starts declaration with the network equipment transmitting apparatus of setting in the configuration;
S02, contents directory scanning, the directory content administration module started during DMS used, according to the media content storing directory of setting in the configuration, the scanning directory content, thus making up the directory content tabulation, regularly multiple scanning operation simultaneously is in order to upgrade the directory content tabulation;
S03, reception request when receiving the request of DMC device request directory content, pass to S04; When receiving the request of DMC device request play content, pass to S05; When not receiving request, wait for;
S04, the tabulation of feedback directory content; Obtain current up-to-date directory content tabulation from the directory content administration module; And it is sent to DMC through feedback response; Turn to the request of S03 products for further then, provide the service of contents list, action etc. then to turn to S06 as if obtaining contents list or nothing in the process;
S05, execution media play transmission control; Send media data through operating system Socket API with HTTP or RTP mode and give DMR; Start the media play transmission control module simultaneously, accomplish the control in the transmission, then turn to S06 if can't carry out to go wrong in media delivery or the transmission course;
S06, abnormality processing, the DMC equipment in mutual sends the errored response incident, is discharged into the software resource that the stage position of makeing mistakes takies simultaneously.
5. STB as claimed in claim 3 is realized the method that the DLNA medium are shared, and it is characterized in that: said DMR uses the flow process of playing up display media content, may further comprise the steps:
S10, DMR start, and call media-driven interface initialization STB and show output hardware, start DMR then and use;
The UPnP protocol stack is called in S11, DMR UPnP declaration, and according to the UPnP protocol requirement, transmitting apparatus starts declaration;
S12, receive request, need to get into S13 after the request of play content when receiving DMC equipment, otherwise wait for;
S13, according to DMC request, receive the DMS media data, according to the parameter of from request, obtaining, receive the media data of specifying DMS to send with HTTP or RTP form from operating system socket API, then turn to S15 if can't handle the request of DMC;
S14, the media-driven interface is set, accomplishes and play up output, resolve the media data head; Obtain the media play parameter media-driven interface is set then; At last data are pressed into media-driven interface interchange hardware and play up output, make mistakes, then turn to S15 if play up demonstration;
S15, abnormality processing, the DMC equipment in mutual sends the errored response incident, is discharged into the software and hardware resources that the stage position of makeing mistakes takies simultaneously.
6. STB as claimed in claim 3 is realized the method that the DLNA medium are shared, and it is characterized in that: said through the DMC application, control DMR plays up and plays the flow process that DMS goes up the media content of storage, may further comprise the steps:
S20, DMC start;
The UPnP protocol stack is called in S21, DMC UPnP search, according to the UPnP protocol requirement, searches for online DMS and DMR equipment;
The friendly name of equipment or the unique implementor name of DMS found in S22, output, and according to the Search Results among the S21, the friendly name of the DMS equipment that output has been found is not if create name is then exported its unique implementor name; If many records occurring then exports with tabular form;
S23, reception user selection operation are waited for the DMS equipment that the user need to select visit that receives;
S24, the DMS that selects to the user send request, according to response output DMS contents list, wait for user in selecting content; According to the UPnP protocol requirement, make up the UPnP control messages, its contents list of request DMS equipment feedback; After waiting to receive response; Call DMS content search index module resolution response content, export to the user again, turn to S23 to wait for that the user selects the content that will play then; If occur unusually in the processing response or what directly receive is exactly that the errored response of sending of DMS, DMR equipment then turns to S27;
After S25, user select DMS to go up content; Friendly or the unique implementor name of the DMR equipment that output can be used for exporting; After receiving the content on the DMS equipment that the user selects need to play; According to the Search Results among the S21, the friendly name of the DMR equipment that output has been found or unique implementor name then turn to S23 to wait for that the user selects output equipment once more; If the DMR equipment that endlessly find this moment then turns to S27;
S26, send media play request, send the media hype request to DMR to DMS, receive the DMR equipment that the user selects after; Call and play and play up control module; According to the content that the DMS equipment and the last needs thereof of user's selection among the S24 are play, the DMR equipment that the user selects among the S25 makes up the UPnP control messages respectively; Send media play request to DMS equipment, send the media hype request to DMR; If receive the exception response of DMS, DMR equipment, then turn to S27;
S27, abnormality processing, the DMS in mutual, DMR equipment send the errored response incident, are discharged into the software resource that the stage position of makeing mistakes takies simultaneously.
7. STB as claimed in claim 4 is realized the method that the DLNA medium are shared, and it is characterized in that: the DMC equipment that receives in the flow process 1 in the DMC device request is the DMC application on the IPTV STB, or other DMC equipment of the standard of support DLNA Technical Architecture;
When the IPTV STB used DMP equipment, DMC, DMR equipment were exactly DMC, the DMR application on the IPTV STB.
8. STB as claimed in claim 5 is realized the method that the DLNA medium are shared, and it is characterized in that: the DMC equipment that receives in the flow process 2 in the DMC device request is the DMC application on the IPTV STB, or other DMC equipment of the standard of support DLNA Technical Architecture;
When the IPTV STB used DMP equipment, DMC, DMR equipment were exactly DMC, the DMR application on the IPTV STB.
9. STB as claimed in claim 6 is realized the method that the DLNA medium are shared, and it is characterized in that: DMC, DMR are DMS, the DMR application on the IPTV STB in the flow process 3, or other DMS, the DMR equipment of the standard of support DLNA Technical Architecture;
When the IPTV STB used DMP equipment, DMC, DMR equipment were exactly DMC, the DMR application on the IPTV STB.
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 true CN102665134A (en) 2012-09-12
CN102665134B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051957A (en) * 2012-12-17 2013-04-17 北京歌华有线电视网络股份有限公司 Method and system for configuring DLNA (Digital Living Network Alliance) program catalog data in digital television set-top box
CN103237053A (en) * 2013-03-28 2013-08-07 东莞宇龙通信科技有限公司 Media file sharing method and TV box
CN104243469A (en) * 2014-09-10 2014-12-24 广东欧珀移动通信有限公司 Playing control method, device and system
CN104469477A (en) * 2014-11-28 2015-03-25 广东欧珀移动通信有限公司 Media resource pushing method and device
CN104468526A (en) * 2014-11-14 2015-03-25 广东欧珀移动通信有限公司 Content sharing method and access method of digital media server and related devices
CN105721945A (en) * 2016-02-02 2016-06-29 四川长虹电器股份有限公司 Method for playing iso mirror image film in local area networkonline with television
CN106791944A (en) * 2015-11-23 2017-05-31 北大方正集团有限公司 Multi-screen interaction method, multi-screen interactive device and Multi-screen interaction system
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
郑刚: "《烽火新一代机顶盒组建家庭业务中心》", 《通信世界》, no. 37, 24 October 2011 (2011-10-24), pages 20 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051957A (en) * 2012-12-17 2013-04-17 北京歌华有线电视网络股份有限公司 Method and system for configuring DLNA (Digital Living Network Alliance) program catalog data in digital television set-top box
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
CN104243469A (en) * 2014-09-10 2014-12-24 广东欧珀移动通信有限公司 Playing control method, device and system
CN104243469B (en) * 2014-09-10 2017-10-31 广东欧珀移动通信有限公司 A kind of method for controlling to play, apparatus and system
CN104468526A (en) * 2014-11-14 2015-03-25 广东欧珀移动通信有限公司 Content sharing method and access method of digital media server and related devices
CN104468526B (en) * 2014-11-14 2018-01-19 广东欧珀移动通信有限公司 A kind of content sharing method of digital media server, access method and relevant apparatus
CN104469477A (en) * 2014-11-28 2015-03-25 广东欧珀移动通信有限公司 Media resource pushing method and device
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

Also Published As

Publication number Publication date
CN102665134B (en) 2015-01-14

Similar Documents

Publication Publication Date Title
CN102665134B (en) Method for realizing DLNA media sharing by using set-top box
US11115507B2 (en) Service discovery
KR100782503B1 (en) Method And System For Transforming Contents of Broadcasting in DLNA Network
EP2311259B1 (en) Apparatus and method for sharing a bookmark with other user in a home network
CN101056277B (en) Method for transferring a content in dlna system
KR101510878B1 (en) Method and apparatus to control digital living network alliance network in digital living network alliance network
CN1943171B (en) Method for controlling a device in a network of distributed stations, and network station
EP1696606B1 (en) Service framework for home network
US20060031459A1 (en) Remote control system of a home network
CN101656645B (en) Method, equipment and system for communication between external equipment and internal equipment of home network
CN110830841B (en) Screen projection method, system and intelligent device under different local area networks
US20020040408A1 (en) Method for providing service in IP-based network system
CN102804686A (en) Content output system and codec information sharing method in same system
CN102172009A (en) Method and system for providing input in home network using upnp
WO2006072988A1 (en) Gateway device, terminal, and network device
US20040133678A1 (en) Data processing system, information processing apparatus and method, and computer program
US20120182920A1 (en) Method and apparatus for phone communication using home network
US7962598B2 (en) Concurrent IGRS-UPnP
KR20070028077A (en) Dlna system for capable of data service in digital broadcasting and its data service processing method
KR100724940B1 (en) Contents update method of dms in dlna system
JP5257659B2 (en) Video data transmission method, video data transmission apparatus for executing the method, video data transmission program for causing computer to execute the method, and recording medium in which the program is written
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
JP4217579B2 (en) Seamless device control method and system, gateway device, terminal, and domain controller device
KR101732189B1 (en) Method and apparatus for providing service of external network to home network device
JP2010033277A (en) Server 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
C14 Grant of patent or utility model
GR01 Patent grant