CN103997678B - Multi-CAS seamless switching method and multi-CAS seamless switching system - Google Patents

Multi-CAS seamless switching method and multi-CAS seamless switching system Download PDF

Info

Publication number
CN103997678B
CN103997678B CN201410169243.8A CN201410169243A CN103997678B CN 103997678 B CN103997678 B CN 103997678B CN 201410169243 A CN201410169243 A CN 201410169243A CN 103997678 B CN103997678 B CN 103997678B
Authority
CN
China
Prior art keywords
cas
parameter
atr
target
data
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.)
Active
Application number
CN201410169243.8A
Other languages
Chinese (zh)
Other versions
CN103997678A (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 RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics 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 RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN201410169243.8A priority Critical patent/CN103997678B/en
Publication of CN103997678A publication Critical patent/CN103997678A/en
Application granted granted Critical
Publication of CN103997678B publication Critical patent/CN103997678B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a multi-CAS seamless switching method and a multi-CAS seamless switching system. The method comprises the following steps: when that a smart card is inserted is detected, reset communication is carried out between communication parameters of all preset CASs of the system and the smart card, and when reset communication is carried out successfully, target ATR parameters returned by communication are acquired; the acquired target ATR parameters are compared with original ATR parameters of all the preset CASs, and if the acquired target ATR parameters are the same with the original ATR parameters of all the preset CASs, the CASs corresponding to the original ATR parameters are stored in a temporary CAS group; all the CASs in the temporary CAS group are traversed, a target CAS is matched out, and the target CAS is set as the current working CAS; and groups of CAT data and PMT data stored in the system are matched with the current working CAS, CAT data and PMT data in accord with the current working CAS are found out, the interface of the current working CAS is set according to the found CAT data and PMT data, and an audio and video channel is opened.

Description

A kind of many cas seamless handover method and system
Technical field
The present invention relates to smart machine software field, more particularly, to a kind of many cas seamless handover method and system.
Background technology
At present in domestic digital radio and television extension process, various places radio and TV operator is communication security and technical monopoly is examined Consider, generally all can introduce several ca headend equipment manufacturers and jointly signal is encrypted.And the big absolutely portion sold currently on the market Fraction word broadcast television terminal equipment is all an only integrated ca manufacturer on a station terminal equipment, and therefore user selects an end After end equipment, just can only use a kind of signal source, a kind of ca and its corresponding smart card.If necessary to change signal source and other ca The smart card of manufacturer is it is necessary to again buy new terminal.This undoubtedly increased economic pressures to terminal use, also virtually right Radio and TV operator also increases purchase cost and the operation cost of multiple terminal equipment.
Condition receiving system cas(conditional access system) it is paid for the core of digital television broadcasting, its Major function is to stop illegal invasion digital broadcast network, and allows authorized user to watch that specific program makes not awarded The user of power cannot watch.
Cas is made up of front end (broadcast) and two parts of terminal (reception), and front end completes scrambling and generating of broadcast data Authorization message and the encrypted work completing descramble key, thus the program data being transmitted is changed into password from plain code, scrambling Data afterwards is useless to unauthorized user, and provides the information of descrambling to authorized user, the shape to encrypt for these information Formula is multiplexed in the transmitting stream of mpeg-2, and authorized user can get descramble key after it is decrypted and realizes to signal Descrambling and mpeg-2 decoding, terminal is completed to decipher and descrambled by smart card (or other ca cards) and descrambler.
Application No. 201110026859.6, the applying date is on 01 25th, 2011, and entitled " a kind of many ca of Set Top Box coexist Implementation method " patent, which disclose the side that a kind of multiple on the set-top box cas is automatically selected by software mode Method.The method is relatively fixed as principle according to the smart card communications parameter atr value of several cas of existing market, according to it relatively not With atr value judging the type of current smart cards and its corresponding cas.The method can be realized multiple to a certain extent Cas automatic identification, but different cas manufacturer smart card atr values is possible to identical, and the software of identification process can be led to patrol Collect misjudgment.Additionally, atr is possible to change after the smart card upgrading of cas manufacturer distribution, this serious knowledge also resulting in Not mistake.In addition, in the method for selecting different cas after, program can not accomplish the broadcasting of Automatic continuous it is still necessary to use Family is changed program manually or waits front network data to be only possible to realize the normal play of program after updating.
So existing changing method stability and reliability, convenience be not all good.
Therefore, prior art has yet to be improved and developed.
Content of the invention
In view of above-mentioned the deficiencies in the prior art, it is an object of the invention to provide a kind of many cas seamless handover method and be System is not it is intended to solve the problems, such as that existing cas changing method has convenience, stability and reliability all good.
Technical scheme is as follows:
A kind of many cas seamless handover method, wherein, including step:
When smart card insertion is detected, the communications parameter of all for system preset cas and smart card are carried out the communication that resets, When communicating successfully when resetting, obtain the target atr parameter that communication returns;
The original atr parameter of target atr getting parameter and all preset cas is compared, if identical, will The corresponding cas of the original atr parameter that matches preserves to interim cas group;
Travel through all of cas in interim cas group, match target cas therein, and this target cas is set as currently Work cas;
Each group cat preserving in system data is mated with work at present cas with pmt data, finds to meet and work as The cat data of front work cas and pmt data, and connecing of work at present cas is arranged with pmt data according to the cat data finding Mouthful, open audio frequency and video passage.
Described many cas seamless handover method, wherein, described when detect smart card insertion when, will be all for system preset The communications parameter of cas and smart card carry out the communication that resets, and when communicating successfully when resetting, obtain the target atr parameter that communication returns Step specifically include:
Take out the communications parameter of all preset cas successively, and carry out the communication that resets respectively with smart card;
Whether judging to reset, it is successful to communicate, if reset communicating the target atr parameter successfully obtaining communication return, then The next preset communications parameter of cas of Returning utilization carries out, with smart card, the communication that resets;If reset Communications failure, return profit Carry out the communication that resets with the communications parameter and smart card of next preset cas, until having traveled through the communication of all preset cas Parameter.
Described many cas seamless handover method, wherein, described by target atr getting parameter and all preset cas Original atr parameter be compared, if identical, the corresponding cas of the original atr parameter that will match to preserves to interim cas Step in group specifically includes:
Target atr getting parameter is compared with the original atr parameter of preset cas successively, judges whether phase With;
When the target atr parameter getting is identical with the original atr parameter of preset one of cas, this is original The corresponding cas of atr parameter preserves to interim cas group, and return the target atr parameter that the next one is got with preset The original atr parameter of cas is compared, until having traveled through all target atr parameters getting;
When the original atr parameter of the target atr parameter getting and the cas of system intialization differs, return to next The individual target atr parameter getting is compared with the original atr parameter of preset cas, until having traveled through all getting Target atr parameter.
Described many cas seamless handover method, wherein, all of cas in the interim cas group of described traversal, match wherein Target cas, and the step that this target cas is set as work at present cas specifically includes:
Initializing the cas in interim cas group successively, judge whether initialization is successful, if initializing successfully, running interim The transmitting and receiving data interface of the corresponding cas in cas group, obtains the return information of smart card;Otherwise continue to initialize interim cas Next cas in group, until traveled through all cas in interim cas group;
Judge whether the return information of smart card is identical with preset information, if identical, corresponding cas is the mesh matching Mark cas, if differing, returning and continuing to initialize next cas in interim cas group, until having traveled through all in interim cas group cas.
Described many cas seamless handover method, wherein, described by each group cat preserving in system data and pmt data with Work at present cas is mated, and finds the cat data meeting work at present cas and pmt data, and according to the cat finding Data arranges the interface of work at present cas with pmt data, and the step opening audio frequency and video passage specifically includes:
The each group cat data preserving in extraction system successively and pmt data, and judge every group of cat data and the pmt taking out Whether data is consistent with work at present cas, if meeting, obtains the emm pid in cat data, and the ecm in pmt data Pid, calls the interface of work at present cas and arranges emm pid and ecm pid, and binds with audio frequency and video passage;If not meeting, Next the group cat data then preserving in extraction system and pmt data, judge whether to meet, until having traveled through all of cat again Data and pmt data;
Open audio frequency and video passage, point out cas the match is successful.
A kind of many cas seamless switch-over system, wherein, comprising:
Target atr parameter acquisition module, for when smart card insertion is detected, by the communication of all for system preset cas Parameter and smart card carry out the communication that resets, and when communicating successfully when resetting, obtain the target atr parameter that communication returns;
Interim cas group acquisition module, for joining the original atr of target atr getting parameter and all preset cas Number is compared, if identical, the corresponding cas of the original atr parameter that will match to preserves to interim cas group;
Accurately mate module, for traveling through all of cas in interim cas group, matches target cas therein, and should Target cas is set as work at present cas;
Playing module, for each group cat preserving in system data is mated with work at present cas with pmt data, Find the cat data meeting work at present cas and pmt data, and worked as with the setting of pmt data according to the cat data finding The interface of front work cas, opens audio frequency and video passage.
Described many cas seamless switch-over system, wherein, described target atr parameter acquisition module specifically includes:
Reset communication unit, for taking out the communications parameter of all preset cas successively, and carries out multiple respectively with smart card Position communication;
Whether target atr parameter acquiring unit, communicate successful for judging to reset, if reset communicating successfully, obtains logical Interrogate the target atr parameter returning, being then back to carries out resetting with smart card using the communications parameter of next preset cas leads to News;If reset Communications failure, the next preset communications parameter of cas of Returning utilization carries out, with smart card, the communication that resets, until Travel through the communications parameter of all preset cas.
Described many cas seamless switch-over system, wherein, described interim cas group acquisition module specifically includes:
Comparing unit, for being compared target atr getting parameter successively with the original atr parameter of preset cas Relatively, judge whether identical;
Storage unit, for when the original atr parameter phase of the target atr parameter getting and preset one of cas Meanwhile, corresponding for this original atr parameter cas is preserved to interim cas group, and return target atr that the next one is got Parameter is compared with the original atr parameter of preset cas, until having traveled through all target atr parameters getting;
Cycling element, for differing with the original atr parameter of the cas of system intialization when the target atr parameter getting When, return the target atr parameter that the next one is got and be compared with the original atr parameter of preset cas, until having traveled through All target atr parameters getting.
Described many cas seamless switch-over system, wherein, described accurately mate module specifically includes:
Initialization unit, for initializing the cas in interim cas group successively, judges whether initialization is successful, if initialization Success, then run the transmitting and receiving data interface of the corresponding cas in interim cas group, obtains the return information of smart card;Otherwise continue Next cas in the interim cas group of continuous initialization, until traveled through all cas in interim cas group;
Judging unit, whether the return information for judging smart card is identical with preset information, if identical, accordingly Cas is target cas matching, if differing, returning and continuing to initialize next cas in interim cas group, until traveled through facing When cas group in all cas.
Described many cas seamless switch-over system, wherein, described playing module specifically includes:
Data searching unit, for each group cat data and the pmt data that preserve in extraction system successively, and judges to take out Every group of cat data whether be consistent with work at present cas with pmt data, if meeting, obtain cat data in emm pid, And the ecm pid in pmt data, call the interface of work at present cas and emm pid and ecm pid is set, and and audio frequency and video Passage is bound;If not meeting, next preserving in extraction system organizes cat data and pmt data, judges whether again to meet, Until having traveled through all of cat data and pmt data;
Broadcast unit, for opening audio frequency and video passage, points out cas the match is successful.
Beneficial effect: the present invention supports the intelligence switching of multiple cas, and support that cas switching deutomerite purpose is seamless automatically Play, intervene manually without user, the present invention can be applicable to digital broadcast television terminal unit, digital broadcast television therein is eventually End equipment include but is not limited to the terminal such as top box of digital machine, digital TV integrated machine, the present invention can support manual selection modes and Automatically select pattern, may be alternatively provided as manual automated intelligent mixed model simultaneously, spirit can be provided to terminal use and operator Easily selection scheme alive, when the present invention solves multiple cas encryption that operator runs into during operation, it is desirable to provide many The problem of individual terminal unit, decreases the terminal unit purchase cost of operator, so that terminal unit manufacturer is quickly opened Send the terminal unit of adaptation more area operators, simultaneously again can then terminal use's safe and efficient ground more preferably signal source at any time And do not increase hardware cost.
Brief description
Fig. 1 is a kind of flow chart of the present invention many cas seamless handover method preferred embodiment.
Fig. 2 is the particular flow sheet of step s101 in method shown in Fig. 1;
Fig. 3 is the particular flow sheet of step s102 in method shown in Fig. 1;
Fig. 4 is the particular flow sheet of step s103 in method shown in Fig. 1;
Fig. 5 is the particular flow sheet of step s104 in method shown in Fig. 1;
Fig. 6 is a kind of structured flowchart of the present invention many cas seamless switch-over system preferred embodiment;
Fig. 7 is the concrete structure block diagram of target atr parameter acquisition module in system shown in Figure 6;
Fig. 8 is the concrete structure block diagram of interim cas group acquisition module in system shown in Figure 6;
Fig. 9 is the concrete structure block diagram of accurately mate module in system shown in Figure 6;
Figure 10 is the concrete structure block diagram of playing module in system shown in Figure 6.
Specific embodiment
The present invention provides a kind of many cas seamless handover method and system, for making the purpose of the present invention, technical scheme and effect Clearer, clear and definite, the present invention is described in more detail below.It should be appreciated that specific embodiment described herein is only In order to explain the present invention, it is not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is a kind of flow chart of the present invention many cas seamless handover method preferred embodiment, as schemed institute Show, it includes step:
S101, when detect smart card insertion when, the communications parameter of all for system preset cas is resetted with smart card Communication, when communicating successfully when resetting, obtains the target atr parameter that communication returns;
S102, the original atr parameter of target atr getting parameter and all preset cas is compared, if phase With the corresponding cas of the original atr parameter that then will match to preserves to interim cas group;
All of cas in s103, the interim cas group of traversal, matches target cas therein, and this target cas is set as Work at present cas;
S104, each group cat preserving in system data is mated with work at present cas with pmt data, found symbol Close cat data and the pmt data of work at present cas, and work at present cas is arranged with pmt data according to the cat data finding Interface, open audio frequency and video passage.
In the present embodiment, the Dual Matching being combined by step s102 and step s103 is it is ensured that match accurate Target cas, and target cas is set as work at present cas, finally find the cat data meeting work at present cas and pmt Data, and the interface of work at present cas is set based on the cat data finding and pmt data, open audio frequency and video passage, thus The seamless intelligence achieving cas switches, and also supports the cas switching seamless automatic broadcasting of deutomerite purpose, due to without user's handss Dynamic intervention, thus be truly realized the safe and intelligent of cas selection.
As the preferred embodiment of the present invention, as shown in Fig. 2 described step s101 specifically includes:
S201, take out the communications parameter of all preset cas successively, and carry out the communication that resets respectively with smart card;
In this step, system can be pointed out user to extract or insert smart card, be according to current cas running status first The smart card insert state of system meeting detection terminal equipment, when smart card insertion is detected, then carrying out the communication that resets.If not detecting To smart card insertion, then continue prompting user and extract or insert smart card.
After smart card insertion is detected, the communications parameter of all preset cas of extraction system, and stick into respectively at intelligence Row resets and communicates, and judges that in preset cas, which can carry out normal communication with smart card.
S202, judge the communication whether success that resets;If resetting communicates successfully, execution step s203;Otherwise directly return Step s201 carries out, with smart card, the communication that resets using the communications parameter of next preset cas, until having traveled through all preset Cas communications parameter.
The target atr parameter that s203, acquisition communication return, is then back to step s201 using next preset cas's Communications parameter and smart card carry out the communication that resets.
In this step, communicate successfully if the communications parameter of a certain cas is resetted with smart card, can obtain what communication returned Target atr parameter, so judges whether the communications parameter of each cas and smart card reset and communicate successfully successively, if success, obtains The target atr parameter returning, if failure, then carries out, to the communications parameter of next preset cas, the communication that resets, until surveying Try the communications parameter of all preset cas.Thus the communications parameter of all of cas is tested, and obtains All can communicate the target atr parameter returning during success.When described atr parameter response reset operates, smart card is given Response value.
As the preferred embodiment of the present invention, as shown in figure 3, described step s102 specifically includes:
S301, target atr getting parameter is compared with the original atr parameter of preset cas successively;
S302, judge whether identical;When being, execution step s303, when no, that is, when the target atr parameter getting When differing with the original atr parameter of the cas of system intialization, return s301 target atr parameter that the next one is got with pre- The original atr parameter of the cas putting is compared, until having traveled through all target atr parameters getting.
This step be the target atr parameter that abovementioned steps are got successively with the atr parameter of preset all cas one by one Relatively, determine whether that target atr parameter is identical with the atr parameter of certain preset cas.
S303, when the target atr parameter getting is identical with the original atr parameter of preset one of cas, should The corresponding cas of original atr parameter preserves to interim cas group, and return the target atr parameter that s301 gets to the next one with The atr parameter of preset cas is compared, until having traveled through all target atr parameters getting;
If it is identical with the original atr parameter of one of preset cas to match target atr parameter, and this is original The corresponding preset cas of atr parameter is saved in interim cas group, the like, travel through all target atr getting ginsengs Number, finds out all cas matching, and is saved in interim cas group.
This step is exactly in the case that judgement differs, more next target atr parameter is compared, and has traveled through all The target atr parameter getting.
As the preferred embodiment of the present invention, as shown in figure 4, described step s103 specifically includes:
S401, the cas initializing successively in interim cas group, judge whether initialization is successful, if initializing successfully, turns Enter step s402;Otherwise continue to initialize next cas in interim cas group, until having traveled through all cas in interim cas group;
Initialize each cas in interim cas group first, if initializing successfully, then judging section runs whether function becomes Work(, that is, proceed to step s402, if certain cas initialization unsuccessful, continue initialize interim cas group in next cas, until time The all cas in interim cas group are gone through.
S402, the transmitting and receiving data interface of the corresponding cas running in interim cas group, obtain the return information of smart card;
After judging cas initialization success, run the transmitting and receiving data interface initializing successful cas, obtain intelligence The return information of card, this return information reflects whether function runs successfully, can be used as judging whether cas is correct cas Basis.
S403, judge whether the return information of smart card is identical with preset information, if identical, corresponding cas is coupling Target cas arriving, if differing, return to step s401 continues to initialize next cas in interim cas group, until traveled through facing When cas group in all cas.
This step is to be compared the preset information of the return information of smart card and system, judges whether identical, such as phase Same, then judge corresponding cas as correct target cas matching, if differing, continuation initialization can be returned and then obtain Return information, travels through to all of cas, if not finding target cas, can notify the user that cas operation irregularity, terminates all Flow process.
It is possible to get target cas of accurately mate after the completion of this step, can notify the user that cas is working properly, continue Continuous next one playing flow.
As the preferred embodiment of the present invention, as shown in figure 5, described step s104 specifically includes:
The each group cat data preserving in s501, successively extraction system and pmt data, and judge the every group of cat data taken out Whether it is consistent with work at present cas with pmt data, if meet proceeding to step s502;If not meeting, preserve in extraction system Next group cat data and pmt data, judge whether again to meet, until travel through all of cat data and pmt data;
This step is for realizing playing without the program of user intervention, can suspend audio frequency and video passage first, then take successively Go out each group cat data preserving in system and pmt data, find the cat data meeting work at present cas and pmt data.cat Data and pmt data are locally stored good.If all cat data and pmt data do not comply with work at present cas, Terminate flow process, it fails to match or cas operation irregularity to notify user cas.
Cat(CAT Conditional Access Table) give cas for information about, which depict the cipher mode of program, contain emm's The decoder of pid, only mandate could receive key by cat and decode corresponding data flow.Emm and ecm is empowerment management Information, emm also includes the authorized user messages such as intelligent card numbers, mandate time, authorization mechanism, and ecm also includes time, program valency The information such as lattice, program authorization control, emm mainly completes the mandate to user, and ecm is the management information towards program.
Pmt(Program Map Table) fully describe a road program is made up of which pes, the pid of each pes is assorted respectively Etc., pmt gives the decoding clock pcr of each road program simultaneously.
Pid(packet identifier) PID Packet Identifier, it is the key of identification code stream information property, be programme information " identity card ", different TV programme ceaselessly pid code corresponding with business information.When receiver will receive some appointed program When, obtain the pid value of the Program Map Table of this program first from Program Association Table, then find out from ts and this pid value Corresponding Program Map Table.
S502, the emm pid obtaining in cat data, and the ecm pid in pmt data, call work at present cas's Interface arranges emm pid and ecm pid, and binds with audio frequency and video passage;
This step is acquisition emm pid from cat data, obtains ecm pid, then call current work from pmt data Make the interface assignment resource of cas and emm pid and ecm pid is set, and by the interface of work at present cas and audio frequency and video passage Binding.
S503, unlatching audio frequency and video passage, point out cas the match is successful.
When being again turned on audio frequency and video passage, user cas can be pointed out the match is successful, carry out the broadcasting of program.By this Bright system can find correct data, arrange and reopen audio frequency and video according to the result of coupling automatically from the data of storage Program play it is achieved that without user intervention intellectuality broadcasting, simultaneously because identification cas during pass through Dual Matching Step is not it is ensured that affected by intelligent card upgrade, replacing etc., and accurately mate is to correct cas.
Based on said method, the present invention also provides a kind of many cas seamless switch-over system preferred embodiment, as shown in fig. 6, its Including:
Target atr parameter acquisition module 100, for when smart card insertion is detected, all for system preset cas are logical News parameter and smart card carry out the communication that resets, and when communicating successfully when resetting, obtain the target atr parameter that communication returns;
Interim cas group acquisition module 200, for original by target atr getting parameter and all preset cas Atr parameter is compared, if identical, the corresponding cas of the original atr parameter that will match to preserves to interim cas group;
Accurately mate module 300, for traveling through all of cas in interim cas group, matches target cas therein, and will This target cas is set as work at present cas;
Playing module 400, for carrying out each group cat preserving in system data and pmt data and work at present cas Join, find the cat data meeting work at present cas and pmt data, and arranged with pmt data according to the cat data finding The interface of work at present cas, opens audio frequency and video passage.
Further, as shown in fig. 7, described target atr parameter acquisition module 100 specifically includes:
Reset communication unit 110, for taking out the communications parameter of all preset cas successively, and is sticked into intelligence respectively Row resets and communicates;
Whether target atr parameter acquiring unit 120, communicating for judging to reset successful, if reset communicating successfully, obtaining Communicate the target atr parameter returning, being then back to carries out resetting with smart card using the communications parameter of next preset cas leads to News;If reset Communications failure, the next preset communications parameter of cas of Returning utilization carries out, with smart card, the communication that resets, until Travel through the communications parameter of all preset cas.
Further, as shown in figure 8, described interim cas group acquisition module 200 specifically includes:
Comparing unit 210, for carrying out target atr getting parameter successively with the original atr parameter of preset cas Relatively, judge whether identical;
Storage unit 220, for when the original atr parameter of the target atr parameter getting and preset one of cas When identical, corresponding for this original atr parameter cas preserved to interim cas group, and returns the target that the next one is got Atr parameter is compared with the original atr parameter of preset cas, until having traveled through all target atr parameters getting;
Cycling element 230, for when the original atr parameter not phase of the target atr parameter getting and the cas of system intialization Meanwhile, return the target atr parameter that the next one is got to be compared with the original atr parameter of preset cas, until traversal Complete all target atr parameters getting.
Further, as shown in figure 9, described accurately mate module 300 specifically includes:
Initialization unit 310, for initializing the cas in interim cas group successively, judges whether initialization is successful, if just Begin chemical conversion work(, then run the transmitting and receiving data interface of the corresponding cas in interim cas group, obtain the return information of smart card;No Then continue to initialize next cas in interim cas group, until having traveled through all cas in interim cas group;
Judging unit 320, whether the return information for judging smart card is identical with preset information, if identical, accordingly Cas be target cas matching, if differing, returning and continuing to initialize next cas in interim cas group, until traveled through All cas in interim cas group.
Further, as shown in Figure 10, described playing module 400 specifically includes:
Data searching unit 410, for each group cat data and the pmt data that preserve in extraction system successively, and judges to take Whether the every group of cat data going out is consistent with work at present cas with pmt data, if meeting, obtains the emm in cat data Ecm pid in pid, and pmt data, calls the interface of work at present cas and arranges emm pid and ecm pid, and and sound Video channel is bound;If not meeting, next preserving in extraction system organizes cat data and pmt data, judges whether again to accord with Close, until having traveled through all of cat data and pmt data;
Broadcast unit 420, for opening audio frequency and video passage, points out cas the match is successful.
With regard to above-mentioned modular unit ins and outs in method above, be described in detail, therefore repeat no more.
In sum, the present invention supports the intelligence switching of multiple cas, and supports that cas switching deutomerite purpose is seamless automatically Play, intervene manually without user, the present invention can be applicable to digital broadcast television terminal unit, digital broadcast television therein is eventually End equipment include but is not limited to the terminal such as top box of digital machine, digital TV integrated machine, the present invention can support manual selection modes and Automatically select pattern, may be alternatively provided as manual automated intelligent mixed model simultaneously, spirit can be provided to terminal use and operator Easily selection scheme alive, when the present invention solves multiple cas encryption that operator runs into during operation, it is desirable to provide many The problem of individual terminal unit, decreases the terminal unit purchase cost of operator, so that terminal unit manufacturer is quickly opened Send the terminal unit of adaptation more area operators, simultaneously again can then terminal use's safe and efficient ground more preferably signal source at any time And do not increase hardware cost.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can To be improved according to the above description or to convert, all these modifications and variations all should belong to the guarantor of claims of the present invention Shield scope.

Claims (6)

1. a kind of many cas seamless handover method is it is characterised in that include step:
When smart card insertion is detected, the communications parameter of all for system preset cas and smart card are carried out the communication that resets, when multiple When position communicates successfully, obtain the target atr parameter that communication returns;
The original atr parameter of target atr getting parameter and all preset cas is compared, if identical, will mate To the corresponding cas of original atr parameter preserve to interim cas group;
Travel through all of cas in interim cas group, match target cas therein, and this target cas is set as work at present cas;
Each group cat preserving in system data is mated with work at present cas with pmt data, finds and meet current work Make cat data and the pmt data of cas, and the interface according to the cat data finding and pmt data setting work at present cas, Open audio frequency and video passage;
It is described that when smart card insertion is detected, carrying out resetting by the communications parameter of all for system preset cas and smart card communicates, When communicating successfully when resetting, the step obtaining the target atr parameter that communication returns specifically includes:
Take out the communications parameter of all preset cas successively, and carry out the communication that resets respectively with smart card;
Whether judging to reset, it is successful to communicate, if reset communicating the target atr parameter successfully obtaining communication return, is then back to Communications parameter and smart card using next preset cas carry out the communication that resets;If reset Communications failure, under Returning utilization The communications parameter of one preset cas and smart card carry out the communication that resets, until having traveled through the communication ginseng of all preset cas Number;
The described original atr parameter by target atr getting parameter and all preset cas is compared, if identical, will The step that the corresponding cas of the original atr parameter that matches preserves to interim cas group specifically includes:
Target atr getting parameter is compared with the original atr parameter of preset cas successively, judges whether identical;
When the target atr parameter getting is identical with the original atr parameter of preset one of cas, by this original atr ginseng The corresponding cas of number preserve to interim cas group, and return the former of the target atr parameter that the next one is got and preset cas Beginning atr parameter is compared, until having traveled through all target atr parameters getting;
When the original atr parameter of the target atr parameter getting and the cas of system intialization differs, return and the next one is obtained The target atr parameter got is compared with the original atr parameter of preset cas, until having traveled through all targets getting Atr parameter.
2. many cas seamless handover method according to claim 1 is it is characterised in that own in described traversal interim cas group Cas, match target cas therein, and the step that this target cas is set as work at present cas specifically include:
Initializing the cas in interim cas group successively, judging whether initialization is successful, if initializing successfully, runs interim cas The transmitting and receiving data interface of the corresponding cas in group, obtains the return information of smart card;Otherwise continue to initialize interim cas group In next cas, until having traveled through all cas in interim cas group;
Judge whether the return information of smart card is identical with preset information, if identical, corresponding cas is the target matching Cas, if differing, returning and continuing to initialize next cas in interim cas group, until having traveled through all in interim cas group cas.
3. many cas seamless handover method according to claim 1 it is characterised in that described by each group preserving in system Cat data is mated with work at present cas with pmt data, finds the cat data meeting work at present cas and pmt number According to, and the interface according to the cat data finding and pmt data setting work at present cas, open the step tool of audio frequency and video passage Body includes:
The each group cat data preserving in extraction system successively and pmt data, and judge every group of cat data and the pmt data taken out Whether being consistent with work at present cas, if meeting, obtaining the emm pid in cat data, and the ecm in pmt data Pid, calls the interface of work at present cas and arranges emm pid and ecm pid, and binds with audio frequency and video passage;If not meeting, Next the group cat data then preserving in extraction system and pmt data, judge whether to meet, until having traveled through all of cat again Data and pmt data;
Open audio frequency and video passage, point out cas the match is successful.
4. a kind of many cas seamless switch-over system is it is characterised in that include:
Target atr parameter acquisition module, for when smart card insertion is detected, by the communications parameter of all for system preset cas Carry out, with smart card, the communication that resets, when communicating successfully when resetting, obtain the target atr parameter that communication returns;
Interim cas group acquisition module, for entering the original atr parameter of target atr getting parameter and all preset cas Row compares, if identical, the corresponding cas of the original atr parameter that will match to preserves to interim cas group;
Accurately mate module, for traveling through all of cas in interim cas group, matches target cas therein, and by this target Cas is set as work at present cas;
Playing module, for being mated each group cat preserving in system data with work at present cas with pmt data, is searched To the cat data meeting work at present cas and pmt data, and current work is arranged with pmt data according to the cat data finding Make the interface of cas, open audio frequency and video passage;
Described target atr parameter acquisition module specifically includes:
Reset communication unit, for taking out the communications parameter of all preset cas successively, and carries out with smart card resetting leading to respectively News;
Whether target atr parameter acquiring unit, communicate successful for judging to reset, if reset communicating successfully, obtaining communication and returning The target atr parameter returned, is then back to carry out, with smart card, the communication that resets using the communications parameter of next preset cas;If Then the next preset communications parameter of cas of Returning utilization carries out, with smart card, the communication that resets to reset Communications failure, until traversal The communications parameter of complete all preset cas;
Described interim cas group acquisition module specifically includes:
Comparing unit, for being compared target atr getting parameter successively with the original atr parameter of preset cas, is sentenced Disconnected whether identical;
Storage unit, for when the target atr parameter getting is identical with the original atr parameter of preset one of cas, Corresponding for this original atr parameter cas is preserved to interim cas group, and return the target atr parameter that the next one is got with The original atr parameter of preset cas is compared, until having traveled through all target atr parameters getting;
Cycling element, for when the original atr parameter of the target atr parameter getting and the cas of system intialization differs, returning Return the target atr parameter that the next one is got to be compared with the original atr parameter of preset cas, until having traveled through all The target atr parameter getting.
5. many cas seamless switch-over system according to claim 4 is it is characterised in that described accurately mate module is specifically wrapped Include:
Initialization unit, for initializing the cas in interim cas group successively, judges whether initialization is successful, if being initialized to Work(, then run the transmitting and receiving data interface of the corresponding cas in interim cas group, obtains the return information of smart card;Otherwise continue Initialize next cas in interim cas group, until having traveled through all cas in interim cas group;
Judging unit, whether the return information for judging smart card is identical with preset information, if identical, corresponding cas is Target cas matching, if differing, returning and continuing to initialize next cas in interim cas group, until having traveled through interim cas All cas in group.
6. many cas seamless switch-over system according to claim 4 is it is characterised in that described playing module specifically includes:
Data searching unit, for each group cat data and the pmt data that preserve in extraction system successively, and judges the every of taking-up Whether group cat data is consistent with work at present cas with pmt data, if meeting, obtains the emm pid in cat data, and Ecm pid in pmt data, calls the interface of work at present cas and arranges emm pid and ecm pid, and with audio frequency and video passage Binding;If not meeting, next preserving in extraction system organizes cat data and pmt data, judges whether again to meet, until All of cat data and pmt data are traveled through;
Broadcast unit, for opening audio frequency and video passage, points out cas the match is successful.
CN201410169243.8A 2014-04-24 2014-04-24 Multi-CAS seamless switching method and multi-CAS seamless switching system Active CN103997678B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410169243.8A CN103997678B (en) 2014-04-24 2014-04-24 Multi-CAS seamless switching method and multi-CAS seamless switching system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410169243.8A CN103997678B (en) 2014-04-24 2014-04-24 Multi-CAS seamless switching method and multi-CAS seamless switching system

Publications (2)

Publication Number Publication Date
CN103997678A CN103997678A (en) 2014-08-20
CN103997678B true CN103997678B (en) 2017-01-18

Family

ID=51311662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410169243.8A Active CN103997678B (en) 2014-04-24 2014-04-24 Multi-CAS seamless switching method and multi-CAS seamless switching system

Country Status (1)

Country Link
CN (1) CN103997678B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954841B (en) * 2015-06-17 2019-10-18 上海玮舟微电子科技有限公司 The method of compatible a variety of conditional access and the video playback apparatus being applicable in
CN106851391A (en) * 2015-12-03 2017-06-13 国家新闻出版广电总局广播科学研究院 A kind of condition receiving method and system for intelligent operating system
CN105516797A (en) * 2015-12-14 2016-04-20 福建新大陆通信科技股份有限公司 Control method and device supporting multi-CA (Certification Authority) of cable set-top box
CN108366271B (en) * 2018-02-09 2020-12-01 腾讯音乐娱乐科技(深圳)有限公司 Multimedia file playing method and device and storage medium
CN108574865A (en) * 2018-03-30 2018-09-25 青岛海信电器股份有限公司 The scramble process method, apparatus and terminal of terminal
CN112260721B (en) * 2020-10-21 2022-08-02 深圳创维-Rgb电子有限公司 A-CAS communication circuit, control method and A-CAS communication device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592126A (en) * 2003-08-27 2005-03-09 三星电子株式会社 Digital multimedia broadcasting receiver and method for reproducing digital multimedia data
CN101247500A (en) * 2007-02-12 2008-08-20 深圳市隆泰数字技术有限公司 General software descrambling method for different scrambling systems of digital television
CN101814037A (en) * 2010-03-12 2010-08-25 青岛海信宽带多媒体技术有限公司 Drive method compatible with various smart cards
CN102075808A (en) * 2011-01-25 2011-05-25 四川长虹电器股份有限公司 Method for realizing multi-conditional access (CA) coexistence in set top box
CN102098575A (en) * 2010-12-31 2011-06-15 青岛海信宽带多媒体技术有限公司 Migration method compatible with multiple conditional access (CA) systems and CA method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10216384A1 (en) * 2002-04-12 2003-10-30 Scm Microsystems Gmbh Access control network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592126A (en) * 2003-08-27 2005-03-09 三星电子株式会社 Digital multimedia broadcasting receiver and method for reproducing digital multimedia data
CN101247500A (en) * 2007-02-12 2008-08-20 深圳市隆泰数字技术有限公司 General software descrambling method for different scrambling systems of digital television
CN101814037A (en) * 2010-03-12 2010-08-25 青岛海信宽带多媒体技术有限公司 Drive method compatible with various smart cards
CN102098575A (en) * 2010-12-31 2011-06-15 青岛海信宽带多媒体技术有限公司 Migration method compatible with multiple conditional access (CA) systems and CA method
CN102075808A (en) * 2011-01-25 2011-05-25 四川长虹电器股份有限公司 Method for realizing multi-conditional access (CA) coexistence in set top box

Also Published As

Publication number Publication date
CN103997678A (en) 2014-08-20

Similar Documents

Publication Publication Date Title
CN103997678B (en) Multi-CAS seamless switching method and multi-CAS seamless switching system
DE60223890T2 (en) A method for providing a software upgrade to a smart card interface terminal
KR101400254B1 (en) Security processor and recording method and medium for configuring the behaviour of this processor
CN101521777B (en) DTV frequency channel switching method, DTV frequency channel switching system and DTV receiving terminal
US20100107186A1 (en) Method of enjoying broadcasted communication services through distinct electronic apparatuses
CN100521774C (en) Control of a conditional access mechanism
CN103327403B (en) Set top box upgrading method, device and system
US20080282288A1 (en) Remote control unit and remotely operating method
CN101667208A (en) Digital television receiver and methods for searching and switching programs thereof
US8819721B2 (en) System and method for controlling access to video events associated with video broadcast services
CN102905186A (en) Portable terminal, system, information processing method and program
CN101212266A (en) Apparatus and method for processing data broadcast signal
CN103607598A (en) Method and device for automatically recognizing network operator to realize data configuration
CN103384350A (en) Broadcast receiving apparatus and method for controlling application and device
CN104135671A (en) Television video content interactive question and answer method
CN102413366A (en) Method and device for searching channels in digital television
CN102164312A (en) Set-top box configuration method and system for Internet protocol television
CN100536543C (en) Method and system for implementing separation between receiving terminal set and card in digital TV set
CN103686380B (en) The application management method and intelligent television of intelligent television
CN102420953B (en) Hybrid tuber control
CN103379367B (en) Television advertisement automatic switchover system based on smart mobile phone
CN102170592B (en) Program previewing method and system based on digital television
CN103037255B (en) A kind of CAM cards automatic adaptation method
CN102158760A (en) Playing authentication method, device and system and set box of digital satellite television
US20050135628A1 (en) System and method for authenticating components in wireless home entertainment system

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