The content of the invention
The embodiments of the invention provide a kind of abnormal restoration methods of processor and mobile terminal, is moved with reaching fast quick-recovery
The normal operation of dynamic terminal, it is not necessary to recover normal by restarting whole mobile terminal, so as to improve the experience of user
Sense, and improve the satisfaction that user uses.
The embodiments of the invention provide the restoration methods that a kind of processor is abnormal, methods described includes:
Whether detection digital processing unit occurs exception;
When detecting that digital processing unit occurs abnormal, the residue signal of interaction queue is eliminated;
Current agreement flow is recovered according to state machine state.
Preferably, it is described when detecting that digital processing unit occurs abnormal, the step of eliminating the residue signal of interaction queue
Including:
When detecting that digital processing unit occurs abnormal, reset is performed to the digital processing unit, and it is abnormal to produce first
Indication signal;
The residue signal of microprocessor and digital processing unit interaction queue is eliminated according to first abnormal indication signal;
Produce the second abnormal indication signal;
According to second abnormal indication signal, the residue signal of each module interaction queue of Access Layer is eliminated, and triggers association
Discuss the recovery flow of stack.
Preferably, described the step of being recovered according to state machine state to current agreement flow, includes:
Judge state machine state;
Current agreement flow and state are identified according to the state machine state of judgement;
The current agreement flow is recovered.
Preferably, described the step of current agreement flow and state is identified according to the state machine state of judgement, includes:
When judging that state machine state selects state for cell, it is cell-reselection procedure to identify current agreement flow, and
It is the current state of mobile terminal by cell selection state recording;
Described the step of recovering to the current agreement flow, includes:
Retain the correlated variables of process inlet, the related local variable of initialization flow processing, restart flow monitoring timing
Device;
Restart cell-reselection procedure of the digital processing unit progress with cell list or without cell list;
Wherein, the correlated variables of the process inlet is the content of the activation request of triggering cell selection, described locally to become
Amount includes all information in the selection course of recording cell, comprises at least:The metrical information of cell, the mistake recorded in selection course
Lose the information for the part system message that the information of cell or some cell obtain.
Preferably, described the step of current agreement flow and state is identified according to the state machine state of judgement, includes:
When judging state machine state for cell re-selection state, it is cell re-selection procedure to identify current agreement flow, and
The cell re-selection state is recorded as the current state of mobile terminal;
Described the step of recovering to the current agreement flow, includes:
Retain the correlated variables of process inlet, the related local variable of initialization flow processing, restart flow monitoring timing
Device;
Restart synchronization and system message reading flow that digital processing unit carries out Target cell;
Wherein, the correlated variables of the process inlet is the information of cell re-selection target cell, and the local variable includes
All information in the reuse adoption process of recording cell, are comprised at least:The metrical information of cell, the failure cell recorded in reuse adoption process
Information, or some cell obtain part system message information.
Preferably, described the step of current agreement flow and state is identified according to the state machine state of judgement, includes:
When judging state machine state for free time/PCH states, it is free time/PCH flows to identify current agreement flow, and
It is the current state of mobile terminal by the free time/PCH state recordings;
Described the step of recovering to the current agreement flow, includes:
Retain the correlated variables of process inlet, the related local variable of initialization flow processing, restart flow monitoring timing
Device;
Reconfigure the resource distribution under idle pulley/PCH states to digital processing unit, and plan again idle pulley/
The task of each discontinuous reception DRX cycle under PCH states, then trigger digital processing unit synchronization transition and enter idle condition, with
Make resource of the digital processing unit according to configuration, carry out PCH detection, the reception of the upper data of PCH, and complete according to planning
Related measurement task;
Wherein, the correlated variables of the process inlet is under the free time/PCH states obtained from the system message of network
Resource allocation information, the local variable are all information in idle pulley/PCH state task processing procedures, are comprised at least:
Incomplete metrical information, or incomplete paging block data under idle pulley, the resource distribution reconfigured include:It is auxiliary
Help Common Control Physical Channel SCCPCH channel configurations, Page Indication Channel PICH, or PCH PCH positional information wherein
Any one is combined.
Preferably, described the step of current agreement flow and state is identified according to the state machine state of judgement, includes:
When judging state machine state for access state, it is access process to identify current agreement flow, and this is accessed
State recording is the current state of mobile terminal;
Described the step of recovering to the current agreement flow, includes:
Retain the correlated variables of process inlet, the related local variable of initialization flow processing, restart flow monitoring timing
Device;
Uplink synchronous code word is reselected, triggering digital processing unit is initiated again on Physical Random Access Channel PRACH
Access process;
Wherein, the correlated variables of the process inlet for the resource allocation information under access state and accesses reason, institute
Local variable is stated as all information in access procedure.
Preferably, described the step of current agreement flow and state is identified according to the state machine state of judgement, includes:
When judging state machine state for FACH/DCH states, it is FACH/DCH flows to identify current agreement flow, and
It is the current state of mobile terminal by the FACH/DCH state recordings;
Described the step of recovering to the current agreement flow, includes:
Retain the correlated variables of process inlet, the related local variable of initialization flow processing, restart flow monitoring timing
Device;
Resource under reconfiguring from FACH/DCH to digital processing unit, it is desirable to which digital processing unit is referring to according to the channel of configuration
Fixed position carries out the transmitting-receiving task of data;
Wherein, the correlated variables of the process inlet is the resource allocation information under FACH/DCH, and the local variable is
All information in FACH/DCH processing procedures, the channel of the configuration are Physical Random Access Channel PRACH, aid in public control
Physical channel SCCPCH processed, DPCH DPCH.
Preferably, described the step of current agreement flow and state is identified according to the state machine state of judgement, includes:
When judging mould state supplemented by state machine state, mould flow supplemented by current agreement flow is identified, and by the auxiliary mould shape
State is recorded as the current state of mobile terminal;
Described the step of recovering to the current agreement flow, includes:
Query interface v_iratask value, confirm currently with the presence or absence of the auxiliary mould task started;
When confirming to there is currently the auxiliary mould task of startup, the auxiliary mould abnormal end of task of main mould is indicated, eliminates variable v_
Iratask value, all correlated variables under the auxiliary mould state of initializtion protocol stack, restarts related procedure supervision timer, waits
The triggering of subtask under main mould, notice digital processing unit correspondingly enter auxiliary mould state, task are waited in task dispatch.
Preferably, the value of the query interface v_iratask, the step of confirmation currently with the presence or absence of the auxiliary mould task started
Including:
If variable v_iratask value is 1, confirm the measurement task of auxiliary mould be present;
Or, if variable v_iratask value confirms that auxiliary mould be present searches net task when being 2;
Or, if variable v_iratask value confirms the predefined reading task of auxiliary mould be present when being 3.
The embodiment of the present invention also provides a kind of mobile terminal using the above method, and the mobile terminal includes:Microprocessor
Device, cancellation module and digital processing unit;Wherein,
The microprocessor is used to detect whether the digital processing unit occurs exception;
The cancellation module is used for the residue signal for when detecting that digital processing unit occurs abnormal, eliminating interaction queue;
The microprocessor is further used for after the cancellation module eliminates the residue signal of interaction queue, according to state
Machine state is recovered to current agreement flow.
Preferably,
The microprocessor is further used for, when detecting that digital processing unit occurs abnormal, holding the digital processing unit
Row resets, and produces the first abnormal indication signal;
The cancellation module includes MAC module and RRC modules, wherein, the MAC module is used for abnormal according to described first
Indication signal eliminates the residue signal of microprocessor and digital processing unit interaction queue, produces the second abnormal indication signal;
The RRC modules are used to, according to second abnormal indication signal, eliminate the residual of each module interaction queue of Access Layer
Remaining signal, and the recovery flow of triggered protocol stack.
As can be seen from the above technical solutions, the embodiment of the present invention has advantages below:It is by detecting digital processing unit
It is no that exception occurs, when detecting that generation is abnormal, the residue signal in interaction queue is eliminated, and according to state machine state to current
Agreement flow recovered, so as to control digital processing unit recovery tasks since some agreement flow, to reach quick extensive
The normal operation of multiple mobile terminal, it is not necessary to recover normal by restarting whole mobile terminal, so as to improve user's
Experience sense, and improve the satisfaction that user uses
Embodiment
The embodiments of the invention provide a kind of abnormal restoration methods of processor and mobile terminal, by detecting digital processing
Whether device occurs exception, when detecting that generation is abnormal, eliminates the residue signal in interaction queue, and according to state machine state pair
Current agreement flow is recovered, so as to control digital processing unit recovery tasks since some agreement flow, to reach fast
The normal operation of quick-recovery mobile terminal, it is not necessary to recover normal by restarting whole mobile terminal, so as to improve use
The experience sense at family, and improve the satisfaction that user uses.
Fig. 1 show a kind of overview flow chart of the abnormal restoration methods of processor provided in an embodiment of the present invention, the party
Method includes:
Whether step S10, detection digital processing unit occur exception.
Step S11, when detecting that digital processing unit occurs abnormal, eliminate the residue signal of interaction queue.In this implementation
In example, the step can specifically include:When detecting that digital processing unit occurs abnormal, the digital processing unit is performed multiple
Position, and produce the first abnormal indication signal;Microprocessor is eliminated according to first abnormal indication signal and digital processing unit is handed over
The residue signal of mutual queue;Produce the second abnormal indication signal;According to second abnormal indication signal, each mould of Access Layer is eliminated
The residue signal of block interaction queue, and the recovery flow of triggered protocol stack.
Step S12, current agreement flow is recovered according to state machine state.
By the restoration methods that processor provided in an embodiment of the present invention is abnormal, by detecting whether digital processing unit occurs
It is abnormal, when detecting that generation is abnormal, the residue signal in interaction queue is eliminated, and according to state machine state to current agreement
Flow is recovered, and so as to control digital processing unit recovery tasks since some agreement flow, is moved with reaching fast quick-recovery
The normal operation of terminal, it is not necessary to recover normal by restarting whole mobile terminal, so as to improve the experience sense of user,
And improve the satisfaction that user uses.
Fig. 2 show a kind of particular flow sheet of the abnormal restoration methods of processor provided in an embodiment of the present invention, the party
Method includes:
Whether step S20, detection digital processing unit occur exception.In the present embodiment, hardware or software can be passed through
Technological means detects whether digital processing unit occurs exception.The technological means of hardware, such as, pass through watchdog (house dog)
Abnormality detection mechanism.The technological means of software, such as, digital processing unit usually using task scheduling mechanism, in positive reason
Under condition, in certain period of time, some task will not run not come out in task processing always, therefore, if there is this scene,
Will be considered that digital processing unit, there occurs exception.It can return in task dispatch, enter after some task completes this task
Free time, wait the arrival of new task;Thus, in scheduling flow, i.e., when Contemporary Digital processor dallies, digital processing unit meeting
To microprocessor report to represent that digital processing unit is in normal condition;If digital processing unit does not have carry out task tune for a long time
Degree, it is believed that digital processing unit is hung extremely in certain task, i.e., Contemporary Digital processor is in abnormality.
Step S21, when detecting that digital processing unit occurs abnormal, microprocessor can perform reset to digital processing unit
Flow, and produce the first abnormal indication signal.In the present embodiment, detect that exception occurs for digital processing unit specifically, working as
When, microprocessor produces an abnormal indication signal, and sends to MAC module.
Step S22, the remnants of microprocessor and digital processing unit interaction queue are eliminated according to first abnormal indication signal
Signal.In the present embodiment, specifically, the abnormal indication signal that MAC module can be sent according to microprocessor, eliminates microprocessor
The residue signal of device and digital processing unit interaction queue.
Step S23, produce the second abnormal indication signal.In the present embodiment, MAC module produces the second abnormal instruction letter
Number, and send to RRC modules.
Step S24, according to second abnormal indication signal, the residue signal of elimination each module interaction queue of Access Layer.
In the present embodiment, the second abnormal indication signal that RRC modules occur according to MAC module eliminates each module interaction queue of Access Layer
Residue signal, and the startup of the recovery flow of triggered protocol stack.
Step S25, current agreement flow is recovered according to state machine state.In the present embodiment, this step can
To specifically include:Judge state machine state;Current agreement flow and state are identified according to the state machine state of judgement;To described
Current agreement flow is recovered.In the present embodiment, microprocessor identifies currently according to the state machine state of RRC modules
Agreement flow and state, to this, current agreement flow is recovered.
By the restoration methods that processor provided in an embodiment of the present invention is abnormal, by detecting whether digital processing unit occurs
It is abnormal, when detecting that generation is abnormal, the residue signal in interaction queue is eliminated, and current association is identified according to state machine state
Flow and state are discussed, then the agreement flow current to this is recovered, so as to control digital processing unit to be opened from some agreement flow
Beginning recovery tasks, to reach the normal operation of fast quick-recovery mobile terminal, it is not necessary to recovered by restarting whole mobile terminal
Normally, so as to improve the experience sense of user, and the satisfaction that user uses is improved.
Fig. 3 show that the embodiments of the invention provide the specific of the step S25 in a kind of abnormal restoration methods of processor
Flow chart.
In the present embodiment, if mobile terminal is when to support current GSM be single-mode system, i.e., current shifting
Dynamic terminal is single-mode terminal, and state machine state can include dummy status, cell selection state, cell re-selection state, free time/PCH
(PCH) state, access state, FACH (forward access channel)/DCH (dedicated channel) state.If mobile terminal is supported to work as
When preceding GSM is multimode system, current mobile terminal is multimode terminal, and state machine state can include empty shape
State, cell selection state, cell re-selection state, free time/PCH (PCH) state, access state, FACH (forward direction access letters
Road)/DCH (dedicated channel) state, auxiliary mould state.
In the present embodiment, step S250, state machine state is judged.In the present embodiment, can be specifically to judge RRC
The state machine state of module.In the present embodiment, when judging state machine state for dummy status, without any recovery operation,
Only need to wait follow-up activation to ask, normal processing.
In the present embodiment, the step of this identifies current agreement flow and state according to the state machine state of judgement can be with
Including:When judging that state machine state selects state for cell, that is, it is cell-reselection procedure to identify current agreement flow, and will
Cell selection state recording is the current state of mobile terminal;And perform step S251.In the present embodiment, step S251,
Retain the related phasor of process inlet, the related local variable of initialization flow processing, restarting flow monitoring timer (can be
Read apparatus message timer).Step S252 is performed again, and restarting digital processing unit carries out band cell or without cell list
Cell-reselection procedure, afterwards, perform step S263, recover flow terminate.In the present embodiment, the related change of the process inlet
Amount can be the content of the activation request of triggering cell selection, and the local variable can include the change of RRC modules and MAC module
Amount, include but is not limited to:The metrical information of cell, the information or some cell of the failure cell recorded in selection course obtain
Information of part system message taken etc..
In the present embodiment, the step of this identifies current agreement flow and state according to the state machine state of judgement can be with
Including:When judging state machine state for cell re-selection state, that is, it is cell re-selection procedure to identify current agreement flow, and will
The cell re-selection state is recorded as the current state of mobile terminal;And perform step S253.In the present embodiment, step S253,
Retain the correlated variables of process inlet, the related local variable of initialization flow processing, restarting flow monitoring timer (can be
Read apparatus message timer), then step S254 is performed, restarting digital processing unit carries out the synchronization of Target cell and system disappears
Breath reads flow, afterwards, performs step S163, recovers flow and terminates.In the present embodiment, the correlated variables of the process inlet can
Think the information of cell re-selection target cell, the local variable can include all information in the reuse adoption process of recording cell, bag
Include but be not limited to:The metrical information of cell, the information of the failure cell recorded in reuse adoption process, or the part that some cell obtains
Information of system message etc..
In the present embodiment, the step of this identifies current agreement flow and state according to the state machine state of judgement can be with
Including:When judging state machine state for free time/PCH states, that is, it is free time/PCH flows to identify current agreement flow, and will
The free time/PCH state recordings are the current state of mobile terminal;And perform step S255.In the present embodiment, step S255,
Retain the correlated variables of process inlet, the related local variable of initialization flow processing, restart flow monitoring timer, then perform
Step S256, the resource distribution under idle pulley/PCH states is reconfigured to digital processing unit, and plan again idle pulley/
Under PCH states each DRX (discontinuous to receive) cycle task (such as:Measurement task, paging reception task), then trigger numeral
Processor synchronization transition enters idle condition, so that resource of the digital processing unit according to configuration, carries out PCH detection, counted on PCH
According to reception, and related measurement task etc. is completed according to planning, afterwards, performs step S263, recover flow and terminate.At this
In embodiment, the correlated variables of the process inlet can be the institute under free time/PCH states for being obtained from the system message of network
There are information, especially resource allocation information, the local variable includes but is not limited to:Idle pulley/PCH state task processing procedures
Incomplete metrical information, and incomplete paging block data etc. under idle pulley.In the present embodiment, due under PCH
Resources employment methods are identical with idle pulley, thus, the resource distribution reconfigured includes:(auxiliary is public by SCCPCH
Control physical channel) channel configuration, PICH (Page Indication Channel), PCH (PCH) positional information etc..In the present embodiment
In, because the task under free time/PCH states is completely the same, therefore two states of agreement can be combined into number by digital processing unit
One state of word processing device, is uniformly designated as IDL (free time) state.
In the present embodiment, the step of this identifies current agreement flow and state according to the state machine state of judgement can be with
Including:When judging state machine state for access state, that is, it is access process to identify current agreement flow, and by the access shape
State is recorded as the current state of mobile terminal;And perform step S257.In the present embodiment, step S257, process inlet is retained
Correlated variables, the related local variable of initialization flow processing, restart flow monitoring timer, then perform step S258, weight
New selection uplink synchronous code word, triggering digital processing unit initiate access again on PRACH (Physical Random Access Channel) channel
Flow, afterwards, step S263 is performed, recover flow and terminate.In the present embodiment, the correlated variables of the process inlet can be to connect
Enter resource allocation information and access reason under state etc..The local variable can be all information in access procedure.
In the present embodiment, the step of this identifies current agreement flow and state according to the state machine state of judgement can be with
Including:When judging state machine state for FACH/DCH states, that is, it is FACH/DCH flows to identify current agreement flow, and will
The FACH/DCH state recordings are the current state of mobile terminal;And perform step S259.In the present embodiment, step S259,
Retain the correlated variables of process inlet, the related local variable of initialization flow processing, restart flow monitoring timer, then perform
Step S260, the resource under reconfiguring FACH/DCH to digital processing unit, it is desirable to which digital processing unit exists according to the channel of configuration
The position specified carries out the transmitting-receiving task of data, afterwards, performs step S263, recovers flow and terminates.In the present embodiment, the stream
The correlated variables of journey entrance can be resource allocation information under FACH/DCH etc..The local variable includes but is not limited to:FACH/
All information in DCH processing procedures.The channel of the configuration can be PRACH (Physical Random Access Channel), SCCPCH (auxiliary
Common Control Physical Channel), DPCH (DPCH).
In the present embodiment, the step of this identifies current agreement flow and state according to the state machine state of judgement can be with
Including:When judging mould state supplemented by state machine state, that is, identify mould flow supplemented by current agreement flow, and by the auxiliary mould shape
State is recorded as the current state of mobile terminal, and performs step S261.In the present embodiment, step S261, query interface v_
Iratask value, confirm currently with the presence or absence of the auxiliary mould task started, wherein, described auxiliary mould refers to non-master mode.If become
When the value for measuring v_iratask is 0, the task in the absence of auxiliary mould is represented, otherwise represents exist;Step S262, even v_ are performed again
Iratask value is non-zero, then indicates the auxiliary mould abnormal end of task to main mould, removes variable v_iratask value, initializtion protocol
All variables under the auxiliary mould state of stack, notice digital processing unit synchronization transition enter auxiliary mould state;If v_iratask value is 0,
Then auxiliary mould task is not present in Current protocol stack, only notifies digital processing unit synchronization transition to enter after auxiliary mould state, performs step
S263, recover flow and terminate;
If variable v_iratask value is non-zero, at this point it is possible to including three kinds of situations, if variable v_iratask value
For 1 when, represent the measurement task of auxiliary mould be present;If variable v_iratask value is 2, represent that auxiliary mould be present searches net task;
If variable v_iratask value is 3, represent the predefined reading task of auxiliary mould be present;If simply by the presence of above-mentioned three kinds of situations
One of which in the case of, perform step S262, indicate the auxiliary mould abnormal end of task of main mould, eliminate variable v_iratask value,
All correlated variables under the auxiliary mould state of initializtion protocol stack, restart related procedure supervision timer, wait subtask under main mould
Triggering, notice digital processing unit correspondingly enter auxiliary mould state;If the above situation is not present, step S262, Jin Jintong are performed
Know that digital processing unit enters auxiliary mould state, task is waited in task dispatch, afterwards, perform step S263, recover flow
Terminate.
Fig. 4 is a kind of structure chart of mobile terminal provided in an embodiment of the present invention.
In the present embodiment, the mobile terminal includes microprocessor 42, digital processing unit 41, cancellation module 43, the elimination
Module 43 includes MAC module 430 and RRC modules 431.
In the present embodiment, the microprocessor 42 is used to detect that exception occurs for digital processing unit 41.The cancellation module
43 are used for when detecting that digital processing unit 41 occurs abnormal, eliminate the residue signal of interaction queue;The microprocessor 42 enters
One step is used for after the cancellation module 43 eliminates the residue signal of interaction queue, according to state machine state to current protocol streams
Cheng Jinhang recovers.
Specifically:In the present embodiment, when the microprocessor 42 is used to detect that digital processing unit 41 occurs abnormal, to institute
State digital processing unit 41 and perform reset, produce the first abnormal indication signal, and send to the MAC module 430.
The MAC module 430 is used for first abnormal indication signal that the microprocessor 42 is sent and eliminates the He of microprocessor 42
The residue signal of the interaction queue of digital processing unit 41, and the second abnormal indication signal is produced, and send the second abnormal instruction letter
Number to the RRC modules 431.
The second abnormal indication signal that the RRC modules 431 are used to be sent according to the MAC module 430 eliminates each mould of Access Layer
The residue signal of block interaction queue, and the recovery flow of triggered protocol stack.
After the RRC modules 431 eliminate the residue signal of each module interaction queue of Access Layer, the microprocessor 42 is further
For identifying current agreement flow and state, the protocol streams current to this according to the state machine state of RRC modules 431 according to this
Cheng Jinhang recovers.It is also understood that microprocessor 42 according to this according to the state machine state of RRC modules 431 to digital processing
Device 41 performs recovery operation.
By mobile terminal provided in an embodiment of the present invention, by detecting whether digital processing unit occurs exception, work as detection
To when occurring abnormal, eliminating the residue signal in interaction queue, and current agreement flow and shape are identified according to state machine state
State, then the agreement flow current to this are recovered, so as to control digital processing unit recovery tasks since some agreement flow,
To reach the normal operation of fast quick-recovery mobile terminal, it is not necessary to recover normal by restarting whole mobile terminal, so as to
To improve the experience sense of user, and improve the satisfaction that user uses.
Fig. 5 is the module map of the microprocessor 42 in a kind of mobile terminal provided in an embodiment of the present invention.In the present embodiment
In, the microprocessor 42 includes:Judge module 420, the first recovery module 421, the second recovery module 422, the 3rd recovery module
423rd, the 4th recovery module 424, the 5th recovery module 425.
In the present embodiment, if mobile terminal is when to support current GSM be single-mode system, i.e., current shifting
Dynamic terminal be single-mode terminal, the state machine states of RRC modules can include dummy status, cell select state, cell re-selection state,
Free time/PCH (PCH) state, access state, FACH (forward access channel)/DCH (dedicated channel) state.It is if mobile whole
Current GSM is supported at end when being multimode system, and current mobile terminal is multimode terminal, the state machine of RRC modules
State can include dummy status, cell selection state, cell re-selection state, free time/PCH (PCH) state, access state,
FACH (forward access channel)/DCH (dedicated channel) state, auxiliary mould state.
In the present embodiment, the judge module 420 is used for the state machine state for judging RRC modules.In the present embodiment, when
When judging state machine state for dummy status, without any recovery operation, it is only necessary to wait follow-up activation to ask, normal processing
.
In the present embodiment, the first recovery module 421 is used for when the judge module 420 judges that state machine state is selected for cell
When selecting state, that is, it is cell-reselection procedure to identify current agreement flow, and is mobile terminal by cell selection state recording
Current state, retain the correlated variables of process inlet, the related local variable of initialization flow processing, restart flow monitoring and determine
When device (can be read apparatus message timer), restarting digital processing unit carry out with cell or without the small of cell list
Area selects flow.In the present embodiment, the correlated variables of the process inlet can be the interior of the activation request of triggering cell selection
Hold, the local variable can include the variable of RRC modules and MAC module, include but is not limited to:The metrical information of cell, selection
During the information of part system message that obtains of the information of failure cell that records or some cell etc..
In the present embodiment, the second recovery module 422 is used for when the judge module 420 judges state machine state for cell weight
When selecting state, that is, it is cell re-selection procedure to identify current agreement flow, and the cell re-selection state is recorded as into mobile terminal
Current state, retain the correlated variables of process inlet, the related local variable of initialization flow processing, restart flow monitoring and determine
When device (can be read apparatus message timer), restarting digital processing unit carry out Target cell synchronization and system message read
Take flow.In the present embodiment, the correlated variables of the process inlet can be the information of cell re-selection target cell, and this locally becomes
Amount can include all information in the reuse adoption process of recording cell, include but is not limited to:The metrical information of cell, in reuse adoption process
The information of the failure cell of record, or information of part system message of some cell acquisition etc..
In the present embodiment, the 3rd recovery module 423 be used for when the judge module 420 judge state machine state for free time/
During PCH states, that is, it is free time/PCH flows to identify current agreement flow, and is mobile terminal by the free time/PCH state recordings
Current state, retain the correlated variables of process inlet, the related local variable of initialization flow processing, restart flow monitoring and determine
When device, reconfigure the resource distribution under idle pulley/PCH states to digital processing unit, and plan idle pulley/PCH again
Under state each DRX (discontinuous to receive) cycle task (such as:Measurement task, paging reception task), then trigger digital place
Reason device is synchronously leaped into idle condition, so that resource of the digital processing unit according to configuration, carries out PCH detection, the upper data of PCH
Receive, and related measurement task etc. is completed according to planning.In the present embodiment, the correlated variables of the process inlet can be
All information under the free time obtained from the system message of network /PCH states, especially resource allocation information, this locally becomes
Amount includes but is not limited to:Incomplete metrical information under idle pulley/PCH state task processing procedures, or idle pulley
Under incomplete paging block data etc..In the present embodiment, because the resources employment methods under PCH are the same as the complete phase of idle pulley
Together, thus, the resource distribution reconfigured includes:SCCPCH (Secondary Common Control Physical Channel) channel configuration, PICH (are sought
Exhale instruction channel), PCH (PCH) positional information etc.).In the present embodiment, due to the task under free time/PCH states
It is completely the same, therefore two states of agreement can be combined into a state of digital processing unit by digital processing unit, uniformly be designated as
IDL (free time) state.
In the present embodiment, the 4th recovery module 424 is used for when the judge module 420 judges state machine state to access shape
During state, that is, it is access process to identify current agreement flow, and the access state is recorded as into the current state of mobile terminal, is protected
The correlated variables of process inlet is stayed, the related local variable of initialization flow processing, flow monitoring timer is restarted, reselects
Uplink synchronous code word, triggering digital processing unit initiate access process again on PRACH (Physical Random Access Channel) channel.
In the present embodiment, the correlated variables of the process inlet can be resource allocation information and access reason under access state etc..
The local variable can be the Incomplete information in access procedure.
In the present embodiment, the 5th recovery module 425 is used for when the judge module 420 judges state machine state for FACH/
During DCH states, that is, it is FACH/DCH flows to identify current agreement flow, and is mobile terminal by the FACH/DCH state recordings
Current state, retain the correlated variables of process inlet, the related local variable of initialization flow processing, restart flow monitoring and determine
When device, the resource under reconfiguring FACH/DCH to digital processing unit, it is desirable to which digital processing unit is being specified according to the channel of configuration
Position carry out data transmitting-receiving task.In the present embodiment, the correlated variables of the process inlet can be under FACH/DCH
Resource allocation information etc..The local variable includes but is not limited to:All information in FACH/DCH processing procedures.The letter of the configuration
Road can be PRACH (Physical Random Access Channel), SCCPCH (Secondary Common Control Physical Channel), DPCH (special physics letters
Road).
In the present embodiment, if mobile terminal is when to support current GSM be multimode system, as shown in fig. 6,
The mobile terminal further comprises the 6th recovery module 426, and the 6th recovery module 426 is used for when the judge module 420 judges shape
Supplemented by state machine state during mould state, that is, mould flow supplemented by current agreement flow is identified, and be movement by the auxiliary mould state recording
The current state of terminal, and query interface v_iratask value, confirm currently with the presence or absence of the auxiliary mould task started.
If variable v_iratask value is 0, the task in the absence of auxiliary mould is represented;If variable v_iratask value is non-
When 0, at this point it is possible to including three kinds of situations, if variable v_iratask value is 1, represent the measurement task of auxiliary mould be present;If
When variable v_iratask value is 2, represent that auxiliary mould be present searches net task;If variable v_iratask value is 3, represent to deposit
In the predefined reading task of auxiliary mould.
6th recovery module 426 is further used for, when confirming to there is currently the auxiliary mould task of startup, indicating main mould master
The abnormal end of task, variable v_iratask value is eliminated, initializes all correlated variables under the auxiliary mould state of auxiliary mould protocol stack,
Restart related procedure supervision timer, wait the triggering of subtask under main mould, notice digital processing unit enters auxiliary mould state, in office
Task is waited in business scheduler program.
Can be with one of ordinary skill in the art will appreciate that realizing that all or part of step in above-described embodiment method is
The hardware of correlation is instructed to complete by program, described program can be stored in a kind of computer-readable recording medium, on
It can be read-only storage to state the storage medium mentioned, disk or CD etc..
The restoration methods abnormal to a kind of processor provided by the present invention and mobile terminal are described in detail above,
For those of ordinary skill in the art, according to the thought of the embodiment of the present invention, in specific embodiments and applications
It will change, in summary, this specification content should not be construed as limiting the invention.