Detailed description of the invention
Here in detail exemplary embodiment will be performed explanation, its example represents in the accompanying drawings.Explained below relates to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the present invention.On the contrary, they are only with the most appended
The example of the apparatus and method that some aspects that described in detail in claims, the present invention are consistent.
Fig. 1 is the block diagram according to a kind of device 100 shown in an exemplary embodiment.Such as, device 100 is disclosure institute
The digit receiving terminal shown, such as, digital TV integrated machine, Set Top Box etc..
With reference to Fig. 1, device 100 can include following one or more assembly: processes assembly 102, memorizer 104, power supply
Assembly 106, multimedia groupware 108, audio-frequency assembly 110, sensor cluster 114 and communications component 116.
Process assembly 102 and generally control the integrated operation of device 100, such as with display, call, data communication, phase
The operation etc. that machine operation and record operation are associated.Process assembly 102 and can include that one or more processor 118 performs
Instruction, to complete all or part of step of above-mentioned method.Additionally, process assembly 102 can include one or more module,
Be easy between process assembly 102 and other assemblies is mutual.Such as, process assembly 102 and can include multi-media module, with convenient
Multimedia groupware 108 and process between assembly 102 mutual.
Memorizer 104 is configured to store various types of data to support the operation at device 100.Showing of these data
Example includes any application program for operating on the device 100 or the instruction of method.Memorizer 104 can be by any kind of
Volatibility or non-volatile memory device or combinations thereof realize, such as static RAM (SRAM), electrically erasable
Except programmable read only memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory
(PROM), read only memory (ROM), magnetic memory, flash memory, disk or CD.In memorizer 104, also storage has one
Or multiple module, these one or more modules are configured to be performed by these one or more processors 118, with complete above-mentioned Fig. 2,
All or part of step in 3 and Fig. 4 arbitrary shown methods.
The various assemblies that power supply module 106 is device 100 provide electric power.Power supply module 106 can include power management system
System, one or more power supplys, and other generate, manage and distribute, with for device 100, the assembly that electric power is associated.
The screen of one output interface of offer that multimedia groupware 108 is included between described device 100 and user.One
In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch sensing
Device is with the gesture on sensing touch, slip and touch panel.Described touch sensor can not only sense touch or sliding action
Border, but also detect the persistent period relevant to described touch or slide and pressure.
Audio-frequency assembly 110 is configured to output and/or input audio signal.In certain embodiments, audio-frequency assembly 110 wraps
Include a speaker, be used for exporting audio signal.
Sensor cluster 114 includes one or more sensor, for providing the state of various aspects to comment for device 100
Estimate.Such as, what sensor cluster 114 can detect device 100 opens/closed mode, the relative localization of assembly, sensor group
Part 114 can also detect device 100 or the position change of 100 1 assemblies of device and the variations in temperature of device 100.At some
In embodiment, this sensor cluster 114 can also include Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 116 is configured to facilitate the communication of wired or wireless mode between device 100 and other equipment.Device
100 can access wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.An exemplary enforcement
In example, communications component 116 receives the broadcast singal from external broadcasting management system or broadcast related information via broadcast channel.
In one exemplary embodiment, described communications component 116 also includes near-field communication (NFC) module, to promote junction service.Example
As, can be based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology,
Bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 100 can be by one or more application specific integrated circuits (ASIC), numeral letter
Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components realize, be used for performing said method.
Fig. 2 is according to the flow chart of the processing method of CI module in a kind of quick turn-on shown in an exemplary embodiment.
In this quick turn-on, the processing method of CI module is used for the digit receiving terminal shown in Fig. 1.As in figure 2 it is shown, in this quick turn-on
The processing method of CI module, can be performed by digit receiving terminal, may comprise steps of.
In step 210, when the digit receiving terminal of holding state is waken up, generate the message blocking removal in CI module.
Wherein it is possible to understand, quick turn-on function refers to wake up up the function of the digital terminal being in holding state, so that
The digit receiving terminal being in holding state rapidly enters normal operating conditions.
It is to say, digit receiving terminal is when shutdown, holding state, i.e. RAM(Random-Access will be entered
Memory, random access memory) not power down, continues the context environmental of in store all processes, the shape that each thread runs
The value of state and each variable all continues in store, is equivalent to all of program and is in the state of time-out.
On the one hand, when the digit receiving terminal of holding state is waken up, before the operation of its system, required operation is various
Program, such as, loader, kernel and launcher etc. need not restart, and thus can shorten the available machine time.
On the other hand, also the message blocking removal in CI module will be generated, in order to trigger the initialization carrying out CI module, enter
And during ensureing the quick turn-on of digital reception device, be capable of effective control of CI module, and then ensure along with quickly opening
Completing of machine process.
Here, firstly the need of explanation, under DTV passage, such as, in DTV scene, CI module has the strongest
Hardware-dependence, so when entering holding state, CI module power-down;When being waken up, CI module re-powers, now, by
In find the card joined together by CI module already inserted into, so CI module can't actively carry out initialization procedure.
And under normal circumstances, for realizing the normal work of CI module, then power on after each power-off, all need to perform it certainly
The initialization procedure of body, otherwise will be unable to normally work.
During here it is clearly visible that apply quick turn-on function in digit receiving terminal, it will due to CI module
And cannot realize, and it it is critical only that CI module cannot actively initialize.
Based on this, it is waken up for realizing digit receiving terminal and performs the initialization of CI module during quick turn-on, need
CI module to be generated is blocked the message of removal.CI module is blocked the message of removal for card in application layer notice bottom hardware
Extract.
In step 230, according to the information updating hardware initialization mark blocking removal in CI module.
Wherein, hardware initialization mark is the static variable that digit receiving terminal is stored, and this hardware initialization mark is used
The initialization of CI module whether has been carried out in record.
According to CI agreement, physical layer state that card is indicated be removal state, i.e. during disconnected, if
The insertion of card detected, initialization procedure will be carried out, and the state arranging physical layer when initializing successfully is card insert state,
I.e. connected.
It is to say, the initialization of CI module only just can be carried out under removal state, under the insert state of card then
The initialization of CI module will not be carried out.
Therefore, after blocking the message of removal in generating CI module, in addition it is also necessary to carry out hardware initialization mark according to this message
The renewal of will, and then be easy to application layer and can know that the card in current physical layer is in removal state, and also do not carry out
The initialization of CI module.
In other words, by setting and the storage of hardware initialization this static variable of mark, digital received can be realized
In terminal CI module initialization control, and then the quick turn-on that digit receiving terminal is carried out no longer exist CI module without
The defect that method normally works, really improves the performance of digit receiving terminal, and implements the simplest.
In step 250, trigger in the quick turn-on of digit receiving terminal according to hardware initialization mark and carry out CI mould
The initialization of block.
Wherein, foregoing, under the effect of the message blocking removal in CI module, hardware initialization mark have recorded
CI module initializes not yet, therefore, can trigger the initialization carrying out CI module in the quick turn-on of digit receiving terminal.
By process as above, during the quick turn-on of digit receiving terminal, carry out the initial of CI module
Change, and then make the quick turn-on merit that no longer cannot realize under DTV passage due to the factor of CI module in digit receiving terminal
Can, thus digit receiving terminal will be made can to possess real quick turn-on function.
Fig. 3 is the description in an exemplary embodiment carried out the details of step 210.This step 210, can include with
Lower step.
In step 211, when the digit receiving terminal of holding state is waken up, generate CI mould by the driving of CI module
Block blocks the message of removal.
Wherein, the driving of CI module, as a hardware interface, is identification card, such as, and the instruction journey of CAM this hardware of card
Sequence.By the driving of CI module, detection is obtained being inserted or removed from of card, and root accordingly generates corresponding message, such as CI
Module is blocked the message of removal.
In implementing, for CAM card, if be detected that two pin feet (pin) are all in high level (or low electricity
Flat) time, it is assumed that thinking that card inserts the when that two pin feet being all in high level, other situation is then judged to that card removes, but no matter
How, the driving of CI module all generates the message blocking removal in CI module when the digit receiving terminal at self place is waken up.
In step 213, reported by the driving of CI module CI module is blocked the message of removal.
Wherein, the CI module of generation is blocked in the thread that the message of removal is reported to application layer by the driving of CI module, example
As, card Plug Action detection thread.
For the thread of application layer, e.g., card Plug Action detection thread, it blocks the message of removal in receiving CI module
Time, also by this state reporting, for application, this state is shown, and then facilitate user to go and find out what's going on.
In one exemplary embodiment, the details to step 230 is described.This step 230 may comprise steps of.
The hardware initialization mark of storage is updated according to the message blocking removal in CI module by poll thread,
Hardware initialization mark records CI module no initializtion.
Wherein, poll thread is to inquire the thread that CI module services the need of it in digit receiving terminal for sequentially.
Blocking between the message of removal in obtaining the CI module reported, the hardware initialization mark of storage will be updated to by poll thread
False, to record CI module no initializtion.
In one exemplary embodiment, the details to step 250 is described.This step 250 may comprise steps of.
When digit receiving terminal carries out quick turn-on according to the quick turn-on function opening self arranged, according to firmly
Part initialization flag calls hardware initialization interface, and this hardware initialization interface is for carrying out the initialization of hardware module.
Firstly the need of explanation, quick turn-on function whether unlatching, i.e. digit receiving terminal are in quick turn-on
Function opening, or quick turn-on function closed mode, be all that the quick turn-on functional status according to storage determines.
In other words, quick turn-on functional status is stored, i.e. there is the storage chip at digit receiving terminal self
In, such as eeprom, in order to update at any time and read.Quick turn-on functional status include quick turn-on function opening and
Quick turn-on function closed mode, can be realized by self-defined setting that user is carried out in digit receiving terminal and stored.
Concrete, can be by the switch of quick turn-on function, user in the menu interface of digit receiving terminal self display
Can arrange voluntarily, to obtain corresponding quick turn-on functional status, and this quick turn-on function shape can be stored in eeprom
State, and then conveniently read at any time, to obtain the setting of user.
The quick turn-on function opening arranged according to self is carried out quick turn-on, in this process by digit receiving terminal
In, also under have recorded the effect of hardware initialization mark of CI module no initializtion, call hardware initialization interface, trigger into
Row CI module initialization.
In this process, realizing the initialization of CI module in digit receiving terminal by two conditions, wherein, a condition is
Digit receiving terminal is in quick turn-on function opening, another condition be hardware initialization mark have recorded CI module not at the beginning of
Beginningization, calls hardware initialization interface, and then makes digital received by this easy mode when meeting the two condition
Terminal can really realize quick turn-on, i.e. real quick turn-on under DTV passage.
Fig. 4 is to open shape at digit receiving terminal according to the quick turn-on function self arranged in an exemplary embodiment
When state carries out quick turn-on, the details calling hardware initialization interface step according to hardware initialization mark is described, this step
Suddenly may comprise steps of.
In step 301, the quick turn-on function opening of storage is read.
Wherein, foregoing, from storage chip, the user setup that such as eeprom is stored can read quick turn-on
Function opening.
In step 303, the quick turn-on merit of digit receiving terminal self is found according to quick turn-on function opening
Can, and hardware initialization mark record CI module no initializtion.
Wherein, by discovery and the CI mould of hardware initialization mark record of digit receiving terminal self quick turn-on function
Block no initializtion, knows and currently meets the condition carrying out CI module initialization, now, calls hardware initialization interface, with
Initiate the initialization procedure of CI module in digit receiving terminal.
In step 305, hardware initialization interface is called.
In one exemplary embodiment, after the initialization success of CI module, hardware initialization mark is revised as true,
I.e. record CI module successful initialization.
With this digit receiving terminal as digital TV integrated machine, as a example by card adaptive in CI module is CAM card, in conjunction with concrete
Application scenarios, describes the processing method of CI module in this quick turn-on.
It is CI module normal workflow firstly the need of illustrate, i.e. as it is shown in figure 5, start shooting at digital TV integrated machine
Time, along with the powering up of CAM card in CI module, the initialization of CI module will be carried out according to CI agreement.
Concrete, the state in physical layer is Idle state, i.e. during Phsy_state=idle, will attempt to carry out the reading of data
Write, such as step 410, if the state indicated card in physical layer is the state that card is indicated by removal state, i.e. physical layer
During Phys_state=disconnected, call hardware initialization interface to run initialization module, i.e. Iitmodule, such as step
Rapid 420, and the state transformation that card is indicated by physical layer after running successfully is card insert state, i.e. Phys_state=
connected。
Time in CI module without card, Phys_state=connected is modified to Phys_state=disconnected.
Workflow based on this CI module, applies the scheme of the disclosure to revise CI module and carries out initialized process,
As shown in Figure 6, on the basis of the workflow of CI module, the part elected by institute's frame, i.e. region 510, realizes numeral
TV integrated machine is the initialization of CI module during quick turn-on.
Concrete, at quick turn-on function, the Str(Suspend to ram as being called for short in Fig. 6) function is when opening, numeral
TV integrated machine is waken up, and blocks the message of removal in the driving upthrow CI module of CI module, and poll thread is by hardware initialization mark
Will is set to false, such as step 511 and step 512.
It is found to have Str function, and hardware initialization is masked as false, then call initmodule, to carry out CI module
Initialization, such as step 513.
After initializing successfully, the state transformation that card is indicated by physical layer is card insert state, i.e. Phys_state=
connected。
Now, on the one hand digital TV integrated machine completes quick turn-on, on the other hand, also completes CI module initial
Change, and then realize the quick turn-on under DTV passage.
At this it should be noted that result in CAM card to read corrupt data due to the unsuccessful initialization of CI module, and then
The state transformation that card is indicated by physical layer is card removal state, i.e. disconnected now, is just able to detect that
CAM card inserts, and then realizes CI hardware initialization.
From the point of view of this process, really by the generation of read-write data failure, physical layer state can be set to card removal shape
State, thus again go to detect that CAM card inserts, it is achieved initialize.
But this process also exists drawback, on the one hand, find not existing of CAM card by read-write error, itself be one
Abnormal flow process, this is generally used for a kind of remedial measure when CAM card has a damage.
And owing to CI agreement is divided into multilamellar, interrelated between each layer, be easily caused due to sequence problem cause each
Plant mistake, therefore, and the initialization of CI module in quick turn-on cannot be realized by this mode.On the other hand, this is long-range
And the physical layer state of CAM card cannot be reflected really.
Following for disclosure device embodiment, may be used for performing that the above-mentioned digit receiving terminal of the disclosure performs quickly opens
The processing method of CI module in machine.For the details not disclosed in disclosure device embodiment, refer to disclosure quick turn-on
The processing method of middle CI module realizes example.
Fig. 7 is the block diagram according to a kind of digit receiving terminal shown in an exemplary embodiment, and this digit receiving terminal is held
The Overall Steps of the processing method of CI module in quick turn-on shown in row Fig. 2.As it is shown in fig. 7, this digit receiving terminal includes
But it is not limited to: message obtains module 710, mark more new module 730 and initializes trigger module 750.
Message obtains module 710, when the digit receiving terminal of holding state is waken up, generates card removal in CI module
Message.
Mark more new module 730, for according to the information updating hardware initialization mark blocking removal in CI module.
Initialize trigger module 750, for entering in the quick turn-on of digit receiving terminal according to hardware initialization mark
The initialization of row CI module.
In said apparatus, the function of modules and the process that realizes of effect specifically refer to CI module in above-mentioned quick turn-on
Processing method in corresponding step realize process, do not repeat them here.
Optionally, as shown in Figure 8, message acquisition module 710 includes but not limited to: in message generation unit 711 and message
Declaration form unit 713.
Message generation unit 711, for when the digit receiving terminal of holding state is waken up, by the driving of CI module
Generate the message blocking removal in CI module.
Information reporting unit 713 blocks the message of removal from the driving of CI module for reporting CI module.
Optionally, mark more new module 730 is further used for being entered the hardware initialization mark of storage by poll thread
Row updates, and records CI module no initializtion in hardware initialization mark.
Optionally, initialize trigger module 750 to be further used for quickly opening according to what self was arranged at digit receiving terminal
When machine function opening carries out quick turn-on, call hardware initialization interface, hardware initialization according to hardware initialization mark
Interface is for carrying out the initialization of CI module.
Optionally, the disclosure also provides for a kind of digit receiving terminal, and this digit receiving terminal performs Fig. 2, Fig. 3 and Fig. 4 and appoints
The all or part of step of the processing method of CI module in quick turn-on shown in one.Described device includes:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to perform:
When the digit receiving terminal of holding state initially wakes up up, generate the message blocking removal in CI module;
According to the information updating hardware initialization mark blocking removal in CI module;
In the quick turn-on of digit receiving terminal, the initialization carrying out CI module is triggered according to hardware initialization mark.
The processor of the device in this embodiment performs the concrete mode CI mould in this quick turn-on relevant of operation
The embodiment of the processing method of block performs detailed description, explanation will be not set forth in detail herein.
In the exemplary embodiment, additionally providing a kind of storage medium, this storage medium is computer-readable recording medium,
Can be such as to include the provisional of instruction and non-transitory computer-readable recording medium.This storage is situated between and refers to such as include instruction
Memorizer 204, above-mentioned instruction can have been performed CI module in above-mentioned quick turn-on by the processor 218 of device 200
Reason method.
It should be appreciated that the invention is not limited in precision architecture described above and illustrated in the accompanying drawings, and
And various modifications and changes can performed without departing from the scope.The scope of the present invention is only limited by appended claim.