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

CN102149013B - 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
CN102149013B
CN102149013B CN 201110076458 CN201110076458A CN102149013B CN 102149013 B CN102149013 B CN 102149013B CN 201110076458 CN201110076458 CN 201110076458 CN 201110076458 A CN201110076458 A CN 201110076458A CN 102149013 B CN102149013 B CN 102149013B
Authority
CN
China
Prior art keywords
module
map table
middleware
program map
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 201110076458
Other languages
Chinese (zh)
Other versions
CN102149013A (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 at present digital television business exploitation also increases thereupon, and the form of expression of middleware becomes more diverse.Browser, data broadcast, stock system, interactive game and the multiple value increasing services such as pure middleware system of containing the Digital Television types of applications have obtained extensive transplanting and application at STB terminal.
Due to the not yet standardization of exploitation of present middleware, unitized, procedure, each middleware manufacturers design software system architecture out varies, and the scheme that set-top box manufacturer adopts self, software architecture and CA module realizing method are also 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 middleware.
The CA module is very important module in 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.Should complete or be completed by set-top box manufacturer by middleware manufacturer for the descrambling of ciphered program in middleware system, in fact in the industry cycle exist different opinions always, but consider workload and the funding problems of networking set-top box aspect ca authentication, the at present realization of CA descrambling function is mostly completed by set-top box producer at the box end.In the middleware of reality was transplanted implementation process, aspect the program broadcast, middleware was varied with the form of docking of STB terminal, and these forms are summed up, and roughly have following several.
(M1), when playing ciphered program, middleware docks with set-top box as input parameter definition program play function with audio frequency identity code transmission package (Packet Identifier, PID), video PID, PCR PID.
(M2), when playing ciphered program, middleware docks with set-top box as input parameter definition program play 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 program play 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 program play 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 program play function with the pmt table of program.
Middleware in multiple existence of docking form aspect the program broadcast, makes the adaptation method of middleware startup box end CA descrambling module also varied with STB terminal, and method commonly used has been summed up following several at present:
(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, the existing CA module of box end 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 corresponding PMT of current program, the CA module analyzes the ECM pid information of ciphered program from PMT, complete thus the descrambling function of middleware ciphered program.
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, complete the descrambling function of middleware ciphered program in this interface.
(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, adopt the instant method that receives in this interface, hint obliquely at table (Program Map Table by creating program, PMT) demultiplexing passage, and PMT PID is established in the demultiplexing passage, receive corresponding with it PMT from the transmission stream of broadcasting, analyze Entitlement Control Message (ECM) pid information of ciphered program from PMT, complete thus the descrambling function of ciphered program.
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, complete the descrambling function of ciphered program.
The present inventor finds in research process, and there is following shortcoming in prior art:
(L1), middleware with set-top box in multiple existence of docking form aspect the program broadcast, make set-top box of a great variety with the adaptation method of middleware aspect realizing at the CA descrambling, set-top box is all to pass through to revise the interface of CA module according to the multi-form information content that different types of middleware transmits usually, adopt the interface and the method that match with it to complete CA descrambling function, this just requires set-top box CA module often to make some changes according to the variety classes of middleware, makes set-top box can complete the descrambling function of middleware interior business.Will make like this coupling of box end CA module and middleware kind strengthen, 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 again to do the debugging work of repeatability.
(L2), comprise several programs (being generally less than 10) under single frequency point in common digital television transfer net, transmit Program Association Table of time interval circle transmission (the Program Association Table 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 each program of the time interval circle transmission corresponding pmt table of 0.1~0.5 second.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 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 the program that comprises in the frequency at middleware place and business is more, immediately find the time of reception of the pmt table of these programs and business will be longer from these programs, middleware is play ciphered program, and to start the process of CA descrambling consuming time also just longer.
(L3), because operator all may upgrade at any time to front end, 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 stores 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, so in VOD system, directly method by inquiry is the PMT that can't obtain corresponding program.This shows, obtain by the method that program information database is inquired about the startup that pmt table is completed the CA descrambling, 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 present 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 present invention is to realize like this, a kind of data handling system of Digital Television, described system comprises middleware module, CA module and judgement start module, also be provided with an adaptation module and Program Map Table cache module between described middleware module and described CA module
Wherein, described middleware module is used for sending parameter to described adaptation module;
Described judgement starts module, is used for judging whether described middleware module starts;
Described adaptation module, type for the parameter of obtaining described middleware module transmission, start module judgement middleware module in described judgement and start, forms complete Program Map Table in described cache module, the described parameter of described Program Map Table correspondence according to the type of described parameter;
Described adaptation module also is used for complete Program Map Table is sent to described CA module, carries out descrambling by described CA module;
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, and the Program Association Table that the described parameter of preferred process is corresponding;
When described Program Map Table cache module, the time loss that Program Map Table is received and receive are controlled at the middleware module system and start or during middleware module running intermediate-frequeney point generation redirect or terminal monitoring when changing to the PAT version under current frequency;
Described Program Map Table cache module, also for the Program Association Table of Storage Middleware Applying 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, described judgement starts module, also be used for judging whether described middleware module running intermediate-frequeney point redirect occurs, if described middleware module running intermediate-frequeney point generation redirect, described adaptation module forms complete Program Map Table according to the type of described parameter in described Program Map Table cache module.
Preferably, described judgement starts module, also be used for judging whether the Program Association Table version under current frequency changes, if the Program Association Table version under current frequency changes, described adaptation module forms complete Program Map Table according to the type of described parameter in described Program Map Table cache module, wherein, frequency corresponding Program Association Table one by one.
Preferably, described adaptation module forms in the process of complete Program Map Table in described cache module according to the type of described parameter, also judgement receives the threshold value whether time of described Program Map Table arrange greater than system, if greater than, stop the reception to described Program Map Table.
An also purpose of the embodiment of the present invention is to provide a kind of data processing method of Digital Television, said method comprising the steps of:
Provide middleware module, CA module and judgement to start module, and adaptation module and Program Map Table cache module between described middleware module and described CA module,
Described middleware module sends parameter to described adaptation module;
Described judgement starts module and judges whether described middleware module starts;
Described adaptation module is obtained the type of the parameter of described middleware module transmission, starting module judgement middleware module in described judgement starts, form complete Program Map Table according to the type of described parameter in described cache module, wherein, 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;
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 that the described parameter of preferred process is corresponding;
When described Program Map Table cache module, the time loss that Program Map Table is received and receive are controlled at the middleware module system and start or during middleware module running intermediate-frequeney point generation redirect or terminal monitoring when changing to the PAT version under current frequency;
When described adaptation module forms complete Program Map Table according to the type of described parameter in described cache module, described Program Map Table cache module, the Program Association Table of Storage Middleware Applying module all programs under the different frequent points that run duration needs also, wherein, the Program Association Table of having stored no longer repeats to receive.
Preferably, described adaptation module forms the step of complete Program Map Table according to the type of described parameter in described cache module before, described method is further comprising the steps of:
Judge whether described middleware module running intermediate-frequeney point redirect occurs, if described middleware module running intermediate-frequeney point generation redirect, described adaptation module forms complete Program Map Table according to the type of described parameter in described cache module.
Preferably, described adaptation module forms the step of complete Program Map Table according to the type of described parameter in described cache module before, described method is further comprising the steps of;
Judge whether the Program Association Table version under current frequency changes, if change, described adaptation module forms complete Program Map Table according to the type of described parameter in described cache module, and wherein, frequency is corresponding Program Association Table one by one.
Preferably, when described adaptation module forms complete Program Map Table according to the type of described parameter in described cache module, further comprising the steps of:
Judgement receives the threshold value whether time of described Program Map Table arrange greater than system, if greater than, stop the reception to described Program Map Table.
The embodiment of the present invention is by arranging 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, form complete Program Map Table according to the type of described parameter in described cache module 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 present invention;
Fig. 2 is the flow chart of the data processing method of the Digital Television that provides of the embodiment of the present invention;
Fig. 3 is the detail flowchart of the data processing method of the Digital Television that provides of the embodiment of the present invention;
Fig. 4 is the formation schematic diagram of the PMT cache module element information that provides of the embodiment of the present invention;
Fig. 5 is the specific implementation method flow chart of the PMT cache module that provides of the embodiment of the present invention;
Fig. 6 is the flow chart of the building method of the sound that provides of the embodiment of the present invention, video frequency program PMT.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
The embodiment of the present invention is by arranging 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, form complete Program Map Table according to the type of described parameter in described cache module 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 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, form complete Program Map Table according to the type of described parameter 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 that judgement starts module 15, judgement starts module 15 and judges whether described middleware module 11 starts, if described middleware module 11 starts, described adaptation module 13 forms 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 occurs, if described middleware module 11 running intermediate-frequeney point generation redirects, described adaptation module 13 forms 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 current frequency changes, if the Program Association Table version under current frequency changes, described adaptation module 13 forms complete Program Map Table according to the type of described parameter in described Program Map Table cache module 14, wherein, frequency corresponding Program Association Table one by one.
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 that the described parameter of preferred process is corresponding.
Wherein, the Program Association Table of described Program Map Table cache module 14 Storage Middleware Applying modules 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 forms complete Program Map Table according to the type of described parameter in described cache module 14, also judgement receives the threshold value whether time of described Program Map Table arrange greater than system, if greater than, stop the reception 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 present invention the 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 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 that middleware module sends, and forms complete Program Map Table according to the type of parameter in described cache module, wherein, and Program Map Table correspondence parameter.
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 forms the step of complete Program Map Table according to the type of described parameter in described cache module before, judge also whether described middleware module starts, if described middleware module starts, described adaptation module forms complete Program Map Table according to the type of described parameter in described cache module.
Preferably, described adaptation module forms the step of complete Program Map Table according to the type of described parameter in described cache module before, judge also whether described middleware module running intermediate-frequeney point redirect occurs, if described middleware module running intermediate-frequeney point generation redirect, described adaptation module forms complete Program Map Table according to the type of described parameter in described cache module.
Preferably, described adaptation module forms the step of complete Program Map Table according to the type of described parameter in described cache module before, judge also whether the Program Association Table version under current frequency changes, if change, described adaptation module forms complete Program Map Table according to the type of described parameter in described cache module, wherein, frequency corresponding Program Association Table one by one.
Wherein, adaptation module forms the step of complete Program Map Table according to the type of parameter in cache module before, 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 that the described parameter of preferred process is corresponding.
Wherein, when described adaptation module forms complete Program Map Table according to the type of described parameter in described cache module, described Program Map Table cache module, the Program Association Table of Storage Middleware Applying module all programs under the different frequent points that run duration needs also, wherein, the Program Association Table of having stored no longer repeats to receive.
Wherein, when described adaptation module forms complete Program Map Table according to the type of described parameter in described cache module, further comprising the steps of:
Judgement receives the threshold value whether time of described Program Map Table arrange greater than system, if greater than, stop the reception to described Program Map Table.
The embodiment of the present 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 present invention.
For the ease of determining that different middleware module pass to the parameter type of set-top box, the embodiment of the present 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 the sound, the adaptive flow process of video playback interface that define by middleware module illustrate the operation principle of adaptation module.Wherein, the following method of the embodiment of the present invention and step are all completed 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 creates and starts, 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), changes step S303 over to; If (b), change step S304 over to; If (c), change step S305 over to; If (d), change step S306 over to; If (e), change step S307 over to; Other situations are pointed out invalid parameters, 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, changes step S308 in 3 seconds; When query time surpasses 3 seconds, perhaps do not find, point out PMT to obtain failure, and change step S310 over to;
Step S304, according to AudioPid, VideoPid, PcrPid, AudioEcmPid and VideoEcmPid, construct that a concrete building method of PMT(sees also Fig. 5 and for 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 the PMT corresponding with current ServiceID and TsId, setting threshold is 3 seconds, with ServiceID, TsId as the coupling target, PmtBuffer in inquiry PMT cache module, if inquiry is not empty in 3 seconds, change step S308 over to; If the used time surpasses 3 seconds, be perhaps empty, 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 PMT corresponding with current PMTPID, setting threshold is 3 seconds, with PMTPID as the coupling target, PmtBuffer in inquiry PMT cache module, if inquiry is not empty in 3 seconds, change step S308 over to; If surpass 3 seconds, be perhaps empty, point out PMT to obtain failure, and change step S310 over to;
Step S307, read the PMT that middleware module passes over by the program play function, 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 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 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 corresponding 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 notification terminal set-top box front end environment is changed and adjusted the program PMT that transmits under current frequency.this shows, the reception of pmt table is to need a time course, and the number of the program that comprises in the frequency at middleware module place and business is more, and the time of reception that gets the pmt table of these programs and business will be longer, and by the monitoring to PAT version number, can learn the update status of the program PMT under current frequency, when making all kinds of middleware module system play ciphered program in the requesting terminal in its Startup time and whole service process, middleware module can be obtained fast for it PMT 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 raising middleware module system, and each moment of program of guaranteeing the broadcast of asking can get correct PMT, the present invention has designed a PMT cache module.
The PMT cache module that the embodiment of the present invention provides mainly includes following feature:
When the time loss that (1), PMT is received and receive is controlled at the middleware module system and starts or during middleware module running intermediate-frequeney point generation redirect or terminal monitoring when changing to the PAT version under current frequency, when these situations generations only being detected, just start cache module to the reception of PMT.
(2), the PMT cache module is the PMT of Storage Middleware Applying modular system all programs under each different frequent points that needs during whole service, and controls that under same frequency, the PMT of same program and business can not repeat to receive.
When (3), starting in the middleware module system or during the run duration frequency generation redirect of middleware module system or terminal monitoring when changing to the PAT version under current frequency, when the PMT cache module when not receiving the message that adaptation module sends, will be according to the PMT PID of each program the sequencing described in the PAT, be followed successively by it and receive PMT; 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, find the PMT PID corresponding with message content from PAT, 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 received this PMT for corresponding repeated program with it.
(4), at middleware module system run duration, the PMT that the PMT that the PMT cache module is received self or middleware module send over all preserves, with the inquiry at any time that facilitates middleware module with call.
By using the above-mentioned design mechanism of PMT cache module, for the quick obtaining of middleware module PMT and the quick startup of CA module provide 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 consists of list.
The embodiment of the present 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 obtaining the cache module of PMT under the current frequency of middleware module.Wherein, the size of internal memory is decided according to the program and the business number that transmit in 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 present invention PMT cache module.
Step S501, create a message queue, complete communicating by letter of adaptation module and PMT cache module by the message transmit mechanism, change step S502 over to.
Step S502, query messages formation, when the PMT cache module has initiation message to arrive, execution in step S503, otherwise execution in step S502.
The current frequency of step S503, the operation of locking middleware module creates PAT demultiplexing passage, and the PID0X00 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 that transmits under current frequency and business sum TotalNum, adopt mark C function sizeof to calculate the memory headroom size M of structure temporary in form shown in Figure 4, then distribute an internal memory as the PMT cache module of all programs and business under current frequency with TotalNum * M as space size, 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 corresponding PMT of each ServiceID, and fill it into successively in the member of TSID, ServiceID in 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; When the message of carrying PMTPID arrives, execution in step S5010; When the message of carrying the PMT content arrives, execution in step S5011, otherwise execution in step S5012.
Step S507, analyze PAT, obtain the version number of PAT, detect and whether change, if all members in PMT cache module under current frequency are all set to 0, change step S505 over to; Otherwise, change step S508 over to.
Step S508, detect the frequency that middleware module moves whether redirect occurs, if, execution in step S503, otherwise execution in step S506.
Step S509, with the TSID in message and ServiceId as coupling target query PMT cache module, when corresponding with it PmtBuffer content is sky, according to the PID of corresponding PMT with it in cache module, create and set PMT demultiplexing passage, start the reception of PMT, and the PMT that obtains is stored in cache module in current TsId and the corresponding 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 message as coupling target query PMT cache module, when corresponding with it PmtBuffer content is sky, according to the PID of corresponding pmt table with it in cache module, create and set PMT demultiplexing passage, start the reception of pmt table, and the pmt table that obtains is stored in cache module in the corresponding 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 corresponding PmtBuffer of next ServiceID in the sequencing described in PAT query caching module successively of program, when PmtBuffer is sky, according to the ServiceID corresponding PMT PID corresponding with it, create and set PMT demultiplexing passage, arranging overtime is 2 seconds, starts the reception of PMT.If receive successfully, the PMT that obtains is stored in cache module in corresponding with it PmtBuffer, and change step S506 over to, if take defeat, 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 parameter, the information exchange of AudioEcmPid, VideoEcmPid to cross PMT of method formation of direct structure, offer box end CA module, so just, can save the time loss that receives PMT from transmit stream, thereby start box end CA descrambling module take the fastest speed as middleware module.By analyzing PMT, we know, the PMT of standard is made of jointly gauge outfit, several Basic Flow descriptors 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 Flow descriptor and CA descriptor since the 13rd byte, last 4 bytes are the CRC check value.The Basic Flow descriptor 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 simultaneously uPmtBuf, 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 the TableID of 0x02(standard P MT agreement), and with 12 bytes of pointer pPmtBuf skew, nByteCnt is increased by 12, change step S603 over to.
Step S603, with the video frequency program type of 0x02(standard P MT agreement) assignment is to pPmtBuf[0], the most-significant byte of the double byte video PID that middleware module is passed over takes out assignment to pPmtBuf[1], the least-significant byte of double byte video PID is taken out assignment to pPmtBuf[2], with the length 0x06 assignment of the CA descriptor of video frequency program to pPmtBuf[4], with 5 bytes of pointer pPmtBuf skew, nByteCnt is increased by 5, change step S604 over to.
step S604, sign with the CA descriptor of 0x09(standard P MT agreement) assignment is to pPmtBuf[0], with the length 0x04 assignment of video ECM information descriptor to pPmtBuf[1], 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 to 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, with the audio program type of 0x04(standard P MT agreement) assignment is to pPmtBuf[0], the most-significant byte of the double byte audio frequency PID that middleware module is passed over takes out assignment to pPmtBuf[1], the least-significant byte of double byte audio frequency PID is taken out assignment to pPmtBuf[2], with the length 0x06 assignment of the CA descriptor of audio program to pPmtBuf[4], with 5 bytes of pointer pPmtBuf skew, nByteCnt is increased by 5, change step S606 over to.
step S606, sign with the CA descriptor of 0x09(standard P MT agreement) assignment is to pPmtBuf[0], with the length 0x04 assignment of audio frequency ECM information descriptor to pPmtBuf[1], 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 to 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 the byte number of CRC check position, 4(PMT end), reduce first three byte of 3(PMT gauge outfit), calculate thus the length of PMT, 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 present invention is by arranging 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, form complete Program Map Table according to the type of described parameter in described cache module 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 is only preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., within all should being included in protection scope of the present invention.

Claims (9)

1. the data handling system of a Digital Television, is characterized in that,
Described system comprises that middleware module, CA module and judgement start module, also is provided with an adaptation module and Program Map Table cache module between described middleware module and described CA module,
Wherein, described middleware module is used for sending parameter to described adaptation module;
Described judgement starts module, is used for judging whether described middleware module starts;
Described adaptation module is for the type of the parameter of obtaining described middleware module transmission, starting module judgement middleware module in described judgement starts, form complete Program Map Table according to the type of described parameter in described Program Map Table cache module, the corresponding described parameter of described Program Map Table;
Described adaptation module also is used for complete Program Map Table is sent to described CA module, carries out descrambling by described CA module;
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, and the Program Association Table that the described parameter of preferred process is corresponding;
When described Program Map Table cache module, the time loss that Program Map Table is received and receive are controlled at the middleware module system and start or during middleware module running intermediate-frequeney point generation redirect or terminal monitoring when changing to the PAT version under current frequency;
Described Program Map Table cache module, also for the Program Association Table of Storage Middleware Applying 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.
2. the data handling system of Digital Television as claimed in claim 1, it is characterized in that, described judgement starts module, also be used for judging whether described middleware module running intermediate-frequeney point redirect occurs, if described middleware module running intermediate-frequeney point generation redirect, described adaptation module forms 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 1, it is characterized in that, described judgement starts module, also be used for judging whether the Program Association Table version under current frequency changes, if the Program Association Table version under current frequency changes, described adaptation module forms complete Program Map Table according to the type of described parameter in described Program Map Table cache module, wherein, frequency is corresponding Program Association Table one by one.
4. the data handling system of Digital Television as claimed in claim 1, it is characterized in that, described adaptation module forms in the process of complete Program Map Table in described Program Map Table cache module according to the type of described parameter, also judgement receives the threshold value whether time of described Program Map Table arrange greater than system, if greater than, stop the reception to described Program Map Table.
5. 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, CA module and judgement startup module, said method comprising the steps of:
Described middleware module sends parameter to described adaptation module;
Described judgement starts module and judges whether described middleware module starts;
Described adaptation module is obtained the type of the parameter of described middleware module transmission, starting module judgement middleware module in described judgement starts, form complete Program Map Table according to the type of described parameter in described cache module, wherein, 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;
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 that the described parameter of preferred process is corresponding;
When described Program Map Table cache module, the time loss that Program Map Table is received and receive are controlled at the middleware module system and start or during middleware module running intermediate-frequeney point generation redirect or terminal monitoring when changing to the PAT version under current frequency;
When described adaptation module forms complete Program Map Table according to the type of described parameter in described cache module, described Program Map Table cache module, the Program Association Table of Storage Middleware Applying module all programs under the different frequent points that run duration needs also, wherein, the Program Association Table of having stored no longer repeats to receive.
6. the data processing method of Digital Television as claimed in claim 5, is characterized in that, described adaptation module forms the step of complete Program Map Table according to the type of described parameter in described cache module before, described method is further comprising the steps of:
Judge whether described middleware module running intermediate-frequeney point redirect occurs, if described middleware module running intermediate-frequeney point generation redirect, described adaptation module forms complete Program Map Table according to the type of described parameter in described cache module.
7. the data processing method of Digital Television as claimed in claim 5, is characterized in that, described adaptation module forms the step of complete Program Map Table according to the type of described parameter in described cache module before, described method is further comprising the steps of;
Judge whether the Program Association Table version under current frequency changes, if change, described adaptation module forms complete Program Map Table according to the type of described parameter in described cache module, and wherein, frequency is corresponding Program Association Table one by one.
8. the data processing method of Digital Television as claimed in claim 5, is characterized in that, and is when described adaptation module forms complete Program Map Table according to the type of described parameter in described cache module, further comprising the steps of:
Judgement receives the threshold value whether time of described Program Map Table arrange greater than system, if greater than, stop the reception to described Program Map Table.
9. digital TV terminal that utilizes the described data processing method of claim 5 to 8 any one.
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 CN102149013A (en) 2011-08-10
CN102149013B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102595236B (en) * 2012-01-31 2016-05-18 深圳创维数字技术股份有限公司 A kind of method of Set Top Box and changing channels of digital television thereof
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
CN105323644B (en) * 2015-10-14 2018-07-31 四川长虹电器股份有限公司 The method that DTV records programme replay authorization check
CN106101838B (en) * 2016-07-18 2019-07-16 青岛海信电器股份有限公司 The processing method and digit receiving terminal of CI module in quick turn-on
CN107896341B (en) * 2017-11-30 2020-09-25 海信视像科技股份有限公司 Method for playing scrambled program and television equipment

Citations (5)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100823282B1 (en) * 2006-09-29 2008-04-21 삼성전자주식회사 Method and apparatus for receiving, stroring and playing an application of data broadcasting

Patent Citations (5)

* 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
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

Also Published As

Publication number Publication date
CN102149013A (en) 2011-08-10

Similar Documents

Publication Publication Date Title
CN101785255B (en) For the data flow con-trol of the network equipment
CN101159577B (en) Apparatus for receiving adaptive broadcast signal and method thereof
AU2013332537B2 (en) Apparatus and method for processing an interactive service
JP5978000B2 (en) Receiving machine
US9043857B2 (en) Receiving device, receiving method, program, and broadcasting system
CA2889868C (en) Apparatus and method for processing an interactive service
US9191624B2 (en) System and method to determine an authorization of a wireless set-top box device to receive media content
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
US20020032754A1 (en) Method and apparatus for profiling in a distributed application environment
US20030217369A1 (en) Flexible application information formulation
WO2013031556A1 (en) Receiver and reception method
CN102149013B (en) Data processing system and method for digital television as well as digital television receiving terminal
KR20110069174A (en) A broadcast system with a local electronic service guide generation
JPWO2013118617A1 (en) Receiving apparatus, receiving method, and program
KR20240025698A (en) Reception device, transmission device and data processing method
CN102362506A (en) Request signal of an image program according to specific input sources based on the received list to the external display devices
EP4080894A1 (en) Advertisement insertion method, electronic device and storage medium
CN101207801A (en) Method and apparatus for transmitting and playing advertisement data
US20080025306A1 (en) Internet protocol television system, method for providing internet protocol multicast TV signal, TV transferring apparatus, and TV receiving apparatus
JP2017216717A (en) Receiver
CN101453654A (en) Method for obtaining service map information, apparatus therefor, and method for fast performing application in service according to the service map information
US20040193884A1 (en) Secure watchdog for embedded systems
CN102098570A (en) Digital television information playing method and system
US8079063B2 (en) Method and apparatus for controlling home network devices using rich site summary service

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