CN104581318B - Realize the method and terminal of smart card dynamic plug response - Google Patents

Realize the method and terminal of smart card dynamic plug response Download PDF

Info

Publication number
CN104581318B
CN104581318B CN201510031903.0A CN201510031903A CN104581318B CN 104581318 B CN104581318 B CN 104581318B CN 201510031903 A CN201510031903 A CN 201510031903A CN 104581318 B CN104581318 B CN 104581318B
Authority
CN
China
Prior art keywords
terminal
smart card
receiving system
condition receiving
type
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
CN201510031903.0A
Other languages
Chinese (zh)
Other versions
CN104581318A (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.)
Hisense Broadband Multimedia Technology Co Ltd
Original Assignee
Hisense Broadband Multimedia 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 Hisense Broadband Multimedia Technology Co Ltd filed Critical Hisense Broadband Multimedia Technology Co Ltd
Priority to CN201510031903.0A priority Critical patent/CN104581318B/en
Publication of CN104581318A publication Critical patent/CN104581318A/en
Application granted granted Critical
Publication of CN104581318B publication Critical patent/CN104581318B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/418External card to be used in combination with the client device, e.g. for conditional access
    • H04N21/4181External card to be used in combination with the client device, e.g. for conditional access for conditional access
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4367Establishing a secure communication between the client and a peripheral device or smart card

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a kind of method and terminal for realizing smart card dynamic plug response, methods described includes:Judge the type for the smart card that terminal is currently inserted into;Condition receiving system corresponding with the type of the smart card being currently inserted into is chosen from the terminal preset, the condition receiving system that has performed after the starting up of terminal initialization and is run;If detecting, the type of the smart card inserted in the terminal changes, chosen from the terminal preset, the condition receiving system that has performed after the starting up of terminal initialization with change after smart card the corresponding condition receiving system of type and run.Using the present invention, without restarting the smart card after terminal can identifies simultaneously plug, so as to realize that the dynamic to smart card plugs response.

Description

Realize the method and terminal of smart card dynamic plug response
Technical field
The present invention relates to intelligent card in processing technical field, specifically, is related to and realizes smart card dynamic plug response Method and the terminal for supporting smart card.
Background technology
With the popularization of receiving terminal for digital television, the operation business of broadcasting and TV typically passes through CA(Conditional Access, condition reception)System is realized.CA systems be related to encryption and decryption technology, coding techniques, multiplexing technology, smart card techniques, Network technology, reception technique, it is additionally related to the technologies such as user management, program, toll administration.At present, typically by numeral The common segment of television reception terminal is independent, makes " machine ", and in the operation business such as CA systems various regions operator Put " card " into whole or in part, so, card just can be customized or selected according to the different demands of operator and user.
To realize CA, it is desirable to which terminal needs built-in corresponding with smart card in the terminal to support the terminal of smart card CA systems.At present, in the market there are polytype CA systems and smart card, to improve the compatibility of terminal, reducing terminal Cost, there is the technology of compatible a variety of CA systems in a terminal.By taking the set top box for supporting smart card as an example, the technology Implementation method is:Built-in a variety of CA systems in advance in set top box, the smart card institute being currently inserted into first is judged after set-top-box opening The type of the CA systems of category, then a pair CA system corresponding with current smart cards initialize, then, set top box according to just CA system operations after beginningization, realize the CA of set top box.
Although using above-mentioned technology a set top box can be caused to support a variety of CA systems, if transported in set top box The smart card that the CA system current with set top box is not correspond to is changed during row, then according to existing technology, it is necessary to first sentence The type of CA systems corresponding to the disconnected smart card being currently inserted into, then pair CA system corresponding with the smart card being currently inserted into Initialized.However, it is desirable to the initialization of the CA systems could be carried out by restarting set top box., can not be initial if do not restarted CA systems corresponding to changing the smart card after changing, then cannot realize normal CA.Can be correct although being restarted by set top box Response change after smart card, but complex operation restarts that time-consuming.
The content of the invention
An object of the present invention is to provide a kind of method for realizing smart card dynamic plug response, using this method, If the smart card that the CA system current with terminal is not correspond to has been changed, without restarting terminal can during terminal operating Identify and respond the smart card after changing, so as to realize that the dynamic to smart card plugs response.
For achieving the above object, smart card dynamic plug response method provided by the invention uses following technical proposals It is achieved:
A kind of method for realizing smart card dynamic plug response, methods described include:
Judge the type for the smart card that terminal is currently inserted into;
Chosen from the terminal preset, the condition receiving system that has performed after the starting up of terminal initialization and institute State condition receiving system corresponding to the type for the smart card being currently inserted into and run;
If detecting, the type of the smart card inserted in the terminal changes, from the terminal preset, described The condition corresponding with the type of the smart card after change of selection in the condition receiving system of initialization has been performed after starting up of terminal to connect Receipts system is simultaneously run.
The second object of the present invention is to provide a kind of terminal for supporting smart card, to realize that the plug of the dynamic of smart card rings Should.
For achieving the above object, it is provided by the invention support smart card terminal using following technical proposals come reality It is existing:
A kind of terminal for supporting smart card, a variety of condition receiving systems is preset in the terminal, the terminal includes intelligence Dynamic plug responding device can be blocked, the smart card dynamic plug responding device includes:
Initialization unit, for initializing the condition receiving system of the terminal built-in;
Smartcard types recognition unit, the type for the smart card being currently inserted into for identifying the terminal;
Smartcard types change identifying unit, are connected with the smartcard types recognition unit, for judging the end Hold whether the type of the smart card of insertion changes;
Condition receiving system execution unit, judge with the smartcard types recognition unit and smartcard types change Unit is connected, for from the terminal preset, after the starting up of terminal initialization has been performed by the initialization unit Condition receiving system in choose corresponding with the type of the smart card being currently inserted into condition receiving system and run and use In from the terminal preset, condition receiving system that initialization has been performed after the starting up of terminal by the initialization unit Middle selection condition receiving system corresponding with the type of the smart card after change is simultaneously run.
Compared with prior art, the advantages and positive effects of the present invention are:The present invention is pre- in the terminal for supporting smart card Put a variety of condition receiving systems, full terms reception system initialized during starting up of terminal, during terminal operating if Smart card is plugged, without restarting terminal, can be directly invoked according to the smartcard types detected corresponding, initialized The condition receiving system finished, it is achieved thereby that the dynamic plug of smart card responds, improve the speed of terminal response smart card With the convenience using smart card.Moreover, the present invention by setting smart card respond style selecting unit and intelligence in the terminal Block dynamic plug response execution unit so that user can easily control terminal whether to perform the dynamic of smart card and plug sound Answer, the diversity of termination function is realized while terminal response smartcard performance is improved.
After the embodiment of the present invention is read in conjunction with the figure, the other features and advantages of the invention will become more clear Chu.
Brief description of the drawings
Fig. 1 is the flow chart of method one embodiment that the present invention realizes smart card dynamic plug response;
Fig. 2 is the flow chart for second embodiment of method that the present invention realizes smart card dynamic plug response;
Fig. 3 is the flow chart for the 3rd embodiment of method that the present invention realizes smart card dynamic plug response;
Fig. 4 is the structured flowchart of terminal one embodiment that the present invention supports smart card.
Embodiment
Technical scheme is described in further detail with reference to the accompanying drawings and detailed description.
Referring to Fig. 1, the figure, which show the present invention, realizes method one embodiment that smart card dynamic plug responds Flow chart.
As shown in figure 1, in this embodiment, smart card terminal realizes the process step of smart card dynamic plug response such as Under:
Step 101:Flow starts.
Step 102:Starting up of terminal, preset full terms reception system in initialization terminal.
To allow the compatible a variety of condition receiving systems of terminal, when upgrading when terminal is dispatched from the factory or to terminal, Preset a variety of condition receiving systems in terminal.For example, all conditions reception system that can be to be commonly used on preset existing market.With During the using terminal of family, after starting up of terminal, full terms reception system is initialized.
The initialization of condition receiving system refers to that each functional module of terminal-pair condition receiving system is initialized, including The initialization of intelligent card initialization, the initialization of OS adaptation layers, communication interface initialization, demultiplexing initialization and storing initial etc. Set.Because the bottom function used when the condition receiving system of different type or producer is developed will not be completely the same, it is at end Required end application is run in end can also be not quite similar.Different condition reception system is directed to built-in in the terminal A variety of application programs, development process is complicated, and mutual coordination control can be extremely difficult.On the other hand, although inhomogeneity The condition receiving system physical layer interface implementation of type is different, but the function that each condition receiving system is realized is to end application For many general character be present.Based on this, the preferable initialization procedure of the embodiment is:Multiple general-purpose interface letters are set in the terminal Number, terminal are initialized using each preset condition receiving system of general-purpose interface function pair, simplify terminal software and open Flow is sent out, improves terminal resource management uniformity and service efficiency.
Specifically, general-purpose interface function includes OS Adapter Layer Interfaces function, the communication that is communicated with smart card connects Mouth function, demultiplexing interface function and data memory interface function.After starting up of terminal, terminal can call these general-purpose interface functions Each functional module of each condition receiving system is initialized respectively.
Moreover, to avoid the occupancy to terminal shared interface resource, general-purpose interface function can also include release conditions The realizing interface function of reception system function.When exiting some condition receiving system, terminal can utilize the realizing interface letter Terminal resource shared by number release conditions reception system, to improve terminal resource utilization rate.
It should be further stated that in the terminal preset a variety of condition receiving systems the step of be before terminal is dispatched from the factory or Dispatch from the factory disposable operation performed when carrying out upgrade maintenance during use to terminal, and starting up of terminal, initialization condition connect Receipts system is the step of being frequently performed during user's using terminal, and the embodiment is completely is illustrated to whole flow process, general It is put in one step to describe.
Step 103:Judge the type of smart card being currently inserted into terminal.
Although being built-in with a variety of condition receiving systems in terminal, a kind of smart card can only be used every time, using a kind of bar Part reception system, it is therefore desirable to judge the type of smart card being currently inserted into terminal, it is corresponding with smart card to run Condition receiving system.
Judgement to smartcard types, it can be resetted by card to realize.Specific implementation process is summarized as follows:To smart card Perform and reset operation, ATR will be produced and reset response message, adjusted back by message, obtain historical data, the communication protocol in ATR And the data such as ATR length, according to these data it may determine that going out smart card belongs to which kind of condition receiving system and smart card institute The host-host protocol of use, namely obtain the type of smart card.
Step 104:Run the corresponding condition receiving system of the type of the smart card with being currently inserted into.
Because all conditions reception system in terminal is initialized in starting up of terminal, therefore, judging After the smartcard types being currently inserted into, the condition receiving system corresponding with current smart cards and operation can be directly chosen, So as to realize condition reception.
Exemplified by using set top box as terminal, realize that the process of condition reception is summarized as follows:
Call demultiplexing interface function to filter the TS streams that front end is sent, obtain corresponding Entitlement Control Message (ECM)And Entitlement Management Message(EMM).Specifically, set top box describes according to the CA of PMT and CAT tables, obtains EMM's and ECM Pid value, ECM and EMM are then filtered out from TS streams according to pid value.For ECM the and EMM data that multiple slot be present, To avoid loss of data, after slot data have been extracted from the background, ECM and EMM number of the first allocating cache quene to extraction According to being cached.
After ECM and EMM data acquisitions, complete ECM and EMM data pass in being cached by general-purpose interface function Transport to smart card corresponding to condition receiving system and processing is decrypted.
The decryption processes of smart card are:Smart card reads the individual subscriber distribution key PDK of its memory storage, uses PDK EMM is decrypted, takes out business cipher key SK;Then, then with SK to ECM decrypt, solve scrambled control word CW.Meanwhile decrypting process Address, the authorized user message that EMM is included, the program that can be seen such as user or period, the receipts that user pays can also be obtained Depending on the information such as taking, to realize associated authorization management.
Then, the scrambled control word after decryption processing is supplied to descrambler by general-purpose interface function, to the sound of encryption Video flowing is descrambled.And by other Entitlement Control Message data and Entitlement Management Message data after decryption processing, such as save The data such as the program information datas such as mesh source, time, classifying content and program price, mail, fingerprint are converted to conventional data knot Structure, there is provided give set-top box application program.Here, other Entitlement Control Message data refer to ECM decryption after except scrambled control word it Outer other information data, these packets contain the program Information Number such as programming source, time, classifying content and program price According to, it is desirable to provide used to set-top box application program.And in Entitlement Management Message data EMM, not only include mail, fingerprint Etc. management information data, it is also possible to the programs such as the programming source of the request program such as IPPV, IPPT, time, classifying content can be included Information data, these data are also required to be supplied to set-top box application program to use.
Step 105:If detecting, the type of the smart card inserted in terminal changes, operation and the intelligence after change Condition receiving system corresponding to the type of card.
To ensure also realize normal condition reception after smart card is extracted and reinserted, it is desirable in real time to terminal In smartcard types detected and judged.For example, a time can be preset, judge once at interval of the time. Or other judgment modes can also be used, specifically refer to the description of Examples hereinafter.When detect smartcard types send out Changing, then chosen from terminal preset, the condition receiving system that has performed after starting up of terminal initialization with after change Condition receiving system corresponding to the type of smart card is simultaneously run.
Step 106:Flow terminates.
Hereafter, step 103 is repeated to the process of step 105, until terminal closedown.In this process, initialization is pre- The process for the full terms reception system put is performed once in starting up of terminal.If restarted after terminal closedown, then weigh The new process for performing step 102 and step 105.
In this embodiment, first all built-in condition receiving systems are initialized after starting up of terminal, even if smart card exists Be pulled out in the starting up of terminal course of work and again insertable into addition be replaced, can judge again insertable into smart card class Type simultaneously runs the corresponding condition receiving system after initialization, startup and initialization is turned back on without terminal, so as to real Show dynamic plug response of the smart card in the case of terminal is not shut down, improve the speed of terminal response smart card and using intelligence The convenience that can block.Referring to Fig. 2, the figure shows second implementation of method that the present invention realizes smart card dynamic plug response The flow chart of example.
As shown in Fig. 2 second embodiment realizes that the process of smart card dynamic plug response is as follows:
Step 201:Flow starts.
Step 202:Starting up of terminal, preset full terms reception system in initialization terminal.
The concrete methods of realizing of the step may be referred to the description of the step 102 in Fig. 1 embodiments.
Step 203:Judge the type of smart card being currently inserted into terminal.
The concrete methods of realizing of the step may be referred to the description of the step 103 in Fig. 1 embodiments.
Step 204:The condition receiving system for selecting the type of the smart card with being currently inserted into corresponding connects for conditions present Receipts system.
Step 205:Judge whether conditions present reception system is halted state.If so, perform step 206;Otherwise, go to Step 207.
Because full terms reception system has been performed both by initialization operation after starting up of terminal, and at most have in the same time One condition receiving system is in running status, also can occupied terminal after the condition receiving system initialization in non-operating state The resources such as CPU, internal memory.For reduce resource occupation, the embodiment to after initialization condition receiving system set halted state and Two kinds of different states of normal condition, state can be characterized by the value of the state variable of setting.Wherein, normal condition is finger All threads of part reception system are in running status, and halted state refers to the kernel main thread pause of condition receiving system A kind of state.After starting up of terminal initialization, each condition receiving system is in the state of acquiescence, if default conditions are normal shape State.In this step, the state variable value of conditions present reception system is read, conditions present reception system is judged according to variate-value In which kind of state.If conditions present reception system is halted state, step 206 is performed;If not halted state, then Normal condition is expressed as, performs step 207.
Step 206:If conditions present reception system is placed in a suspend state, it is necessary to first recover in conditions present reception system The main thread of core is running status, and it is normal condition to set conditions present reception system, namely the value of change state variable is Variate-value corresponding to normal condition.Then, suspend the kernel main thread of other conditions reception system, and these other conditions are connect Receipts system is arranged to halted state, namely it is variate-value corresponding to halted state to change the value of its state variable.Then, step is performed Rapid 208.
Due to by the pause of the kernel main thread of non-present condition receiving system, the no longer resource such as occupied terminal CPU, internal memory, Reduce terminal load, improve resource utilization.Moreover, the condition receiving system of halted state is only to have suspended occupancy resource More kernel main thread, such as kernel-driven, descrambler, ensure that main thread recovers and whole in the state of terminal is not restarted Condition receiving system is transferred to some threads of running status still in running status(Such as ECM and EMM analyzing and processing, card driving, insert Cartoon knows thread of CA kernels etc.), thus, dynamic plug response of the smart card under terminal not rebooting status is not influenceed.
Step 207:If conditions present reception system is not halted state, it is normal condition to represent its state.For example, Smart card is inserted after initialization for the first time, so condition receiving system default conditions are normal condition, condition corresponding to smart card Reception system is normal condition.Or although smart card is the smart card being again inserted, but still it is the previous intelligence used Card, then condition receiving system corresponding to the smart card is the previous system in running status, then its state is also normal condition. Regardless of state, if conditions present reception system is normal condition, suspend the kernel master of other conditions reception system Thread, and these other conditions reception systems are arranged to halted state.Then, step 208 is performed.
Certainly, if smart card is be again inserted and previous identical smart card, other conditions reception system continues Previous state, still in halted state, then it need not repeat pause and change state variable.
Step 208:Conditions present reception system is run, realizes condition reception function.
The specific implementation of condition reception function refers to the description of the step 104 in Fig. 1 embodiments.
Second embodiment only connects the condition corresponding to current smart cards after full terms reception system is initialized Receipts system is arranged to running status, to ensure that terminal realizes normal condition reception, and by the part of other conditions reception system Thread suspends, and so as to reduce terminal threads load, reduces the occupancy to terminal system resource.
Referring to Fig. 3, the figure, which show the present invention, realizes the 3rd embodiment of method that smart card dynamic plug responds Flow chart.
As shown in figure 3, the embodiment realizes that the process of the method for smart card dynamic plug response is as follows:
Step 301:Flow starts.
Step 302:Starting up of terminal, preset full terms reception system in initialization terminal.
The concrete methods of realizing of the step may be referred to the description of the step 102 in Fig. 1 embodiments.
Step 303:Judge the type of smart card being currently inserted into terminal.
The step is the first judgement carried out after starting up of terminal to smart card.Determination methods are referred in Fig. 1 embodiments The description of step 103.
Step 304:The condition receiving system for selecting the type of the smart card with being currently inserted into corresponding connects for conditions present Receipts system.
Step 305:Judge whether conditions present reception system is halted state.If so, perform step 306;Otherwise, go to Step 307.
Step 306:If conditions present reception system is placed in a suspend state, it is necessary to first recover conditions present reception system Kernel main thread is running status, and it is normal condition to set conditions present reception system, namely the value of change state variable is Variate-value corresponding to normal condition.Then, suspend the kernel main thread of other conditions reception system, and these other conditions are connect Receipts system is arranged to halted state, namely it is variate-value corresponding to halted state to change the value of its state variable.Then, step is performed Rapid 308.
Step 307:If conditions present reception system is not halted state, it is normal condition to represent its state.Suspend it The kernel main thread of his condition receiving system, and these other conditions reception systems are arranged to halted state.Then, step is performed Rapid 308.
Step 308:Run conditions present reception system.
Above-mentioned steps 305 the execution purpose of each step and execution method into step 308 refer to step in Fig. 2 embodiments 205 correspond to description to step 208.
Step 309:Judge whether that effective smart card is reinserted into.If it is, go to step 303;If it is not, perform Step 310.
The purpose of the step is to determine whether to need the type for rejudging the smart card being currently inserted into.In the embodiment In, judge that effective smart card and judgement whether are inserted in terminal to be currently inserted into except performing step 303 after first start Effective smart card type outside, the operating process of current smart cards type is no longer judged using timing, and use is following sentences Disconnected process judges to determine the need for re-starting Card Type:
Call back function is set in the terminal, if smart card is inserted into, callback information that feedback intelligent card is inserted into;If Smart card is pulled out, the callback information that feedback intelligent card is pulled out;And if the smart card of insertion is the card of terminal None- identified, Then feed back the callback information of dead card.In starting up of terminal running, application program can get these callback informations.At end During the start operation of end, smart card will not be typically inserted into by frequent extraction.In this case, if frequently inserted to current The smart card entered carries out type judgement, it will takes more terminal system resource.In consideration of it, judge first after starting up of terminal The type of smart card and after performing condition reception, only gets effective smart card in terminal and is inserted into(Namely by again Insertion)Callback information when just again perform step 303 judge smartcard types process and subsequently to conditions present reception The processing procedure of system.
Step 310:Reinserted if there is no effective smart card, then perform normal handling process.
Here normal handling process may include the situation of following several respects:
Terminal does not get any callback information on smart card, shows that smart card is not pulled out or reinserted, Then continue to run with conditions present reception system.
Terminal gets the callback information that smart card is pulled out, and shows that smart card has been pulled out.If smart card is pulled out Going out, condition receiving system can not be run, and can not make any processing to each condition receiving system in terminal, and only in terminal circle The prompting of " smart card is pulled out " is provided on face.
Terminal gets the callback information that invalid smart card is inserted into, can also be to each condition receiving system in terminal not Make any processing, the prompting of " smart card is invalid " is only provided on terminal interface.
Step 311:Flow terminates.
The embodiment determines when to carry out type judgement to current smart cards by setting Rule of judgment, intelligent realizing Card dynamic plug response on the basis of, reduce frequently carry out Card Type judgement and caused by resource utilization, terminal response speed Spend the problem of slow.
Referring to Fig. 4, the figure show the structured flowchart that the present invention supports terminal one embodiment of smart card.Here institute The terminal said, refer to the terminal for supporting smart card to realize condition reception, such as set top box.
As shown in figure 4, the terminal built-in of the embodiment has four kinds of condition receiving systems, respectively condition receiving system 411, 412nd, 413 and 414, terminal also includes smart card dynamic plug responding device 42, for realizing smart card terminal to smart card Dynamic plug response.
Specifically, smart card dynamic plug responding device 42 includes following each unit:
Initialization unit 421, for the condition receiving system built in initialization terminal, and the whole of inherence can be initialized Condition receiving system;
Smartcard types recognition unit 422, the type for the smart card being currently inserted into for identification terminal;
Smartcard types change identifying unit 423, are connected with smartcard types recognition unit 422, for judging terminal Whether the type of the smart card of insertion changes;
Condition receiving system execution unit 424, judge with smartcard types recognition unit 422 and smartcard types change single Member 422 is connected, for from terminal preset, condition that initialization has been performed after starting up of terminal by initialization unit 421 connects The corresponding condition receiving system of type of the smart card with being currently inserted into is chosen in receipts system and is run and for from terminal preset , chosen and the intelligence after change in the condition receiving system that initialization has been performed after starting up of terminal by initialization unit 421 Condition receiving system corresponding to the type of card is simultaneously run.
In addition, smart card dynamic plug responding device 42 can also include such as lower unit:
Condition receiving system status control unit 425, become respectively with smartcard types recognition unit 422, smartcard types Change identifying unit 423 to connect, be normal condition for setting condition receiving system corresponding to the smart card being currently inserted into, pause removes The kernel main thread of other conditions reception system outside condition receiving system corresponding to the smart card being currently inserted into, and will pause The other conditions reception system of kernel main thread is arranged to halted state;
Condition receiving system state determination unit 426, respectively with smartcard types recognition unit 422, condition receiving system Status control unit 425 is connected, the state for condition receiving system corresponding to the type for the smart card for judging to be currently inserted into.
In addition to smart card dynamic plug responding device 42, the terminal of the embodiment also includes smart card respond style Selecting unit 43, the unit are connected with smart card dynamic plug responding device 42, are one and are available for the defeated of end users operation Incoming interface, user can pass through the type of the Unit selection terminal response smart card.For example, in this embodiment, terminal includes Smart card dynamic plug response and two kinds of respond styles to smart card of steady-error coefficient, smart card respond style selecting unit 43 carry For the selection of both types, user can select any type as needed.Hereafter, terminal will be selected according to the type of user Response smart card is selected, realizes condition reception.Wherein, smart card dynamic plug response mode, refers to after starting up of terminal, if intelligence Can card is again inserted, may recognize that smartcard types without restarting terminal and run on the corresponding bar of smartcard types Part reception system realizes the response mode of condition reception function.The response mode passes through smart card dynamic plug responding device 42 To realize, concrete methods of realizing refers to descriptions of the above-mentioned Fig. 1 to Fig. 3 embodiments.And the static plug response of smart card refers to After starting up of terminal, if smart card is replaced, it is necessary to restart terminal, reinitialize could run with change after smart card phase Corresponding condition receiving system realizes the response mode of condition reception function.This steady-error coefficient mode can use prior art To realize, it is not specifically addressed herein.
Certainly, terminal can also embed more kinds of condition receiving systems and respond style as needed, improve terminal-pair While condition receiving system compatibility, the approach being more controlled to terminal is provided the user, improves the human nature of terminal Change and scalability, improve terminal challenge power.
The above embodiments are merely illustrative of the technical solutions of the present invention, rather than is limited;Although with reference to foregoing reality Example is applied the present invention is described in detail, for the person of ordinary skill of the art, still can be to foregoing implementation Technical scheme described in example is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed or replaced Change, the essence of appropriate technical solution is departed from the spirit and scope of claimed technical solution of the invention.

Claims (10)

  1. A kind of 1. method for realizing smart card dynamic plug response, it is characterised in that methods described includes:
    Judge the type for the smart card that terminal is currently inserted into;
    Choose from the terminal preset, the condition receiving system that has performed after the starting up of terminal initialization and work as with described Condition receiving system corresponding to the type of the smart card of preceding insertion is simultaneously run;
    If detecting, the type of the smart card inserted in the terminal changes, from the terminal preset, in the terminal Performed after start and condition reception system corresponding with the type of the smart card after change is chosen in the condition receiving system of initialization Unite and run;
    Preset full terms reception system is all initialized after the starting up of terminal in the terminal.
  2. 2. according to the method for claim 1, it is characterised in that from the terminal preset, hold after the starting up of terminal Gone initialization condition receiving system in choose the corresponding condition receiving system of type of smart card with being currently inserted into and transport Row is specially:
    Condition receiving system corresponding to the smart card being currently inserted into described in setting is normal condition, what pause was currently inserted into except described in The kernel main thread of other conditions reception system outside condition receiving system corresponding to smart card, and kernel main thread will be suspended The other conditions reception system be arranged to halted state.
  3. 3. according to the method for claim 2, it is characterised in that if detecting the type of the smart card inserted in the terminal Change, chosen from the terminal preset, the condition receiving system that has performed after the starting up of terminal initialization with Condition receiving system corresponding to the type of smart card after change is simultaneously run, and is specially:
    Detect that the type of the smart card inserted in the terminal changes, from the terminal preset, open in the terminal Performed after machine and condition receiving system corresponding with the type of the smart card after change is chosen in the condition receiving system of initialization;
    Judge the state of condition receiving system corresponding to the type of the smart card after the change;
    If the state is halted state, recover condition receiving system corresponding to the type of the smart card after the change as just Normal state, then run condition receiving system corresponding to the type of the smart card after the change;
    If the state is normal condition, condition reception system corresponding to the type of the smart card after the change is directly run System.
  4. 4. according to the method in any one of claims 1 to 3, it is characterised in that the terminal preset, in the terminal Initialization has been performed after start, has been specially:
    After the starting up of terminal, the terminal utilizes each preset condition of general-purpose interface function pair preset in the terminal Reception system is initialized respectively.
  5. 5. according to the method for claim 4, it is characterised in that the general-purpose interface function includes OS Adapter Layer Interface letters Number, the communication interface function to be communicated with smart card, demultiplexing interface function and data memory interface function.
  6. 6. according to the method for claim 5, it is characterised in that the general-purpose interface function also includes release conditions and receives system The realizing interface function for function of uniting.
  7. 7. according to the method for claim 1, it is characterised in that the intelligence for judging the smart card terminal and being currently inserted into The type of card is specially:
    The smart card being currently inserted into the smart card terminal, which performs, resets operation, judges the smart card according to response message is resetted Type.
  8. 8. a kind of terminal for supporting smart card, a variety of condition receiving systems are preset in the terminal, it is characterised in that the end End includes smart card dynamic plug responding device, and the smart card dynamic plug responding device includes:
    Initialization unit, for initializing the condition receiving system of the terminal built-in;
    Smartcard types recognition unit, the type for the smart card being currently inserted into for identifying the terminal;
    Smartcard types change identifying unit, are connected with the smartcard types recognition unit, for judging that the terminal is inserted Whether the type of the smart card entered changes;
    Condition receiving system execution unit, with the smartcard types recognition unit and smartcard types change identifying unit It is connected, for from the terminal preset, bar that initialization has been performed after the starting up of terminal by the initialization unit Corresponding with the type of the smart card being currently inserted into condition receiving system is chosen in part reception system and operation and for from Selected in the terminal preset, condition receiving system that initialization has been performed after the starting up of terminal by the initialization unit Take condition receiving system corresponding with the type of the smart card after change and run;
    Preset full terms reception system is all initialized after the starting up of terminal in the terminal.
  9. 9. terminal according to claim 8, it is characterised in that the smart card dynamic plug responding device also includes:
    Condition receiving system status control unit, change respectively with the smartcard types recognition unit, the smartcard types Identifying unit connects, and is normal condition for setting condition receiving system corresponding to the smart card being currently inserted into, pause removes The kernel main thread of other conditions reception system outside condition receiving system corresponding to the smart card being currently inserted into, and will The other conditions reception system of pause kernel main thread is arranged to halted state;
    Condition receiving system state determination unit, respectively with the smartcard types recognition unit, the condition receiving system shape State control unit is connected, the state for condition receiving system corresponding to the type for the smart card for judging to be currently inserted into.
  10. 10. terminal according to claim 8 or claim 9, it is characterised in that the terminal also includes:
    Smart card respond style selecting unit, the input interface of the type for providing terminal response smart card;
    The smart card dynamic plug responding device is connected with the smart card respond style selecting unit, according to the intelligence The output result of card respond style selecting unit determines whether to respond.
CN201510031903.0A 2015-01-22 2015-01-22 Realize the method and terminal of smart card dynamic plug response Active CN104581318B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510031903.0A CN104581318B (en) 2015-01-22 2015-01-22 Realize the method and terminal of smart card dynamic plug response

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510031903.0A CN104581318B (en) 2015-01-22 2015-01-22 Realize the method and terminal of smart card dynamic plug response

Publications (2)

Publication Number Publication Date
CN104581318A CN104581318A (en) 2015-04-29
CN104581318B true CN104581318B (en) 2017-11-17

Family

ID=53096368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510031903.0A Active CN104581318B (en) 2015-01-22 2015-01-22 Realize the method and terminal of smart card dynamic plug response

Country Status (1)

Country Link
CN (1) CN104581318B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516797A (en) * 2015-12-14 2016-04-20 福建新大陆通信科技股份有限公司 Control method and device supporting multi-CA (Certification Authority) of cable set-top box
CN106126458A (en) * 2016-03-30 2016-11-16 厦门九华通信设备厂 A kind of cpu bus turns the communication circuit module of smart card bus
CN107995509A (en) * 2017-12-25 2018-05-04 深圳国微技术有限公司 A kind of Conditional Access Module
CN108200476A (en) * 2018-02-07 2018-06-22 深圳佳力拓科技有限公司 The set-top-box system and method for a kind of while compatible multiple and different condition receiving systems
CN108574865A (en) * 2018-03-30 2018-09-25 青岛海信电器股份有限公司 The scramble process method, apparatus and terminal of terminal
CN108683930B (en) * 2018-04-27 2020-09-25 青岛海信传媒网络技术有限公司 Digital television, initialization method and device of interface of digital television and readable storage medium
CN109743622A (en) * 2019-01-23 2019-05-10 青岛海信电器股份有限公司 A kind of tuning method for parameter configuration, device and equipment based on CAM card
CN111131869B (en) * 2019-12-31 2021-12-28 国微集团(深圳)有限公司 Method and system for dynamically switching multiple CA systems in real time

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247500A (en) * 2007-02-12 2008-08-20 深圳市隆泰数字技术有限公司 General software descrambling method for different scrambling systems of digital television
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
CN103136052A (en) * 2011-11-25 2013-06-05 展讯通信(上海)有限公司 Mobile terminal and control method of mobile terminal provided with multiple operating systems

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009064083A1 (en) * 2007-11-12 2009-05-22 Samsung Electronics Co., Ltd. Method and apparatus for booting host

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247500A (en) * 2007-02-12 2008-08-20 深圳市隆泰数字技术有限公司 General software descrambling method for different scrambling systems of digital television
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
CN103136052A (en) * 2011-11-25 2013-06-05 展讯通信(上海)有限公司 Mobile terminal and control method of mobile terminal provided with multiple operating systems

Also Published As

Publication number Publication date
CN104581318A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN104581318B (en) Realize the method and terminal of smart card dynamic plug response
CN102098575B (en) Migration method compatible with multiple conditional access (CA) systems and CA method
CN104995634B (en) Trust the key freshness between unit
CN104202645B (en) A kind of method for controlling start-up picture to play and user equipment
US20170104733A1 (en) Device, system and method for low speed communication of sensor information
CN104038803B (en) A kind of modularization intelligent TV and the exchange method applied to modularization intelligent TV
CN106658142A (en) Interface configuration method and device
KR100564709B1 (en) Interface module and decoder for host
CN109889877A (en) Car multi-screen display control method and device
CN101247500A (en) General software descrambling method for different scrambling systems of digital television
CN102227138B (en) Conditional access module card and realization method thereof
CN103986950B (en) A kind of control method, device and the equipment of descrambling pattern
CN107896341B (en) Method for playing scrambled program and television equipment
CN104918113B (en) A kind of the function card end compatibility method and system of module TV
CN108924653B (en) Bullet screen message distribution method, device, equipment and storage medium
CN202190365U (en) Condition access system and digital television all-in-one machine
CN108769417A (en) A kind of smart machine client operational mode automatic switching method
CN111400137B (en) Storage method and device of monitoring event, mobile terminal and storage medium
CN105844137A (en) Device and method for identifying picture browsing operation permissions
CN108737886B (en) System and method for quickly switching digital programs and digital set top box
Zheng A common smart-card-based conditional access system for digital set-top boxes
US20190377613A1 (en) Synchronization of hardware units in data processing systems
CN102065331B (en) Set-top box and starting method thereof
CN112991608B (en) Conference voting management method, system, equipment and medium
CN117093184B (en) Software service adaptation method and system based on client requirements

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant