CN104581318A - Method and terminal capable of achieving dynamic plug response of intelligent card - Google Patents

Method and terminal capable of achieving dynamic plug response of intelligent card Download PDF

Info

Publication number
CN104581318A
CN104581318A CN201510031903.0A CN201510031903A CN104581318A CN 104581318 A CN104581318 A CN 104581318A CN 201510031903 A CN201510031903 A CN 201510031903A CN 104581318 A CN104581318 A CN 104581318A
Authority
CN
China
Prior art keywords
smart card
terminal
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.)
Granted
Application number
CN201510031903.0A
Other languages
Chinese (zh)
Other versions
CN104581318B (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)
  • Telephonic Communication Services (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a terminal capable of achieving the dynamic plug response of an intelligent card. The method comprises the steps of judging the type of the intelligent card currently inserted into the terminal; selecting a condition receiving system corresponding to the type of the currently-inserted intelligent card from condition receiving systems initialized after the terminal is started up and enabling the condition receiving system to run; if it is detected that the type of the intelligent card inserted into the terminal changes, selecting a condition receiving system corresponding to the type of the changed intelligent card from the condition receiving systems which are preset by the terminal and initialized after the terminal is started up and enabling the system to run. By the adoption of the method and the terminal, the plugged intelligent card can be identified and used without restarting the terminal, and therefore dynamic insertion and extraction response to the intelligent card can be achieved.

Description

Realize method and terminal that smart card dynamically plugs response
Technical field
The present invention relates to intelligent card in processing technical field, specifically, relate to realize smart card and dynamically plug the method for response and support the terminal of smart card.
Background technology
Along with the popularization of receiving terminal for digital television, the operation business of broadcasting and TV generally by CA(Conditional Access, condition reception) system realizes.CA system relates to encryption and decryption technology, coding techniques, multiplex technique, smart card techniques, network technology, reception technique, relates to the technology such as user management, program, toll administration in addition.At present, general by independent for the common segment of receiving terminal for digital television, make " machine ", and putting " card " in whole or in part in the operation business such as the CA system of various places operator, like this, card just can customize according to the different demands of operator and user or select.
For realizing CA, requiring that terminal is support the terminal of smart card, and needing the built-in CA system corresponding to smart card in the terminal.At present, market having polytype CA system and smart card, for improving compatibility, the reduction terminal cost of terminal, having occurred the technology of compatible multiple CA system in a terminal.To support the Set Top Box of smart card, the implementation method of this technology is: built-in multiple CA system in advance in Set Top Box, the type of the CA system belonging to smart card of current insertion is first judged after set-top-box opening, then initialization is carried out to the CA system corresponding with current smart cards, then, Set Top Box, according to the CA system cloud gray model after initialization, realizes the CA of Set Top Box.
A Set Top Box can be made to support multiple CA system although apply above-mentioned technology, but, if changed the smart card that the CA system current with Set Top Box is not corresponding in Set Top Box running, then according to existing technology, need the type of the CA system first judged corresponding to the smart card of current insertion, then initialization is carried out to the CA system corresponding with the smart card of current insertion.But, need to restart the initialization that Set Top Box just can carry out this CA system.If do not restarted, then cannot initialization change after CA system corresponding to smart card, then just can not realize normal CA.Although restart can correctly respond the smart card after replacing, complicated operation by Set Top Box, restart length consuming time.
Summary of the invention
An object of the present invention is to provide and a kind ofly realizes the method that smart card dynamically plugs response, application the method, if changed the smart card that the CA system current with terminal is not corresponding in terminal operating process, just can identify without the need to restarting terminal and respond the smart card after changing, thus realizing the dynamic plug response to smart card.
For achieving the above object, smart card provided by the invention dynamically plug response method adopt following technical proposals be achieved:
Realize the method that smart card dynamically plugs response, described method comprises:
Judge the type of the smart card of the current insertion of terminal;
From described terminal preset, execute after described starting up of terminal initialized condition receiving system and choose the condition receiving system corresponding with the type of the smart card of described current insertion and run;
If detect, the type of the smart card inserted in described terminal changes, from described terminal preset, execute after described starting up of terminal initialized condition receiving system choose with change after condition receiving system corresponding to the type of smart card and run.
Two of object of the present invention is to provide a kind of terminal supporting smart card, to realize the dynamic plug response of smart card.
For achieving the above object, the terminal of support smart card provided by the invention adopts following technical proposals to realize:
Support a terminal for smart card, preset multiple condition receiving system in described terminal, described terminal comprises smart card and dynamically plugs responding device, and described smart card dynamically plugs responding device and comprises:
Initialization unit, for the condition receiving system of terminal built-in described in initialization;
Smartcard types recognition unit, for identifying the type of the smart card of the current insertion of described terminal;
Smartcard types change identifying unit, is connected with described smartcard types recognition unit, for judging whether the type of the smart card that described terminal is inserted changes;
Condition receiving system performance element, change identifying unit with described smartcard types recognition unit and described smartcard types to be connected, for from described terminal preset, executed in initialized condition receiving system by described initialization unit after described starting up of terminal and choose the condition receiving system corresponding with the type of the smart card of described current insertion and to run and for from described terminal preset, after described starting up of terminal by described initialization unit execute in initialized condition receiving system choose with change after condition receiving system corresponding to the type of smart card and run.
Compared with prior art, advantage of the present invention and good effect are: the present invention is preset multiple condition receiving system in the terminal supporting smart card, to the equal initialization of full terms receiving system during starting up of terminal, if plug smart card in terminal operating process, without the need to restarting terminal, corresponding, that initialization is complete condition receiving system can be directly called according to the smartcard types detected, thus achieve the dynamic plug response of smart card, improve the speed of terminal response smart card and use the convenience of smart card.And, the present invention is by arranging smart card respond style selected cell in the terminal and smart card dynamically plugs response performance element, make user whether can perform the dynamic plug response of smart card by control terminal easily, while improving terminal response smartcard performance, achieve the diversity of termination function.
After reading the specific embodiment of the present invention by reference to the accompanying drawings, the other features and advantages of the invention will become clearly.
Accompanying drawing explanation
Fig. 1 is the flow chart that the present invention realizes that smart card dynamically plugs method first embodiment of response;
Fig. 2 is the flow chart that the present invention realizes that smart card dynamically plugs method second embodiment of response;
Fig. 3 is the flow chart that the present invention realizes that smart card dynamically plugs method the 3rd embodiment of response;
Fig. 4 is the structured flowchart that the present invention supports a terminal embodiment of smart card.
Embodiment
Below in conjunction with the drawings and specific embodiments, technical scheme of the present invention is described in further detail.
Refer to Fig. 1, this figure is depicted as the present invention and realizes the flow chart that smart card dynamically plugs method first embodiment of response.
As shown in Figure 1, in this embodiment, smart card terminal realizes smart card dynamically to plug the process step of response as follows:
Step 101: flow process starts.
Step 102: starting up of terminal, full terms receiving system preset in initialization terminal.
For making terminal can compatible multiple condition receiving system, when terminal be dispatched from the factory or when terminal is upgraded, preset multiple condition receiving system in terminal.Such as, all conditions receiving system that can be conventional on preset existing market.Use in terminal procedures user, after starting up of terminal, full terms receiving system is all carried out initialization.
The initialization of condition receiving system refers to that each functional module of terminal to condition receiving system carries out initialization, comprises the Initialize installation of intelligent card initialization, the initialization of OS adaptation layer, communication interface initialization, demultiplexing initialization and store initialization etc.Because the bottom function adopted when condition receiving system that is dissimilar or producer is developed can not be completely the same, it runs required end application in the terminal and also can be not quite similar.To the built-in multiple application program for different condition receiving system in the terminal, development process is complicated, and cooperation control each other can be very difficult.On the other hand, although dissimilar condition receiving system physical layer interface implementation is different, there is a lot of general character to end application in the function that each condition receiving system realizes.Based on this, the preferred initialization procedure of this embodiment is: arrange multiple general-purpose interface function in the terminal, terminal utilizes general-purpose interface function to carry out initialization to each preset condition receiving system, simplify terminal software development process, improve terminal resource management uniformity and service efficiency.
Specifically, general-purpose interface function includes OS Adapter Layer Interface function, carries out with smart card the communication interface function, demultiplexing interface function and the data memory interface function that communicate.After starting up of terminal, terminal can be called each functional module of these general-purpose interface functions to each condition receiving system and carry out initialization respectively.
And for avoiding taking terminal shared interface resource, general-purpose interface function can also include the realizing interface function of release conditions receiving system function.When exiting certain condition receiving system, terminal can utilize this terminal resource shared by realizing interface function release conditions receiving system, to improve terminal resource utilance.
What needs further illustrated is, the step of preset multiple condition receiving system is before terminal is dispatched from the factory or disposable operation performed when carrying out upgrade maintenance to terminal in use procedure of dispatching from the factory in the terminal, and starting up of terminal, the initialization condition receiving system step that to be user use often performs in terminal procedures, this embodiment, for carry out complete description to whole flow process, places it in a step and describes.
Step 103: the type judging the smart card of current insertion in terminal.
Although be built-in with multiple condition receiving system in terminal, but a kind of smart card, a kind of condition receiving system of application can only be used at every turn, so, need the type of the smart card judging current insertion in terminal, to run the condition receiving system corresponding with smart card.
To the judgement of smartcard types, can be realized by card reset.Specific implementation process is summarized as follows: perform reset operation to smart card, ATR reset response message will be produced, adjusted back by message, obtain the data such as historical data, communication protocol and the ATR length in ATR, just can judge also namely to obtain the type of smart card by the host-host protocol that smart card belongs to which kind of condition receiving system and smart card and adopts according to these data.
Step 104: run the condition receiving system corresponding with the type of the smart card of current insertion.
Because all conditions receiving system in terminal has all carried out initialization when starting up of terminal, therefore, after the smartcard types judging current insertion, can directly choose the condition receiving system corresponding with current smart cards and run, thus realization condition receives.
For Set Top Box as terminal, the process that realization condition receives is summarized as follows:
Call demultiplexing interface function to filter the TS stream that front end sends, obtain corresponding Entitlement Control Message (ECM) and Entitlement Management Message (EMM).Specifically, the CA that Set Top Box is shown according to PMT and CAT describes, and obtains the pid value of EMM and ECM, then from TS stream, filters out ECM and EMM according to pid value.For ECM and the EMM data that there is multiple slot, for avoiding loss of data, extracted the data of a slot on backstage after, first allocating cache quene carries out buffer memory to ECM and the EMM data extracted.
After ECM and EMM data acquisition, by general-purpose interface function, ECM and EMM transfer of data complete in buffer memory is decrypted process to the smart card that condition receiving system is corresponding.
The decryption processes of smart card is: smart card reads the individual subscriber stored in it and distributes key PDK, deciphers, take out business cipher key SK with PDK to EMM; Then, then with SK, ECM is deciphered, solve scrambled control word CW.Meanwhile, decrypting process can also obtain address that EMM comprises, authorized user message, and the program can seen as user or time period, the information such as the license fee that user pays, to realize associated authorization management.
Then, the scrambled control word after decryption processing is supplied to descrambler by general-purpose interface function, descrambling is carried out to the audio/video flow of encryption.And by other Entitlement Control Message data after decryption processing and Entitlement Management Message data, the program information data such as such as programming source, time, classifying content and program price, the data such as mail, fingerprint are converted to common data structure, are supplied to set-top box application program.Here, other Entitlement Control Message data refer to rear other information datas except scrambled control word of ECM deciphering, these packets contain the program information data such as programming source, time, classifying content and program price, need to be supplied to set-top box application program and use.And in Entitlement Management Message data EMM, not only include the management information data such as mail, fingerprint, also may comprise the program information data such as programming source, time, classifying content of the request programs such as IPPV, IPPT, these data also need to be supplied to set-top box application program and use.
Step 105: the type of the smart card inserted in terminal if detect changes, then run the condition receiving system corresponding with the type of the smart card after change.
Also can realize normal condition reception after reinserting for ensureing to extract at smart card, require to detect the smartcard types in terminal in real time and judge.Such as, a time can be preset, judge once at interval of this time.Or, other judgment mode can also be adopted, specifically can with reference to the description of Examples hereinafter.When detecting that smartcard types changes, then from terminal preset, execute after starting up of terminal initialized condition receiving system choose with change after condition receiving system corresponding to the type of smart card and run.
Step 106: flow process terminates.
After this, the process of repeated execution of steps 103 to step 105, until terminal closedown.In this process, the process of the full terms receiving system that initialization is preset is also only perform once when starting up of terminal.If restarted after terminal closedown, then re-execute the process of step 102 and step 105.
In this embodiment, first by all built-in condition receiving system initialization after starting up of terminal, even if smart card is pulled out and again inserts and is even replaced in the starting up of terminal course of work, all can judge the type of the smart card again inserted and the corresponding condition receiving system after running initialization, and without the need to terminal again starting up and initialization, thus achieve the dynamic plug response of smart card under terminal not power down condition, improve the speed of terminal response smart card and use the convenience of smart card.Refer to Fig. 2, the figure shows the present invention and realize the flow chart that smart card dynamically plugs method second embodiment of response.
As shown in Figure 2, this second embodiment realizes smart card dynamically to plug the process of response as follows:
Step 201: flow process starts.
Step 202: starting up of terminal, full terms receiving system preset in initialization terminal.
The concrete methods of realizing of this step can the description of step 102 in reference diagram 1 embodiment.
Step 203: the type judging the smart card of current insertion in terminal.
The concrete methods of realizing of this step can the description of step 103 in reference diagram 1 embodiment.
Step 204: select the condition receiving system corresponding with the type of the smart card of current insertion to be conditions present receiving system.
Step 205: judge whether conditions present receiving system is halted state.If so, step 206 is performed; Otherwise, go to step 207.
Because after starting up of terminal, full terms receiving system all performs initialization operation, and have a condition receiving system to be in running status at one time at the most, also can the resource such as occupied terminal CPU, internal memory after being in the condition receiving system initialization of non-operating state.For reducing resource occupation, this embodiment arranges the halted state state different with normal condition two kinds to the condition receiving system after initialization, and state characterizes by the value of the state variable arranged.Wherein, normal condition refers to that all threads of condition receiving system are all in running status, and halted state refers to a kind of state that the kernel main thread of condition receiving system suspends.After starting up of terminal initialization, each condition receiving system is in the state of acquiescence, if default conditions are normal condition.In this step, read the state variable value of conditions present receiving system, judge which kind of state is conditions present receiving system be according to variate-value.If conditions present receiving system is halted state, then perform step 206; If not halted state, be then expressed as normal condition, perform step 207.
Step 206: if conditions present receiving system is in halted state, the main thread first recovering conditions present receiving system kernel is needed to be running status, and to arrange conditions present receiving system be normal condition, the value also namely changing state variable is variate-value corresponding to normal condition.Then, suspend the kernel main thread of other condition receiving systems, and these other condition receiving systems are set to halted state, the value also namely changing its state variable is variate-value corresponding to halted state.Then, step 208 is performed.
Owing to being suspended by the kernel main thread of non-present condition receiving system, no longer the resource such as occupied terminal CPU, internal memory, decreases terminate load, improves resource utilization.And, the condition receiving system of halted state is only suspended to take the more kernel main thread of resource, as kernel-driven, descrambler etc., ensure under the state that terminal is not restarted main thread recovers and whole condition receiving system proceeds to running status some threads be still in running status (as ECM and EMM analyzing and processing, card drive, the thread etc. of plug-in card notice CA kernel), thus, the dynamic plug response of smart card under terminal not rebooting status is not affected.
Step 207: if conditions present receiving system is not halted state, represents that its state is normal condition.Such as, insert smart card for the first time after initialization, so condition receiving system default conditions are normal condition, the condition receiving system that smart card is corresponding is normal condition.Or although smart card is by the smart card again inserted, but still be the smart card of previous use, then the condition receiving system that this smart card is corresponding is the previous system being in running status, then its state is also normal condition.No matter be which kind of state, if conditions present receiving system is normal condition, then suspend the kernel main thread of other condition receiving systems, and these other condition receiving systems are set to halted state.Then, step 208 is performed.
Certainly, if smart card is inserted again, with previous identical smart card, other condition receiving systems continue previous state, are still in halted state, then do not need to repeat to suspend and change state variable again.
Step 208: run conditions present receiving system, realization condition receiving function.
The specific implementation of condition reception function can with reference to the description of the step 104 in figure 1 embodiment.
This second embodiment is after initialization full terms receiving system, only the condition receiving system corresponding to current smart cards is set to running status, to ensure that terminal realizes normal condition reception, and the part thread of other condition receiving systems is suspended, thus decrease terminal threads load, reduce taking terminal system resource.
Refer to Fig. 3, this figure is depicted as the present invention and realizes the flow chart that smart card dynamically plugs method the 3rd embodiment of response.
As shown in Figure 3, this embodiment realizes smart card dynamically to plug the process of the method for response as follows:
Step 301: flow process starts.
Step 302: starting up of terminal, full terms receiving system preset in initialization terminal.
The concrete methods of realizing of this step can the description of step 102 in reference diagram 1 embodiment.
Step 303: the type judging the smart card of current insertion in terminal.
This step is to the first judgement that smart card carries out after starting up of terminal.Determination methods can with reference to the description of step 103 in figure 1 embodiment.
Step 304: select the condition receiving system corresponding with the type of the smart card of current insertion to be conditions present receiving system.
Step 305: judge whether conditions present receiving system is halted state.If so, step 306 is performed; Otherwise, go to step 307.
Step 306: if conditions present receiving system is in halted state, the kernel main thread first recovering conditions present receiving system is needed to be running status, and to arrange conditions present receiving system be normal condition, the value also namely changing state variable is variate-value corresponding to normal condition.Then, suspend the kernel main thread of other condition receiving systems, and these other condition receiving systems are set to halted state, the value also namely changing its state variable is variate-value corresponding to halted state.Then, step 308 is performed.
Step 307: if conditions present receiving system is not halted state, represents that its state is normal condition.Suspend the kernel main thread of other condition receiving systems, and these other condition receiving systems are set to halted state.Then, step 308 is performed.
Step 308: run conditions present receiving system.
In above-mentioned steps 305 to step 308, the execution object of each step and manner of execution can describe with reference to the correspondence of step 205 in figure 2 embodiment to step 208.
Step 309: judge whether that there is effective smart card is reinserted into.If so, 303 are gone to step; If not, step 310 is performed.
The object of this step is the type determining whether to need the smart card rejudging current insertion.In this embodiment, except judging whether to insert effective smart card in terminal and judge except the type of effective smart card of current insertion namely performing step 303 after first start, no longer adopt timing to judge the operating process of current smart cards type, and adopt following deterministic process to determine whether and need to re-start Card Type judgement:
Call back function is set in the terminal, if smart card is inserted into, the 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 inserted 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.In the process that starting up of terminal runs, smart card generally frequently can not be extracted and be inserted.In this case, if frequently carry out type judgement to the smart card of current insertion, more terminal system resource will be taken.Given this, after starting up of terminal, judge the type of smart card first and after executive condition receives, only got in terminal and just again perform step 303 when effective smart card is inserted into the callback information of (also namely again being inserted) and judge the process of smartcard types and the follow-up processing procedure to conditions present receiving system.
Step 310: if there is no effectively smart card reinserts, then perform normal handling process.
Here normal handling process may comprise the situation of following several respects:
Terminal does not get any callback information about smart card, shows that smart card is not pulled out or reinserts, then continue to run conditions present receiving system.
Terminal gets the callback information that smart card is pulled out, and shows that smart card is pulled out.If smart card is pulled out, condition receiving system cannot run, and can not do any process, and on terminal interface, only provide the prompting of " smart card is pulled out " to each condition receiving system in terminal.
Terminal gets the callback information that invalid smart card is inserted into, and also can not do any process to each condition receiving system in terminal, on terminal interface, only provides the prompting of " smart card is invalid ".
Step 311: flow process terminates.
This embodiment determines when to carry out type judgement to current smart cards by setting Rule of judgment, dynamically plugs on the basis of response realizing smart card, reduces and frequently carries out Card Type judgement and the resource utilization, the slow-footed problem of terminal response that cause.
Refer to Fig. 4, this figure is depicted as the structured flowchart that the present invention supports a terminal embodiment of smart card.Terminal mentioned here, refers to the terminal supporting that smart card realization condition receives, as Set Top Box.
As shown in Figure 4, the terminal built-in of this embodiment has four kinds of condition receiving systems, be respectively condition receiving system 411,412,413 and 414, terminal also includes smart card and dynamically plugs responding device 42, for realizing the dynamic plug response of smart card terminal to smart card.
Specifically, smart card dynamically plugs responding device 42 and comprises following each unit:
Initialization unit 421, for the condition receiving system that initialization terminal is built-in, and can the full terms receiving system of initialization inherence;
Smartcard types recognition unit 422, for the type of the smart card of the current insertion of identification terminal;
Smartcard types change identifying unit 423, is connected with smartcard types recognition unit 422, for judging whether the type of the smart card that terminal is inserted changes;
Condition receiving system performance element 424, change identifying unit 422 with smartcard types recognition unit 422 and smartcard types to be connected, for from terminal preset, after starting up of terminal by initialization unit 421 execute in initialized condition receiving system choose the condition receiving system corresponding with the type of the smart card of current insertion and run and for from terminal preset, after starting up of terminal by initialization unit 421 execute in initialized condition receiving system choose with change after condition receiving system corresponding to the type of smart card and run.
In addition, smart card dynamically plugs responding device 42 and can also comprise as lower unit:
Condition receiving system status unit 425, change identifying unit 423 with smartcard types recognition unit 422, smartcard types to be respectively connected, be normal condition for the condition receiving system that the smart card arranging current insertion is corresponding, suspend the kernel main thread of other condition receiving systems except condition receiving system corresponding to the smart card of current insertion, and other condition receiving systems of time-out kernel main thread are set to halted state;
Condition receiving system state determination unit 426, is connected with smartcard types recognition unit 422, condition receiving system status unit 425 respectively, the state of the condition receiving system that the type for the smart card judging current insertion is corresponding.
Except smart card dynamically plugs responding device 42, the terminal of this embodiment also includes smart card respond style selected cell 43, this unit and smart card dynamically plug responding device 42 and are connected, be an input interface that can supply end users operation, user is by the type of this Unit selection terminal response smart card.Such as, in this embodiment, terminal includes smart card and dynamically plugs response and steady-error coefficient two kinds of respond styles to smart card, and smart card respond style selected cell 43 provides the selection of this two type, and user can select any one type as required.After this, terminal is by the type selecting response smart card according to user, and realization condition receives.Wherein, smart card dynamically plugs response mode, refer to after starting up of terminal, if smart card is inserted again, can smartcard types be identified without the need to restarting terminal and run on the response mode that the corresponding condition receiving system of smartcard types carrys out realization condition receiving function.This response mode dynamically plugs responding device 42 by smart card and realizes, and concrete methods of realizing can with reference to the description of above-mentioned Fig. 1 to Fig. 3 embodiment.And smart card static state plug response refers to after starting up of terminal, if smart card is replaced, terminal must be restarted, reinitialize and could run the response mode that the condition receiving system corresponding with the smart card after replacing carrys out realization condition receiving function.This steady-error coefficient mode can adopt prior art to realize, and is not specifically addressed at this.
Certainly, terminal can also embedded more kinds of condition receiving system and respond style as required, while raising terminal is to condition receiving system compatibility, for user provides more multipair terminal to carry out the approach controlled, improve hommization and the extensibility of terminal, improve terminal challenge power.
Above embodiment only in order to technical scheme of the present invention to be described, but not is limited; Although with reference to previous embodiment to invention has been detailed description, for the person of ordinary skill of the art, still can modify to the technical scheme described in previous embodiment, or equivalent replacement is carried out to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of the present invention's technical scheme required for protection.

Claims (10)

1. realize the method that smart card dynamically plugs response, it is characterized in that, described method comprises:
Judge the type of the smart card of the current insertion of terminal;
From described terminal preset, execute after described starting up of terminal initialized condition receiving system and choose the condition receiving system corresponding with the type of the smart card of described current insertion and run;
If detect, the type of the smart card inserted in described terminal changes, from described terminal preset, execute after described starting up of terminal initialized condition receiving system choose with change after condition receiving system corresponding to the type of smart card and run.
2. method according to claim 1, is characterized in that, from described terminal preset, execute after described starting up of terminal initialized condition receiving system and choose the condition receiving system corresponding with the type of the smart card of current insertion running and be specially:
The condition receiving system arranging the smart card of described current insertion corresponding is normal condition, suspend the kernel main thread of other condition receiving systems except condition receiving system corresponding to the smart card of described current insertion, and be set to halted state by suspending other condition receiving systems described in kernel main thread.
3. method according to claim 2, it is characterized in that, if detect, the type of the smart card inserted in described terminal changes, from described terminal preset, execute after described starting up of terminal initialized condition receiving system choose with change after condition receiving system corresponding to the type of smart card and run, be specially:
Detect that the type of the smart card inserted in described terminal changes, from described terminal preset, execute after described starting up of terminal initialized condition receiving system choose with change after condition receiving system corresponding to the type of smart card;
Judge the state of the condition receiving system that the type of the smart card after described change is corresponding;
If described state is halted state, then the condition receiving system recovering the type of the smart card after described change corresponding is normal condition, then runs the condition receiving system that the type of the smart card after described change is corresponding;
If described state is normal condition, then directly run the condition receiving system that the type of the smart card after described change is corresponding.
4. according to the method in any one of claims 1 to 3, it is characterized in that, described terminal preset, after described starting up of terminal, execute initialization, be specially:
After described starting up of terminal, described terminal utilizes general-purpose interface function preset in described terminal to carry out initialization respectively to each preset condition receiving system.
5. method according to claim 4, is characterized in that, described general-purpose interface function comprises OS Adapter Layer Interface function, carries out with smart card the communication interface function, demultiplexing interface function and the data memory interface function that communicate.
6. method according to claim 5, is characterized in that, described general-purpose interface function also comprises the realizing interface function of release conditions receiving system function.
7. method according to claim 1, is characterized in that, the type of the smart card of the current insertion of the described smart card terminal of described judgement is specially:
Reset operation is performed to the smart card of the current insertion of described smart card terminal, judges the type of this smart card according to reset response message.
8. support a terminal for smart card, preset multiple condition receiving system, it is characterized in that in described terminal, described terminal comprises smart card and dynamically plugs responding device, and described smart card dynamically plugs responding device and comprises:
Initialization unit, for the condition receiving system of terminal built-in described in initialization;
Smartcard types recognition unit, for identifying the type of the smart card of the current insertion of described terminal;
Smartcard types change identifying unit, is connected with described smartcard types recognition unit, for judging whether the type of the smart card that described terminal is inserted changes;
Condition receiving system performance element, change identifying unit with described smartcard types recognition unit and described smartcard types to be connected, for from described terminal preset, executed in initialized condition receiving system by described initialization unit after described starting up of terminal and choose the condition receiving system corresponding with the type of the smart card of described current insertion and to run and for from described terminal preset, after described starting up of terminal by described initialization unit execute in initialized condition receiving system choose with change after condition receiving system corresponding to the type of smart card and run.
9. terminal according to claim 8, is characterized in that, described smart card dynamically plugs responding device and also comprises:
Condition receiving system status unit, change identifying unit with described smartcard types recognition unit, described smartcard types to be respectively connected, be normal condition for the condition receiving system that the smart card arranging described current insertion is corresponding, suspend the kernel main thread of other condition receiving systems except condition receiving system corresponding to the smart card of described current insertion, and be set to halted state by suspending other condition receiving systems described in kernel main thread;
Condition receiving system state determination unit, is connected with described smartcard types recognition unit, described condition receiving system status unit respectively, the state of the condition receiving system that the type for the smart card judging current insertion is corresponding.
10. terminal according to claim 8 or claim 9, it is characterized in that, described terminal also comprises:
Smart card respond style selected cell, for providing the input interface of the type of terminal response smart card;
Described smart card dynamically plugs responding device and is connected with described smart card respond style selected cell, determines whether response according to the Output rusults of described smart card respond style selected cell.
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 true CN104581318A (en) 2015-04-29
CN104581318B 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)

Cited By (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
CN108683930A (en) * 2018-04-27 2018-10-19 青岛海信传媒网络技术有限公司 DTV, the initial method of its interface, device 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
CN111131869A (en) * 2019-12-31 2020-05-08 国微集团(深圳)有限公司 Method and system for dynamically switching multiple CA systems in real time

Citations (5)

* 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
US20090125710A1 (en) * 2007-11-12 2009-05-14 Samsung Electronics Co., Ltd. Method and apparatus for booting host
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

Patent Citations (5)

* 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
US20090125710A1 (en) * 2007-11-12 2009-05-14 Samsung Electronics Co., Ltd. Method and apparatus for booting host
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

Cited By (9)

* 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
CN108683930A (en) * 2018-04-27 2018-10-19 青岛海信传媒网络技术有限公司 DTV, the initial method of its interface, device and readable storage medium
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
CN111131869A (en) * 2019-12-31 2020-05-08 国微集团(深圳)有限公司 Method and system for dynamically switching multiple CA systems in real time

Also Published As

Publication number Publication date
CN104581318B (en) 2017-11-17

Similar Documents

Publication Publication Date Title
CN104581318A (en) Method and terminal capable of achieving dynamic plug response of intelligent card
CN102098575B (en) Migration method compatible with multiple conditional access (CA) systems and CA method
US20170104733A1 (en) Device, system and method for low speed communication of sensor information
CN108848039A (en) The method and storage medium that server, message are distributed
CN100502462C (en) Online upgrade method for smart card
US20070174356A1 (en) Program execution device, program execution method, and program
CN108174255A (en) Smart television starting-up method, smart television and computer readable storage medium
CN102780933A (en) Method and television for acquiring user information
CN101247500A (en) General software descrambling method for different scrambling systems of digital television
JP2003518668A (en) Interface module and decoder for host
CN102855149A (en) Chip operating system update method, device and system
US7987380B2 (en) Methods and apparatus to detect voltage class of a circuit
CN102227138B (en) Conditional access module card and realization method thereof
CN100536543C (en) Method and system for implementing separation between receiving terminal set and card in digital TV set
RU2005139048A (en) DATA DECODING SYSTEM FOR PAID TELEVISION AND METHOD OF MANAGEMENT, AT LEAST, TWO DECODERS
EP1053633B1 (en) Configuring method and device
CN101605216B (en) Method for upgrading digital television software
CN102946559B (en) The upgrade method of a kind of digital TV terminal, terminal, server and system thereof
CN1642266A (en) Technical method for realizing machine-card separation of top box of digital TV set
CN109547822A (en) A kind of control method of the intelligent remote controller of fingerprint recognition user information
CN106919812A (en) A kind of application process right management method and device
CN201805489U (en) Television with capability of on-line upgrade
CN105740158A (en) Method and device for reducing browser memory usage on portable terminal equipment
CN100367795C (en) Machine and card separation condition receiving plug-in unit for digital TV receiver based on intelligent card
CN106096477A (en) A kind of method of card reader for multiplex roles parallel communications and card reader

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