Background technology
In mobile communication system, in order to guarantee the proper communication of portable terminal and network side, digital baseband chip must accurately be implemented control to the operating state of radio-frequency devices (comprising base band radio frequency path, peripheral radio-frequency devices).
Simultaneously, consider the portability of portable terminal, portable terminal all is to provide power supply with battery usually, and this just requires to reduce as much as possible the power consumption of portable terminal; And in order to reduce the power consumption of portable terminal; portable terminal comprises that the modules of baseband chip can enter power down mode usually to save the consumption of the energy when not working; when baseband chip enters power down mode; also can close simultaneously base band radio frequency path and peripheral radio-frequency devices; with further saving power consumption; and when baseband chip withdraws from power down mode and enters operating state, then need to open base band radio frequency path and peripheral radio-frequency devices, prepare to carry out radio-frequency receiving-transmitting work.
The radio frequency control apparatus of prior art as shown in Figure 1, its RF control method is based on time-controlled, namely, control word and timing corresponding to each control word that baseband chip will be controlled base band radio frequency path and peripheral radio-frequency devices write the radio frequency control unit constantly in advance, carry out the control word constantly corresponding with this timing when regularly constantly arriving, the control radio frequency is carried out corresponding operation.Be " CN1937424A " such as publication number, application number is " 200710176077.4 ", denomination of invention discloses a kind of method of typical control radio-frequency devices for the Chinese patent of " device of a kind of real-time controlling radio frequency chip and Analog Baseband chip ", the method writes data regularly according to the principle of first in first out, and carries out corresponding operational order according to current temporal information.
The base band radio frequency path time control method of prior art is carried out when regularly constantly arriving, thereby is had following problems owing to need to write in advance control word:
When baseband chip enters or withdraw from power down mode, because software is not known the specific works situation of baseband chip, deviation may appear in the timing of therefore controlling the control word that radio-frequency devices opens or closes entered or withdrawed from power down mode constantly with baseband chip the moment, 1), when baseband chip enters power down mode this can cause following problem:: if the moment regularly be later than the moment that baseband chip enters power saving, can cause radio-frequency devices correctly not closed, the waste extra power consumption; On the other hand, if the moment regularly enters the moment of power down mode early than baseband chip, thereby causing radio-frequency devices also really not enter under the power down mode at baseband chip just is closed, at this moment, if terminal need to be carried out radio-frequency receiving-transmitting, need again again to open radio-frequency devices, carry out the operations such as initialization.When 2), baseband chip withdraws from power down mode, need immediately initialization radio-frequency devices, and use method regularly can't be judged the baseband chip state timely, thereby causes initialized time point to be delayed, and has increased from baseband chip to wake up to the time that enters operating state.
Simultaneously, what the supply of the functional clock of base band data Transmit-Receive Unit was adopted in the current design is directly by the mode of base for chip controls, the work of base band data Transmit-Receive Unit is time-controlled by the radio frequency control unit, like this, can cause when the base band Transmit Receive Unit does not need to carry out work, base is opened its work clock for chip, has wasted extra power consumption.
Summary of the invention
In view of this, the present invention proposes a kind of mobile terminal radio frequency control method and device, enter or withdraw from battery saving mode and close or open possible nonsynchronous problem with radio-frequency devices to solve baseband chip that the prior art timing controlled causes.
Technical scheme of the present invention is that a kind of mobile terminal radio frequency control device comprises:
The radio frequency control unit is connected with baseband chip, base band data Transmit-Receive Unit, timer counter unit, control word selected cell, receives and stores from the control word of described baseband chip and the timing moment corresponding with described control word; Obtain current time from described timer counter unit, the control word that regularly constantly equals current time is sent to the control word selected cell, send to the base band data Transmit-Receive Unit with regularly constantly equaling the transmission of current time or receiving control word;
The base band data Transmit-Receive Unit is connected with described baseband chip, radio frequency control unit, peripheral radio-frequency devices, carries out data transmission or reception according to transmission or reception control word that described radio frequency control unit sends over;
The timer counter unit is connected with described radio frequency control unit, carries out timing according to the timing precision, and the current time value is sent to the radio frequency control unit;
The power-saving control unit, be connected with described power saving data cell, control word selected cell, control the described radio frequency control unit of described control word selected cell gating or power saving data cell according to the state of described baseband chip, control described power saving data cell and send control word to described control word selected cell;
The power saving data cell is connected with described power-saving control unit, control word selected cell, sends control word to described control word selected cell under described power-saving control unit controls;
Clock control cell is for described mobile terminal radio frequency control device provides clock signal;
The control word selected cell, be connected with described power-saving control unit, power saving data cell, radio frequency control unit, peripheral radio-frequency devices, select to connect described power saving data cell or radio frequency control unit according to the control of described power-saving control unit, the control word that receives is sent to described peripheral radio-frequency devices.
A kind of mobile terminal radio frequency control method provided by the present invention comprises:
Baseband chip is preserved operating state radio frequency control word and the corresponding radio frequency control unit that regularly constantly sends to of described radio frequency control word;
Baseband chip sends to the power saving data cell with power down mode radio frequency control word and preserves;
Power-saving control unit controls control word selected cell gating radio frequency control unit when baseband chip enters operating state, gating power saving data cell when baseband chip enters power down mode;
Under the baseband chip operating state, the radio frequency control unit obtains current time from the timer counter unit, and the radio frequency control word that regularly constantly equals current time is sent to peripheral radio-frequency devices by the control word selected cell; If the timing of described correspondence equals the radio frequency control word of current time constantly for sending or the receive data control word, simultaneously described transmission or receive data control word are sent to the base band data unit;
When baseband chip enters power down mode, power-saving control unit controls power saving data cell will enter the power down mode control word and send to peripheral radio-frequency devices by the control word selected cell, when baseband chip withdraws from power down mode, power-saving control unit controls power saving data cell will withdraw from the power down mode control word and send to peripheral radio-frequency devices by the control word selected cell.
Further, described power down mode control word comprises: the control word of the direct control line state when the entering the power down mode control word and withdraw from power down mode of the control word of the direct control line state between the baseband chip and peripheral radio-frequency devices when entering power down mode and peripheral radio-frequency devices internal state register be used for to be set between baseband chip and the peripheral radio-frequency devices and peripheral radio-frequency devices internal state register withdraw from the power down mode control word.
Further, described baseband chip sends to the power saving data cell with power down mode radio frequency control word and preserves and to comprise:
Before baseband chip enters power down mode, send this power down mode control word that enters power down mode and preserve to described power saving data cell.
Further, described baseband chip sends to the power saving data cell with power down mode radio frequency control word and preserves and to comprise:
Baseband chip sends in advance at least one group and enters power down mode control word and one group and withdraw from the power down mode control word and preserve to the power saving data cell.
Further, described power-saving control unit controls power saving data cell will enter the power down mode control word and send to peripheral radio-frequency devices by the control word selected cell and comprise:
The power-saving control unit sends select command to the power saving data cell, and one group that selects to preserve in the described power saving data cell enters the power down mode control word and sends to peripheral radio-frequency devices by the control word selected cell.
Further, described power-saving control unit controls power saving data cell will withdraw from the power down mode control word and send to peripheral radio-frequency devices by the control word selected cell and comprise:
The power-saving control unit sends select command to the power saving data cell, and one group that selects to preserve in the described power saving data cell is withdrawed from the power down mode control word and sends to peripheral radio-frequency devices by the control word selected cell.
Further, described method also comprises:
The radio frequency control unit send to send or the receive data control word in the base band data Transmit-Receive Unit, the control clock control cell is opened the clock of base band data Transmit-Receive Unit;
The base band data Transmit-Receive Unit is finished data and is sent or receive rear transmission task completion status to described clock control cell, and clock control cell is closed the clock of described base band data Transmit-Receive Unit.
Technical scheme of the present invention is preserved the power down mode control word by special-purpose power saving data cell is set, directly control power saving data cell sends the power down mode control word to radio-frequency devices when baseband chip enters power down mode, solved the nonsynchronous problem of opening and closing that baseband chip that prior art adopts complete time-controlled method to bring enters power saving and radio-frequency devices, thereby effectively reduce system power dissipation, improved the accuracy of radio frequency control.Simultaneously, in the preferred version of the present invention, the clock control of base band data Transmit-Receive Unit changed by radio frequency control unit and base band data Transmit-Receive Unit control according to the state of real data sending and receiving, avoided that its clock still is in open mode when the base band data Transmit-Receive Unit is not worked, further reduced the power consumption of portable terminal.
Embodiment
For further specifying technical scheme of the present invention, the below provides specific embodiment and is described with reference to the accompanying drawings.
Specific embodiment 1
The present embodiment is a kind of preferred implementation of mobile terminal radio frequency control device of the present invention, and concrete structure comprises as shown in Figure 2:
The radio frequency control unit is connected with baseband chip, base band data Transmit-Receive Unit, timer counter unit, control word selected cell, receives and stores from the control word of described baseband chip and the timing moment corresponding with described control word; Obtain current time from described timer counter unit, constantly compare with described timing, send the control word that regularly constantly equals current time and send to the control word selected cell, send timing and equal the transmission of current time constantly or receive control word to send to the base band data Transmit-Receive Unit;
The base band data Transmit-Receive Unit, be connected with described baseband chip, radio frequency control unit, peripheral radio-frequency devices, transmission or reception control word according to described radio frequency control unit sends over send to described peripheral radio-frequency devices or send to described baseband chip from described peripheral radio-frequency devices receive data from described baseband chip receive data;
The timer counter unit is connected with described radio frequency control unit, carries out timing according to the timing precision, and the current time value is sent to the radio frequency control unit;
The power-saving control unit, be connected with described power saving data cell, control word selected cell, control the described radio frequency control unit of described control word selected cell gating or power saving data cell according to the state of described baseband chip, control described power saving data cell and send control word to described control word selected cell;
The power saving data cell is connected with described power-saving control unit, control word selected cell, sends control word to described control word selected cell under described power-saving control unit controls;
Clock control cell is for described mobile terminal radio frequency control device provides clock signal;
The control word selected cell, be connected with described power-saving control unit, power saving data cell, radio frequency control unit, peripheral radio-frequency devices, select to connect described power saving data cell or radio frequency control unit according to the control of described power-saving control unit, the control word that receives is sent to described peripheral radio-frequency devices;
Wherein, the described power saving data cell power down mode control word of preserving comprises: the control word of the direct control line state when being used for arranging the entering the power down mode control word and withdraw from power down mode of the control word of the direct control line state between the baseband chip and peripheral radio-frequency devices when entering power down mode and peripheral radio-frequency devices internal state register between baseband chip and the peripheral radio-frequency devices and peripheral radio-frequency devices internal state register withdraw from the power down mode control word.
Specific embodiment 2
The present embodiment is the another kind of preferred implementation of mobile terminal radio frequency control device of the present invention, and concrete structure comprises as shown in Figure 3:
The radio frequency control unit is connected with baseband chip, base band data Transmit-Receive Unit, timer counter unit, control word selected cell, clock control cell, receives and stores from the control word of described baseband chip and the timing moment corresponding with described control word; Obtain current time from described timer counter unit, constantly compare with described timing, the control word that regularly constantly equals current time is sent to the control word selected cell, send to the base band data Transmit-Receive Unit with regularly constantly equaling the transmission of current time or receiving control word, simultaneously, the control clock control cell is opened base band data Transmit-Receive Unit clock;
The base band data Transmit-Receive Unit, be connected with described baseband chip, radio frequency control unit, peripheral radio-frequency devices, clock control cell, the transmission that sends over according to described radio frequency control unit or receive control word, send to described peripheral radio-frequency devices or send to described baseband chip from described peripheral radio-frequency devices receive data from described baseband chip receive data, when data send or receive end, transmit the state information to clock control cell;
The timer counter unit is identical with specific embodiment 1;
The power-saving control unit is identical with specific embodiment 1;
The power saving data cell is identical with specific embodiment 1;
The control word selected cell is identical with specific embodiment 1;
Clock control cell is for described mobile terminal radio frequency control device provides clock signal;
Wherein, described clock control cell is connected with described radio frequency control unit, base band data Transmit-Receive Unit, opens the work clock of base band data Transmit-Receive Unit under described radio frequency control unit control; Obtain base band data Transmit-Receive Unit operating state from described base band data Transmit-Receive Unit, after described base band data Transmit-Receive Unit is finished transmission or received, close the work clock of described base band data Transmit-Receive Unit.
Wherein, the described power saving data cell power down mode control word of preserving comprises: the control word of the direct control line state when being used for arranging the entering the power down mode control word and withdraw from power down mode of the control word of the direct control line state between the baseband chip and peripheral radio-frequency devices when entering power down mode and peripheral radio-frequency devices internal state register between baseband chip and the peripheral radio-frequency devices and peripheral radio-frequency devices internal state register withdraw from the power down mode control word.
Specific embodiment 3
The present embodiment is a kind of preferred implementation of mobile terminal radio frequency control method of the present invention, and idiographic flow comprises as shown in Figure 4:
1, power-saving control unit controls control word selected cell gating radio frequency control unit when baseband chip enters operating state;
Being carved into the radio frequency control unit when 2, baseband chip sends radio frequency control word and corresponding timing preserves; Entered and withdraw from the required power down mode control word of power down mode next time and send to the preservation of power saving data cell;
Wherein, described power down mode control word comprises: the control word of the direct control line state when the entering the power down mode control word and withdraw from power down mode of the control word of the direct control line state between the baseband chip and peripheral radio-frequency devices when entering power down mode and peripheral radio-frequency devices internal state register be used for to be set between baseband chip and the peripheral radio-frequency devices and peripheral radio-frequency devices internal state register withdraw from the power down mode control word.
3, the radio frequency control unit obtains current time from the timer counter unit, and the timing of each control word of preserving with the radio frequency control unit compares constantly;
If 4 have the timing of control word constantly to equate execution in step 5, otherwise execution in step 8 with current time;
5, judge that data sent or the reception control word when control word that regularly constantly equates with current time was whether, if execution in step 6, otherwise execution in step 7;
6, send this control word to the base band data Transmit-Receive Unit;
7, send this control word to peripheral radio-frequency devices by the control word selected cell;
8, judge whether baseband chip is about to enter power down mode, if so, execution in step 9, otherwise execution in step 2;
9, power-saving control unit controls control word selected cell gating power saving data cell;
10, power-saving control unit controls power saving data cell sends by the control word selected cell and enters the power down mode control word to peripheral radio-frequency devices;
11, baseband chip withdraws from power down mode, and power-saving control unit controls power saving data cell sends by the control word selected cell and withdraws from the power down mode control word to peripheral radio-frequency devices, enters operating state, execution in step 1.
Specific embodiment 4
The present embodiment is another preferred implementation of mobile terminal radio frequency control method of the present invention, and idiographic flow comprises as shown in Figure 5:
1, baseband chip enters n group respectively in advance the required power down mode control word of power down mode under the different scenes and n group and withdraws under the different scenes the required power down mode control word of power down mode and send to the power saving data cell and preserve; Wherein, n 〉=1;
Wherein, every group of described power down mode control word that enters comprises: what the control word of the direct control line state between the baseband chip and peripheral radio-frequency devices when entering power down mode and peripheral radio-frequency devices internal state register be used for to be set enters the power down mode control word;
Every group of described power down mode control word that withdraws from comprises: the control word of the direct control line state during power down mode between baseband chip and the peripheral radio-frequency devices and peripheral radio-frequency devices internal state register withdraw from the power down mode control word.
2, power-saving control unit controls control word selected cell gating radio frequency control unit when baseband chip enters operating state;
Being carved into the radio frequency control unit when 3, baseband chip sends radio frequency control word and corresponding timing preserves;
4, the radio frequency control unit obtains current time from the timer counter unit, and the timing of each control word of preserving with the radio frequency control unit compares constantly;
If 5 have the timing of control word constantly to equal current time, execution in step 6; Otherwise execution in step 10;
6, judge whether data send or the reception control word control word that regularly constantly equates with current time, if execution in step 7, otherwise execution in step 8;
7, radio frequency control unit control clock control cell is opened base band data Transmit-Receive Unit clock; Send this control word to the base band data Transmit-Receive Unit;
8, send this control word to peripheral radio-frequency devices by the control word selected cell;
9, the base band data Transmit-Receive Unit is finished data and is sent or receive rear transmission task completion status to described clock control cell, and clock control cell is closed the clock of described base band data Transmit-Receive Unit;
10, judge whether baseband chip is about to enter power down mode, if so, execution in step 11, otherwise execution in step 3;
11, power-saving control unit controls control word selected cell gating power saving data cell;
12, power-saving control unit controls power saving data cell selects one group of power down mode control word that enters that is applicable to current scene to send the power down mode control word to peripheral radio-frequency devices by the control word selected cell;
13, baseband chip withdraws from power down mode, and power-saving control unit controls power saving data cell selects one group of power down mode control word that withdraws from that is applicable to current scene to send the power down mode control word to peripheral radio-frequency devices, execution in step 2 by the control word selected cell.
One of ordinary skill in the art obviously should be known and be understood, the inventive method for above embodiment only be used for explanation the inventive method, and be not limited to the inventive method.Without departing from the spirit and substance of the case in the method for the present invention, those skilled in the art work as can make various corresponding changes or distortion according to the inventive method, but these corresponding changes or distortion all belong to the claim protection range of the inventive method.