Movatterモバイル変換


[0]ホーム

URL:


CN101692644B - Digital media adapter system applied in digital home - Google Patents

Digital media adapter system applied in digital home
Download PDF

Info

Publication number
CN101692644B
CN101692644BCN2009100417466ACN200910041746ACN101692644BCN 101692644 BCN101692644 BCN 101692644BCN 2009100417466 ACN2009100417466 ACN 2009100417466ACN 200910041746 ACN200910041746 ACN 200910041746ACN 101692644 BCN101692644 BCN 101692644B
Authority
CN
China
Prior art keywords
module
digital media
media adapter
server
digital
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.)
Expired - Fee Related
Application number
CN2009100417466A
Other languages
Chinese (zh)
Other versions
CN101692644A (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.)
South China University of Technology SCUT
Original Assignee
South China University of Technology SCUT
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 South China University of Technology SCUTfiledCriticalSouth China University of Technology SCUT
Priority to CN2009100417466ApriorityCriticalpatent/CN101692644B/en
Publication of CN101692644ApublicationCriticalpatent/CN101692644A/en
Application grantedgrantedCritical
Publication of CN101692644BpublicationCriticalpatent/CN101692644B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

The invention provides a digital media adapter system applied in a digital home network, comprising a digital media adapter server and a digital media adapter terminal, wherein, the digital media adapter server is arranged in a local area network of a digital home, can find out a standard home media server, and calls the service of the media server; and the digital media adapter server is connected with the digital media adapter terminal through the network, and provides remote service of application layer level of the digital media adapter to the digital media adapter terminal.

Description

Translated fromChinese
一种应用于数字家庭的数字媒体适配器系统A digital media adapter system applied to digital home

技术领域technical field

本发明属于数字媒体框架的设计与应用领域,特别是涉及一种用于支持UPnP和IGRS的轻量级数字媒体适配器系统。The invention belongs to the design and application field of the digital media framework, in particular to a lightweight digital media adapter system for supporting UPnP and IGRS.

技术背景technical background

随着数字家庭的概念日趋普及,在数字家庭中占据着重要地位的数字多媒体应用也发展得如火如荼。通过实现相应标准的A/V应用框架,媒体设备就能访问家庭网络中的资源。Digital Media Adapter(DMA,数字媒体适配器)在近年来非常流行,它是一种信息处理终端,其在数字家庭中的功能包括了访问媒体目录,获取媒体资源,并且对资源进行解码输出。As the concept of the digital home becomes more and more popular, digital multimedia applications, which occupy an important position in the digital home, are also developing in full swing. By implementing the corresponding standard A/V application framework, media devices can access resources in the home network. Digital Media Adapter (DMA, digital media adapter) has been very popular in recent years. It is an information processing terminal. Its functions in digital homes include accessing media directories, obtaining media resources, and decoding and outputting resources.

当前,数字家庭网络中的媒体应用主要是通过UPnP协议支撑,也有一部分是采用IGRS协议。UPnP技术应用TCP/IP等网络技术,用于实现家庭计算网络的分布式,开放互联架构。其定义了两种不同的设备类别:控制点和被控制设备。与UPnP协议类似,IGRS也定义了一套属于自己的协议标准,但其设备的种类与UPnP是一致的。UPnP和IGRS协议属于高层次的协议,建立在其他网络协议之上,例如Simple Object Access Protocol(SOAP),HTTP over TCP和HTTP unicast/multicast over UDP等。At present, the media applications in the digital home network are mainly supported by the UPnP protocol, and some of them are supported by the IGRS protocol. UPnP technology applies TCP/IP and other network technologies to realize the distributed and open interconnection architecture of the home computing network. It defines two different device classes: control points and controlled devices. Similar to the UPnP protocol, IGRS also defines a set of protocol standards of its own, but the types of devices are consistent with UPnP. UPnP and IGRS protocols are high-level protocols built on top of other network protocols, such as Simple Object Access Protocol (SOAP), HTTP over TCP, and HTTP unicast/multicast over UDP.

针对于家庭计算网络的A/V媒体应用,UPnP和IGRS有着相似的标准应用框架。尽管协议本身不相同,设备和服务的属性定义,以及调用服务的参数也不同。但框架中使用的设备类型是一样的,而且提供的服务类别也是一样的。它们的A/V应用框架如附图1所示,框架中,定义了媒体服务器,控制点,以及媒体渲染器。用户通过控制点,控制媒体渲染器从媒体服务器经过外带的传输协议获得资源,并进行播放。For A/V media applications in home computing networks, UPnP and IGRS have similar standard application frameworks. Although the protocols themselves are different, the property definitions for devices and services, and the parameters for invoking services are also different. But the types of devices used in the framework are the same, and the classes of services provided are the same. Their A/V application framework is shown in Figure 1. In the framework, a media server, a control point, and a media renderer are defined. Through the control point, the user controls the media renderer to obtain resources from the media server through the external transmission protocol and play them.

在实际的主要应用中,用户的控制点设备往往也是媒体渲染器本身,即将控制点与媒体渲染器合并在一起,即支持某一特定协议的DMA。基于标准A/V媒体应用框架下的DMA框架如附图2所示。In actual main applications, the user's control point device is often the media renderer itself, that is, the control point and the media renderer are combined together, that is, a DMA that supports a specific protocol. The DMA framework based on the standard A/V media application framework is shown in Figure 2.

由此可见,DMA的任务量是比较大的。它既包括了控制点的工作,也包括了媒体渲染器的资源下载以及解码等工作。It can be seen that the workload of DMA is relatively large. It includes not only the work of the control point, but also the resource download and decoding of the media renderer.

另外,UPnP协议与IGRS协议是相对复杂的协议,例如设备和服务广告的组播机制,以及设备状态的维护,设备状态信息的获取等。这往往占据了相当一部分的网络资源和CPU,内存等资源,也导致耗电过大的问题,从而提高了软件对于嵌入式设备的性能要求。对于某些便携的或简单的设备,如手机,数码相框等,对硬件性能要求提高所导致的代价可能是巨大的。In addition, the UPnP protocol and the IGRS protocol are relatively complex protocols, such as the multicast mechanism for device and service advertisements, maintenance of device status, and acquisition of device status information. This often occupies a considerable part of network resources, CPU, memory and other resources, and also leads to the problem of excessive power consumption, thereby improving the performance requirements of software for embedded devices. For some portable or simple devices, such as mobile phones, digital photo frames, etc., the cost caused by increased hardware performance requirements may be huge.

综合分析当前基于标准的家庭计算网络A/V媒体应用框架下的应用,存在如下几点问题:Comprehensive analysis of the current standard-based home computing network A/V media application framework, there are the following problems:

首先是当前的应用开销过大,必须考虑如何降低开销;First of all, the current application overhead is too large, and we must consider how to reduce the overhead;

其次,是如何使设备支持多种互联协议标准;Secondly, how to enable devices to support multiple interconnection protocol standards;

再次,因为协议基于SSDP组播,如何解决局域网范围的限制,实现跨家庭局域网的资源共享,以及相应的网络攻击、安全性问题;Thirdly, because the protocol is based on SSDP multicast, how to solve the limitation of the scope of the LAN, realize resource sharing across the home LAN, and corresponding network attacks and security issues;

最后,需要针对于不同用户进行设备或服务访问的限制。Finally, there is a need for restrictions on device or service access for different users.

故而,现有的数字媒体适配器架构还有待改进。Therefore, the existing digital media adapter architecture still needs to be improved.

发明内容Contents of the invention

本发明的目的在于克服现有技术的不足,提出了支持UPnP和IGRS的轻量级数字媒体适配器系统。The purpose of the present invention is to overcome the deficiencies of the prior art, and propose a lightweight digital media adapter system supporting UPnP and IGRS.

为了实现上述发明目的,采用的技术方案如下:In order to realize the above-mentioned purpose of the invention, the technical scheme adopted is as follows:

一种应用于数字家庭网络的数字媒体适配器系统,包括数字媒体适配器服务器和数字媒体适配器终端,所述数字媒体适配器服务器设置于数字家庭的局域网内,能发现标准家庭媒体服务器,并调用该媒体服务器的服务,数字媒体适配器服务器与数字媒体适配器终端通过网络连接,并向数字媒体适配器终端提供数字媒体适配器应用层级别的远程服务。A digital media adapter system applied to a digital home network, including a digital media adapter server and a digital media adapter terminal, the digital media adapter server is set in the local area network of a digital home, can discover a standard home media server, and call the media server The digital media adapter server and the digital media adapter terminal are connected through a network, and provide the digital media adapter terminal with a remote service at the application layer level of the digital media adapter.

上述技术方案中,所述数字媒体适配器终端通过SOAP协议,对数字媒体适配器服务器提供的服务进行调用,当用户通过数字媒体适配器终端选择合适的资源后,数字媒体适配器终端与媒体服务器建立带外传输连接,以获取媒体资源进行解码和播放。In the above technical solution, the digital media adapter terminal calls the service provided by the digital media adapter server through the SOAP protocol, and when the user selects an appropriate resource through the digital media adapter terminal, the digital media adapter terminal establishes an out-of-band transmission with the media server Connect to obtain media resources for decoding and playback.

所述数字媒体适配器服务器将维护的数据分成了公共数据区,以及对应每个用户的私有数据区,所述数字媒体适配器终端通过调用模块调用数字媒体适配器服务器的服务,最终与媒体服务器建立带外传输连接,并通过AV传输模块获取资源。The digital media adapter server divides the maintained data into a public data area and a private data area corresponding to each user. The digital media adapter terminal invokes the service of the digital media adapter server by calling the module, and finally establishes an out-of-band connection with the media server. The connection is transmitted, and resources are obtained through the AV transmission module.

所述数字媒体适配器终端包括AV传输模块、渲染模块、网络模块、GUI图形模块、调用模块,所述GUI图形模块、调用模块、网络模块依次连接,所述AV传输模块与媒体服务器通过网络连接,所述渲染模块与AV传输模块连接。The digital media adapter terminal includes an AV transmission module, a rendering module, a network module, a GUI graphics module, and a calling module. The GUI graphics module, the calling module, and the network module are connected in sequence, and the AV transmission module is connected to the media server through a network. The rendering module is connected with the AV transmission module.

所述数字媒体适配器服务器包括调用模块、控制点模块、防火墙模块、公共数据区、私有数据区,所述控制点模块与数字家庭网络的媒体服务器连接,还分别与数字媒体适配器系统的防火墙模块、公共数据区、私有数据区连接,所述调用模块分别与数字媒体适配器终端和控制点模块连接。The digital media adapter server includes a calling module, a control point module, a firewall module, a public data area, and a private data area. The control point module is connected with the media server of the digital home network, and is also connected with the firewall module, the firewall module, and the digital media adapter system respectively. The public data area and the private data area are connected, and the calling module is respectively connected with the digital media adapter terminal and the control point module.

本发明所述数字媒体适配器服务器处于数字家庭的UPnP,IGRS局域网内,数字媒体适配器服务器的控制点模块通过启动IGRS和UPnP侦听线程,接收到数字家庭网络里媒体服务器的广告信息,并分别调用IGRS模块和UPnP模块进行消息识别。The digital media adapter server of the present invention is in the UPnP of digital home, in the IGRS local area network, the control point module of digital media adapter server receives the advertisement information of media server in the digital home network by starting IGRS and UPnP listening thread, and calls respectively The IGRS module and the UPnP module perform message identification.

本发明具有以下优点:The present invention has the following advantages:

1、轻量级的终端设计,适用于更多的嵌入式设备;1. Lightweight terminal design, suitable for more embedded devices;

2、能支持UPnP和IGRS协议,并且还能增加更多家庭网路互联协议;2. It can support UPnP and IGRS protocols, and can add more home network interconnection protocols;

3、终端设备的应用将不受局域网的限制;3. The application of terminal equipment will not be restricted by the local area network;

4、防火墙模块与终端分离,保证终端的安全同时不增加终端的开销;4. The firewall module is separated from the terminal to ensure the security of the terminal without increasing the overhead of the terminal;

5、用户权限设计,实现终端根据用户权限配置对其他设备和服务的可见性。5. User permission design, to realize the visibility of the terminal to other devices and services according to the user permission configuration.

附图说明Description of drawings

图1为现有的A/V应用框架图;Fig. 1 is an existing A/V application frame diagram;

图2为现有的DMA框架图;Fig. 2 is an existing DMA frame diagram;

图3为本发明的系统架构示意图;Fig. 3 is a schematic diagram of the system architecture of the present invention;

图4为本发明的LW-DMAC模块划分示意图;Fig. 4 is a schematic diagram of LW-DMAC module division of the present invention;

图5为本发明的LW-DMAC框架示意图;FIG. 5 is a schematic diagram of the LW-DMAC framework of the present invention;

图6为本发明服务请求的模块交互示意图;Fig. 6 is a schematic diagram of module interaction of the service request of the present invention;

图7为本发明的LW-DMAS框架示意图;FIG. 7 is a schematic diagram of the LW-DMAS framework of the present invention;

图8为本发明的数据流示意图;Fig. 8 is a schematic diagram of data flow in the present invention;

图9为本发明的并发性交互示意图;Fig. 9 is a schematic diagram of concurrent interaction of the present invention;

图10为本发明运行界面示意图。Fig. 10 is a schematic diagram of the operation interface of the present invention.

具体实施方式Detailed ways

下面结合附图对本发明做进一步的描述。The present invention will be further described below in conjunction with the accompanying drawings.

本发明提出的整体架构如附图3所示。新框架下提出了两种新的设备类型,分别是轻量级数字媒体适配器服务器(LW-DMAS)和轻量级数字媒体适配器终端(LW-DMAC)。LW-DMAS处于数字家庭的UPnP,IGRS局域网内,能发现标准家庭媒体服务器,并且通过标准的UPnP或IGRS Action调用其服务。另一方面,LW-DMAS向LW-DMAC提供DMA应用层级别的远程方法,如设备浏览,服务浏览,目录访问服务,资源协议协商服务等。The overall architecture proposed by the present invention is shown in Fig. 3 . Two new device types are proposed under the new framework, namely Lightweight Digital Media Adapter Server (LW-DMAS) and Lightweight Digital Media Adapter Terminal (LW-DMAC). LW-DMAS is located in the UPnP and IGRS LAN of the digital home, and can discover the standard home media server, and call its service through the standard UPnP or IGRS Action. On the other hand, LW-DMAS provides LW-DMAC with remote methods at the DMA application layer level, such as device browsing, service browsing, directory access services, resource protocol negotiation services, and so on.

LW-DMAC通过SOAP协议,对LW-DMAS提供的服务进行调用。当用户通过终端选择合适的资源后,终端与媒体服务器建立带外传输连接,获取媒体资源进行解码和播放。The LW-DMAC invokes the services provided by the LW-DMAS through the SOAP protocol. After the user selects a suitable resource through the terminal, the terminal establishes an out-of-band transmission connection with the media server to obtain the media resource for decoding and playing.

模块的划分如附图4所示,LW-DMAS将维护的数据分成了公共数据区,以及对于每个用户的私有数据区。LW-DMAC通过调用模块,调用LW-DMAS的服务,最终与媒体服务器建立带外传输连接,LW-DMAC通过AV传输模块获取资源。The division of modules is shown in Figure 4. LW-DMAS divides the maintained data into a public data area and a private data area for each user. The LW-DMAC calls the service of the LW-DMAS by calling the module, and finally establishes an out-of-band transmission connection with the media server, and the LW-DMAC obtains resources through the AV transmission module.

图5是LW-DMAC的框架图。框架中包含了5个模块,该框架的设计重点在于轻量化。将尽量多的计算资源,网络资源,电源资源等集中地服务于终端的多媒体播放上。Figure 5 is a block diagram of LW-DMAC. There are 5 modules included in the frame, and the design of the frame focuses on light weight. Centrally serve as many computing resources, network resources, power resources, etc. as possible for the multimedia playback of the terminal.

下面将对本发明的轻量化设计思路,以及终端的工作流程进行说明。The lightweight design idea of the present invention and the working process of the terminal will be described below.

分布式计算为终端的轻量化设计提供了条件。在LW-DMAC中,DMA与协议相关的主要逻辑工作的计算任务都放在信任的LW-DMAS里。Distributed computing provides conditions for the lightweight design of terminals. In LW-DMAC, the calculation tasks of the main logical work related to DMA and protocol are placed in the trusted LW-DMAS.

首先LW-DMAC不需要持续地侦听组播的广告信息,不需要执行设备和服务状态的维护工作,以及设备与服务的描述文件的下载与分析工作。当终端需要执行逻辑任务时,如查询当前存在的设备与服务,或浏览某个媒体服务器的内容目录时,才需要与LW-DMAS建立起连接,进行远程方法调用。当接收到服务结果后,连接可以回到关闭状态,等待下一次的请求发送。因此,LW-DMAC在节省计算资源的同时,也节省了更多的网络资源,终端具备访问媒体服务器能力,并且可以脱离局域网的限制,也避免了局域网里的协议攻击包。First of all, LW-DMAC does not need to continuously listen to multicast advertisement information, maintain the status of devices and services, and download and analyze description files of devices and services. When the terminal needs to perform logical tasks, such as querying the currently existing devices and services, or browsing the content directory of a media server, it needs to establish a connection with the LW-DMAS and perform remote method calls. After receiving the service result, the connection can return to the closed state, waiting for the next request to be sent. Therefore, while saving computing resources, LW-DMAC also saves more network resources. The terminal has the ability to access the media server, and can break away from the limitations of the LAN, and avoid protocol attack packets in the LAN.

对于LW-DMAC,真正的核心工作是负责媒体资源的带外传输以及解码工作。这一部分是由AV传输模块以及渲染模块实现。轻量化的设计让终端拥有尽量多的网络带宽和计算存储资源用于执行其核心工作,保证媒体播放的质量。For LW-DMAC, the real core work is to be responsible for the out-of-band transmission and decoding of media resources. This part is realized by the AV transmission module and the rendering module. The lightweight design allows the terminal to have as much network bandwidth and computing and storage resources as possible to perform its core work, ensuring the quality of media playback.

使用本发明,用户可以通过LW-DMAC界面进行输入,GUI模块向调用模块传递需要调用的远程方法,以及对应的参数,在调用模块里,将调用的远程方法的信息提取后,构造出对应的SOAP包,然后通过网络模块发送服务请求,服务请求的模块交互如附图6所示。Using the present invention, the user can input through the LW-DMAC interface, and the GUI module transmits the remote method to be called and the corresponding parameters to the calling module. In the calling module, after extracting the information of the called remote method, a corresponding SOAP package, and then send a service request through the network module, and the module interaction of the service request is shown in Figure 6.

服务的响应则是以上过程的逆过程。网络模块接收到响应包后,调用模块进行SOAP响应包的解释,获取调用结果后通知界面进行事件处理。The response of the service is the reverse process of the above process. After the network module receives the response packet, it calls the module to interpret the SOAP response packet, and after obtaining the call result, it notifies the interface to process the event.

LW-DMAS框架是轻量级数字媒体框架的另一个重要应用,图7是LW-DMAS的框架图,框架中包括了5大模块。该模块的设计重点是突出了服务的并发性,以及增加了安全性的设计。令LW-DMAS能高效地为多个终端服务,并且能更好地满足不同应用的需求。The LW-DMAS framework is another important application of the lightweight digital media framework. Figure 7 is the framework diagram of LW-DMAS, which includes five modules. The design focus of this module is to highlight the concurrency of services and increase the security design. The LW-DMAS can efficiently serve multiple terminals and better meet the requirements of different applications.

下面就服务器的主要工作流程来说明服务器的框架图。The main working process of the server is described below as a framework diagram of the server.

设备和服务的发现有它自己的流程,控制点模块通过启动IGRS和UPnP侦听线程,接收到家庭网络里媒体服务器的广告信息,并分别调用IGRS模块和UPnP模块进行消息识别。消息识别完成后,查询公共数据区中对应的设备目录是否已经保存了该设备结构。如果没有,首先应用防火墙模块,查询该设备是不是在黑名单中(即攻击源)。然后控制点模块对设备的描述信息进行下载,并对下载的XML进行安全检测。根据描述信息,创建设备结构,并添加到公共数据区中对应环境数据区中的设备目录中。并将设备对应的服务信息,添加到服务目录中。环境数据区保存着属于多个终端共享的数据,因此存在于公共数据区中,当访问环境数据区时,需要获取对应的互斥锁。如果设备或服务结构已经存在于环境数据区中,则接收到广告信息后,只需对其的超时时间进行更新,并且如果有需要的话,更新设备的其他状态信息。数据流图如图8所示。The discovery of devices and services has its own process. The control point module receives the advertisement information of the media server in the home network by starting the IGRS and UPnP listening threads, and calls the IGRS module and the UPnP module for message identification. After the message identification is completed, query whether the corresponding device directory in the public data area has saved the device structure. If not, first apply the firewall module to check whether the device is in the blacklist (that is, the source of the attack). Then the control point module downloads the description information of the device, and performs safety inspection on the downloaded XML. According to the description information, create a device structure and add it to the device directory in the corresponding environment data area in the public data area. And add the service information corresponding to the device to the service directory. The environment data area stores data shared by multiple terminals, so it exists in the public data area. When accessing the environment data area, you need to acquire the corresponding mutex. If the device or service structure already exists in the environment data area, after receiving the advertisement information, it only needs to update its timeout time, and if necessary, update other status information of the device. The data flow diagram is shown in Figure 8.

向LW-DMAC提供快速有效的服务,是LW-DMAS的重点。考虑到实际应用中多个LW-DMAC的情况,并发性的强弱将直接影响到应用的QoS。用户的请求可以通过与服务器建立TCP链接,然后发送SOAP调用服务器提供的方法。或采用Web Service的方式进行服务调用。调用模块接收到SOAP包后,构造出相应的调用信息(包括了调用者信息,方法,以及参数),这相当于一项任务,然后放进FIFO队列中。当线程区有空闲的Worker线程时,就从队列中获取调用信息。根据调用信息,从防火墙中,获取其权限的信息,并且从私有数据区获取或创建用户对应的用户状态数据。用户状态数据是保存着私有的用户状态信息,包括用户当前正在访问的媒体设备,及其浏览的目录栈结构,因此不存在多用户的并发访问。将公有资源和私有资源区分,提高了工作的并发度,因为当服务需要获取公共资源时,才需要获取互斥锁。It is the focus of LW-DMAS to provide fast and effective service to LW-DMAC. Considering the situation of multiple LW-DMACs in practical applications, the strength of concurrency will directly affect the QoS of the application. The user's request can establish a TCP link with the server, and then send SOAP to call the method provided by the server. Or use the method of Web Service to make service calls. After the calling module receives the SOAP packet, it constructs corresponding calling information (including caller information, methods, and parameters), which is equivalent to a task, and then puts it into the FIFO queue. When there is an idle Worker thread in the thread area, the call information is obtained from the queue. According to the call information, obtain the permission information from the firewall, and obtain or create the user status data corresponding to the user from the private data area. User state data is to save private user state information, including the media device that the user is currently accessing, and the directory stack structure browsed, so there is no concurrent access by multiple users. Distinguishing between public resources and private resources improves the concurrency of work, because when a service needs to obtain public resources, it needs to obtain a mutex.

当服务需要对媒体服务器进行访问时,Worker线程将调用控制点模块。控制点模块获取相应的调用信息,用户状态数据,以及对应的环境数据。然后构造出标准的UPnP或IGRS活动,并发送至目标媒体服务器。当接收到媒体服务器结果时,控制点模块对结果进行处理,然后返回结果给调用者LW-DMAC。Worker线程回到空闲状态。对应的交互图如图9所示。When the service needs to access the media server, the Worker thread will call the control point module. The control point module obtains corresponding call information, user state data, and corresponding environment data. Then construct a standard UPnP or IGRS activity and send it to the target media server. When receiving the result from the media server, the control point module processes the result, and then returns the result to the caller LW-DMAC. The Worker thread returns to the idle state. The corresponding interaction diagram is shown in Figure 9.

本发明的运行界面如图10所示,应用轻量级数字媒体适配器软件框架,开发了一个支持UPnP和IGRS协议的智能手机上的媒体播放器,用户通过手机,可以浏览和下载家庭媒体服务器里的图片,以及播放家庭媒体服务器中的音乐。由于采用了新框架,轻量级的特点既保证播放质量,又降低了对手机的能耗。下面对本发明的框架实现进行介绍。The operating interface of the present invention is shown in Figure 10, and a lightweight digital media adapter software framework is applied to develop a media player on a smart phone that supports UPnP and IGRS protocols. Users can browse and download home media servers through their mobile phones. pictures, and play music from your home media server. Due to the adoption of a new framework, the lightweight feature not only ensures the playback quality, but also reduces the energy consumption of the mobile phone. The framework implementation of the present invention is introduced below.

播放器软件根据框架,实现了一个运行在标准Linux操作系统下的LW-DMAS,而针对于应用的终端,为了适应更多的软件平台,本发明实现了一个运行在标准Linux下的和一个在Windows Mobile 6.5操作系统下的LW-DMAC客户端。According to the framework, the player software realizes a LW-DMAS running under the standard Linux operating system, and for the application terminal, in order to adapt to more software platforms, the present invention realizes a running under the standard Linux and a running under the LW-DMAC client under Windows Mobile 6.5 operating system.

由于软件框架的设计,已经在发明内容中阐述过。下面将以软件中所部属的进程与线程的任务为重点来讲述框架的实现,并且将介绍一些与特定应用相关的特殊模块。Due to the design of the software framework, it has been explained in the summary of the invention. In the following, the implementation of the framework will be described focusing on the tasks of the processes and threads deployed in the software, and some special modules related to specific applications will be introduced.

服务调用方法是本发明软件框架关于服务使用的一个重点内容。针对于不同的应用,开发者可以制定相应的远程服务方法,以满足LW-DMAC的实现需要。在本发明的应用中,本发明定义的方法机器参数列表如表1所示。首先LW-DMAC需要向Server端进行登录。登录后根据用户ID创建Session。此时LW-DMAS为用户在Private Data中创建一个属于该用户的用户状态信息SessionData。创建Session成功后,用户就可以使用实质性的服务,包括获取媒体设备列表,包括浏览目录的Ls和Cd功能。以及获取资源文件的URL等。The service invocation method is an important content of the software framework of the present invention regarding the use of services. For different applications, developers can formulate corresponding remote service methods to meet the realization needs of LW-DMAC. In the application of the present invention, the method machine parameter list defined by the present invention is shown in Table 1. First, the LW-DMAC needs to log in to the Server. Create a Session based on the user ID after login. At this time, LW-DMAS creates a SessionData of user state information belonging to the user in Private Data for the user. After the session is successfully created, the user can use substantive services, including obtaining the list of media devices, including the Ls and Cd functions of browsing directories. And get the URL of the resource file, etc.

表1Table 1

Figure G2009100417466D00091
Figure G2009100417466D00091

LW-DMAC作为轻量级的终端,对于框架的实现是相对简单的。在本发明的应用中,设计一个主进程以及2个子线程。主进程是GUI,与用户进行交互。表2为另外两个线程任务的描述。对于各个线程,都有其对应的若干事件,应用实现中,通过对不同的事件设置对应的回调函数,可以获得各个子线程在事件发生时的通知,并能执行相应的处理。表3是LW-DMAC线程所定义的可注册事件。As a lightweight terminal, LW-DMAC is relatively simple to implement the framework. In the application of the present invention, a main process and 2 sub-threads are designed. The main process is the GUI, which interacts with the user. Table 2 is the description of the other two thread tasks. For each thread, there are several corresponding events. In the application implementation, by setting corresponding callback functions for different events, each sub-thread can be notified when the event occurs, and can perform corresponding processing. Table 3 is the registerable events defined by the LW-DMAC thread.

表2Table 2

  模块module  功能 Function 1 1  调用 transfer  产生SOAP请求、连接LW-DMA S、发送请求、等待请求、通过事件回调来报告主要进程。Generate SOAP request, connect to LW-DMA S, send request, wait for request, report main progress through event callback. 2 2  渲染rendering  使用CHttpFile类,负责访问HTTP URL、用跨平台解码库libmad来获取媒体资源和解码。Use the CHttpFile class, responsible for accessing HTTP URLs, and use the cross-platform decoding library libmad to obtain media resources and decode.

表3table 3

Figure G2009100417466D00101
Figure G2009100417466D00101

终端的实现,带外传输以及解码部分是重点。本发明在已经实现的CHttpFile类,负责提供HTTP协议访问媒体文件的操作,并且针对于音乐播放,使用流行的跨平台解码库libmad。从而保证了终端代码的高移植性。当需要移植到另外一个平台时,通常只需要根据新的图形库,重新构建界面即可。The implementation of the terminal, the out-of-band transmission and the decoding part are the key points. The present invention is responsible for providing the operation of accessing media files through the HTTP protocol in the implemented CHttpFile class, and uses the popular cross-platform decoding library libmad for music playback. This ensures high portability of the terminal code. When it needs to be ported to another platform, it usually only needs to rebuild the interface according to the new graphics library.

在本发明的LW-DMAS中,应用程序设计1个进程和8个子线程同时执行工作。主进程负责对服务器的开启,结束以及配置等界面的操作。而其它各子线程的任务可以见表4。各线程的事件定义如表5所示。In the LW-DMAS of the present invention, the application program designs 1 process and 8 sub-threads to perform work simultaneously. The main process is responsible for opening, closing and configuring the server interface. The tasks of other sub-threads can be seen in Table 4. The event definitions of each thread are shown in Table 5.

表4Table 4

Figure G2009100417466D00102
Figure G2009100417466D00102

Figure G2009100417466D00111
Figure G2009100417466D00111

表5table 5

Figure G2009100417466D00112
Figure G2009100417466D00112

Claims (3)

Translated fromChinese
1.一种应用于数字家庭网络的数字媒体适配器系统,其特征在于包括数字媒体适配器服务器和数字媒体适配器终端,所述数字媒体适配器服务器设置于数字家庭的局域网内,能发现标准家庭媒体服务器,并调用该媒体服务器的服务,数字媒体适配器服务器与数字媒体适配器终端通过网络连接,并向数字媒体适配器终端提供数字媒体适配器应用层级别的远程服务,所述数字媒体适配器服务器包括调用模块、控制点模块、防火墙模块、公共数据区、私有数据区,所述控制点模块与数字家庭网络的媒体服务器连接,还分别与数字媒体适配器系统的防火墙模块、公共数据区、私有数据区连接,所述调用模块分别与数字媒体适配器终端和控制点模块连接,所述数字媒体适配器服务器处于数字家庭的UPnP,IGRS局域网内,数字媒体适配器服务器的控制点模块通过启动IGRS和UPnP侦听线程,接收到数字家庭网络里媒体服务器的广告信息,并分别调用IGRS模块和UPnP模块进行消息识别,所述数字媒体适配器终端包括AV传输模块、渲染模块、网络模块、GUI图形模块、调用模块,所述GUI图形模块、调用模块、网络模块依次连接,所述AV传输模块与媒体服务器通过网络连接,所述渲染模块与AV传输模块连接。1. A digital media adapter system applied to a digital home network is characterized in that it comprises a digital media adapter server and a digital media adapter terminal, said digital media adapter server is arranged in the local area network of a digital home, and can find a standard home media server, And call the service of this media server, digital media adapter server and digital media adapter terminal are connected through network, and provide the remote service of digital media adapter application layer level to digital media adapter terminal, described digital media adapter server includes call module, control point module, a firewall module, a public data area, and a private data area, the control point module is connected to the media server of the digital home network, and is also connected to the firewall module, the public data area, and the private data area of the digital media adapter system respectively, and the calling The modules are respectively connected with the digital media adapter terminal and the control point module, and the digital media adapter server is in the UPnP of the digital home, in the IGRS local area network, and the control point module of the digital media adapter server receives the digital home Advertisement information of the media server in the network, and call the IGRS module and the UPnP module to carry out message recognition respectively, and the described digital media adapter terminal includes AV transmission module, rendering module, network module, GUI graphics module, calling module, described GUI graphics module, The calling module and the network module are connected in sequence, the AV transmission module is connected to the media server through the network, and the rendering module is connected to the AV transmission module.2.根据权利要求1所述的应用于数字家庭网络的数字媒体适配器系统,其特征在于所述数字媒体适配器终端通过SOAP协议,对数字媒体适配器服务器提供的服务进行调用,当用户通过数字媒体适配器终端选择合适的资源后,数字媒体适配器终端与媒体服务器建立带外传输连接,以获取媒体资源进行解码和播放。2. The digital media adapter system applied to a digital home network according to claim 1, wherein the digital media adapter terminal calls the service provided by the digital media adapter server through the SOAP protocol, when the user passes through the digital media adapter After the terminal selects a suitable resource, the digital media adapter terminal establishes an out-of-band transmission connection with the media server to obtain media resources for decoding and playing.3.根据权利要求2所述的应用于数字家庭网络的数字媒体适配器系统,其特征在于所述数字媒体适配器服务器将维护的数据分成了公共数据区,以及对应每个用户的私有数据区,所述数字媒体适配器终端通过调用模块调用数字媒体适配器服务器的服务,最终与媒体服务器建立带外传输连接,并通过AV传输模块获取资源。3. The digital media adapter system applied to a digital home network according to claim 2, wherein said digital media adapter server divides the maintained data into a public data area and a private data area corresponding to each user, so The digital media adapter terminal invokes the service of the digital media adapter server through the calling module, finally establishes an out-of-band transmission connection with the media server, and obtains resources through the AV transmission module.
CN2009100417466A2009-08-072009-08-07Digital media adapter system applied in digital homeExpired - Fee RelatedCN101692644B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN2009100417466ACN101692644B (en)2009-08-072009-08-07Digital media adapter system applied in digital home

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN2009100417466ACN101692644B (en)2009-08-072009-08-07Digital media adapter system applied in digital home

Publications (2)

Publication NumberPublication Date
CN101692644A CN101692644A (en)2010-04-07
CN101692644Btrue CN101692644B (en)2012-05-09

Family

ID=42081302

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN2009100417466AExpired - Fee RelatedCN101692644B (en)2009-08-072009-08-07Digital media adapter system applied in digital home

Country Status (1)

CountryLink
CN (1)CN101692644B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103825929A (en)*2013-06-092014-05-28奕甲智能技术(上海)有限公司A new method and system for realizing one-to-many control between intelligent devices

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN2774022Y (en)*2004-11-262006-04-19海信集团有限公司Digital medium adapter
CN1812574A (en)*2005-12-222006-08-02海信集团有限公司Method for realizing IGRS AV. control point equipment
CN101094243A (en)*2007-05-312007-12-26广东中大讯通软件科技有限公司Multimedia adaptation system and method of adaptating multimedia content for different types of devices base on UPnP
CN101483566A (en)*2008-01-112009-07-15Tcl集团股份有限公司Middleware oriented to 3C fusion

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN2774022Y (en)*2004-11-262006-04-19海信集团有限公司Digital medium adapter
CN1812574A (en)*2005-12-222006-08-02海信集团有限公司Method for realizing IGRS AV. control point equipment
CN101094243A (en)*2007-05-312007-12-26广东中大讯通软件科技有限公司Multimedia adaptation system and method of adaptating multimedia content for different types of devices base on UPnP
CN101483566A (en)*2008-01-112009-07-15Tcl集团股份有限公司Middleware oriented to 3C fusion

Also Published As

Publication numberPublication date
CN101692644A (en)2010-04-07

Similar Documents

PublicationPublication DateTitle
CN102650950B (en)Platform architecture supporting multi-GPU (Graphics Processing Unit) virtualization and work method of platform architecture
CN102355667B (en)Application program network connection control method and system in mobile intelligent terminal system
US8639253B2 (en)Real-time communications client architecture
WO2012000226A1 (en)Method for realizing peer-to-peer (p2p) communication on webpage
US9451433B2 (en)Device and method of driving multi-PDP data communication for mobile broadband device
US20100115031A1 (en)System and Method For Enabling P2P Applications in a Wireless Mobile Network
CN103391596A (en) Data transmission method and device
WO2012122767A1 (en)Method, system and terminal for implementing cloud computing
WO2013034103A1 (en)Wireless network, implementation method thereof, and terminal
CN112511598A (en)Screen projection display method, intelligent terminal and storage medium
CN104410982B (en)Terminal polymerization and reconstructing method in a kind of Wireless Heterogeneous Networks
CN108696523B (en)Response method and device for call service
CN106850384A (en)A kind of method and mobile terminal for realizing accessing equipment in LAN
CN106131138A (en)A kind of display data real time propelling movement system and method based on non-obstruction queue
US20090135736A1 (en)Method of connecting network terminal devices of a private network by using a hand-held electronic device
CN111182074A (en)Intelligent device terminal with edge computing capability and computer-readable storage medium
Dautov et al.Data agility through clustered edge computing and stream processing
Qing et al.Cactse: Cloudlet aided cooperative terminals service environment for mobile proximity content delivery
CN104735807A (en)WIFI hotspot service providing method and system and WIFI access point
CN114979243A (en)Method and device for providing cloud terminal service
CN116055473A (en) A WEB-based distributed deployment cloud rendering method and system
CN102137158A (en)Method for sharing information equipment resources by utilizing equipment agent system
CN102281197A (en)Radio frequency identification (RFID) router architecture system
CN105429900B (en)A kind of method, apparatus and system of bandwidth speed-raising
CN102843394A (en)Framework device and operation method of network application

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20120509

Termination date:20170807

CF01Termination of patent right due to non-payment of annual fee

[8]ページ先頭

©2009-2025 Movatter.jp