Summary of the invention:
One of technical problem to be solved by this invention provides a kind of machine and card separator for digital tV set.
The present invention includes set-top box, set-top box comprises tuning demodulating unit, CPU, audio frequency and video change-over circuit and video output circuit, it is characterized in that: also comprise a digital deciphering and descrambling card, digital decrypted descrambling cartoon is crossed a digital information interface and is connected with set-top box, carry out demodulation after the tuning demodulate reception intermediate-freuqncy signal, output transport stream is to CPU, CPU output processing instruction is the transport stream importing digital deciphering and descrambling card of encrypting, the transport stream that digital decrypted descrambling card docking is received is decrypted scramble process, CPU imports to the audio frequency and video buffering area to the audio frequency and video after deciphering, and gives the user by audio frequency and video change-over circuit and audio frequency and video output circuit output audio-video signal at last.
Above-mentioned digital information interface is a USB interface.USB is a kind of high speed digital interface, uses more convenient.This interface plug and play; Interface standard, simple, the module pin is few.
Above-mentioned digital decrypted descrambling card comprises physical layer, transmitting-receiving interface, protocol layer, internal memory, internal storage access and arbitration interface, control and access register group, on-chip bus, descrambling module, embedded type CPU, smart card, wherein physical layer, transmitting-receiving interface, protocol layer, control and access register group etc. realize the transfer of data of set-top box and deciphering and descrambling module.
When carrying out transfer of data, above-mentioned set-top box and deciphering and descrambling module adopt two kinds of data excuse agreements: transport stream interface TSI, command interface CI, wherein transport stream interface TSI adopts the definition of MPEG, and command interface CI mainly manages the initialization of deciphering and descrambling module, the adding of deciphering and descrambling module, remove, send some action command message etc. to the deciphering and descrambling module.
Above-mentioned set-top box is built in the digital television.Here it is digital TV integrated machine.
Two of problem to be solved by this invention provides a kind of processing method of separation between machine and card.
Method of the present invention may further comprise the steps:
Carry out demodulation after the tuning demodulate reception intermediate-freuqncy signal in A, the set-top box, output transport stream is to the interior CPU of set-top box;
CPU output processing instruction in B, the set-top box imports the digital decrypted descrambling card that separates with set-top box to the transport stream of encrypting by the digital information interface, and the transport stream that digital decrypted descrambling card docking is received is decrypted scramble process;
Information flow after C, digital decrypted descrambling card will be deciphered is transferred to CPU by the digital information interface;
D, CPU import to the audio frequency and video buffering area to the audio frequency and video after deciphering, and give the user by audio frequency and video change-over circuit and audio frequency and video output circuit output audio-video signal at last.
The process of above-mentioned steps B can further describe for: when set-top box runs into ciphered program, just the ciphered program data are imported to the deciphering and descrambling module by transport stream interface TSI; The deciphering and descrambling module at first these storage in internal memory, then mutually deserved C A information is delivered to smart card, computing by smart card obtains the required control word C W of descrambling module, descrambling module carries out descrambling according to the control word C W that obtains to the ciphered program data in the internal memory, obtains transparent program data at last.
The present invention makes " machine ", and various places radio and TV operator's condition receiving unit is made " card " owing to will be independent the common segment in the set-top box (hardware), and card is connected by a digital information interface with machine.Like this for the radio and TV operator, they needn't serve as reasons, and who bears the cost problem of set-top box and worry, can concentrate more energy to be used to develop digital television business, ownership and multiple service is provided, and can also reduce the CA system cost; For set-top box production enterprise, obtain liberation widely owing to broken the vertical monopolization of former broadcasting and TV operation, the set-top box product is accomplished scale production, further reduce cost, can also adopt the horizontal sales mode of DVD, the color TV sets promotion set-top box that satisfies the needs of consumers; For domestic CA (Conditional Access, being exactly Conditional Access, that is to say and will charge, is not free) manufacturer, help them in same starting line and external CA manufacturer competition, also facilitated the formation and development of domestic CA card industry simultaneously.And the user only need buy general set-top box, watches that different TV programme then buys different cards.
Embodiment:
Implementation step:
As shown in the figure: carry out demodulation behind tuning demodulation (11) receiving intermediate frequency signal, output transport stream is to CPU (12), CPU (12) output processing instruction imports USB2.0 deciphering and descrambling module (being digital decrypted descrambling card) (13) to the transport stream of encrypting, described USB2.0 deciphering and descrambling module (13) is decrypted scramble process to the transport stream that receives, CPU (12) imports to the audio frequency and video buffering area to the audio frequency and video after deciphering, and gives the user by audio frequency and video change-over circuit (14) and audio frequency and video output circuit (14) output audio-video signal at last.
Fig. 2 is the set-top box structured flowchart that tape spare receives.It comprises main control unit CPU, network interface Tuner, MPEG demultiplexing, audio/video decoding, modules such as condition reception.Wherein main control unit CPU is the center of whole set-top box control and management, and this control and management are to realize by operation application software thereon.Conditional Access Module can be made in the set-top box the inside, also can realize that in the set-top box outside i.e. separation between machine and card mode is as USB2.0 mode of the present invention by certain interface.After set-top box powers on, generally can move application software, application software is finished the initialization to each module, then removal search or broadcast program as required.When broadcast program, system at first removes to lock mixed-media network modules mixed-media Tuner according to current program information, will output transport stream after mixed-media network modules mixed-media Tuner pins to the MPEG demultiplexing module; The MPEG demultiplexing module is extracted one tunnel concrete program according to current program information again, if ciphered program, then system can import to Conditional Access Module to the program of encrypting again, solves transparent non-encrypted program by Conditional Access Module; The audio, video data of the non-encrypted program that obtains at last is put into audio frequency and video buffering area (internal memory), the audio/video decoding module is extracted data and is decoded from the audio frequency and video buffering area, at this moment the non-compressed word audio, video data that obtains can directly be delivered to the digital audio/video playback equipment, also can export to the analog audio-video playback equipment through digital-to-analogue conversion.
Fig. 3 is USB2.0 deciphering and descrambling modular structure figure, and it comprises physical layer, USB2.0 transmitting-receiving interface UTMI, protocol layer, internal memory, internal storage access and arbitration interface, control and access register group, on-chip bus, descrambling module, embedded type CPU etc.Physical layer wherein, USB2.0 transmitting-receiving interface UTMI, protocol layer, the transfer of data of realizations main frames (being set-top box) such as control and access register group and deciphering and descrambling module.Main frame (being set-top box) adopts two kinds of data excuses agreement: transport stream interface TSI (TransportStream Interface), command interface CI (Command Interface) when carrying out transfer of data with the deciphering and descrambling module.Wherein transport stream interface TSI adopts the definition of MPEG, and command interface CI mainly manages the initialization of deciphering and descrambling module (USB device), the adding of deciphering and descrambling module (USB device), removes etc., sends some action command message etc. to the deciphering and descrambling module.When main frame (being set-top box) when running into ciphered program, just the ciphered program data are imported to the deciphering and descrambling module by transport stream interface TSI; The deciphering and descrambling module at first these storage in SDRAM, then mutually deserved CA information (as Entitlement Management Message, Entitlement Control Message etc.) deliver to smart card, computing by smart card obtains the required control word CW of descrambling module (Control Word), descrambling module carries out descrambling according to the control word C W that obtains to the ciphered program data among the SDRAM, obtains transparent program data at last and delivers to main frame (being set-top box) by transport stream interface TSI.