[go: up one dir, main page]

CN104320718A - Method and device for avoiding conflict of a plurality of DMC push media players - Google Patents

Method and device for avoiding conflict of a plurality of DMC push media players Download PDF

Info

Publication number
CN104320718A
CN104320718A CN201410494467.6A CN201410494467A CN104320718A CN 104320718 A CN104320718 A CN 104320718A CN 201410494467 A CN201410494467 A CN 201410494467A CN 104320718 A CN104320718 A CN 104320718A
Authority
CN
China
Prior art keywords
control
dmc
dmr
action
actions
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
CN201410494467.6A
Other languages
Chinese (zh)
Other versions
CN104320718B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410494467.6A priority Critical patent/CN104320718B/en
Publication of CN104320718A publication Critical patent/CN104320718A/en
Application granted granted Critical
Publication of CN104320718B publication Critical patent/CN104320718B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/43615Interfacing a Home Network, e.g. for connecting the client to a plurality of peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6402Address allocation for clients
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/658Transmission by the client directed to the server
    • H04N21/6587Control parameters, e.g. trick play commands, viewpoint selection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • H04N21/8355Generation of protective data, e.g. certificates involving usage data, e.g. number of copies or viewings allowed
    • H04N21/83555Generation of protective data, e.g. certificates involving usage data, e.g. number of copies or viewings allowed using a structured language for describing usage rules of the content, e.g. REL
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8543Content authoring using a description language, e.g. Multimedia and Hypermedia information coding Expert Group [MHEG], eXtensible Markup Language [XML]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明公开了一种避免多个DMC推送媒体播放产生冲突的方法,应用于DLNA家庭娱乐网络中,该方法首先通过将UPnP通用即插即用协议定义的服务及动作作分类处理,划分为控制动作和非控制动作,然后DMC在对DMR执行控制动作前,需先发送请求向DMR申请控制权,DMR记录申请控制权的DMC的IP地址,且仅执行该IP地址发送的控制动作,同一时间DMR最多记录一台拥有控制权的DMC设备,DMR过滤没有控制权的DMC的控制动作,但可以接收其他状态请求动作。该发明方法实现了多个DMC控制DMR的同时又有效避免了控制冲突,优化了多个控制设备之间的关系,改变了控制混乱的状况,极大地提升了使用体验。

The invention discloses a method for avoiding conflicts caused by multiple DMC push media playback, which is applied to DLNA home entertainment networks. The method first classifies services and actions defined by the UPnP Universal Plug and Play protocol, and divides them into control Actions and non-control actions, before DMC executes control actions on DMR, it needs to send a request to DMR to apply for control rights, DMR records the IP address of the DMC that applies for control rights, and only executes the control actions sent by the IP address, at the same time DMR records at most one DMC device that has control rights. DMR filters the control actions of DMCs that do not have control rights, but can receive other status request actions. The inventive method realizes that multiple DMCs control the DMR while effectively avoiding control conflicts, optimizes the relationship between multiple control devices, changes the situation of control confusion, and greatly improves the user experience.

Description

一种避免多个DMC推送媒体播放产生冲突的方法及装置A method and device for avoiding conflicts caused by multiple DMC push media playback

技术领域technical field

本发明涉及网络多媒体互联的技术领域,特别涉及一种避免多个DMC推送媒体播放产生冲突的方法及装置。The invention relates to the technical field of network multimedia interconnection, in particular to a method and a device for avoiding conflicts caused by playing media pushed by multiple DMCs.

背景技术Background technique

数字生活网络联盟DLNA全称是DIGITAL LIVING NETWORK ALLIANCE,旨在通过整合现有的技术和网络协议,使同一个网域内的设备,能够实现自由的跨设备多媒体播放。近年来,DLNA技术得到了广泛的发展,越来越多的媒体设备,影音终端或播放平台都支持DLNA。该技术允许设备在网络连接状态下,能够发现拥有其他功能的设备,并查看和分享服务器中的媒体资源至某个播放器中进行播放。DLNA设备的类型主要有DMP(数字媒体播放器),DMR(数字媒体渲染器),DMS(数字媒体服务器)和DMC(数字媒体控制器)。其中,DMS用于存储和管理媒体资源,使得其他设备可以通过网络方便地获取到媒体内容;DMC设备中包含DLNA Control Point(控制点),用于浏览DMS的媒体信息,从DMS上获取到媒体的元数据信息,并通过交互控制推送媒体至DMR播放已经选择的媒体内容;DMR为不具备DMC功能的媒体播放器,DMP为具有DMC功能的媒体播放器。The full name of the Digital Living Network Alliance DLNA is DIGITAL LIVING NETWORK ALLIANCE, which aims to enable devices in the same network domain to realize free cross-device multimedia playback by integrating existing technologies and network protocols. In recent years, DLNA technology has been widely developed, and more and more media devices, audio-visual terminals or playback platforms support DLNA. This technology allows devices to discover devices with other functions when they are connected to the network, and view and share media resources in the server to a player for playback. The types of DLNA devices mainly include DMP (Digital Media Player), DMR (Digital Media Renderer), DMS (Digital Media Server) and DMC (Digital Media Controller). Among them, DMS is used to store and manage media resources, so that other devices can easily obtain media content through the network; DMC device contains DLNA Control Point (control point), which is used to browse the media information of DMS and obtain media content from DMS Metadata information, and push the media to DMR to play the selected media content through interactive control; DMR is a media player without DMC function, and DMP is a media player with DMC function.

在DLNA架构中,并未规定一个网段内允许设备的数量,也就是说,DLNA支持多个DMC同时存在,并且同时访问多个设备。这个特点增强了DLNA的可用性:作为DMS,能够被多个DMC发现,并且能够为多个DMR提供资源;作为DMR,同样能被多个DMC发现,并能够接收这些DMC推送的媒体;作为DMC,能够发现网段内所有的设备,可以访问他们,或者推送媒体资源。但是,当多个DMC同时连接到一个DMR时,由于各个厂商的DMC实现方法不同,有可能在推送过程中产生冲突。例如DMC1与DMC2共同连接到DMR1,DMC1推送一个媒体至DMR1播放,此时通过DMC2发送STOP动作至DMR1,由于DMC1不清楚网段中存在DMC2在控制DMR1,因此DMC1在判断到DMR1播放停止后,可能会继续推送下一个媒体播放,导致DMR1无法停止的问题出现。此时,DMC1与DMC2在控制上便产生了冲突。In the DLNA architecture, the number of devices allowed in a network segment is not specified, that is to say, DLNA supports the simultaneous existence of multiple DMCs and access to multiple devices at the same time. This feature enhances the usability of DLNA: as a DMS, it can be discovered by multiple DMCs and can provide resources for multiple DMRs; as a DMR, it can also be discovered by multiple DMCs and can receive media pushed by these DMCs; as a DMC, It can discover all devices in the network segment, access them, or push media resources. However, when multiple DMCs are connected to one DMR at the same time, conflicts may occur during the push process due to the different DMC implementation methods of various manufacturers. For example, DMC1 and DMC2 are connected to DMR1 together, and DMC1 pushes a media to DMR1 to play. At this time, DMC2 sends a STOP action to DMR1. Since DMC1 does not know that DMC2 is controlling DMR1 in the network segment, after DMC1 judges that DMR1 playback stops, It may continue to push the next media playback, causing the problem that DMR1 cannot stop. At this time, DMC1 and DMC2 have a control conflict.

发明内容Contents of the invention

本发明的第一个目的在于克服现有技术的缺点与不足,提供一种避免多个DMC推送媒体播放产生冲突的方法。本发明通过扩展UPnP协议,提供了一种避免产生控制冲突的方法,该方法允许多个DMC来控制DMR,但同时规定同一时段内,DMC需要通过申请控制权来取得对DMR的播放控制,其他没有控制权的DMC只能获取到DMR状态或参数的变化,而不能对其进行播放控制。本方法发明有效的避免了控制冲突,优化了多个控制设备之间的关系,改变了控制混乱的状况,极大地提升了使用体验。The first purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art, and provide a method for avoiding conflicts caused by multiple DMCs pushing media playback. The present invention provides a method for avoiding control conflicts by extending the UPnP protocol. The method allows multiple DMCs to control the DMR, but at the same time stipulates that within the same period of time, the DMC needs to apply for the control right to obtain the playback control of the DMR. Other A DMC without control rights can only obtain changes in the DMR status or parameters, but cannot control its playback. The invention of the method effectively avoids control conflicts, optimizes the relationship between multiple control devices, changes the situation of control confusion, and greatly improves the user experience.

本发明的另一个目的在于克服现有技术的缺点与不足,提供一种避免多个DMC推送媒体播放产生冲突的装置。Another object of the present invention is to overcome the shortcomings and deficiencies of the prior art, and provide a device for avoiding conflicts caused by multiple DMC push media playback.

本发明的第一个目的通过下述技术方案实现:First purpose of the present invention is achieved through the following technical solutions:

一种避免多个DMC推送媒体播放产生冲突的方法,应用于DLNA家庭娱乐网络中以解决多个DMC同时控制DMR存在控制冲突的问题,包括下列步骤:A kind of method that avoids a plurality of DMCs to push media to play produces conflict, is applied in DLNA home entertainment network to solve the problem that a plurality of DMCs control DMR simultaneously and exists control conflict, comprises the following steps:

S1、根据UPnP通用即插即用协议定义的服务及动作,对原协议内容作分类处理,划分为‘控制动作’和‘非控制动作’,其中控制动作指DMC调用DMR前需要申请控制权的动作,非控制动作指DMC调用DMR前不需要申请控制权的动作,动作表示客户端发出的完成特定功能的命令;S1. According to the services and actions defined in the UPnP Universal Plug and Play protocol, classify the content of the original agreement, and divide it into 'control actions' and 'non-control actions', where control actions refer to those that need to apply for control rights before the DMC invokes the DMR Actions, non-control actions refer to actions that do not need to apply for control rights before the DMC invokes the DMR, and actions represent commands issued by the client to complete specific functions;

S2、DMC加入DLNA网络,并选择一个DMR作为渲染器;S2. The DMC joins the DLNA network, and selects a DMR as a renderer;

S3、DMC向DMR发出任意的动作指令,并判断是否属于控制动作,如果判断属于控制动作,则进入下一步骤S4;S3. The DMC sends an arbitrary action command to the DMR, and judges whether it belongs to a control action. If it is judged to be a control action, proceed to the next step S4;

S4、DMC向DMR发送请求控制权动作X_ControlApplication,该动作定义在AVTransport服务之下,用来向DMR申请控制权;S4. The DMC sends the action X_ControlApplication requesting the control right to the DMR, which is defined under the AVTransport service and used to apply for the control right to the DMR;

S5、DMR接收到请求权申请后根据DMC控制权记录管理协议回复DMC控制权请求;S5. After receiving the request application, the DMR replies to the DMC control request according to the DMC control record management agreement;

S6、DMC收到DMR控制权申请成功的回复后,继续发送控制动作至DMR,完成特定功能的命令。S6. After receiving the reply that the application for the control right of the DMR is successful, the DMC continues to send the control action to the DMR to complete a specific function command.

优选的,所述步骤1中控制动作包括Preferably, the control actions in step 1 include

urn:schemas-upnp-org:service:RenderingControl:1服务中的所有动作和All actions in the urn:schemas-upnp-org:service:RenderingControl:1 service and

urn:schemas-upnp-org:service:AVTransport:1服务中所有‘set’动作,以及‘Stop’、‘Play’,‘Pause’,‘Record’,‘Seek’,‘Next’,‘Previous’动作。All 'set' actions in the urn:schemas-upnp-org:service:AVTransport:1 service, as well as 'Stop', 'Play', 'Pause', 'Record', 'Seek', 'Next', 'Previous' actions .

优选的,所述步骤1中非控制动作包括Preferably, the non-control actions in step 1 include

urn:schemas-upnp-org:service:ConnectionManager:1服务中的所有动作和urn:schemas-upnp-org:service:ConnectionManager:1 for all actions in the service and

urn:schemas-upnp-org:service:AVTransport:1服务中所有‘get’动作。All 'get' actions in the urn:schemas-upnp-org:service:AVTransport:1 service.

优选的,所述步骤S5中DMC控制权记录管理协议具体为:Preferably, the DMC control record management agreement in the step S5 is specifically:

G51、DMR终端建立专有变量,用来记录当前取得控制权的DMC的IP地址;G51. The DMR terminal establishes a dedicated variable to record the IP address of the DMC that currently obtains the control right;

G52、DMR终端接收到请求控制权动作X_ControlApplication后,将动作源DMC的IP地址与专有变量做比较,如果不相同并且申请DMR控制权成功,则更新专有变量的值;G52. After the DMR terminal receives the request control action X_ControlApplication, it compares the IP address of the action source DMC with the proprietary variable. If they are not the same and the application for DMR control is successful, then update the value of the proprietary variable;

G53、DMR终端接收到控制动作,将动作源DMC的IP地址与专有变量做比较,如果相同,则执行该控制动作,否则忽略此控制动作;G53. The DMR terminal receives the control action, compares the IP address of the action source DMC with the proprietary variable, if they are the same, executes the control action, otherwise ignores the control action;

G54、DMR终端接收到非控制动作,直接执行该非控制动作。G54. The DMR terminal receives the non-control action, and directly executes the non-control action.

优选的,所述步骤S2具体为:Preferably, the step S2 is specifically:

S21、DMC加入DLNA网络后首先寻址获取IP地址;S21. After the DMC joins the DLNA network, it first addresses to obtain an IP address;

S22、DMC向DLNA网络上的控制节点告知设备的类型、标志符UUID、提供的服务以及设备描述和服务描述的URL地址;S22. The DMC informs the control node on the DLNA network of the type of device, the identifier UUID, the service provided, and the URL address of the device description and service description;

S23、DLNA网络控制点得到设备描述和服务描述的URL,通过URL取回设备描述和服务描述的信息;S23. The DLNA network control point obtains the URL of the device description and the service description, and retrieves the information of the device description and the service description through the URL;

S24、DMC向DMR设备服务发出动作请求。S24. The DMC sends an action request to the DMR device service.

优选的,所述步骤S3中DMC向DMR发出的动作指令如果判断属于非控制动作,则可直接向DMR发送该动作指令而无需申请DMR控制权。Preferably, if the action instruction sent by the DMC to the DMR in step S3 is determined to be a non-control action, the action instruction can be directly sent to the DMR without applying for the DMR control right.

优选的,所述步骤S4中DMC向DMR发起申请控制权是存在UI用户交互的情形时,即用户主动通过DMC向DMR发出动作指令时需要申请控制权,而DMC自动向DMR发出动作指令时不需要申请控制权。Preferably, in the step S4, the DMC initiates an application for the control right to the DMR when there is UI user interaction, that is, when the user actively sends an action command to the DMR through the DMC, it needs to apply for the control right, and when the DMC automatically sends an action command to the DMR, it does not need to apply for the control right. Need to apply for control.

本发明的另一个目的通过以下技术方案实现:Another object of the present invention is achieved through the following technical solutions:

一种避免多个DMC推送媒体播放产生冲突的装置,应用于DLNA家庭娱乐网络中以解决多个DMC同时控制DMR存在控制冲突的问题,包括下列单元:A device for preventing multiple DMCs from pushing media to play conflicts, which is applied to a DLNA home entertainment network to solve the problem of multiple DMCs simultaneously controlling DMRs and having control conflicts, including the following units:

UPnP协议内容分类处理单元,该单元根据UPnP通用即插即用协议定义的服务及动作,对原协议内容作分类处理,划分为‘控制动作’和‘非控制动作’,其中控制动作指DMC调用DMR前需要申请控制权的动作,非控制动作指DMC调用DMR前不需要申请控制权的动作,动作表示客户端发出的完成特定功能的命令;UPnP protocol content classification processing unit, which classifies the original protocol content according to the services and actions defined by the UPnP Universal Plug and Play protocol, and divides them into 'control actions' and 'non-control actions', where control actions refer to DMC calls Actions that need to apply for control rights before DMR. Non-control actions refer to actions that do not need to apply for control rights before DMC invokes DMR. Actions represent commands issued by the client to complete specific functions;

DMC初始化单元,该单元用于DMC加入DLNA网络的初始化,并选择一个DMR作为渲染器;DMC initialization unit, this unit is used for DMC to join the initialization of DLNA network, and selects a DMR as the renderer;

DMC动作指令判断单元,该单元用于DMC向DMR发出任意的动作指令,并判断是否属于控制动作,如果判断属于控制动作,则转至DMR控制权请求单元;DMC action command judging unit, which is used for DMC to send any action command to DMR, and judge whether it belongs to control action, if it is judged to belong to control action, then transfer to DMR control right request unit;

DMR控制权请求单元,该单元用于DMC向DMR发送请求控制权动作X_ControlApplication,该动作定义在AVTransport服务之下,用来向DMR申请控制权;DMR control right request unit, this unit is used for DMC to send request control right action X_ControlApplication to DMR, this action is defined under AVTransport service, used to apply for control right to DMR;

控制权记录管理协议单元,该单元用于DMR接收到请求权申请后根据控制权记录管理协议回复DMC控制权请求;Control right record management protocol unit, which is used for DMR to reply DMC control right request according to the control right record management protocol after receiving the request right application;

DMC控制动作发送单元,该单元用于DMC收到DMR控制权申请成功的回复后,继续发送控制动作至DMR,完成特定功能的命令。The DMC control action sending unit is used for the DMC to continue to send the control action to the DMR after receiving the reply of the successful application of the DMR control right to complete the command of the specific function.

优选的,所述UPnP协议内容分类处理单元中控制动作包括Preferably, the control actions in the UPnP protocol content classification processing unit include

urn:schemas-upnp-org:service:RenderingControl:1服务中的所有动作和All actions in the urn:schemas-upnp-org:service:RenderingControl:1 service and

urn:schemas-upnp-org:service:AVTransport:1服务中所有‘set’动作,以及‘Stop’、‘Play’,‘Pause’,‘Record’,‘Seek’,‘Next’,‘Previous’动作。All 'set' actions in the urn:schemas-upnp-org:service:AVTransport:1 service, as well as 'Stop', 'Play', 'Pause', 'Record', 'Seek', 'Next', 'Previous' actions .

优选的,所述UPnP协议内容分类处理单元中非控制动作包括Preferably, the non-control actions in the UPnP protocol content classification processing unit include

urn:schemas-upnp-org:service:ConnectionManager:1服务中的所有动作和urn:schemas-upnp-org:service:ConnectionManager:1 for all actions in the service and

urn:schemas-upnp-org:service:AVTransport:1服务中所有‘get’动作。All 'get' actions in the urn:schemas-upnp-org:service:AVTransport:1 service.

优选的,所述控制权记录管理协议单元中包括下列模块:Preferably, the control rights record management protocol unit includes the following modules:

专有变量建立模块,该模块用于DMR终端建立专有变量,用来记录当前取得控制权的DMC的IP地址;A proprietary variable establishment module, which is used for the DMR terminal to establish a proprietary variable, which is used to record the IP address of the DMC that currently obtains the control right;

专有变量更新模块,该模块用于在DMR终端接收到请求控制权动作X_ControlApplication后,将动作源DMC的IP地址与专有变量做比较,如果不相同并且申请DMR控制权成功,则更新专有变量的值;Proprietary variable update module, this module is used to compare the IP address of the action source DMC with the proprietary variable after the DMR terminal receives the request control action X_ControlApplication, if they are not the same and the application for DMR control is successful, then update the proprietary variable the value of the variable;

动作源IP地址校验模块,该模块用于在DMR终端接收到控制动作后,将动作源DMC的IP地址与专有变量做比较,如果相同,则执行该控制动作,否则忽略此控制动作;An action source IP address verification module, which is used to compare the IP address of the action source DMC with the proprietary variable after the DMR terminal receives the control action, and if they are the same, execute the control action, otherwise ignore the control action;

非控制动作执行模块,该模块用于DMR终端在接收到非控制动作,直接执行该非控制动作。The non-control action execution module is used for the DMR terminal to directly execute the non-control action after receiving the non-control action.

优选的,所述DMC初始化单元包括下列模块:Preferably, the DMC initialization unit includes the following modules:

寻址模块,该模块用于DMC加入DLNA网络后首先寻址获取IP地址;Addressing module, which is used for DMC to first address and obtain an IP address after joining the DLNA network;

发现模块,该模块用于DMC向DLNA网络上的控制节点告知设备的类型、标志符UUID、提供的服务以及设备描述和服务描述的URL地址;A discovery module, which is used for the DMC to inform the control node on the DLNA network of the type of device, the identifier UUID, the service provided, and the URL address of the device description and service description;

描述模块,该模块用于DLNA网络控制点得到设备描述和服务描述的URL,通过URL取回设备描述和服务描述的信息;A description module, which is used for the DLNA network control point to obtain the URL of the device description and service description, and retrieve the information of the device description and service description through the URL;

控制模块,该模块用于DMC向DMR设备服务发出动作请求。The control module is used for the DMC to send an action request to the DMR device service.

优选的,所述DMC动作指令判断单元中DMC向DMR发出的动作指令如果判断属于非控制动作,则可直接向DMR发送该动作指令而无需申请DMR控制权。Preferably, in the DMC action command judging unit, if the action command issued by the DMC to the DMR is judged to be a non-control action, the action command can be directly sent to the DMR without applying for the DMR control right.

优选的,所述DMR控制权请求单元中DMC向DMR发起申请控制权是存在UI用户交互的情形时,即用户主动通过DMC向DMR发出动作指令时需要申请控制权,而DMC自动向DMR发出动作指令时不需要申请控制权。Preferably, in the DMR control right requesting unit, the DMC initiates an application for the control right to the DMR when there is UI user interaction, that is, when the user actively sends an action instruction to the DMR through the DMC, it needs to apply for the control right, and the DMC automatically sends an action to the DMR There is no need to apply for control rights when ordering.

本发明相对于现有技术具有如下的优点及效果:Compared with the prior art, the present invention has the following advantages and effects:

1、本发明通过规定DMC需要通过申请控制权来取得对DMR的播放控制,其他没有控制权的DMC只能获取到DMR状态或参数的变化,不能对其进行播放控制,有效的避免了控制冲突,优化了多个控制设备之间的关系,改变了控制混乱的状况,极大地提升了使用体验。1. The present invention stipulates that the DMC needs to apply for the control right to obtain the playback control of the DMR. Other DMCs without the control right can only obtain the changes of the DMR status or parameters, and cannot perform playback control on it, effectively avoiding control conflicts , optimized the relationship between multiple control devices, changed the situation of control confusion, and greatly improved the user experience.

2、本方法发明完全基于DLNA和UPnP协议,具有很好的兼容性。2. The method invention is completely based on DLNA and UPnP protocols, and has good compatibility.

3、本方法发明同时扩展了UPnP协议,具备简单易实现的特点。3. The invention of the method expands the UPnP protocol at the same time, and has the characteristics of being simple and easy to implement.

附图说明Description of drawings

图1是本实施例一中一种避免多个DMC推送媒体播放产生冲突的方法流程图;Fig. 1 is a kind of flow chart of the method for avoiding that a plurality of DMCs pushes media playing to produce conflict in the present embodiment one;

图2是本实施例一中DMC加入DLNA网络后工作流程图;Fig. 2 is the work flowchart after DMC joins DLNA network in the present embodiment one;

图3是本实施例二中一种避免多个DMC推送媒体播放产生冲突的装置结构图。FIG. 3 is a structural diagram of a device for avoiding conflicts caused by playing media pushed by multiple DMCs in the second embodiment.

具体实施方式detailed description

为使本发明的目的、技术方案及优点更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention more clear and definite, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

实施例一Embodiment one

请参见图1,图1是本发明中避免多个DMC推送媒体播放产生冲突的方法流程图。图1所示的避免多个DMC推送媒体播放产生冲突的方法,应用于DLNA家庭娱乐网络中以解决多个DMC同时控制DMR存在控制冲突的问题,具体包括下列步骤:Please refer to FIG. 1 . FIG. 1 is a flowchart of a method for avoiding conflicts caused by multiple DMCs pushing media playback in the present invention. The method shown in Fig. 1 avoids that a plurality of DMCs pushes media to play and produces conflict, is applied in DLNA home entertainment network to solve the problem that a plurality of DMCs control DMR simultaneously and there is control conflict, specifically comprises the following steps:

●步骤S1、根据UPnP通用即插即用协议定义的服务及动作,对原协议内容作分类处理,划分为‘控制动作’和‘非控制动作’,其中控制动作指DMC调用DMR前需要申请控制权的动作,非控制动作指DMC调用DMR前不需要申请控制权的动作,动作表示客户端发出的完成特定功能的命令。●Step S1, according to the services and actions defined by the UPnP Universal Plug and Play protocol, classify and process the original protocol content, and divide it into 'control actions' and 'non-control actions', where the control action refers to the need to apply for control before the DMC invokes the DMR The non-control action refers to the action that does not need to apply for the control right before the DMC calls the DMR, and the action indicates the command sent by the client to complete a specific function.

首先需要定义“控制动作”和“非控制动作”的范畴,DMC在向DMR发送“控制动作”前,需要先向DMR申请控制权,而发送“非控制动作”前则无需申请或拥有控制权,直接执行该动作即可。First of all, it is necessary to define the categories of "control action" and "non-control action". Before sending "control action" to DMR, DMC needs to apply to DMR for control right, but before sending "non-control action" it does not need to apply for or have control right , just execute the action directly.

“控制动作”包括:"Control actions" include:

1、urn:schemas-upnp-org:service:RenderingControl:1服务中的所有动作;1. All actions in the urn:schemas-upnp-org:service:RenderingControl:1 service;

2、urn:schemas-upnp-org:service:AVTransport:1服务中所有“set”动作,以及“Stop”,“Play”,“Pause”,“Record”,“Seek”,“Next”,“Previous”动作。2. All "set" actions in the urn:schemas-upnp-org:service:AVTransport:1 service, as well as "Stop", "Play", "Pause", "Record", "Seek", "Next", "Previous "action.

“非控制动作”包括:"Non-control actions" include:

1、urn:schemas-upnp-org:service:ConnectionManager:1服务中的所有动作;1. All actions in urn:schemas-upnp-org:service:ConnectionManager:1 service;

2、urn:schemas-upnp-org:service:AVTransport:1服务中所有“get”动作。2. All "get" actions in the urn:schemas-upnp-org:service:AVTransport:1 service.

上述内容为UPnP协议定义的服务及动作,本发明为了明确何时需要申请控制权,对原协议内容作了分类处理,划分为“控制动作”(即调用前需要申请控制权)和“非控制动作”(调用前无需申请控制权),分类方法属于对UPnP协议的扩展,同时也是本发明需要保护的技术点。The above content is the service and action defined by the UPnP protocol. In order to clarify when the application for control right is required, the present invention classifies the content of the original agreement and divides it into "control action" (need to apply for control right before calling) and "non-control action". Action" (no need to apply for control right before calling), the classification method belongs to the extension of the UPnP protocol, and is also a technical point that needs to be protected in the present invention.

其中,UPnP是通用即插即用(Universal Plug and Play)的缩写,主要用于设备的智能互联互通,使用UPnP协议不需要设备驱动程序,它可以运行在目前几乎所有的操作系统平台上,使得在办公室、家庭和其他公共场所方便地构建设备互联互通成为可能。UPnP最大贡献任何设备一旦连接上网络,所有在网络上的设备马上就能知道有新设备加入,这些设备彼此之间能互相通信,更能直接使用或者控制它,一切都不需要人工设置,完全的即插即用。Among them, UPnP is the abbreviation of Universal Plug and Play (Universal Plug and Play), which is mainly used for the intelligent interconnection and intercommunication of devices. The use of UPnP protocol does not require device drivers, and it can run on almost all current operating system platforms, making It is possible to conveniently build device interconnection in offices, homes and other public places. The biggest contribution of UPnP Once any device is connected to the network, all the devices on the network can immediately know that there is a new device added, these devices can communicate with each other, and can be used or controlled directly, all without manual settings, completely plug and play.

●步骤S2、DMC加入DLNA网络,并选择一个DMR作为渲染器;●Step S2, DMC joins the DLNA network, and selects a DMR as a renderer;

在本实施例中DMC加入DLNA网络后还要完成以下流程,如图中DMC加入DLNA网络后工作流程图所示,具体如下:In this embodiment, after the DMC joins the DLNA network, the following processes will be completed, as shown in the work flow chart after the DMC joins the DLNA network in the figure, specifically as follows:

步骤S21、DMC加入DLNA网络后首先寻址获取IP地址;Step S21, after the DMC joins the DLNA network, it first addresses to obtain an IP address;

通常,一台UPnP设备寻址的一般过程是:首先向DHCP服务器发送DHCPDiscover的消息,如果在指定的时间内,设备没有收到DHCP Offer回应消息,设备必须使用AUTO-IP完成IP地址的获取。当然也可以使用静态配置的IP地址。Usually, the general process of addressing a UPnP device is: firstly send a DHCPDiscover message to the DHCP server, if the device does not receive a DHCP Offer response message within the specified time, the device must use AUTO-IP to complete the acquisition of the IP address. Of course, you can also use a statically configured IP address.

步骤S22、DMC向DLNA网络上的控制节点告知设备的类型、标志符UUID、提供的服务以及设备描述和服务描述的URL地址;Step S22, the DMC informs the control node on the DLNA network of the type of device, the identifier UUID, the service provided, and the URL address of the device description and service description;

连接到网络上的DMC设备确定了IP地址之后,就会进入发现操作阶段。设备发现是UPnP实现的第一步。设备发现是由简单发现协议SSDP来完成的。当一台设备加入到网络中,发现过程允许设备向网络上的控制节点告知它提供的服务,当一个控制点加入到网络中,设备发现过程允许控制点寻找网络上感兴趣的设备。在这两种情况下,基本的交换信息就是发现消息。发现消息包括设备的一些特定信息或者某项服务的信息,例如它的类型、标志符UUID(Universally Unique Identifier)等等。After the DMC device connected to the network determines the IP address, it will enter the discovery operation stage. Device discovery is the first step in UPnP implementation. Device discovery is accomplished by the Simple Discovery Protocol SSDP. When a device joins the network, the discovery process allows the device to inform the control node on the network of the services it provides. When a control point joins the network, the device discovery process allows the control point to find devices of interest on the network. In both cases, the basic information exchanged is the discovery message. The discovery message includes some specific information of the device or information of a certain service, such as its type, UUID (Universally Unique Identifier) and so on.

步骤S23、DLNA网络控制点得到设备描述和服务描述的URL,通过URL取回设备描述和服务描述的信息;Step S23, the DLNA network control point obtains the URL of the device description and the service description, and retrieves the information of the device description and the service description through the URL;

在控制点发现一台设备后,控制点对该设备可能仅仅知道设备或者服务的UPnP类型,设备的UUID和设备描述的URL地址,还需要知道更多的信息。控制点可以从发现消息中得到设备描述的URL,通过URL取回设备描述和服务描述的信息。After the control point discovers a device, the control point may only know the UPnP type of the device or service, the UUID of the device, and the URL address of the device description, and needs to know more information. The control point can obtain the URL of the device description from the discovery message, and retrieve the information of the device description and service description through the URL.

其中,设备描述是UPnP对某一设备的描述,以XML形式来表示,设备描述包括制造商信息、模块名称和编号、序列号等等。对于一个物理设备可以包含多个逻辑设备,多个逻辑设备既可以是一个根设备其中嵌入多个设备,也可以是多个根设备的方式存在。设备描述由设备制造商提供,采用XML描述,遵循UPnP框架协议。Wherein, the device description is a description of a certain device by UPnP, expressed in the form of XML, and the device description includes manufacturer information, module name and number, serial number and so on. A physical device may contain multiple logical devices, and multiple logical devices may be a root device embedded with multiple devices, or exist in the form of multiple root devices. The device description is provided by the device manufacturer, described in XML, and follows the UPnP framework protocol.

服务描述包含一系列内容,具体有服务运行时刻的状态,运行时间等等。服务描述也由设备制造商提供,采用XML描述,遵循UPnP框架协议。The service description includes a series of content, specifically the status of the service when it is running, the running time, and so on. The service description is also provided by the device manufacturer, using XML description and following the UPnP framework agreement.

其中,URL是Uniform Resource Location的缩写,译为“统一资源定位符”。形象点说,URL是Internet上用来描述信息资源的字符串,主要用在各种WWW客户程序和服务器程序上,采用URL可以用一种统一的格式来描述各种信息资源,包括文件、服务器的地址和目录等。Among them, URL is the abbreviation of Uniform Resource Location, translated as "Uniform Resource Locator". To put it vividly, URL is a string used to describe information resources on the Internet. It is mainly used in various WWW client programs and server programs. Using URL can describe various information resources in a unified format, including files, servers, etc. address and directory etc.

步骤S24、DMC向DMR设备服务发出动作请求。Step S24, the DMC sends an action request to the DMR device service.

在接收设备和服务描述之后,控制点可以向这些服务发出动作,同时控制点也可以轮询服务的当前状态。控制点将动作发送到设备服务,在动作完成或者失败后,服务返回相应的结果或者错误信息。After receiving device and service descriptions, the control point can issue actions to these services, and the control point can also poll the current status of the services. The control point sends the action to the device service. After the action is completed or fails, the service returns the corresponding result or error message.

为了控制一台设备,控制点向设备服务发出一动作,这一般是由控制点向服务的控制URL地址发送一个适当的控制消息。而服务则会对此动作出响应,返回相关的结果或错误。In order to control a device, the control point sends an action to the device service, which usually involves the control point sending an appropriate control message to the control URL address of the service. The service responds to this action by returning relevant results or errors.

●步骤S3、DMC向DMR发出任意的动作指令,并判断是否属于控制动作,如果判断属于控制动作,则进入下一步骤S4;●Step S3, the DMC sends any action command to the DMR, and judges whether it is a control action, if it is judged to be a control action, then enter the next step S4;

如果DMC向DMR发出的动作指令判断属于非控制动作,则可直接向DMR发送该动作指令而无需申请DMR控制权。If the action command issued by the DMC to the DMR is judged to be a non-control action, it can directly send the action command to the DMR without applying for the DMR control right.

●步骤S4、DMC向DMR发送请求控制权动作X_ControlApplication,该动作定义在AVTransport服务之下,用来向DMR申请控制权。● Step S4, the DMC sends the action X_ControlApplication requesting the control right to the DMR, which is defined under the AVTransport service and used to apply for the control right to the DMR.

DMC向DMR发起申请控制权是存在UI用户交互的情形时,即用户主动通过DMC向DMR发出动作指令时需要申请控制权,而DMC自动向DMR发出动作指令时不需要申请控制权。When the DMC initiates an application for the control right to the DMR, there is UI user interaction, that is, when the user actively sends an action command to the DMR through the DMC, it needs to apply for the control right, but when the DMC automatically sends an action command to the DMR, it does not need to apply for the control right.

●步骤S5、DMR接收到请求权申请后根据DMC控制权记录管理协议回复DMC控制权请求;●Step S5, DMR responds to the DMC control right request according to the DMC control right record management agreement after receiving the request right application;

其中DMC控制权记录管理协议具体为:Among them, the DMC control record management agreement is as follows:

G51、DMR终端建立专有变量,用来记录当前取得控制权的DMC的IP地址;G51. The DMR terminal establishes a dedicated variable to record the IP address of the DMC that currently obtains the control right;

G52、DMR终端接收到请求控制权动作X_ControlApplication后,将动作源DMC的IP地址与专有变量做比较,如果不相同并且申请DMR控制权成功,则更新专有变量的值;G52. After the DMR terminal receives the request control action X_ControlApplication, it compares the IP address of the action source DMC with the proprietary variable. If they are not the same and the application for DMR control is successful, then update the value of the proprietary variable;

G53、DMR终端接收到控制动作,将动作源DMC的IP地址与专有变量做比较,如果相同,则执行该控制动作,否则忽略此控制动作;G53. The DMR terminal receives the control action, compares the IP address of the action source DMC with the proprietary variable, if they are the same, executes the control action, otherwise ignores the control action;

G54、DMR终端接收到非控制动作,直接执行该非控制动作。G54. The DMR terminal receives the non-control action, and directly executes the non-control action.

●步骤S6、DMC收到DMR控制权申请成功的回复后,继续发送控制动作至DMR,完成特定功能的命令。● Step S6. After receiving the reply that the DMR control right application is successful, the DMC continues to send the control action to the DMR to complete the specific function command.

综上所述,本发明通过扩展UPnP协议,提供了一种避免产生控制冲突的方法,同样允许多个DMC来控制DMR,但在同一时段内,DMC需要通过申请控制权来取得对DMR的播放控制,其他没有控制权的DMC只能获取到DMR状态或参数的变化,不能对其进行播放控制。总结,该方法有以下几个原则:To sum up, the present invention provides a method to avoid control conflicts by extending the UPnP protocol, and also allows multiple DMCs to control DMRs, but within the same period of time, DMCs need to apply for control rights to obtain the playback of DMRs Control, other DMCs that do not have control rights can only obtain changes in DMR status or parameters, but cannot control playback. In summary, the method has the following principles:

1.DMC在控制DMR前,需先发送请求向DMR申请控制权;1. Before DMC controls DMR, it needs to send a request to DMR to apply for control;

2.DMR记录申请控制权的DMC的IP地址,且仅执行该IP地址发送的控制动作;2. DMR records the IP address of the DMC applying for control, and only executes the control action sent by the IP address;

3.同一时间,DMR最多记录一台拥有控制权的DMC设备;3. At the same time, DMR can record at most one DMC device with control rights;

4.DMR需过滤掉没有控制权的DMC的控制动作,但可以接收其他状态请求动作。4. DMR needs to filter out the control actions of DMC without control rights, but can receive other status request actions.

实施例二Embodiment two

请参见图3,图3是本实施例中一种避免多个DMC推送媒体播放产生冲突的装置结构图。图3所示的避免多个DMC推送媒体播放产生冲突的装置,应用于DLNA家庭娱乐网络中以解决多个DMC同时控制DMR存在控制冲突的问题。Please refer to FIG. 3 . FIG. 3 is a structure diagram of a device for avoiding conflicts caused by multiple DMCs pushing media playback in this embodiment. The device for avoiding conflicts caused by multiple DMCs pushing media playback shown in FIG. 3 is applied to a DLNA home entertainment network to solve the problem of control conflicts in multiple DMCs simultaneously controlling DMRs.

图3公开的本实施例中的避免多个DMC推送媒体播放产生冲突的装置具体包括以下单元:The device disclosed in Fig. 3 in this embodiment for avoiding conflicts caused by multiple DMC push media playback specifically includes the following units:

1、UPnP协议内容分类处理单元,1. UPnP protocol content classification processing unit,

该单元根据UPnP通用即插即用协议定义的服务及动作,对原协议内容作分类处理,划分为‘控制动作’和‘非控制动作’,其中控制动作指DMC调用DMR前需要申请控制权的动作,非控制动作指DMC调用DMR前不需要申请控制权的动作,动作表示客户端发出的完成特定功能的命令。According to the services and actions defined by the UPnP Universal Plug and Play protocol, this unit classifies the content of the original protocol and divides it into 'control actions' and 'non-control actions', where the control action refers to the need to apply for control rights before the DMC invokes the DMR Actions, non-control actions refer to actions that do not need to apply for control rights before the DMC invokes the DMR, and actions represent commands issued by the client to complete specific functions.

其中,控制动作包括Among them, the control actions include

urn:schemas-upnp-org:service:RenderingControl:1服务中的所有动作和All actions in the urn:schemas-upnp-org:service:RenderingControl:1 service and

urn:schemas-upnp-org:service:AVTransport:1服务中所有‘set’动作,以及‘Stop’、‘Play’,‘Pause’,‘Record’,‘Seek’,‘Next’,‘Previous’动作。All 'set' actions in the urn:schemas-upnp-org:service:AVTransport:1 service, as well as 'Stop', 'Play', 'Pause', 'Record', 'Seek', 'Next', 'Previous' actions .

非控制动作包括Non-control actions include

urn:schemas-upnp-org:service:ConnectionManager:1服务中的所有动作和urn:schemas-upnp-org:service:ConnectionManager:1 for all actions in the service and

urn:schemas-upnp-org:service:AVTransport:1服务中所有‘get’动作。All 'get' actions in the urn:schemas-upnp-org:service:AVTransport:1 service.

2、DMC初始化单元,2. DMC initialization unit,

该单元用于DMC加入DLNA网络的初始化,并选择一个DMR作为渲染器。This unit is used to initialize DMC to join DLNA network, and select a DMR as a renderer.

该DMC初始化单元又包括下列模块:The DMC initialization unit includes the following modules:

寻址模块,该模块用于DMC加入DLNA网络后首先寻址获取IP地址;Addressing module, which is used for DMC to first address and obtain an IP address after joining the DLNA network;

发现模块,该模块用于DMC向DLNA网络上的控制节点告知设备的类型、标志符UUID、提供的服务以及设备描述和服务描述的URL地址;A discovery module, which is used for the DMC to inform the control node on the DLNA network of the type of device, the identifier UUID, the service provided, and the URL address of the device description and service description;

描述模块,该模块用于DLNA网络控制点得到设备描述和服务描述的URL,通过URL取回设备描述和服务描述的信息;A description module, which is used for the DLNA network control point to obtain the URL of the device description and service description, and retrieve the information of the device description and service description through the URL;

控制模块,该模块用于DMC向DMR设备服务发出动作请求。The control module is used for the DMC to send an action request to the DMR device service.

3、DMC动作指令判断单元,3. DMC action command judgment unit,

该单元用于DMC向DMR发出任意的动作指令,并判断是否属于控制动作,如果判断属于控制动作,则转至DMR控制权请求单元。This unit is used for the DMC to issue any action command to the DMR, and judge whether it belongs to a control action, and if it is judged to be a control action, then transfer to the DMR control right request unit.

同时,如果判断属于非控制动作,则可直接向DMR发送该动作指令而无需申请DMR控制权。At the same time, if it is judged to be a non-control action, the action instruction can be directly sent to the DMR without applying for the DMR control right.

4、DMR控制权请求单元,4. DMR control right request unit,

该单元用于DMC向DMR发送请求控制权动作X_ControlApplication,该动作定义在AVTransport服务之下,用来向DMR申请控制权。This unit is used for the DMC to send the request control action X_ControlApplication to the DMR. This action is defined under the AVTransport service and is used to apply for the control right from the DMR.

通常,该单元中DMC向DMR发起申请控制权是存在UI用户交互的情形时,即用户主动通过DMC向DMR发出动作指令时需要申请控制权,而DMC自动向DMR发出动作指令时不需要申请控制权。Usually, the DMC in this unit initiates the application of control rights to the DMR when there is UI user interaction, that is, when the user actively sends an action command to the DMR through the DMC, it needs to apply for the control right, but when the DMC automatically sends an action command to the DMR, it does not need to apply for control right.

5、控制权记录管理协议单元,5. Control right record management protocol unit,

该单元用于DMR接收到请求权申请后根据控制权记录管理协议回复DMC控制权请求。This unit is used for the DMR to reply the DMC control right request according to the control right record management protocol after receiving the request right application.

该控制权记录管理协议单元又具体包括下列模块:The control record management protocol unit specifically includes the following modules:

专有变量建立模块,该模块用于DMR终端建立专有变量,用来记录当前取得控制权的DMC的IP地址;A proprietary variable establishment module, which is used for the DMR terminal to establish a proprietary variable, which is used to record the IP address of the DMC that currently obtains the control right;

专有变量更新模块,该模块用于在DMR终端接收到请求控制权动作X_ControlApplication后,将动作源DMC的IP地址与专有变量做比较,如果不相同并且申请DMR控制权成功,则更新专有变量的值;Proprietary variable update module, this module is used to compare the IP address of the action source DMC with the proprietary variable after the DMR terminal receives the request control action X_ControlApplication, if they are not the same and the application for DMR control is successful, then update the proprietary variable the value of the variable;

动作源IP地址校验模块,该模块用于在DMR终端接收到控制动作后,将动作源DMC的IP地址与专有变量做比较,如果相同,则执行该控制动作,否则忽略此控制动作;An action source IP address verification module, which is used to compare the IP address of the action source DMC with the proprietary variable after the DMR terminal receives the control action, and if they are the same, execute the control action, otherwise ignore the control action;

非控制动作执行模块,该模块用于DMR终端在接收到非控制动作,直接执行该非控制动作。The non-control action execution module is used for the DMR terminal to directly execute the non-control action after receiving the non-control action.

6、DMC控制动作发送单元,该单元用于DMC收到DMR控制权申请成功的回复后,继续发送控制动作至DMR,完成特定功能的命令。6. The DMC control action sending unit, which is used for the DMC to continue to send the control action to the DMR after receiving the reply of the successful application of the DMR control right, so as to complete the command of the specific function.

值得注意的是,上述装置实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各装置和单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that in the above-mentioned device embodiments, the included units and modules are only divided according to functional logic, but are not limited to the above-mentioned divisions, as long as the corresponding functions can be realized; in addition, each device and unit The specific names are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present invention.

上述实施例为本发明较佳的实施方式,但本发明的实施方式并不受上述实施例的限制,其他的任何未背离本发明的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本发明的保护范围之内。The above-mentioned embodiment is a preferred embodiment of the present invention, but the embodiment of the present invention is not limited by the above-mentioned embodiment, and any other changes, modifications, substitutions, combinations, Simplifications should be equivalent replacement methods, and all are included in the protection scope of the present invention.

Claims (14)

1.一种避免多个DMC推送媒体播放产生冲突的方法,应用于DLNA家庭娱乐网络中以解决多个DMC同时控制DMR存在控制冲突的问题,其特征在于,包括下列步骤:1. A method for avoiding a plurality of DMCs to push media playback to produce conflicts, applied to a DLNA home entertainment network to solve the problem that a plurality of DMCs control DMRs simultaneously and have control conflicts, it is characterized in that, comprising the following steps: S1、根据UPnP通用即插即用协议定义的服务及动作,对原协议内容作分类处理,划分为‘控制动作’和‘非控制动作’,其中控制动作指DMC调用DMR前需要申请控制权的动作,非控制动作指DMC调用DMR前不需要申请控制权的动作,动作表示客户端发出的完成特定功能的命令;S1. According to the services and actions defined in the UPnP Universal Plug and Play protocol, classify the content of the original agreement, and divide it into 'control actions' and 'non-control actions', where control actions refer to those that need to apply for control rights before the DMC invokes the DMR Actions, non-control actions refer to actions that do not need to apply for control rights before the DMC invokes the DMR, and actions represent commands issued by the client to complete specific functions; S2、DMC加入DLNA网络,并选择一个DMR作为渲染器;S2. The DMC joins the DLNA network, and selects a DMR as a renderer; S3、DMC向DMR发出任意的动作指令,并判断是否属于控制动作,如果判断属于控制动作,则进入下一步骤S4;S3. The DMC sends an arbitrary action command to the DMR, and judges whether it belongs to a control action. If it is judged to be a control action, proceed to the next step S4; S4、DMC向DMR发送请求控制权动作X_ControlApplication,该动作定义在AVTransport服务之下,用来向DMR申请控制权;S4. The DMC sends the action X_ControlApplication requesting the control right to the DMR, which is defined under the AVTransport service and used to apply for the control right to the DMR; S5、DMR接收到请求权申请后根据DMC控制权记录管理协议回复DMC控制权请求;S5. After receiving the request application, the DMR replies to the DMC control request according to the DMC control record management agreement; S6、DMC收到DMR控制权申请成功的回复后,继续发送控制动作至DMR,完成特定功能的命令。S6. After receiving the reply that the application for the control right of the DMR is successful, the DMC continues to send the control action to the DMR to complete a specific function command. 2.根据权利要求1所述的一种避免多个DMC推送媒体播放产生冲突的方法,其特征在于:所述步骤1中控制动作包括2. A method for avoiding a plurality of DMC push media playback conflicts according to claim 1, characterized in that: the control actions in the step 1 include urn:schemas-upnp-org:service:RenderingControl:1服务中的所有动作和All actions in the urn:schemas-upnp-org:service:RenderingControl:1 service and urn:schemas-upnp-org:service:AVTransport:1服务中所有‘set’动作,以及‘Stop’、‘Play’,‘Pause’,‘Record’,‘Seek’,‘Next’,‘Previous’动作。All 'set' actions in the urn:schemas-upnp-org:service:AVTransport:1 service, as well as 'Stop', 'Play', 'Pause', 'Record', 'Seek', 'Next', 'Previous' actions . 3.根据权利要求1所述的一种避免多个DMC推送媒体播放产生冲突的方法,其特征在于:所述步骤1中非控制动作包括3. A method for avoiding multiple DMC push media playback conflicts according to claim 1, characterized in that: non-control actions in the step 1 include urn:schemas-upnp-org:service:ConnectionManager:1服务中的所有动作和urn:schemas-upnp-org:service:ConnectionManager:1 for all actions in the service and urn:schemas-upnp-org:service:AVTransport:1服务中所有‘get’动作。All 'get' actions in the urn:schemas-upnp-org:service:AVTransport:1 service. 4.根据权利要求1至3任一所述的一种避免多个DMC推送媒体播放产生冲突的方法,其特征在于,所述步骤S5中DMC控制权记录管理协议具体为:4. according to claim 1 to 3 arbitrary described a kind of method that avoids that a plurality of DMCs push media to play and produce conflict, it is characterized in that, in the described step S5, the DMC control record management protocol is specifically: G51、DMR终端建立专有变量,用来记录当前取得控制权的DMC的IP地址;G51. The DMR terminal establishes a dedicated variable to record the IP address of the DMC that currently obtains the control right; G52、DMR终端接收到请求控制权动作X_ControlApplication后,将动作源DMC的IP地址与专有变量做比较,如果不相同并且申请DMR控制权成功,则更新专有变量的值;G52. After the DMR terminal receives the request control action X_ControlApplication, it compares the IP address of the action source DMC with the proprietary variable. If they are not the same and the application for DMR control is successful, then update the value of the proprietary variable; G53、DMR终端接收到控制动作,将动作源DMC的IP地址与专有变量做比较,如果相同,则执行该控制动作,否则忽略此控制动作;G53. The DMR terminal receives the control action, compares the IP address of the action source DMC with the proprietary variable, if they are the same, executes the control action, otherwise ignores the control action; G54、DMR终端接收到非控制动作,直接执行该非控制动作。G54. The DMR terminal receives the non-control action, and directly executes the non-control action. 5.根据权利要求1至3任一所述的一种避免多个DMC推送媒体播放产生冲突的方法,其特征在于,所述步骤S2具体为:5. according to claim 1 to 3 arbitrary described a kind of method that avoids that a plurality of DMC pushes media to play and produces conflict, it is characterized in that, described step S2 is specifically: S21、DMC加入DLNA网络后首先寻址获取IP地址;S21. After the DMC joins the DLNA network, it first addresses to obtain an IP address; S22、DMC向DLNA网络上的控制节点告知设备的类型、标志符UUID、提供的服务以及设备描述和服务描述的URL地址;S22. The DMC informs the control node on the DLNA network of the type of device, the identifier UUID, the service provided, and the URL address of the device description and service description; S23、DLNA网络控制点得到设备描述和服务描述的URL,通过URL取回设备描述和服务描述的信息;S23. The DLNA network control point obtains the URL of the device description and the service description, and retrieves the information of the device description and the service description through the URL; S24、DMC向DMR设备服务发出动作请求。S24. The DMC sends an action request to the DMR device service. 6.根据权利要求1至3任一所述的的一种避免多个DMC推送媒体播放产生冲突的方法,其特征在于:6. according to a kind of method described in any one of claims 1 to 3 to avoid a plurality of DMC pushing media playing conflicts, it is characterized in that: 所述步骤S3中DMC向DMR发出的动作指令如果判断属于非控制动作,则可直接向DMR发送该动作指令而无需申请DMR控制权。If the action instruction sent by the DMC to the DMR in step S3 is determined to be a non-control action, the action instruction can be directly sent to the DMR without applying for the DMR control right. 7.根据权利要求1至3任一所述的一种避免多个DMC推送媒体播放产生冲突的方法,其特征在于:7. according to claim 1 to 3 arbitrary described a kind of method that avoids that a plurality of DMC pushes media playing and produces conflict, it is characterized in that: 所述步骤S4中DMC向DMR发起申请控制权是存在UI用户交互的情形时,即用户主动通过DMC向DMR发出动作指令时需要申请控制权,而DMC自动向DMR发出动作指令时不需要申请控制权。In the step S4, the DMC initiates an application for the control right to the DMR when there is UI user interaction, that is, the user needs to apply for the control right when actively sending an action command to the DMR through the DMC, and does not need to apply for control when the DMC automatically sends an action command to the DMR right. 8.一种避免多个DMC推送媒体播放产生冲突的装置,应用于DLNA家庭娱乐网络中以解决多个DMC同时控制DMR存在控制冲突的问题,其特征在于,包括下列单元:8. A device for avoiding a plurality of DMCs pushing media to play conflicts is applied to a DLNA home entertainment network to solve the problem that a plurality of DMCs control DMR simultaneously and there is a control conflict, it is characterized in that, comprising the following units: UPnP协议内容分类处理单元,该单元根据UPnP通用即插即用协议定义的服务及动作,对原协议内容作分类处理,划分为‘控制动作’和‘非控制动作’,其中控制动作指DMC调用DMR前需要申请控制权的动作,非控制动作指DMC调用DMR前不需要申请控制权的动作,动作表示客户端发出的完成特定功能的命令;UPnP protocol content classification processing unit, which classifies the original protocol content according to the services and actions defined by the UPnP Universal Plug and Play protocol, and divides them into 'control actions' and 'non-control actions', where control actions refer to DMC calls Actions that need to apply for control rights before DMR. Non-control actions refer to actions that do not need to apply for control rights before DMC invokes DMR. Actions represent commands issued by the client to complete specific functions; DMC初始化单元,该单元用于DMC加入DLNA网络的初始化,并选择一个DMR作为渲染器;DMC initialization unit, this unit is used for DMC to join the initialization of DLNA network, and selects a DMR as the renderer; DMC动作指令判断单元,该单元用于DMC向DMR发出任意的动作指令,并判断是否属于控制动作,如果判断属于控制动作,则转至DMR控制权请求单元;DMC action command judging unit, which is used for DMC to send any action command to DMR, and judge whether it belongs to control action, if it is judged to belong to control action, then transfer to DMR control right request unit; DMR控制权请求单元,该单元用于DMC向DMR发送请求控制权动作X_ControlApplication,该动作定义在AVTransport服务之下,用来向DMR申请控制权;DMR control right request unit, this unit is used for DMC to send request control right action X_ControlApplication to DMR, this action is defined under AVTransport service, used to apply for control right to DMR; 控制权记录管理协议单元,该单元用于DMR接收到请求权申请后根据控制权记录管理协议回复DMC控制权请求;Control right record management protocol unit, which is used for DMR to reply DMC control right request according to the control right record management protocol after receiving the request right application; DMC控制动作发送单元,该单元用于DMC收到DMR控制权申请成功的回复后,继续发送控制动作至DMR,完成特定功能的命令。The DMC control action sending unit is used for the DMC to continue to send the control action to the DMR after receiving the reply of the successful application of the DMR control right to complete the command of the specific function. 9.根据权利要求8所述的一种避免多个DMC推送媒体播放产生冲突的装置,其特征在于:所述UPnP协议内容分类处理单元中控制动作包括9. A kind of device that avoids that a plurality of DMCs pushes media playing to produce conflict according to claim 8, it is characterized in that: in the described UPnP agreement content classification processing unit, control action comprises urn:schemas-upnp-org:service:RenderingControl:1服务中的所有动作和All actions in the urn:schemas-upnp-org:service:RenderingControl:1 service and urn:schemas-upnp-org:service:AVTransport:1服务中所有‘set’动作,以及‘Stop’、‘Play’,‘Pause’,‘Record’,‘Seek’,‘Next’,‘Previous’动作。All 'set' actions in the urn:schemas-upnp-org:service:AVTransport:1 service, as well as 'Stop', 'Play', 'Pause', 'Record', 'Seek', 'Next', 'Previous' actions . 10.根据权利要求8所述的一种避免多个DMC推送媒体播放产生冲突的装置,其特征在于:所述UPnP协议内容分类处理单元中非控制动作包括10. A kind of device that avoids that a plurality of DMCs pushes media playing to produce conflict according to claim 8, is characterized in that: the non-control action in the described UPnP protocol content classification processing unit comprises urn:schemas-upnp-org:service:ConnectionManager:1服务中的所有动作和urn:schemas-upnp-org:service:ConnectionManager:1 for all actions in the service and urn:schemas-upnp-org:service:AVTransport:1服务中所有‘get’动作。All 'get' actions in the urn:schemas-upnp-org:service:AVTransport:1 service. 11.根据权利要求8至10任一所述的一种避免多个DMC推送媒体播放产生冲突的装置,其特征在于,所述控制权记录管理协议单元中包括下列模块:11. A kind of device according to any one of claims 8 to 10 for avoiding a plurality of DMC push media playback conflicts, characterized in that, the control rights record management protocol unit includes the following modules: 专有变量建立模块,该模块用于DMR终端建立专有变量,用来记录当前取得控制权的DMC的IP地址;A proprietary variable establishment module, which is used for the DMR terminal to establish a proprietary variable, which is used to record the IP address of the DMC that currently obtains the control right; 专有变量更新模块,该模块用于在DMR终端接收到请求控制权动作X_ControlApplication后,将动作源DMC的IP地址与专有变量做比较,如果不相同并且申请DMR控制权成功,则更新专有变量的值;Proprietary variable update module, this module is used to compare the IP address of the action source DMC with the proprietary variable after the DMR terminal receives the request control action X_ControlApplication, if they are not the same and the application for DMR control is successful, then update the proprietary variable the value of the variable; 动作源IP地址校验模块,该模块用于在DMR终端接收到控制动作后,将动作源DMC的IP地址与专有变量做比较,如果相同,则执行该控制动作,否则忽略此控制动作;An action source IP address verification module, which is used to compare the IP address of the action source DMC with the proprietary variable after the DMR terminal receives the control action, and if they are the same, execute the control action, otherwise ignore the control action; 非控制动作执行模块,该模块用于DMR终端在接收到非控制动作,直接执行该非控制动作。The non-control action execution module is used for the DMR terminal to directly execute the non-control action after receiving the non-control action. 12.根据权利要求8至10任一所述的一种避免多个DMC推送媒体播放产生冲突的装置,其特征在于,所述DMC初始化单元包括下列模块:12. A kind of device according to any one of claims 8 to 10 avoiding a plurality of DMC pushing media playback conflicts, characterized in that, the DMC initialization unit comprises the following modules: 寻址模块,该模块用于DMC加入DLNA网络后首先寻址获取IP地址;Addressing module, which is used for DMC to first address and obtain an IP address after joining the DLNA network; 发现模块,该模块用于DMC向DLNA网络上的控制节点告知设备的类型、标志符UUID、提供的服务以及设备描述和服务描述的URL地址;A discovery module, which is used for the DMC to inform the control node on the DLNA network of the type of device, the identifier UUID, the service provided, and the URL address of the device description and service description; 描述模块,该模块用于DLNA网络控制点得到设备描述和服务描述的URL,通过URL取回设备描述和服务描述的信息;A description module, which is used for the DLNA network control point to obtain the URL of the device description and service description, and retrieve the information of the device description and service description through the URL; 控制模块,该模块用于DMC向DMR设备服务发出动作请求。The control module is used for the DMC to send an action request to the DMR device service. 13.根据权利要求8至10任一所述的一种避免多个DMC推送媒体播放产生冲突的装置,其特征在于:13. according to a kind of device described in any one of claims 8 to 10 avoiding that a plurality of DMCs push media playback to produce conflict, it is characterized in that: 所述DMC动作指令判断单元中DMC向DMR发出的动作指令如果判断属于非控制动作,则可直接向DMR发送该动作指令而无需申请DMR控制权。In the DMC action command judging unit, if the action command issued by the DMC to the DMR is judged to be a non-control action, the action command can be directly sent to the DMR without applying for the DMR control right. 14.根据权利要求8至10任一所述的一种避免多个DMC推送媒体播放产生冲突的装置,其特征在于:14. according to a kind of device described in any one of claims 8 to 10 avoiding that a plurality of DMCs push media playback to produce conflict, it is characterized in that: 所述DMR控制权请求单元中DMC向DMR发起申请控制权是存在UI用户交互的情形时,即用户主动通过DMC向DMR发出动作指令时需要申请控制权,而DMC自动向DMR发出动作指令时不需要申请控制权。In the DMR control right request unit, the DMC initiates an application for the control right to the DMR when there is UI user interaction, that is, when the user actively sends an action command to the DMR through the DMC, it needs to apply for the control right, but when the DMC automatically sends an action command to the DMR, it does not need to apply for the control right. Need to apply for control.
CN201410494467.6A 2014-09-24 2014-09-24 A method and device for avoiding conflicts caused by multiple DMC push media playback Active CN104320718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410494467.6A CN104320718B (en) 2014-09-24 2014-09-24 A method and device for avoiding conflicts caused by multiple DMC push media playback

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410494467.6A CN104320718B (en) 2014-09-24 2014-09-24 A method and device for avoiding conflicts caused by multiple DMC push media playback

Publications (2)

Publication Number Publication Date
CN104320718A true CN104320718A (en) 2015-01-28
CN104320718B CN104320718B (en) 2017-07-25

Family

ID=52375875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410494467.6A Active CN104320718B (en) 2014-09-24 2014-09-24 A method and device for avoiding conflicts caused by multiple DMC push media playback

Country Status (1)

Country Link
CN (1) CN104320718B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105206292A (en) * 2015-09-11 2015-12-30 广东欧珀移动通信有限公司 Multi-control-side control response method and device for play side
CN107277132A (en) * 2017-06-15 2017-10-20 深圳Tcl新技术有限公司 DLNA push processing method, multimedia reception end and storage medium
CN110784770A (en) * 2018-07-31 2020-02-11 佳能株式会社 Communication apparatus, control method of communication apparatus, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355470A (en) * 2007-07-26 2009-01-28 华为技术有限公司 System, method and device for realizing business continuity in home network environment
US20120036221A1 (en) * 2010-08-03 2012-02-09 Canon Kabushiki Kaisha Transmission apparatus, transmission method, and transmission system
CN102446529A (en) * 2010-09-13 2012-05-09 索尼公司 Signal processing apparatus and signal processing method
CN102667885A (en) * 2009-09-30 2012-09-12 法国电信 Method and device for remote control via UPnP service
CN103457925A (en) * 2012-05-28 2013-12-18 正文科技股份有限公司 Presenter, controller and management method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355470A (en) * 2007-07-26 2009-01-28 华为技术有限公司 System, method and device for realizing business continuity in home network environment
CN102667885A (en) * 2009-09-30 2012-09-12 法国电信 Method and device for remote control via UPnP service
US20120036221A1 (en) * 2010-08-03 2012-02-09 Canon Kabushiki Kaisha Transmission apparatus, transmission method, and transmission system
CN102446529A (en) * 2010-09-13 2012-05-09 索尼公司 Signal processing apparatus and signal processing method
CN103457925A (en) * 2012-05-28 2013-12-18 正文科技股份有限公司 Presenter, controller and management method thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105206292A (en) * 2015-09-11 2015-12-30 广东欧珀移动通信有限公司 Multi-control-side control response method and device for play side
CN107277132A (en) * 2017-06-15 2017-10-20 深圳Tcl新技术有限公司 DLNA push processing method, multimedia reception end and storage medium
CN107277132B (en) * 2017-06-15 2021-07-06 深圳Tcl新技术有限公司 DLNA (digital Living network alliance) pushing processing method, multimedia receiving end and storage medium
CN110784770A (en) * 2018-07-31 2020-02-11 佳能株式会社 Communication apparatus, control method of communication apparatus, and storage medium

Also Published As

Publication number Publication date
CN104320718B (en) 2017-07-25

Similar Documents

Publication Publication Date Title
CN103312573B (en) A kind of domestic network system equipment finds and recognition methods
US7292859B2 (en) Apparatus and method for managing device information through networks
CN101521575B (en) Method, control point, equipment and communication system for collocating accessing authority
US7797417B2 (en) Method for providing service in IP-based network system
CN1825823B (en) Service framework for home network
KR20010073003A (en) Bridging multiple home network software architectures
CN101094243A (en) Multimedia adaptation system and method of adaptating multimedia content for different types of devices base on UPnP
CN101212384A (en) Method, system and equipment for realizing home network interconnection
US20090160626A1 (en) Method for Setting Home Code in Network System and Device for Network
WO2002009350A2 (en) Server-based multi-standard home network bridging
CN102763373A (en) Method and apparatus for using service of home network device based on remote access
CN101867508B (en) Method, system and device for realizing home network interconnection
CN105991377A (en) Discovery and communication method between universal plug and play (UPnP) devices
CN104320718B (en) A method and device for avoiding conflicts caused by multiple DMC push media playback
CN115486038B (en) Internet of things configuration method, internet of things configuration device, computer equipment and storage medium
US8176343B2 (en) Method for providing information for power management of devices on a network
US10404485B2 (en) Method and apparatus for restricting disclosure of network information during remote access service
CN117917048A (en) Method, device, equipment and storage medium for configuring bridging equipment
KR100371166B1 (en) Home network connection apparartus and control method thereof
CN102006266A (en) Method for configuring service quality parameter, remote access server and system
KR101329668B1 (en) Contents sharing system and method using push server
KR101732189B1 (en) Method and apparatus for providing service of external network to home network device
KR20040055446A (en) Control point and cognition method among control points
KR100455123B1 (en) Control message multicasting method and apparatus for universal plug and play network system
CN105323125A (en) Cross-family network processing method, HTTP gateway, DLNA (digital living network alliance) apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: Guangdong Opel Mobile Communications Co., Ltd.

CP01 Change in the name or title of a patent holder