Nothing Special   »   [go: up one dir, main page]

CN102149013A - Data processing system and method for digital television as well as digital television receiving terminal - Google Patents

Data processing system and method for digital television as well as digital television receiving terminal Download PDF

Info

Publication number
CN102149013A
CN102149013A CN 201110076458 CN201110076458A CN102149013A CN 102149013 A CN102149013 A CN 102149013A CN 201110076458 CN201110076458 CN 201110076458 CN 201110076458 A CN201110076458 A CN 201110076458A CN 102149013 A CN102149013 A CN 102149013A
Authority
CN
China
Prior art keywords
module
map table
program map
parameter
middleware
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
CN 201110076458
Other languages
Chinese (zh)
Other versions
CN102149013B (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.)
Shenzhen Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN 201110076458 priority Critical patent/CN102149013B/en
Publication of CN102149013A publication Critical patent/CN102149013A/en
Application granted granted Critical
Publication of CN102149013B publication Critical patent/CN102149013B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a data processing system and method for a digital television as well as a digital television receiving terminal. The data processing system comprises a middleware module, a CA (conditional access) module as well as an adaptive module and a PMT (program map table) caching module which are arranged between the middleware module and the CA module, wherein the middleware module is used for sending parameters to the adaptive module; the adaptive module is used for acquiring the types of the parameters sent by the middleware module, and constituting a complete PMT in the caching module based on the types of the parameters, and the PMT corresponds to the parameters; and the adaptive module is used for sending the complete PMT to the CA module for descrambling. According to the embodiment of the invention, the coupling between the CA module and the middleware module can be reduced, the workload of developers for maintaining the CA module is lightened, and the implanting efficiency for various middleware can be improved.

Description

A kind of data handling system of Digital Television and method, receiving terminal for digital television
Technical field
The invention belongs to the digital television techniques field, relate in particular to a kind of data handling system of Digital Television and method, receiving terminal for digital television.
Background technology
Along with the implementation energetically of national integration of three networks policy, the market demand of set-top box value-added service is that entire society's development has brought huge business opportunity.The middleware company that is devoted to the digital television business exploitation at present also increases thereupon, and the form of expression of middleware becomes more diverse.Browser, data broadcasting, stock system, interactive game and the multiple value-added services such as pure middleware system of containing the Digital Television types of applications have obtained extensive transplanting and application at STB terminal.
Because the exploitation not standardization as yet of middleware at present, unitized, procedure, the software system architecture that each middleware manufacturers design is come out varies, and the scheme that set-top box manufacturer is adopted self, software architecture and CA module implementation method also are varied, and the existence of these differences has brought very burden to the transplanting work of middleware for undoubtedly STB terminal manufacturer.What wherein performance was comparatively outstanding is the descrambling problem of implementation of ciphered program in the middleware.
The CA module is very important module in the set-top box, and the CA module is determining directly whether ciphered program can normally be watched.And the radio and TV operator mostly encrypts original program stream in order to control the Broadcast Control power of program.When encryption occurred in the related program of middleware, it is comparatively loaded down with trivial details that the transplanting of middleware will become.Descrambling for ciphered program in the middleware system should be finished or be finished by set-top box manufacturer by middleware manufacturer, in the industry cycle exist different opinions in fact always, but consider workload and the funding problems of networking set-top box aspect ca authentication, the realization of CA descrambling function is at present mostly finished by set-top box producer at the box end.Middleware in reality is transplanted in the implementation process, and aspect playing programs, middleware is varied with the form of docking of STB terminal, and these forms are concluded, and roughly have following several.
(M1), when playing ciphered program, middleware with audio frequency identity code transmission package (Packet Identifier, PID), video PID, PCR PID dock with set-top box as input parameter definition playing programs function.
(M2), when playing ciphered program, middleware docks with set-top box as input parameter definition playing programs function with audio frequency PID, video PID, PCR PID, audio frequency ECM PID, video ECM PID.
(M3), when playing ciphered program, middleware docks with set-top box as input parameter definition playing programs function with data flow (TS) ID and the ServiceID that transmits stream.
(M4), when playing ciphered program, middleware docks with set-top box as input parameter definition playing programs function with the PID of the pmt table of program.
(M5), when playing ciphered program, middleware docks with set-top box as input parameter definition playing programs function with the pmt table of program.
Middleware and STB terminal be in multiple existence of docking form aspect the playing programs, and it is also varied to make that middleware starts the adaptation method of box end CA descrambling module, and method commonly used is at present concluded following several:
(N1), the parameter of the set-top box that passes to is audio frequency PID when middleware is play ciphered program, video PID, PCR PID or TSID, during Service ID, only with audio frequency PID, video PID, three parameters of PCR PID or TS ID, two parameters of Service ID, box end existing C A module can't directly start descrambling for middleware, existing method normally increases an interface again on the framework of current C A module, with audio frequency PID, video PID, PCR PID or TS ID, Service ID is as the coupling target, the database of having stored during from program searching by the mode of inquiry, find the PMT of current program, perhaps adopt the mode of the instant PMT of reception, from the transmission stream of broadcasting, receive the pairing PMT of current program, the CA module analyzes the ECM pid information of ciphered program from PMT, finish the descrambling function of middleware ciphered program thus.
When (N2), the parameter of the set-top box that passes to is ECM PID when middleware is play ciphered program, existing method normally directly with ECM PID as input parameter by interface of CA module definition, in this interface, finish the descrambling function of middleware ciphered program.
(N3), when the parameter of the set-top box that passes to is the PID of pmt table when middleware is play ciphered program, existing method normally with PMT PID as input parameter, by interface of CA module definition, in this interface, adopt the instant method that receives, hint obliquely at table (Program Map Table by creating program, PMT) demultiplexing passage, and PMT PID established in the demultiplexing passage, from the transmission stream of broadcasting, receive corresponding with it PMT, from PMT, analyze Entitlement Control Message (ECM) pid information of ciphered program, finish the descrambling function of ciphered program thus.
When (N4), the parameter of the set-top box that passes to is pmt table when middleware is play ciphered program, existing method normally with the memory address of pmt table as input parameter, by interface of CA module definition, the PMT content that the CA module is imported into by analysis in this interface, draw the ECM pid information of ciphered program, finish the descrambling function of ciphered program.
The present inventor finds that in research process there is following shortcoming in prior art:
(L1), middleware and set-top box are in multiple existence of docking form aspect the playing programs, make set-top box of a great variety with the adaptation method of middleware aspect the realization of CA descrambling, set-top box all is that the different forms of information content transmitted according to different types of middleware is by revising the interface of CA module usually, adopt the interface and the method that match with it to finish CA descrambling function, this just requires set-top box CA module to make some changes often according to the variety classes of middleware, makes set-top box can finish the descrambling function of middleware interior business.Will make the coupling of box end CA module and middleware kind strengthen like this, strengthened the workload of safeguarding the CA module, simultaneously, the transplanting work of middleware also becomes very loaded down with trivial details, usually transfer the CA descrambling function of having led to a kind of middleware, when transplanting the middleware of other kinds, also need to do once more the debugging work of repeatability.
(L2), comprise several programs (being generally less than 10) under the single frequency point in the common digital television transfer net, transmit Program Association Table (the Program AssociationTable of time interval circle transmission that flows with 0.1~0.5 second, PAT) table, this table has comprised the mapping relations between each program PMT PID corresponding with it, and with 0.1~0.5 second each program of time interval circle transmission pairing pmt table.When the parametric form of middleware broadcast set-top box that ciphered program passes to needs the CA module must adopt the mode of instant reception PMT to start the CA descrambling, existing method normally all receives the PMT of all programs under the current frequency, therefrom finds the PMT corresponding with the middleware encrypted sections to start the CA descrambling.Therefore, the method of this startup CA descrambling is to need a time course, and the number of program that comprises in the frequency at middleware place and business is many more, immediately find the time of reception of these programs and professional pmt table will be long more from these programs, middleware is play ciphered program, and to start the process of CA descrambling consuming time also just long more.
(L3), all may upgrade at any time to front end owing to operator, there is at any time the possibility that changes, adjusts in the PMT of each program, when middleware starts the CA descrambling, if the PMT in the employing program information database is as the parameter that starts the CA descrambling, the PMT content that the current PMT that is broadcasting is stored in the time of may be with the historical juncture user search is inconsistent, thereby that make that the CA module obtains is a PMT who is not complementary with current ciphered program, causes the descrambling failure of CA module.And, in order to alleviate the communication load of digital TV network, a lot of middleware video request program (Video On Demand, VOD) PMT of program only asks some sowing time front end just can transmit the user usually, therefore, when the user carried out program searching, the PMT of a lot of request programs can't get access to, so in VOD system, directly method by inquiry is the PMT that can't obtain corresponding program.This shows, obtain the startup that pmt table is finished the CA descrambling by the method for program information database inquiry, is insecure.
To sum up, how reducing the coupling of CA module and middleware, reduce the workload that the developer safeguards the CA module, improve the efficient of all kinds of middleware transplanting work, is one of direction of digital television techniques area research.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of data handling system of Digital Television and method, receiving terminal for digital television, be intended to reduce the coupling of CA module and middleware, reduce the workload that the developer safeguards the CA module, improve the efficient of all kinds of middleware transplanting work.
The embodiment of the invention is achieved in that a kind of data handling system of Digital Television, and described system comprises middleware module, and the CA module also is provided with an adaptation module and Program Map Table cache module between described middleware module and the described CA module,
Wherein, described middleware module is used for sending parameter to described adaptation module;
Described adaptation module is used to obtain the type of the parameter that described middleware module sends, and forms complete Program Map Table according to the type of described parameter in described cache module, the described parameter of described Program Map Table correspondence;
Described adaptation module also is used for complete Program Map Table is sent to described CA module, carries out descrambling by described CA module.
Preferably, described system comprises judges the startup module, be used to judge whether described middleware module starts, if described middleware module starts, described adaptation module is formed complete Program Map Table according to the type of described parameter in described Program Map Table cache module.
Preferably, described judgement starts module, be used to also judge whether described middleware module running intermediate-frequeney point redirect takes place, if described middleware module running intermediate-frequeney point generation redirect, described adaptation module is formed complete Program Map Table according to the type of described parameter in described Program Map Table cache module.
Preferably, described judgement starts module, be used to also judge whether the Program Association Table version under the current frequency changes, if the Program Association Table version under the current frequency changes, described adaptation module is formed complete Program Map Table according to the type of described parameter in described Program Map Table cache module, wherein, the corresponding one by one Program Association Table of frequency.
Preferably, described Program Map Table cache module when not receiving the parameter that adaptation module sends, receives according to the sequencing of each Program Map Table;
When receiving the parameter that adaptation module sends, the Program Association Table of the described parameter correspondence of preferred process.
Preferably, described Program Map Table cache module also is used to store the Program Association Table of middleware module all programs under the different frequent points of run duration needs, and wherein, the Program Association Table of having stored no longer repeats to receive.
Preferably, described adaptation module is formed in the process of complete Program Map Table in described cache module according to the type of described parameter, also judge to receive the threshold value whether time of described Program Map Table be provided with greater than system, if greater than, reception then stopped to described Program Map Table.
An also purpose of the embodiment of the invention is to provide a kind of data processing method of Digital Television, said method comprising the steps of:
Middleware module, CA module are provided, and adaptation module and Program Map Table cache module between described middleware module and the described CA module,
Described middleware module sends parameter to described adaptation module;
Described adaptation module is obtained the type of the parameter of described middleware module transmission, forms complete Program Map Table according to the type of described parameter in described cache module, wherein, and the corresponding described parameter of described Program Map Table;
Described adaptation module is sent to described CA module with complete Program Map Table, carries out descrambling by described CA module.
Preferably, described adaptation module is formed in described cache module before the step of complete Program Map Table according to the type of described parameter, and described method is further comprising the steps of:
Judge whether described middleware module starts, if described middleware module starts, then described adaptation module is formed complete Program Map Table according to the type of described parameter in described cache module.
Preferably, described adaptation module is formed in described cache module before the step of complete Program Map Table according to the type of described parameter, and described method is further comprising the steps of:
Judge whether described middleware module running intermediate-frequeney point redirect takes place, if described middleware module running intermediate-frequeney point generation redirect, then described adaptation module is formed complete Program Map Table according to the type of described parameter in described cache module.
Preferably, described adaptation module is formed in described cache module before the step of complete Program Map Table according to the type of described parameter, and described method is further comprising the steps of;
Judge whether the Program Association Table version under the current frequency changes, if change, then described adaptation module is formed complete Program Map Table according to the type of described parameter in described cache module, wherein, and the corresponding one by one Program Association Table of frequency.
Preferably, described adaptation module is formed in described cache module before the step of complete Program Map Table according to the type of described parameter, and described method also comprises:
Described Program Map Table cache module when not receiving the parameter that adaptation module sends, receives according to the sequencing of each Program Map Table;
When receiving the parameter that adaptation module sends, the Program Association Table of the described parameter correspondence of preferred process.
Preferably, when described adaptation module is formed complete Program Map Table according to the type of described parameter in described cache module, described Program Map Table cache module, also store the Program Association Table of middleware module all programs under the different frequent points that run duration needs, wherein, the Program Association Table of having stored no longer repeats to receive.
Preferably, when described adaptation module is formed complete Program Map Table according to the type of described parameter in described cache module, further comprising the steps of:
Judge to receive the threshold value whether time of described Program Map Table be provided with greater than system, if greater than, reception then stopped to described Program Map Table.
The embodiment of the invention is by being provided with adaptation module and Program Map Table cache module between middleware module and CA module, described adaptation module is obtained the type of the parameter of described middleware module transmission, in described cache module, form complete Program Map Table according to the type of described parameter and send to the CA module, carry out descrambling by described CA module, greatly reduce the coupling of set-top box CA module and middleware module, reduce the workload that the developer safeguards the CA module, improved the efficient of all kinds of middleware transplanting work.
Description of drawings
Fig. 1 is the overall construction drawing of the data handling system of the Digital Television that provides of the embodiment of the invention;
Fig. 2 is the flow chart of the data processing method of the Digital Television that provides of the embodiment of the invention;
Fig. 3 is the detail flowchart of the data processing method of the Digital Television that provides of the embodiment of the invention;
Fig. 4 is the formation schematic diagram of the PMT cache module element information that provides of the embodiment of the invention;
Fig. 5 is the specific implementation method flow chart of the PMT cache module that provides of the embodiment of the invention;
Fig. 6 is the flow chart of the building method of the sound that provides of the embodiment of the invention, video frequency program PMT.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The embodiment of the invention is by being provided with adaptation module and Program Map Table cache module between middleware module and CA module, described adaptation module is obtained the type of the parameter of described middleware module transmission, in described cache module, form complete Program Map Table according to the type of described parameter and send to the CA module, carry out descrambling by described CA module
First embodiment of the invention provides a kind of data handling system of Digital Television, sees also Fig. 1.
Described system comprises middleware module 11, and CA module 12 also is provided with an adaptation module 13 and Program Map Table cache module 14 between described middleware module 11 and the described CA module 12.
Wherein, described middleware module 11 sends parameter to described adaptation module 13, described adaptation module 13 is obtained the type of the parameter of described middleware module 11 transmissions, type according to described parameter is formed complete Program Map Table in described cache module 14, the corresponding described parameter of described Program Map Table.
Described adaptation module 13 is sent to described CA module 12 with complete Program Map Table, carries out descrambling by described CA module 12.
Wherein, described system comprises judges startup module 15, judge that starting module 15 judges whether described middleware module 11 starts, if described middleware module 11 starts, described adaptation module 13 is formed complete Program Map Table according to the type of described parameter in described Program Map Table cache module 14.
Wherein, described judgement starts module 15 and judges also whether described middleware module 11 running intermediate-frequeney points redirect takes place, if described middleware module 11 running intermediate-frequeney point generation redirects, described adaptation module 13 is formed complete Program Map Table according to the type of described parameter in described Program Map Table cache module 14.
Wherein, described judgement starts module 15 and judges also whether the Program Association Table version under the current frequency changes, if the Program Association Table version under the current frequency changes, described adaptation module 13 is formed complete Program Map Table according to the type of described parameter in described Program Map Table cache module 14, wherein, the corresponding one by one Program Association Table of frequency.
Wherein, described Program Map Table cache module 14 receives according to the sequencing of each Program Map Table when not receiving the parameter that adaptation module sends; When receiving the parameter that adaptation module sends, the Program Association Table of the described parameter correspondence of preferred process.
Wherein, the Program Association Table of described Program Map Table cache module 14 storage middleware module all programs under the different frequent points that run duration needs no longer repeats to receive for the Program Association Table of having stored.
Wherein, when described adaptation module 13 is formed complete Program Map Table according to the type of described parameter in described cache module 14, also judge to receive the threshold value whether time of described Program Map Table be provided with greater than system, if greater than, reception then stopped to described Program Map Table.
The course of work sees also hereinafter and describes more specifically.
The basic procedure of the data processing method of the Digital Television that the embodiment of the invention second embodiment provides sees also Fig. 2.
In step S201, the CA module of middleware module, set-top box end is provided, and adaptation module and Program Map Table cache module between described middleware module and the described CA module.
In step S202, middleware module sends parameter to described adaptation module.
In step S203, adaptation module is obtained the type of the parameter of middleware module transmission, forms complete Program Map Table according to the type of parameter in described cache module, wherein, and the corresponding parameter of Program Map Table.
In step S204, adaptation module is sent to the CA module with complete Program Map Table, carries out descrambling by the CA module.
Wherein, described adaptation module is formed before the step of complete Program Map Table in described cache module according to the type of described parameter, judge also whether described middleware module starts, if described middleware module starts, then described adaptation module is formed complete Program Map Table according to the type of described parameter in described cache module.
Preferably, described adaptation module is formed before the step of complete Program Map Table in described cache module according to the type of described parameter, judge also whether described middleware module running intermediate-frequeney point redirect takes place, if described middleware module running intermediate-frequeney point generation redirect, then described adaptation module is formed complete Program Map Table according to the type of described parameter in described cache module.
Preferably, described adaptation module is formed before the step of complete Program Map Table in described cache module according to the type of described parameter, judge also whether the Program Association Table version under the current frequency changes, if change, then described adaptation module is formed complete Program Map Table according to the type of described parameter in described cache module, wherein, the corresponding one by one Program Association Table of frequency.
Wherein, adaptation module is formed in cache module before the step of complete Program Map Table according to the type of parameter, and described method also comprises:
Described Program Map Table cache module when not receiving the parameter that adaptation module sends, receives according to the sequencing of each Program Map Table;
When receiving the parameter that adaptation module sends, the Program Association Table of the described parameter correspondence of preferred process.
Wherein, when described adaptation module is formed complete Program Map Table according to the type of described parameter in described cache module, described Program Map Table cache module, also store the Program Association Table of middleware module all programs under the different frequent points that run duration needs, wherein, the Program Association Table of having stored no longer repeats to receive.
Wherein, when described adaptation module is formed complete Program Map Table according to the type of described parameter in described cache module, further comprising the steps of:
Judge to receive the threshold value whether time of described Program Map Table be provided with greater than system, if greater than, reception then stopped to described Program Map Table.
The embodiment of the invention also provides a kind of digital TV terminal that utilizes above-mentioned data processing method, and especially a kind of set-top box no longer describes in detail herein.
See also Fig. 3, the detailed process of the data processing method of the Digital Television that Fig. 3 provides for the embodiment of the invention.
For the ease of determining that different middleware module pass to the parameter type of set-top box, the embodiment of the invention adopts the character string of following several simplification to represent:
(a)Info=AudioPid.VideoPid.PcrPid;
(b)Info=AudioPid.VideoPid.PcrPid.AudioEcmPid.VideoEcmPid;
(c)Info=TsId.ServiceId;
(d)Info=PmtPid;
(e)Info=ServicePmt。
Based on above-mentioned character string forms, below specify the operation principle of adaptation module by the sound of middleware module definition, the adaptive flow process of video playback interface.Wherein, the following method of the embodiment of the invention and step are all finished in the sound of middleware module definition, video program play interface.
Step S301 sends initiation message to Program Map Table (PMT) cache module, and notice PMT cache module is created and started, and changes step S302 over to;
Step S302 reads the parameter that middleware module is come by audio frequency and video playback interface function passes, judges the type of described parameter, if (a), then changes step S303 over to; If (b), then change step S304 over to; If (c), then change step S305 over to; If (d), then change step S306 over to; If (e), then change step S307 over to; Other situations then point out parameter invalid, change step S310 over to;
Step S303, with AudioPid, VideoPid, PcrPid as the coupling target, setting threshold is 3 seconds, the PMT that the search of inquiry PMT cache module matches if found, then changes step S308 in 3 seconds; When query time surpasses 3 seconds, perhaps do not find, then point out PMT to obtain failure, and change step S310 over to;
Step S304, according to AudioPid, VideoPid, PcrPid, AudioEcmPid and VideoEcmPid, construct a PMT (concrete building method see also Fig. 5 and at the detailed description of Fig. 5), and send the message carry the PMT content to the PMT cache module, notice PMT cache module injects preservation with current PMT, changes step S308 over to;
Step S305, send the message carry ServiceID, TsId to the PMT cache module, notice PMT cache module preferentially obtains and current ServiceID and the corresponding PMT of TsId, setting threshold is 3 seconds, with ServiceID, TsId as the coupling target, PmtBuffer in the inquiry PMT cache module, if inquiry is not empty in 3 seconds, then change step S308 over to; If the time spent surpasses 3 seconds, perhaps be empty, then point out PMT to obtain failure, change step S310 over to;
Step S306, send the message carry PMTPID to the PMT cache module, notice PMT cache module preferentially obtains the corresponding PMT with current PMTPID, setting threshold is 3 seconds, with PMTPID as the coupling target, PmtBuffer in the inquiry PMT cache module, if inquiry is not empty in 3 seconds, then change step S308 over to; If surpass 3 seconds, perhaps be empty, then point out PMT to obtain failure, and change step S310 over to;
Step S307, read the PMT that middleware module is come by the playing programs function passes, and send the message of carrying PMT to the PMT cache module, notice PMT cache module injects preservation with current PMT, changes step S308 over to;
Step S308, the PMT that gets access to is passed to box end CA module with PMT as the interface function of input parameter by what the CA module provided, request CA module starts descrambling;
Step S309, setting audio PID, video PID, PCR PID, and start decoder, afterwards, the CA module is started working, and ciphered program normally broadcasts.
Step S310, end are returned.
In specific implementation process, usually comprise several programs under the single frequency point in the digital television transfer net, transmit the pat table of time interval circle transmission that flows with 0.1~0.5 second, this pat table has comprised the mapping relations between each program PMT PID corresponding with it, the pairing pmt table of each program of time interval circle transmission with 0.1~0.5 second, and the situation of change by the 6th version number that byte is carried of pat table, whether notice terminal set top box front end environment is changed and adjusted the program PMT that current frequency is transmitted down.This shows that the reception of pmt table is to need a time course, and the number of program that comprises in the frequency at middleware module place and business is many more, the time of reception that gets access to the pmt table of these programs and business will be long more; And by monitoring to PAT version number, can learn the more new situation of the program PMT under the current frequency, in order to make all kinds of middleware module system start constantly and in the whole service process during at requesting terminal broadcast ciphered program at it, middleware module can be obtained PMT for it fast and pass to box end CA descrambling module, to reach the purpose of quick startup CA descrambling, the switch speed of secure service and program in the raising middleware module system, and guarantee the program play of asking each constantly can both get access to correct PMT, the present invention has designed a PMT cache module.
The PMT cache module that the embodiment of the invention provides mainly includes following feature:
When (1), the time loss that PMT is received and receive is controlled at middleware module system start-up or during middleware module running intermediate-frequeney point generation redirect or terminal monitor PAT version under the current frequency when changing, when only detecting these situations generations, just start the reception of cache module to PMT.
(2), the PMT cache module will store the PMT of middleware module system all programs under each different frequent points that needs during the whole service, and control that same program and professional PMT can not repeat to receive under the same frequency.
(3), when middleware module system start-up or during the run duration frequency generation redirect of middleware module system or terminal monitor PAT version under the current frequency when changing, when the PMT cache module when not receiving the message that adaptation module sends, to be followed successively by it and receive PMT according to the PMT PID of each program sequencing described in the PAT; When the PMT cache module receives the message that adaptation module sends, cache module can be broken normal reception order at once, according to the message content that obtains, from PAT, find the PMT PID corresponding with message content, be preferably the PMT arrangement reception that adaptation module is being asked; When the PMT cache module detected message that adaptation module sends and carries the PMT content, the PMT cache module will directly adopt current PMT, and no longer repeated to receive this PMT for corresponding program with it.
(4), at middleware module system run duration, the PMT that PMT that the PMT cache module is received self or middleware module send over all preserves, with the inquiry at any time that makes things convenient for middleware module with call.
Above-mentioned design mechanism by utilization PMT cache module, for the quick startup of obtaining fast with the CA module of middleware module PMT provides guarantee, and when playing ciphered program for middleware module to PMT the condition that provides is provided immediately, guaranteed instantaneity and the accuracy of ciphered program PMT.
See also Fig. 4, form shown in Figure 4 is that PMT cache module element information constitutes tabulation.
The embodiment of the invention defines a structure with the content of form shown in Figure 4 as the member, and adopts internal memory of this structure application, with this piece internal memory as the cache module that obtains PMT under the current frequency of middleware module.Wherein, the size of internal memory is decided according to the program and the professional number that are transmitted in the middleware module operation frequency, the space of internal memory is carried out dynamic assignment at the middleware module run duration according to frequency redirect situation, when the middleware modular system withdraws from its whole releases.
Based on above-mentioned strategy, see also Fig. 5, Fig. 5 is the specific implementation method flow process of embodiment of the invention PMT cache module.
Step S501, create a message queue, finish communicating by letter of adaptation module and PMT cache module, change step S502 over to by the message transmit mechanism.
Step S502, query messages formation, when the PMT cache module has initiation message to arrive, execution in step S503 then, otherwise execution in step S502.
The current frequency of step S503, the operation of locking middleware module is created PAT demultiplexing passage, and the PID 0X00 of PAT is established into the demultiplexing passage, starts the demultiplexing passage and receives PAT, changes step S504 over to.
Step S504, analysis PAT, therefrom obtain the program and the professional total TotalNum that are transmitted under the current frequency, adopt mark C function sizeof to calculate the memory headroom size M of structure temporary in the form shown in Figure 4, distribute an internal memory as all programs under the current frequency and professional PMT cache module with TotalNum * M as the space size then, change step S505 over to.
Step S505, analysis PAT, obtain the ServiceID of all programs of the TSID at current frequency place and transmission, and the PID of the pairing PMT of each ServiceID, and fill it into successively among the member of TSID, ServiceID in the cache module and PMTPID, change step S506 over to.
Step S506, query messages formation, when the message of carrying TSID and ServiceId arrives, execution in step S509 then; When the message of carrying PMTPID arrives, execution in step S5010 then; When the message of carrying the PMT content arrives, execution in step S5011 then, otherwise execution in step S5012.
Step S507, analyze PAT, obtain the version number of PAT, detect and whether change,, change step S505 over to if then all members in the PMT cache module under the current frequency are all put 0; Otherwise, change step S508 over to.
Step S508, detect the frequency that middleware module moves whether redirect takes place, if, execution in step S503 then, otherwise execution in step S506.
Step S509, with the TSID in the message and ServiceId as coupling target query PMT cache module, when corresponding with it PmtBuffer content is sky, then according to the PID of PMT corresponding with it in the cache module, create and set PMT demultiplexing passage, start the reception of PMT, and the PMT that obtains is stored in the cache module among the current TsId and the pairing PmtBuffer of ServiceID; When PmtBuffer is not sky, do not need to start the PMT receiving course, change step S506 over to.
Step S510, with the PMTPID in the message as coupling target query PMT cache module, when corresponding with it PmtBuffer content is sky, then according to the PID of pmt table corresponding with it in the cache module, create and set PMT demultiplexing passage, start the reception of pmt table, and the pmt table that obtains is stored in the cache module among the pairing PmtBuffer of current PMTPID; When PmtBuffer is not sky, do not need to start the PMT receiving course, change step S506 over to.
The PMT content that step S511, analysis pass over by message, therefrom obtain ServiceID, as coupling target query PMT cache module, find the position PmtBuffer of corresponding with it storage PMT with ServiceID, and PMT is filled into this position, change step S506 over to.
Step S512, according to PMT pairing PmtBuffer of next ServiceID in the sequencing described in PAT query caching module successively of program, when PmtBuffer is sky, then according to the ServiceID pairing PMT PID corresponding with it, create and set PMT demultiplexing passage, being provided with overtime is 2 seconds, starts the reception of PMT.If receive successfully, then the PMT that obtains is stored among the PmtBuffer corresponding with it in the cache module, and change step S506 over to, if take defeat, then directly change step S506 over to; When PmtBuffer is not sky, do not need to start the PMT receiving course, directly change step S506 over to.
The parameter type that passes over by sound, video playback interface function when middleware module is during for (b), the present invention will adopt AudioPid, the VideoPid in the parameter, the information of AudioEcmPid, VideoEcmPid to form a PMT by the method for directly constructing, offer box end CA module, so just, can save the time loss that from transmit stream, receives PMT, thereby be that middleware module starts box end CA descrambling module with the fastest speed.By analyzing PMT, we know that the PMT of standard is made of jointly gauge outfit, several basic stream description and the CA descriptor of 12 bytes.Wherein first byte of gauge outfit is the TableID 0x02 of PMT agreement, low four and the 3rd byte of second byte are the length of PMT, deposit the content of basic stream description and CA descriptor since the 13rd byte, last 4 bytes are the CRC check value.Basic stream description has comprised the length of type, audio frequency PID, video PID and this descriptor of each program, and the CA descriptor has comprised encryption identification 0x09, CA vendor id, the ECM PID of ciphered program and the length of CA descriptor of PMT agreement.
See also Fig. 6, Fig. 6 is the flow process of the building method of sound, video frequency program PMT.
Step S601, type of statement are that unsigned char, length are 1024 array uPmtBuf and are initialized as 0x00, the PMT content that is used for storage configuration, state a pointer pPmtBuf that type is unsigned char*, point to uPmtBuf simultaneously, state a variable nByteCnt that type is unsigned short, and initialize is 0, changes step S602 over to.
Step S602, first byte of uPmtBuf is filled to 0x02 (TableID of standard P MT agreement), and, nByteCnt is increased by 12, change step S603 over to 12 bytes of pointer pPmtBuf skew.
Step S603, give pPmtBuf[0] with 0x02 (standard P MT agreement video frequency program type) assignment, the most-significant byte of the double byte video PID that middleware module is passed over takes out assignment and gives pPmtBuf[1], the least-significant byte of double byte video PID is taken out assignment to pPmtBuf[2], give pPmtBuf[4 with the length 0x06 assignment of the CA descriptor of video frequency program], with 5 bytes of pointer pPmtBuf skew, nByteCnt is increased by 5, change step S604 over to.
Step S604, give pPmtBuf[0 with 0x09 (sign of the CA descriptor of standard P MT agreement) assignment], give pPmtBuf[1 with the length 0x04 assignment of video ECM information description], CA kind according to the set-top box use, obtain double byte CA vendor id value, the most-significant byte of CA vendor id is taken out assignment to pPmtBuf[2], the least-significant byte of CA vendor id is taken out assignment to pPmtBuf[3], the most-significant byte of the double byte video VideoEcmPid that middleware module is passed over takes out assignment and gives pPmtBuf[4], the least-significant byte of VideoEcmPid is taken out assignment to pPmtBuf[5], with 6 bytes of pointer pPmtBuf skew, nByteCnt is increased by 6, change step S605 over to.
Step S605, give pPmtBuf[0] with 0x04 (standard P MT agreement audio program type) assignment, the most-significant byte of the double byte audio frequency PID that middleware module is passed over takes out assignment and gives pPmtBuf[1], the least-significant byte of double byte audio frequency PID is taken out assignment to pPmtBuf[2], give pPmtBuf[4 with the length 0x06 assignment of the CA descriptor of audio program], with 5 bytes of pointer pPmtBuf skew, nByteCnt is increased by 5, change step S606 over to.
Step S606, give pPmtBuf[0 with 0x09 (sign of the CA descriptor of standard P MT agreement) assignment], give pPmtBuf[1 with the length 0x04 assignment of audio frequency ECM information description], CA kind according to the set-top box use, obtain double byte CA vendor id value, the most-significant byte of CA vendor id is taken out assignment to pPmtBuf[2], the least-significant byte of CA vendor id is taken out assignment to pPmtBuf[3], the most-significant byte of the double byte audio A udioEcmPid that middleware module is passed over takes out assignment and gives pPmtBuf[4], the least-significant byte of AudioEcmPid is taken out assignment to pPmtBuf[5], with 6 bytes of pointer pPmtBuf skew, nByteCnt is increased by 6, change step S607 over to.
Step S607, nByteCnt is increased by 4 (the byte numbers of CRC check position, PMT end), reduce by 3 (first three byte of pmt table head), calculate the length of PMT thus, the most-significant byte of nByteCnt is taken out assignment to uPmtBuf[1], the least-significant byte of nByteCnt is taken out assignment to uPmtBuf[2].
The embodiment of the invention is by being provided with adaptation module and Program Map Table cache module between middleware module and CA module, described adaptation module is obtained the type of the parameter of described middleware module transmission, in described cache module, form complete Program Map Table according to the type of described parameter and send to the CA module, carry out descrambling by described CA module, greatly reduce the coupling of set-top box CA module and middleware module, reduce the workload that the developer safeguards the CA module, improved the efficient of all kinds of middleware transplanting work.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (15)

1. the data handling system of a Digital Television is characterized in that,
Described system comprises middleware module, CA module, also is provided with an adaptation module and Program Map Table cache module between described middleware module and the described CA module,
Wherein, described middleware module is used for sending parameter to described adaptation module;
Described adaptation module is used to obtain the type of the parameter that described middleware module sends, and forms complete Program Map Table according to the type of described parameter in described Program Map Table cache module, the described parameter of described Program Map Table correspondence;
Described adaptation module also is used for complete Program Map Table is sent to described CA module, carries out descrambling by described CA module.
2. the data handling system of Digital Television as claimed in claim 1 is characterized in that,
Described system comprises judges the startup module, is used to judge whether described middleware module starts, if described middleware module starts, described adaptation module is formed complete Program Map Table according to the type of described parameter in described Program Map Table cache module.
3. the data handling system of Digital Television as claimed in claim 2, it is characterized in that, described judgement starts module, be used to also judge whether described middleware module running intermediate-frequeney point redirect takes place, if described middleware module running intermediate-frequeney point generation redirect, described adaptation module is formed complete Program Map Table according to the type of described parameter in described Program Map Table cache module.
4. the data handling system of Digital Television as claimed in claim 2, it is characterized in that, described judgement starts module, be used to also judge whether the Program Association Table version under the current frequency changes, if the Program Association Table version under the current frequency changes, described adaptation module is formed complete Program Map Table according to the type of described parameter in described Program Map Table cache module, wherein, and the corresponding one by one Program Association Table of frequency.
5. as the data handling system of claim 2,3 or 4 described Digital Television, it is characterized in that described Program Map Table cache module when not receiving the parameter that adaptation module sends, receives according to the sequencing of each Program Map Table;
When receiving the parameter that adaptation module sends, the Program Association Table of the described parameter correspondence of preferred process.
6. the data handling system of Digital Television as claimed in claim 1, it is characterized in that, described Program Map Table cache module, also be used to store the Program Association Table of middleware module all programs under the different frequent points of run duration needs, wherein, the Program Association Table of having stored no longer repeats to receive.
7. the data handling system of Digital Television as claimed in claim 1, it is characterized in that, described adaptation module is formed in the process of complete Program Map Table in described Program Map Table cache module according to the type of described parameter, also judge to receive the threshold value whether time of described Program Map Table be provided with greater than system, if greater than, then stop reception to described Program Map Table.
8. the data processing method of a Digital Television is characterized in that, sets in advance adaptation module and Program Map Table cache module between middleware module and the CA module, said method comprising the steps of:
Described middleware module sends parameter to described adaptation module;
Described adaptation module is obtained the type of the parameter of described middleware module transmission, forms complete Program Map Table according to the type of described parameter in described cache module, wherein, and the corresponding described parameter of described Program Map Table;
Described adaptation module is sent to described CA module with complete Program Map Table, carries out descrambling by described CA module.
9. the data processing method of Digital Television as claimed in claim 8 is characterized in that, described adaptation module is formed in described cache module before the step of complete Program Map Table according to the type of described parameter, and described method is further comprising the steps of:
Judge whether described middleware module starts, if described middleware module starts, then described adaptation module is formed complete Program Map Table according to the type of described parameter in described cache module.
10. the data processing method of Digital Television as claimed in claim 8 is characterized in that, described adaptation module is formed in described cache module before the step of complete Program Map Table according to the type of described parameter, and described method is further comprising the steps of:
Judge whether described middleware module running intermediate-frequeney point redirect takes place, if described middleware module running intermediate-frequeney point generation redirect, then described adaptation module is formed complete Program Map Table according to the type of described parameter in described cache module.
11. the data processing method of Digital Television as claimed in claim 8 is characterized in that, described adaptation module is formed in described cache module before the step of complete Program Map Table according to the type of described parameter, and described method is further comprising the steps of;
Judge whether the Program Association Table version under the current frequency changes, if change, then described adaptation module is formed complete Program Map Table according to the type of described parameter in described cache module, wherein, and the corresponding one by one Program Association Table of frequency.
12. the data processing method of Digital Television as claimed in claim 8 is characterized in that, described adaptation module is formed in described cache module before the step of complete Program Map Table according to the type of described parameter, and described method also comprises:
Described Program Map Table cache module when not receiving the parameter that adaptation module sends, receives according to the sequencing of each Program Map Table;
When receiving the parameter that adaptation module sends, the Program Association Table of the described parameter correspondence of preferred process.
13. the data processing method of Digital Television as claimed in claim 6, it is characterized in that, when described adaptation module is formed complete Program Map Table according to the type of described parameter in described cache module, described Program Map Table cache module, also store the Program Association Table of middleware module all programs under the different frequent points that run duration needs, wherein, the Program Association Table of having stored no longer repeats to receive.
14. the data processing method of Digital Television as claimed in claim 6 is characterized in that, and is when described adaptation module is formed complete Program Map Table according to the type of described parameter in described cache module, further comprising the steps of:
Judge to receive the threshold value whether time of described Program Map Table be provided with greater than system, if greater than, reception then stopped to described Program Map Table.
15. digital TV terminal that utilizes the described data processing method of claim 8 to 14.
CN 201110076458 2011-03-29 2011-03-29 Data processing system and method for digital television as well as digital television receiving terminal Expired - Fee Related CN102149013B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110076458 CN102149013B (en) 2011-03-29 2011-03-29 Data processing system and method for digital television as well as digital television receiving terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110076458 CN102149013B (en) 2011-03-29 2011-03-29 Data processing system and method for digital television as well as digital television receiving terminal

Publications (2)

Publication Number Publication Date
CN102149013A true CN102149013A (en) 2011-08-10
CN102149013B CN102149013B (en) 2013-06-26

Family

ID=44422969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110076458 Expired - Fee Related CN102149013B (en) 2011-03-29 2011-03-29 Data processing system and method for digital television as well as digital television receiving terminal

Country Status (1)

Country Link
CN (1) CN102149013B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102595236A (en) * 2012-01-31 2012-07-18 深圳创维数字技术股份有限公司 Set top box and method thereof for changing channels of digital television
CN103686214A (en) * 2013-12-30 2014-03-26 深圳Tcl新技术有限公司 Methods for encrypting television programs and playing encrypted television programs, front end and terminal
CN105323644A (en) * 2015-10-14 2016-02-10 四川长虹电器股份有限公司 Method for checking playback authorization of program recorded by digital television
CN106101838A (en) * 2016-07-18 2016-11-09 青岛海信电器股份有限公司 The processing method of CI module and digit receiving terminal in quick turn-on
CN107896341A (en) * 2017-11-30 2018-04-10 青岛海信电器股份有限公司 The player method and television equipment of a kind of scrambled program

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080092196A1 (en) * 2006-09-29 2008-04-17 Samsung Electronics Co., Ltd. Non-provisional utility method and apparatus for receiving, storing, and executing data broadcast application
CN101176342A (en) * 2005-05-10 2008-05-07 汤姆森许可贸易公司 Method and apparatus for caching access information for faster digital cable tuning
CN101202877A (en) * 2007-07-25 2008-06-18 深圳市同洲电子股份有限公司 Set-top box and method and apparatus for program switch
CN101616127A (en) * 2008-06-24 2009-12-30 深圳市同洲电子股份有限公司 A kind of data de-scrambling method, device and receiving terminal
CN101895669A (en) * 2010-07-20 2010-11-24 深圳市茁壮网络股份有限公司 General middleware adaptation layer system for digital television
CN101924909A (en) * 2010-07-20 2010-12-22 深圳市茁壮网络股份有限公司 Middleware adaptation layer-based universal digital television conditional access system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101176342A (en) * 2005-05-10 2008-05-07 汤姆森许可贸易公司 Method and apparatus for caching access information for faster digital cable tuning
US20080092196A1 (en) * 2006-09-29 2008-04-17 Samsung Electronics Co., Ltd. Non-provisional utility method and apparatus for receiving, storing, and executing data broadcast application
CN101202877A (en) * 2007-07-25 2008-06-18 深圳市同洲电子股份有限公司 Set-top box and method and apparatus for program switch
CN101616127A (en) * 2008-06-24 2009-12-30 深圳市同洲电子股份有限公司 A kind of data de-scrambling method, device and receiving terminal
CN101895669A (en) * 2010-07-20 2010-11-24 深圳市茁壮网络股份有限公司 General middleware adaptation layer system for digital television
CN101924909A (en) * 2010-07-20 2010-12-22 深圳市茁壮网络股份有限公司 Middleware adaptation layer-based universal digital television conditional access system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102595236A (en) * 2012-01-31 2012-07-18 深圳创维数字技术股份有限公司 Set top box and method thereof for changing channels of digital television
CN102595236B (en) * 2012-01-31 2016-05-18 深圳创维数字技术股份有限公司 A kind of method of Set Top Box and changing channels of digital television thereof
CN103686214A (en) * 2013-12-30 2014-03-26 深圳Tcl新技术有限公司 Methods for encrypting television programs and playing encrypted television programs, front end and terminal
CN103686214B (en) * 2013-12-30 2017-09-05 深圳Tcl新技术有限公司 Method, front end and the terminal of encrypted television program are encrypted and played to TV programme
CN105323644A (en) * 2015-10-14 2016-02-10 四川长虹电器股份有限公司 Method for checking playback authorization of program recorded by digital television
CN105323644B (en) * 2015-10-14 2018-07-31 四川长虹电器股份有限公司 The method that DTV records programme replay authorization check
CN106101838A (en) * 2016-07-18 2016-11-09 青岛海信电器股份有限公司 The processing method of CI module and digit receiving terminal in quick turn-on
CN106101838B (en) * 2016-07-18 2019-07-16 青岛海信电器股份有限公司 The processing method and digit receiving terminal of CI module in quick turn-on
CN107896341A (en) * 2017-11-30 2018-04-10 青岛海信电器股份有限公司 The player method and television equipment of a kind of scrambled program

Also Published As

Publication number Publication date
CN102149013B (en) 2013-06-26

Similar Documents

Publication Publication Date Title
US10666894B2 (en) Receiver and method for reporting the usage of advanced television services
CN101785255B (en) For the data flow con-trol of the network equipment
US9191624B2 (en) System and method to determine an authorization of a wireless set-top box device to receive media content
CN101159577B (en) Apparatus for receiving adaptive broadcast signal and method thereof
US9538260B2 (en) Receiving device, receiving method, program, and broadcasting system
US9578391B2 (en) Apparatus and method for processing an interactive service
JP5978000B2 (en) Receiving machine
JP6276593B2 (en) Receiving apparatus, receiving method, and program
US8997141B2 (en) Cooperative communication/broadcasting system, application management server, receiver, reception method for receiver, and application management method for application management server
EP2840798A1 (en) Reception device, reception method, transmission device, transmission method, and program
US20130065521A1 (en) Near field communication (nfc) terminal and method for data synchronization
WO2013031556A1 (en) Receiver and reception method
US20080172712A1 (en) Multimedia data transmitting apparatus, multimedia data receiving apparatus, multimedia data transmitting method, and multimedia data receiving method
US20080244640A1 (en) Synchronization of digital television programs with internet web application
KR20110069174A (en) A broadcast system with a local electronic service guide generation
CN102149013B (en) Data processing system and method for digital television as well as digital television receiving terminal
US10142701B2 (en) Method and apparatus for audio communication of information
CN102362506A (en) Request signal of an image program according to specific input sources based on the received list to the external display devices
CA2638275C (en) Broadcasting receiver and method of transmitting/receiving broadcasting signal
CN102098570B (en) Digital television information playing method and system
US8079063B2 (en) Method and apparatus for controlling home network devices using rich site summary service
CN112543361B (en) Multi-device playing method and device based on intelligent cabin and electronic terminal
CN102685571A (en) Real-time interactive method and device of digital TV user groups of unicast network
CN117676255A (en) IPTV multimedia on-demand method and system
CN111935515A (en) Method, device, equipment and medium for generating electronic program guide data table

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
C56 Change in the name or address of the patentee

Owner name: SHENZHEN SKYWORTH DIGITAL TECHNOLOGY CO., LTD.

Free format text: FORMER NAME: SKY-WORTH DIGITAL TECHNOLOGY CO., LTD.;SHENZHEN CITY

CP01 Change in the name or title of a patent holder

Address after: 518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road SKYWORTH building A block 14 layer

Patentee after: SHENZHEN SKYWORTH DIGITAL TECHNOLOGY Co.,Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road SKYWORTH building A block 14 layer

Patentee before: SHENZHEN SKYWORTH DIGITAL TECHNOLOGY Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130626

CF01 Termination of patent right due to non-payment of annual fee