CN102098575A - Migration method compatible with multiple conditional access (CA) systems and CA method - Google Patents
Migration method compatible with multiple conditional access (CA) systems and CA method Download PDFInfo
- Publication number
- CN102098575A CN102098575A CN 201010622846 CN201010622846A CN102098575A CN 102098575 A CN102098575 A CN 102098575A CN 201010622846 CN201010622846 CN 201010622846 CN 201010622846 A CN201010622846 A CN 201010622846A CN 102098575 A CN102098575 A CN 102098575A
- Authority
- CN
- China
- Prior art keywords
- conditional access
- interface function
- top box
- access system
- smart card
- 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
Links
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本发明公开了一种兼容多种条件接收系统移植的方法和条件接收方法。所述移植的方法包括下述步骤:在机顶盒程序中内置若干种条件接收系统,根据所有条件接收系统要移植的接口的功能设定通用接口函数,提供给机顶盒应用程序;判断当前智能卡所属的条件接收系统的类型,调用通用接口函数对与当前智能卡相对应的条件接收系统需要用到的模块进行初始化;设定通用数据结构,将不同条件接收系统输出的数据分别转换为通用数据结构,提供给机顶盒应用程序。利用本发明所述的移植方法,可以提高CA系统移植的兼容性,简化机顶盒端软件开发流程,提高跨平台移植速度。
The invention discloses a transplantation method compatible with multiple conditional access systems and a conditional access method. The method for described transplantation comprises the following steps: in the set-top box program, several kinds of conditional access systems are built-in, according to the function setting general interface function of the interface that all conditional access systems will transplant, provide to the set-top box application program; Judge the condition that current smart card belongs to The type of the receiving system, calling the general interface function to initialize the modules required by the conditional access system corresponding to the current smart card; setting the general data structure, converting the data output by different conditional access systems into a general data structure, and providing it to Set-top box application. By using the transplanting method of the invention, the compatibility of CA system transplantation can be improved, the software development process at the set-top box end can be simplified, and the cross-platform transplantation speed can be improved.
Description
技术领域technical field
本发明涉及计算机技术,具体地说,是涉及能够兼容多种条件接收系统移植的方法及条件接收方法,属于数字电视技术领域。The invention relates to computer technology, in particular to a method and a conditional access method capable of transplanting compatible multiple conditional access systems, and belongs to the technical field of digital television.
背景技术Background technique
条件接收(CA)系统用于对数字电视节目的内容进行数字加扰和加密,以建立有效的收费体系,被称为数字电视健康发展的技术保障系统。CA系统在前端主要完成用户授权控制消息(ECM)及用户授权管理消息(EMM)的获取、生成、加密、发送等处理;在接收端接收并处理前端CA系统发送来的ECM、EMM信息,解出控制字(CW),根据控制字对音视频流进行解扰,实现音视频的播放。The conditional access (CA) system is used to digitally scramble and encrypt the content of digital TV programs to establish an effective charging system. It is called the technical guarantee system for the healthy development of digital TV. At the front end, the CA system mainly completes the acquisition, generation, encryption, and transmission of user authorization control messages (ECM) and user authorization management messages (EMM); at the receiving end, it receives and processes the ECM and EMM information sent by the front-end CA system, and decodes them. Output the control word (CW), and descramble the audio and video stream according to the control word to realize the playback of audio and video.
机顶盒要实现对节目音视频流的解扰,需要将CA系统内核移植到机顶盒中。CA移植过程是以厂家提供的库为核心,利用CA内核实现底层接口,为机顶盒应用程序提供统一的函数接口。目前,存在有多个不同生产厂家的CA系统,如永新视博、数码视讯、算通、天柏等,不同厂家的CA底层函数接口在实现方式上不尽相同。在机顶盒中移植CA系统时,就需要按照各个CA系统的移植文档做相应的移植,每个CA系统对应一套机顶盒应用软件,因此,在一台机顶盒中只能实现一种CA系统。而且,若要在同平台的机顶盒中实现另一个厂家的CA系统,或者在不同平台的机顶盒中实现同一个厂家的CA系统,由于底层函数的不一致,无法直接移植,均需要重新开发一套应用软件,耗费软件开发人员巨大的时间和精力,移植时间较长。In order for the set-top box to descramble the audio and video stream of the program, it is necessary to transplant the CA system kernel into the set-top box. The CA transplantation process is based on the library provided by the manufacturer as the core, using the CA core to implement the bottom interface, and providing a unified function interface for the set-top box application program. At present, there are many CA systems from different manufacturers, such as Yongxin Shibo, Digital Video, Sutong, Tianbai, etc. The implementation methods of the CA underlying function interfaces of different manufacturers are not the same. When transplanting a CA system in a set-top box, it is necessary to perform corresponding transplantation according to the transplantation documents of each CA system. Each CA system corresponds to a set of set-top box application software. Therefore, only one CA system can be implemented in a set-top box. Moreover, if you want to implement the CA system of another manufacturer in the set-top box of the same platform, or implement the CA system of the same manufacturer in the set-top boxes of different platforms, due to the inconsistency of the underlying functions, it cannot be directly transplanted, and a set of applications needs to be redeveloped. Software consumes a lot of time and energy for software developers, and the transplantation time is relatively long.
另一方面,现有技术在移植单个CA系统时,在实现CA相关应用,例如授权、邮件,指纹、IPPV(即时视频点播)、IPPT(即时付费点播)等功能时,只考虑本系统的数据结构,使得机顶盒应用程序需要针对每个CA系统采用不同的软件分别处理,降低了移植CA系统的速度,不利于CA系统移植兼容性的改进。On the other hand, when transplanting a single CA system in the prior art, only the data of this system is considered when implementing functions such as authorization, email, fingerprint, IPPV (instant video on demand), IPPT (instant pay on demand) and other functions structure, so that the set-top box application needs to be processed separately by using different software for each CA system, which reduces the speed of transplanting the CA system and is not conducive to the improvement of the compatibility of the CA system transplantation.
发明内容Contents of the invention
本发明的目的之一在于提供一种兼容多种条件接收系统移植的方法,以提高CA系统移植的兼容性,简化机顶盒端软件开发流程,提高跨平台移植速度。One of the purposes of the present invention is to provide a method for transplanting compatible multiple conditional access systems, so as to improve the compatibility of CA system transplantation, simplify the software development process at the set-top box end, and increase the speed of cross-platform transplantation.
为实现上述发明目的,本发明采用下述技术方案予以实现:In order to achieve the above-mentioned purpose of the invention, the present invention adopts the following technical solutions to achieve:
一种兼容多种条件接收系统移植的方法,所述方法包括下述步骤:A method for transplanting compatible multiple conditional access systems, said method comprising the steps of:
a1、在机顶盒程序中内置若干种条件接收系统,根据所有条件接收系统要移植的接口的功能设定通用接口函数,提供给机顶盒应用程序;a1. Several conditional access systems are built in the set-top box program, and the general interface functions are set according to the functions of the interfaces to be transplanted by all conditional access systems, and provided to the set-top box application program;
a2、判断当前智能卡所属的条件接收系统的类型,调用通用接口函数对与当前智能卡相对应的条件接收系统需要用到的模块进行初始化;a2. Determine the type of the conditional access system to which the current smart card belongs, and call the general interface function to initialize the modules required by the conditional access system corresponding to the current smart card;
a3、设定通用数据结构,将不同条件接收系统输出的数据分别转换为通用数据结构,提供给机顶盒应用程序。a3. Setting a common data structure, converting the data output by different conditional access systems into a common data structure, and providing it to the set-top box application program.
如上所述的兼容多种条件接收系统移植的方法,具体来说,所述通用接口函数为多种CA系统具有共性的接口函数,包括OS适配层接口函数、与智能卡进行通信的通信接口函数、解复用接口函数及数据存储接口函数。As described above, the method for transplanting compatible multiple conditional access systems, specifically, the general interface function is an interface function that is common to multiple CA systems, including an OS adaptation layer interface function and a communication interface function for communicating with a smart card , demultiplexing interface function and data storage interface function.
如上所述的兼容多种条件接收系统移植的方法,为避免对机顶盒公用接口资源的占用、提供资源利用率,所述通用接口函数还包括释放条件接收系统功能的释放接口函数,通过该释放接口函数可以在退出条件接收系统时释放其所占用的资源。The method for transplanting compatible multiple conditional access systems as described above, in order to avoid occupation of the common interface resources of the set-top box and provide resource utilization, the general interface function also includes a release interface function for releasing the conditional access system function, through the release interface Functions can release the resources they occupy when exiting the conditional access system.
如上所述的兼容多种条件接收系统移植的方法,在所述步骤a2中,可以根据当前智能卡的卡传输协议和卡标识判断当前智能卡所属的条件接收系统的类型。As described above, in the method for transplanting compatible multiple CA systems, in the step a2, the type of CA system to which the current smart card belongs can be determined according to the card transmission protocol and the card identification of the current smart card.
如上所述的兼容多种条件接收系统移植的方法,在所述步骤a2中,对当前智能卡相对应的条件接收系统进行的初始化包括OS适配层初始化、通信接口初始化、解复用初始化及存储器初始化。The method for transplanting compatible multiple conditional access systems as described above, in the step a2, the initialization of the conditional access system corresponding to the current smart card includes OS adaptation layer initialization, communication interface initialization, demultiplexing initialization and storage initialization.
本发明的目的之二在于提供一种条件接收方法,该条件接收方法基于上述兼容多种条件接收系统移植的方法,可以实现在移植有多个条件接收系统的机顶盒端实现数字电视节目的解扰和授权管理等功能。The second object of the present invention is to provide a conditional access method, which is based on the above-mentioned method for transplanting compatible multiple conditional access systems, and can realize the descrambling of digital TV programs at the set-top box end with multiple conditional access systems transplanted and authorization management.
为实现上述发明目的,本发明采用下述技术方案来实现:In order to realize the above-mentioned purpose of the invention, the present invention adopts following technical scheme to realize:
一种条件接收方法,所述方法包括下述步骤:A conditional access method, said method comprising the steps of:
b1、机顶盒应用程序触发条件接收,调用通用接口函数对条件接收系统进行初始化;b1. The set-top box application triggers the conditional access, and calls the general interface function to initialize the conditional access system;
b2、调用通用接口函数从TS流中获得授权控制信息和授权管理信息,并通过通用接口函数传输至条件接收系统对应的智能卡进行解密处理;b2. Call the general interface function to obtain authorization control information and authorization management information from the TS stream, and transmit it to the smart card corresponding to the conditional access system through the general interface function for decryption processing;
b3、将解密处理后的加扰控制字通过通用接口函数提供给解扰器,对加密的音视频流进行解扰;b3. Provide the decrypted scrambling control word to the descrambler through the general interface function, and descramble the encrypted audio and video stream;
b4、将解密处理后的其他授权控制信息数据及授权管理信息数据转换为通用数据结构,提供给机顶盒应用程序。b4. Convert the decrypted other authorization control information data and authorization management information data into a common data structure, and provide it to the set-top box application program.
如上所述的条件接收方法,为保证数据的完整性、避免数据丢失,在所述步骤b2中,调用通用接口函数从TS流中获得授权控制信息和授权管理信息后,先缓存,然后将完整的授权控制信息和授权管理信息通过通用接口函数传输至条件接收系统对应的智能卡进行解密处理。In the above-mentioned conditional access method, in order to ensure the integrity of data and avoid data loss, in the step b2, after calling the general interface function to obtain the authorization control information and authorization management information from the TS stream, it is first cached, and then the complete The authorization control information and authorization management information are transmitted to the smart card corresponding to the conditional access system through the general interface function for decryption.
如上所述的条件接收系统,为便于应用程序使用,在所述步骤b4中,解密处理后的授权管理信息数据转换为通用数据结构,以回调函数方式或消息方式提供给机顶盒应用程序。In the above-mentioned conditional access system, in order to facilitate the use of the application program, in the step b4, the decrypted authorization management information data is converted into a general data structure, and provided to the set-top box application program in the form of a callback function or a message.
如上所述的条件接收系统,在所述步骤b1中,触发条件接收的机顶盒应用程序包括节目播放过程中用户换台操作的程序、用户切换频点操作的程序以及监测前端业务信息数据版本变化的程序中的至少一种。In the above-mentioned conditional access system, in the step b1, the set-top box application program that triggers conditional access includes a program for users to switch channels during program playing, a program for users to switch frequency points, and a program for monitoring front-end service information data version changes at least one of the programs.
如上所述的条件接收系统,其特征在于,在所述步骤b1中,调用通用接口函数对条件接收系统进行的初始化包括OS适配层初始化、通信接口初始化、解复用初始化及存储器初始化。The above conditional access system is characterized in that, in the step b1, the initialization of the conditional access system by calling the general interface function includes OS adaptation layer initialization, communication interface initialization, demultiplexing initialization and memory initialization.
与现有技术相比,本发明的优点和积极效果是:本发明根据不同厂家的CA系统在机顶盒上移植时存在部分功能相同的接口调用的特点,在机顶盒中内置多种条件接收系统,并根据所有条件接收系统要移植的接口的功能设定通用接口函数作为统一对外的标准接口函数;同时,设定通用数据结构,将不同条件接收系统输出的解密数据分别转换为一种通用数据结构,利用设置的相关统一接口函数及统一的通用数据结构,方便条件接收系统的移植,可以同时兼容多种不同的条件接收系统,简化了机顶盒端软件开发流程,加快了应用软件开发速度,同时提高了跨平台移植速度,提高了条件接收系统提取私有数据的速度和效率,使用方便、简单。Compared with the prior art, the advantages and positive effects of the present invention are: the present invention has the characteristics of some functionally identical interface calls when CA systems of different manufacturers are transplanted on the set-top box, multiple conditional access systems are built in the set-top box, and According to the function of the interface to be transplanted by all conditional access systems, the general interface function is set as a unified external standard interface function; at the same time, the general data structure is set, and the decrypted data output by different conditional access systems are respectively converted into a general data structure, Utilize the related unified interface function and the unified general data structure to facilitate the transplantation of the conditional access system, and can be compatible with many different conditional access systems at the same time, which simplifies the software development process of the set-top box side, speeds up the development speed of the application software, and improves the The speed of cross-platform transplantation improves the speed and efficiency of conditional access system to extract private data, and it is convenient and simple to use.
结合附图阅读本发明的具体实施方式后,本发明的其他特点和优点将变得更加清楚。Other characteristics and advantages of the present invention will become clearer after reading the detailed description of the present invention in conjunction with the accompanying drawings.
附图说明Description of drawings
图1是本发明兼容多种条件接收系统移植的方法一个实施例的流程图;Fig. 1 is the flow chart of an embodiment of the method for the transplantation of multiple conditional access systems compatible with the present invention;
图2是本发明条件接收方法一个实施例的流程图。Fig. 2 is a flowchart of an embodiment of the conditional access method of the present invention.
具体实施方式Detailed ways
下面结合附图和具体实施方式对本发明的技术方案作进一步详细的说明。The technical solutions of the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
本发明针对现有条件接收系统移植时各自采用自有接口库定义接口及进行处理而存在的无法实现不同厂家类型的条件接收系统移植的兼容、机顶盒应用程序开发耗时较多、资源共享性较差的问题,考虑到虽然不同的条件接收系统的底层接口实现方式不同、但实现功能对机顶盒应用程序而言存在很多共性的特点,提出了移植兼容多种条件接收系统移植的方法,该方法通过设置相关统一接口函数及统一的通用数据结构,对资源进行统一管理,方便条件接收系统的移植,可以同时兼容多种不同的条件接收系统,简化了机顶盒端软件开发流程,提高了跨平台移植速度。The present invention aims at the inability to realize the compatibility of the conditional access system transplantation of different manufacturer types when the existing conditional access system is transplanted by using its own interface library to define the interface and process, the development of the set-top box application program takes more time, and the resource sharing is relatively poor. Considering that although different conditional access systems have different bottom interface implementation methods, but the implementation functions have many common characteristics for set-top box applications, a method of transplanting compatible with multiple conditional access systems is proposed. Set relevant unified interface functions and unified general data structure, manage resources in a unified way, facilitate the transplantation of conditional access systems, can be compatible with many different conditional access systems at the same time, simplify the software development process of the set-top box end, and improve the speed of cross-platform transplantation .
图1示出了本发明兼容多种条件接收系统移植的方法一个实施例的流程图。如图1所示,该实施例的具体实现过程如下:FIG. 1 shows a flow chart of an embodiment of the method for transplanting compatible multiple conditional access systems of the present invention. As shown in Figure 1, the specific implementation process of this embodiment is as follows:
S11:在机顶盒程序中内置若干种条件接收系统,根据所有条件接收系统要移植的接口的功能设定通用接口函数,提供给机顶盒应用程序。S11: Several conditional access systems are built into the set-top box program, and a general interface function is set according to the interface functions to be transplanted by all conditional access systems, and provided to the set-top box application program.
几乎所有的条件接收系统移植到机顶盒中时,均规定了存储数据接口、接收数据接口、条件接收系统内核运行所需要的内存、消息等处理接口以及与智能卡进行通信的接口,这些接口所实现的功能相同,对应有程序本身而言没有大的区别。因此,为实现应用程序对多种条件接收系统的兼容,将OS适配层接口函数、与智能卡进行通信的通信接口函数、解复用接口函数及数据存储接口函数设定为通用接口函数,作为条件接收系统移植的标准接口函数提供给机顶盒应用程序使用。When almost all conditional access systems are ported to set-top boxes, they stipulate the storage data interface, receiving data interface, memory, message and other processing interfaces required for the operation of the conditional access system kernel, and the interface for communicating with smart cards. The functions are the same, and there is no big difference in the corresponding program itself. Therefore, in order to realize the compatibility of the application program with various conditional access systems, the OS adaptation layer interface function, the communication interface function for communicating with the smart card, the demultiplexing interface function and the data storage interface function are set as general interface functions, as The standard interface functions transplanted by the conditional access system are provided to the set-top box application program.
此外,为避免对机顶盒公用接口资源的占用、提供资源利用率,通用接口函数还包括释放条件接收系统功能的释放接口函数,通过该释放接口函数可以在用户退出条件接收系统时释放其所占用的资源。In addition, in order to avoid the occupation of common interface resources of the set-top box and improve resource utilization, the general interface function also includes a release interface function that releases the conditional access system function. Through this release interface function, the occupied user can be released when the user exits the conditional access system. resource.
S12:判断当前智能卡所属的条件接收系统的类型,调用通用接口函数对与当前智能卡相对应的条件接收系统需要用到的模块进行初始化。S12: Determine the type of the conditional access system to which the current smart card belongs, and call the general interface function to initialize the modules required by the conditional access system corresponding to the current smart card.
机顶盒中内置有多种条件接收系统,但每次机顶盒中只能使用一种智能卡、实现一种条件接收系统。因此,需要根据当前智能卡所属的条件接收系统的类型,调用通用接口函数对与当前智能卡相对应的条件接收系统需要用的的相关功能模块进行初始化。There are multiple conditional access systems built in the set-top box, but only one smart card can be used in each set-top box to realize one conditional access system. Therefore, according to the type of the conditional access system to which the current smart card belongs, it is necessary to call the general interface function to initialize the relevant functional modules required by the conditional access system corresponding to the current smart card.
其中,在判断当前智能卡所属条件接收系统的类型时,可以根据当前智能卡的卡传输协议和卡标识来判断。机顶盒系统会对插入的智能卡进行复位,获知卡传输协议类型,根据复位返回数据获知卡标识,从而就可以判断是该智能卡是属于哪家CA系统的智能卡。Wherein, when judging the type of the conditional access system to which the current smart card belongs, it can be judged according to the card transmission protocol and the card identification of the current smart card. The set-top box system resets the inserted smart card, obtains the card transmission protocol type, and obtains the card identification according to the data returned by the reset, so that it can determine which CA system the smart card belongs to.
在判断出当前智能卡所属的条件接收系统的类型后,机顶盒系统将自动调用通用接口函数对条件接收系统对应的功能模块进行初始化,包括智能卡初始化、OS适配层初始化、通信接口初始化、解复用初始化及存储器初始化等的初始化设置。After determining the type of conditional access system to which the current smart card belongs, the set-top box system will automatically call the general interface function to initialize the functional modules corresponding to the conditional access system, including smart card initialization, OS adaptation layer initialization, communication interface initialization, and demultiplexing. Initial settings such as initialization and memory initialization.
S13:设定通用数据结构,将不同条件接收系统输出的数据分别转换为通用数据结构,提供给机顶盒应用程序。S13: Setting a common data structure, converting the data output by different CA systems into a common data structure, and providing it to the set-top box application program.
不同的条件接收系统在实现授权、邮件,指纹、IPPV、IPPT等相关应用时,经解密处理后输出的授权管理信息数据均采用自本系统自有的数据结构,不便于兼容多种条件接收系统的应用程序使用,因此,该实施例的条件接收系统移植方法设定了一个通用数据结构,将不同条件接收系统输出的数据均转换为该通用数据结构形式提供给机顶盒的应用程序,方便应用程序使用。When different conditional access systems implement authorization, mail, fingerprint, IPPV, IPPT and other related applications, the authorization management information data output after decryption processing adopts its own data structure, which is not easy to be compatible with multiple conditional access systems Therefore, the conditional access system transplantation method of this embodiment has set a common data structure, and the data that different conditional access systems output are all converted into the application program that this common data structure form is provided to the set-top box, facilitates the application program use.
通过定义上述通用接口函数和通用数据结构,对机顶盒资源进行统一管理,方便了不同条件接收系统的移植,实现了兼容性。By defining the above general interface function and general data structure, the STB resources are managed uniformly, which facilitates the transplantation of different conditional access systems and realizes compatibility.
在兼容多种条件接收系统的机顶盒中实现条件接收的方法如图2的实施例所示,该实施例的条件接收方法基于图1的兼容多种条件接收系统移植的方法,其具体流程如下:The method for realizing conditional access in the set-top box compatible with multiple conditional access systems is shown in the embodiment of Figure 2, the conditional access method of this embodiment is based on the method for transplanting compatible multiple conditional access systems of Figure 1, and its specific process is as follows:
S21:机顶盒应用程序触发条件接收,调用通用接口函数对条件接收系统进行初始化。S21: The set-top box application program triggers the conditional access, and calls the general interface function to initialize the conditional access system.
在该实施例中,触发条件接收的机顶盒应用程序可以是节目播放过程中用户换台操作的程序,或为用户切换频点操作的程序,或者是监测前端业务信息数据版本变化的程序,其中,前端业务信息数据版本变化主要是指节目管理表PMT和条件接收表CAT的数据发生了变化。只要其中有一个程序满足了触发条件,即可发出条件接收请求触发条件接收。在触发条件接收后,应用程序将调用通用接口函数对条件接收系统进行初始化,通用接口函数及初始化设置可参考上述图1的描述。In this embodiment, the set-top box application that triggers conditional access may be a program for users to switch channels during program playing, or a program for users to switch frequency points, or a program for monitoring changes in front-end service information data versions, wherein, The change of the front-end service information data version mainly means that the data of the program management table PMT and the conditional access table CAT have changed. As long as one of the programs satisfies the trigger condition, a conditional access request can be issued to trigger conditional access. After the conditional access is triggered, the application program will call the general interface function to initialize the conditional access system. For the general interface function and initialization settings, refer to the description in FIG. 1 above.
S22:调用通用接口函数从TS流中获得授权控制信息和授权管理信息并缓存。S22: Call the general interface function to obtain authorization control information and authorization management information from the TS stream and cache them.
这里,主要是调用解复用接口函数对前端发送的TS流进行过滤,获得相应的授权控制信息(ECM)和授权管理信息(EMM)。具体来说,机顶盒根据PMT和CAT表的CA描述,获得EMM和ECM的PI D值,然后根据PID值从TS流中过滤出ECM和EMM。对于存在多个slot的ECM及EMM数据来说,为避免数据丢失,在后台提取完一个slot的数据后,先配置缓存队列对提取的ECM和EMM数据进行缓存。Here, it is mainly to call the demultiplexing interface function to filter the TS stream sent by the front end, and obtain corresponding entitlement control information (ECM) and entitlement management information (EMM). Specifically, the set-top box obtains the PID values of EMM and ECM according to the CA description of the PMT and CAT tables, and then filters out the ECM and EMM from the TS stream according to the PID values. For ECM and EMM data with multiple slots, in order to avoid data loss, after extracting the data of a slot in the background, first configure the cache queue to cache the extracted ECM and EMM data.
S23:判断ECM及EMM数据是否获取完毕。若获取完毕,执行步骤S24;若未获取完,转至步骤S22继续获取。S23: Determine whether the ECM and EMM data have been acquired. If the acquisition is completed, execute step S24; if not, go to step S22 to continue acquisition.
S24:在ECM和EMM数据获取完毕后,通过通用接口函数将缓存中完整的ECM和EMM数据传输至条件接收系统对应的智能卡进行解密处理。S24: After the ECM and EMM data are obtained, transmit the complete ECM and EMM data in the cache to the smart card corresponding to the conditional access system for decryption processing through the general interface function.
智能卡的解密处理过程为:智能卡读取其内存储的用户个人分配密钥PDK,用PDK对EMM解密,取出业务密钥SK;然后,再用SK对ECM解密,解出加扰控制字CW。同时,解密过程还可以获得EMM所包含的地址、用户授权信息,如用户可以看的节目或时间段,用户付的收视费等信息,以实现相关授权管理。The decryption process of the smart card is as follows: the smart card reads the user's personal distribution key PDK stored in it, uses the PDK to decrypt the EMM, and takes out the service key SK; then, uses the SK to decrypt the ECM to get the scrambled control word CW. At the same time, the decryption process can also obtain the address contained in the EMM, user authorization information, such as the programs or time periods that the user can watch, and the viewing fees paid by the user, so as to realize related authorization management.
S25:将解密处理后的加扰控制字通过通用接口函数提供给解扰器,对加密的音视频流进行解扰。S25: Provide the decrypted scrambled control word to the descrambler through the general interface function to descramble the encrypted audio and video stream.
S26:将解密处理后的其他授权控制信息数据及授权管理信息数据,例如节目来源、时间、内容分类和节目价格等节目信息数据,邮件、指纹等数据转换为通用数据结构,提供给机顶盒应用程序。这里,其他授权控制信息数据是指ECM解密后除加扰控制字之外的其他信息数据,这些数据包含有节目来源、时间、内容分类及节目价格等节目信息数据,需要提供给机顶盒应用程序使用。而在授权管理信息数据EMM中,不仅包含有邮件、指纹等管理信息数据,还可能会包含IPPV、IPPT等点播节目的节目来源、时间、内容分类等节目信息数据,这些数据也需要提供给机顶盒应用程序使用。S26: Convert other authorized control information data and authorized management information data after decryption processing, such as program information data such as program source, time, content classification and program price, email, fingerprint and other data into a general data structure, and provide it to the set-top box application program . Here, other authorization control information data refers to other information data after ECM decryption except scrambling control words. These data include program information data such as program source, time, content classification and program price, etc., which need to be provided to the set-top box application program. . In the authorized management information data EMM, it not only includes management information data such as emails and fingerprints, but may also contain program information data such as source, time, and content classification of on-demand programs such as IPPV and IPPT. These data also need to be provided to the set-top box. application use.
在该实施例中,为便于应用程序使用、实现数据的实时快速分发,解扰后的数据转换为通用数据结构,以回调函数方式或消息方式提供给机顶盒应用程序,完成数字电视的解扰及相关的授权管理等功能。In this embodiment, in order to facilitate the use of application programs and realize the real-time and rapid distribution of data, the data after descrambling is converted into a general data structure, which is provided to the set-top box application program in the form of callback function or message, and the descrambling and processing of digital TV is completed. Related functions such as authorization management.
以上实施例仅用以说明本发明的技术方案,而非对其进行限制;尽管参照前述实施例对本发明进行了详细的说明,对于本领域的普通技术人员来说,依然可以对前述实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或替换,并不使相应技术方案的本质脱离本发明所要求保护的技术方案的精神和范围。The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art can still understand the foregoing embodiments. Modifications are made to the technical solutions described, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions claimed in the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 201010622846 CN102098575B (en) | 2010-12-31 | 2010-12-31 | Migration method compatible with multiple conditional access (CA) systems and CA method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 201010622846 CN102098575B (en) | 2010-12-31 | 2010-12-31 | Migration method compatible with multiple conditional access (CA) systems and CA method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN102098575A true CN102098575A (en) | 2011-06-15 |
| CN102098575B CN102098575B (en) | 2012-12-05 |
Family
ID=44131407
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 201010622846 Expired - Fee Related CN102098575B (en) | 2010-12-31 | 2010-12-31 | Migration method compatible with multiple conditional access (CA) systems and CA method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN102098575B (en) |
Cited By (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103997678A (en) * | 2014-04-24 | 2014-08-20 | 深圳创维-Rgb电子有限公司 | Multi-CAS seamless switching method and multi-CAS seamless switching system |
| CN104581318A (en) * | 2015-01-22 | 2015-04-29 | 青岛海信宽带多媒体技术有限公司 | Method and terminal capable of achieving dynamic plug response of intelligent card |
| CN104883594A (en) * | 2015-06-04 | 2015-09-02 | 深圳市九洲电器有限公司 | Method and system for switching card CA (conditional access) and card-free CA of set-top box |
| CN105376619A (en) * | 2015-10-26 | 2016-03-02 | 青岛海信宽带多媒体技术有限公司 | Communication method and device of set top box and intelligent card and set top box |
| CN106851391A (en) * | 2015-12-03 | 2017-06-13 | 国家新闻出版广电总局广播科学研究院 | A kind of condition receiving method and system for intelligent operating system |
| WO2017113617A1 (en) * | 2015-12-31 | 2017-07-06 | 深圳国微技术有限公司 | Method and device for realizing network interface conforming to multiple client types in conditional access card |
| CN107343212A (en) * | 2017-07-19 | 2017-11-10 | 青岛海信电器股份有限公司 | A kind of de-scrambling method of DTV, DTV and CAM cards |
| CN107592558A (en) * | 2017-06-09 | 2018-01-16 | 青岛海信宽带多媒体技术有限公司 | The exchange method and equipment of CA middlewares in a kind of set top box |
| CN107645679A (en) * | 2017-09-30 | 2018-01-30 | 深圳市九洲电器有限公司 | The production method and system of set top box cardless conditional access system |
| CN108200453A (en) * | 2018-01-25 | 2018-06-22 | 国家新闻出版广电总局广播科学研究院 | A kind of fusion conditions receive terminal system and method |
| CN108200476A (en) * | 2018-02-07 | 2018-06-22 | 深圳佳力拓科技有限公司 | The set-top-box system and method for a kind of while compatible multiple and different condition receiving systems |
| CN108683930A (en) * | 2018-04-27 | 2018-10-19 | 青岛海信传媒网络技术有限公司 | DTV, the initial method of its interface, device and readable storage medium |
| CN111131881A (en) * | 2019-12-30 | 2020-05-08 | 深圳Tcl数字技术有限公司 | PVR recording method, smart TV, and computer-readable storage medium |
| CN111949599A (en) * | 2020-08-12 | 2020-11-17 | 保定电鱼电子科技有限公司 | Embedded compatible system and its compatible method |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030159139A1 (en) * | 2002-01-02 | 2003-08-21 | Candelore Brant L. | Video slice and active region based dual partial encryption |
| CN101087376A (en) * | 2007-06-27 | 2007-12-12 | 北京海尔集成电路设计有限公司 | One-to-two digital TV receiving system |
| CN101184196A (en) * | 2007-05-24 | 2008-05-21 | 天栢宽带网络科技(上海)有限公司 | A system and method for multi-conditional access support used on a set-top box |
| CN101431599A (en) * | 2008-12-12 | 2009-05-13 | 四川金网通电子科技有限公司 | Full-mode set-top box |
| CN101562724A (en) * | 2009-05-21 | 2009-10-21 | 山东泰信电子有限公司 | Method for realizing switching between two CA systems on set-top box |
-
2010
- 2010-12-31 CN CN 201010622846 patent/CN102098575B/en not_active Expired - Fee Related
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030159139A1 (en) * | 2002-01-02 | 2003-08-21 | Candelore Brant L. | Video slice and active region based dual partial encryption |
| CN101184196A (en) * | 2007-05-24 | 2008-05-21 | 天栢宽带网络科技(上海)有限公司 | A system and method for multi-conditional access support used on a set-top box |
| CN101087376A (en) * | 2007-06-27 | 2007-12-12 | 北京海尔集成电路设计有限公司 | One-to-two digital TV receiving system |
| CN101431599A (en) * | 2008-12-12 | 2009-05-13 | 四川金网通电子科技有限公司 | Full-mode set-top box |
| CN101562724A (en) * | 2009-05-21 | 2009-10-21 | 山东泰信电子有限公司 | Method for realizing switching between two CA systems on set-top box |
Cited By (21)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103997678B (en) * | 2014-04-24 | 2017-01-18 | 深圳创维-Rgb电子有限公司 | Multi-CAS seamless switching method and multi-CAS seamless switching system |
| CN103997678A (en) * | 2014-04-24 | 2014-08-20 | 深圳创维-Rgb电子有限公司 | Multi-CAS seamless switching method and multi-CAS seamless switching system |
| CN104581318A (en) * | 2015-01-22 | 2015-04-29 | 青岛海信宽带多媒体技术有限公司 | Method and terminal capable of achieving dynamic plug response of intelligent card |
| CN104581318B (en) * | 2015-01-22 | 2017-11-17 | 青岛海信宽带多媒体技术有限公司 | Realize the method and terminal of smart card dynamic plug response |
| CN104883594A (en) * | 2015-06-04 | 2015-09-02 | 深圳市九洲电器有限公司 | Method and system for switching card CA (conditional access) and card-free CA of set-top box |
| CN105376619B (en) * | 2015-10-26 | 2019-03-19 | 广东海信宽带科技有限公司 | A kind of set-top box and the means of communication with smart card |
| CN105376619A (en) * | 2015-10-26 | 2016-03-02 | 青岛海信宽带多媒体技术有限公司 | Communication method and device of set top box and intelligent card and set top box |
| CN106851391A (en) * | 2015-12-03 | 2017-06-13 | 国家新闻出版广电总局广播科学研究院 | A kind of condition receiving method and system for intelligent operating system |
| WO2017113617A1 (en) * | 2015-12-31 | 2017-07-06 | 深圳国微技术有限公司 | Method and device for realizing network interface conforming to multiple client types in conditional access card |
| CN107592558A (en) * | 2017-06-09 | 2018-01-16 | 青岛海信宽带多媒体技术有限公司 | The exchange method and equipment of CA middlewares in a kind of set top box |
| CN107592558B (en) * | 2017-06-09 | 2020-08-04 | 青岛海信宽带多媒体技术有限公司 | Interaction method and device for CA middleware in set top box |
| CN107343212A (en) * | 2017-07-19 | 2017-11-10 | 青岛海信电器股份有限公司 | A kind of de-scrambling method of DTV, DTV and CAM cards |
| CN107645679A (en) * | 2017-09-30 | 2018-01-30 | 深圳市九洲电器有限公司 | The production method and system of set top box cardless conditional access system |
| CN107645679B (en) * | 2017-09-30 | 2020-02-07 | 深圳市九洲电器有限公司 | Production method and system of card-free condition receiving system of set top box |
| CN108200453A (en) * | 2018-01-25 | 2018-06-22 | 国家新闻出版广电总局广播科学研究院 | A kind of fusion conditions receive terminal system and method |
| CN108200453B (en) * | 2018-01-25 | 2020-10-02 | 国家新闻出版广电总局广播科学研究院 | A fusion conditional access terminal system and method |
| CN108200476A (en) * | 2018-02-07 | 2018-06-22 | 深圳佳力拓科技有限公司 | The set-top-box system and method for a kind of while compatible multiple and different condition receiving systems |
| CN108683930A (en) * | 2018-04-27 | 2018-10-19 | 青岛海信传媒网络技术有限公司 | DTV, the initial method of its interface, device and readable storage medium |
| CN108683930B (en) * | 2018-04-27 | 2020-09-25 | 青岛海信传媒网络技术有限公司 | Digital television, initialization method and device of interface of digital television and readable storage medium |
| CN111131881A (en) * | 2019-12-30 | 2020-05-08 | 深圳Tcl数字技术有限公司 | PVR recording method, smart TV, and computer-readable storage medium |
| CN111949599A (en) * | 2020-08-12 | 2020-11-17 | 保定电鱼电子科技有限公司 | Embedded compatible system and its compatible method |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102098575B (en) | 2012-12-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102098575B (en) | Migration method compatible with multiple conditional access (CA) systems and CA method | |
| EP1946551B1 (en) | Method for verifying a target device connected to a master device | |
| CN101184196B (en) | Multi-condition reception supporting system and method used for set up box | |
| US9479825B2 (en) | Terminal based on conditional access technology | |
| CN104581318B (en) | Realize the method and terminal of smart card dynamic plug response | |
| JP2008130096A (en) | Method and apparatus for providing device with access authority to access authority controlled digital content | |
| CN101800867A (en) | Method, device and digital-television receiving terminal for realizing ring buffer | |
| CN101138239A (en) | Toolkit Structure and Content Executors | |
| CN102124761B (en) | System for maintaining the broadcasting information in usim unlock environment and method thereof | |
| EP2129116A1 (en) | Unit and method for securely processing audio/video data with controlled access | |
| WO2024061005A1 (en) | Read processing method and apparatus for audio and video buffer | |
| FR2779599A1 (en) | System for television broadcasting to multiple users with right of access | |
| CN101291419A (en) | Method and device for authorization and descrambling in mobile multimedia broadcasting CAS | |
| CN101267639A (en) | A memory card and its method for realizing conditional access | |
| CN105611427B (en) | The control method for playing back and device of audio-video | |
| CN103037255A (en) | Automatic adaptive method for conditional access module (CAM) card | |
| CN107592558B (en) | Interaction method and device for CA middleware in set top box | |
| US10939173B2 (en) | Systems and methods for encrypting video | |
| CN105578208A (en) | IPTV video encryption transmission system | |
| CN102158758B (en) | Push system realization method based on digital television | |
| CN101951483B (en) | The changing method of the television channel of mobile terminal and mobile terminal | |
| KR100950599B1 (en) | Method for applying downloadable conditional access system and apparatus thereof | |
| CN1816137A (en) | Method for realizing master-slave intelligent card for one-user multiple-terminal management | |
| CN101247502B (en) | A digital multimedia broadcasting system and authorization method thereof | |
| CN102223582B (en) | Decryption and descrambling device, decryption and descrambling method, and deployment method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20121205 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |
