The data processing method and device of multimode terminal
Technical field
The present invention relates to the communications fields, in particular to the data processing method and device of a kind of multimode terminal.
Background technique
In mobile communication system, Time division multiple access (Time Division-Synchronous Code
Division Multiple Access, referred to as TD-SCDMA)/Wideband Code Division Multiple Access (Wideband Code
Division Multiple Access, referred to as WCDMA)/long term evolution (Long-Term Evolution, referred to as LTE)
The time reference at system requirements user equipment (User Equipment, referred to as UE) end can be with the System Frame Number of persistent district
(System Frame Number, referred to as SFN) keep synchronize, in connected state with Connection Frame Number (Connect Frame
Number, referred to as CFN) it keeps synchronizing.And time processing unit (Time Process Unit, referred to as TPU) starting when
It waits, mobile wireless time reference (Mobile Radio Timing Reference, referred to as MRTR) counts and persistent district one
As be it is nonsynchronous, this requires TPU to be capable of providing the interface synchronous with SFN, CFN holding.It is connect so TPU is needed to provide one
Mouthful, the MRTR that can adjust TPU is counted, and is aligned it with the SFN of system or CFN.
After on SFN the CFN preliminary synchronisation of UE and TD-SCDMA/WCDMA/LTE network side, due to UE and base station
Brilliant shake there are minute differences, cause each chip actual step size to have minute differences, after being accumulated to certain amount, between the two
Deviation is just produced, UE and network side frame boundaries misalignment are caused.At this moment it needs to be finely adjusted the side the UE time, so that UE and net
Network side frame boundaries are consistent.Therefore, TPU needs to provide such fine adjustment function, so that the side UE passes through fine tuning and network side frame
Boundary is consistent.
During the operation of TD-SCDMA/WCDMA/LTE system, some modules need (such as CSR) to know full frame or field
Moment point executes corresponding operation in these special occasion points.The module in need for knowing full frame or field moment point, all
It needs to tell TPU module designer in advance, TPU module designer can give these moulds when full frame or field moment point arrive
The message that block sends full frame or field moment point arrives.TD-SCDMA/WCDMA/LTE system module needs are known when current
Between put after a certain moment point specific to the time come, then notify the module, allow it to handle corresponding affairs, this requires TPU
It is capable of providing the interface of a registered events mechanism.Corresponding module only needs to tell TPU module corresponding time point and process
ID number, when the time point being waited to arrive, TPU can generate interruption, send out message to the module inside interrupt service routine, which receives
To after message, so that it may carry out the processing of corresponding service.The event be single sign or periodically, it is only necessary to pass through one
Indexed variable is passed to the interface that TPU is provided.
In the related technology, support multiple network standard multimode terminal need its support each network formats between into
Row switching, and the time of each network formats is different, difficult, software maintenance complexity is realized in timing.
Summary of the invention
The present invention provides a kind of data processing method of multimode terminal and devices, at least to solve in the related technology, branch
The multimode terminal for holding multiple network standard needs to switch between each network formats that it is supported, and each network formats
Time it is different, difficult, the problem of software maintenance complexity is realized in timing.
According to an aspect of the invention, there is provided a kind of data processing method of multimode terminal, comprising: by multimode terminal
MRTR value be adjusted to and the network side frame boundaries consistent time under current network standard;By upstream data to be sent and/
Or the downlink data received needs the event registration responded into event information;According to the event in MRTR value and event information
Handle upstream data and/or downlink data.
Preferably, when the MRTR value of multimode terminal being adjusted to consistent with network side frame boundaries under current network standard
Between include at least one of: be adjusted by MRTR value of the adjustment amplitude to multimode terminal of a time slot;It is directly entered down
One frame;The length for increasing present frame, is aligned the frame head of next frame with the current persistent district of multimode terminal.
Preferably, when the MRTR value of multimode terminal being adjusted to consistent with network side frame boundaries under current network standard
Between include: to be adjusted according to MRTR value of the primary frequency of a framing control to multimode terminal.
Preferably, when the MRTR value of multimode terminal being adjusted to consistent with network side frame boundaries under current network standard
Between include: that corresponding with current network standard MRTR value is determined according to the MRTR value of current network standard and free-running, wherein
The MRTR value of free-running is that the work clock of one of the multiple network standard supported using multimode terminal network formats is produced
The MRTR value of raw free-running;The corresponding MRTR value of current network standard is adjusted to and the network side under current network standard
The frame boundaries consistent time.
Preferably, the MRTR value of free-running is the MRTR value of the free-running generated using the work clock of LTE system.
Preferably, MRTR corresponding with current network standard is determined according to the MRTR value of current network standard and free-running
If value includes: that current network standard is LTE system, determine the MRTR value of free-running as MRTR corresponding with LTE system
Value;If current network standard is WCDMA system, according to the ratio of the work clock of LTE system and the work clock of WCDMA system
The MRTR value of value and free-running determines MRTR value corresponding with WCDMA system;If current network standard is TD-SCDMA
System, according to the MRTR value of the ratio and free-running of the work clock of LTE system and the work clock of TD-SCDMA system,
Determine MRTR value corresponding with TD-SCDMA system.
Preferably, corresponding with current network standard according to the determination of the MRTR value of current network standard and free-running
After MRTR value, the above method further include: convert MRTR value corresponding with current network standard under current network standard
The MRTR value of frame structure format.
Preferably, the event registration for upstream data to be sent and/or the downlink data received being needed to respond is to thing
It include: the event registration by present frame in part information into event information;By the event registration more than present frame to outstanding message
In.
Preferably, will be more than present frame event registration into outstanding message after, the above method further include: according to pre-
The fixed period judges whether the event in outstanding message becomes the event of present frame;If so, qualified event is mobile
Into event information, and delete the qualified event in outstanding message.
Preferably, above-mentioned event information is event table, and event table includes the main table of event, interrupts sublist and radio frequency (Radio
Frequency, referred to as RF) event sublist, wherein the main table of event stores the week of interruption and RF event according to wireless frame structure
Phase property or single configuration, interrupt sublist storage interrupting information and interrupt flag bit information, and RF event sublist stores RF control word
And offset address.
Preferably, the event registration responded is being needed to arrive upstream data to be sent and/or the downlink data received
After in event information, the above method further include: judging the difference of the event to be deleted and current time in outstanding message is
It is no less than 1 frame;If being not less than 1 frame, the deletion event directly in outstanding message, and by corresponding mark position 0;If it is less than
1 frame, by the relevant position 0 of corresponding event in the main table of event.
Preferably, above-mentioned outstanding message is to wait chained list.
Preferably, according in MRTR value and event information event handling upstream data and/or downlink data include: according to
Interruption or RF event in MRTR value clocked flip event information;According to interruption or RF event, uplink is sent by radio frequency
Data, and/or downlink data is handled.
Preferably, according to interruption or RF event, upstream data is sent by radio frequency, and/or carry out to downlink data
Before processing, the above method further include: the RF control word in event information is parsed.
According to another aspect of the present invention, a kind of data processing equipment of multimode terminal is provided, comprising: adjustment module,
For the MRTR value of multimode terminal to be adjusted to and the network side frame boundaries consistent time under current network standard;Register mould
Block, for needing the event registration responded into event information upstream data to be sent and/or the downlink data received;
Processing module, for according to the event handling upstream data and/or downlink data in MRTR value and event information.
Through the invention, the MRTR of multimode terminal is adjusted to consistent with the network side frame boundaries under current network standard
Time registers the event that data to be processed need to respond, then according in MRTR value and event information in event information
The above-mentioned data of event handling, wherein event information is that the various network formats that multimode terminal is supported are general, and multimode terminal exists
In its multiple network standard supported when switching, the MRTR of the terminal is adjusted, implementation method is simple, and software maintenance compared with
It is easy.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the data processing method of multimode terminal according to an embodiment of the present invention;
Fig. 2 is the structural block diagram of the data processing equipment of multimode terminal according to an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of the data processing equipment of multimode terminal according to the preferred embodiment of the invention;
Fig. 4 is the timing diagram of ascending-descending subframes head positioning according to the preferred embodiment of the invention;
Fig. 5 is the timing diagram according to the preferred embodiment of the invention being finely adjusted to MRTR;
Fig. 6 is the timing diagram according to the preferred embodiment of the invention adjusted greatly to MRTR;
Fig. 7 is the schematic diagram according to the preferred embodiment of the invention for generating MRTR;
Fig. 8 is the flow diagram of event registration according to the preferred embodiment of the invention;
Fig. 9 is the schematic diagram of event ordering according to the preferred embodiment of the invention;
Figure 10 is that the flow diagram interrupted is interrupted and generated in registration according to the preferred embodiment of the invention;
Figure 11 is the schematic diagram of event table according to the preferred embodiment of the invention.
Specific embodiment
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
The embodiment of the invention provides a kind of data processing method of multimode terminal, Fig. 1 is according to an embodiment of the present invention
The flow chart of the data processing method of multimode terminal, as shown in Figure 1, including the following steps, namely S102 to step S106.
The MRTR value of multimode terminal is adjusted to consistent with the network side frame boundaries under current network standard by step S102
Time.
Upstream data to be sent and/or the downlink data received are needed the event registration responded to arrive by step S104
In event information.
Step S106, according to the event handling upstream data and/or downlink data in MRTR value and event information.
In the related technology, support multiple network standard multimode terminal need its support each network formats between into
Row switching, and the time of each network formats is different, difficult, software maintenance complexity is realized in timing.Through the invention, by multimode
The MRTR of terminal be adjusted to the network side frame boundaries consistent time under current network standard, register in event information wait locate
The data of reason need the event responded, then according to the above-mentioned data of event handling in MRTR value and event information, wherein event
Information is that the various network formats that multimode terminal is supported are general, and multimode terminal switches in the multiple network standard that it is supported
When, the MRTR of the terminal is adjusted, implementation method is simple, and software maintenance is easier to.
In step S102, the MRTR value of multimode terminal is adjusted to consistent with the network side frame boundaries under current network standard
Time can be adjusted at least one in the following manner: (1) be adjustment amplitude to multimode terminal using a time slot
MRTR value is adjusted;(2) it is directly entered next frame;(3) length for increasing present frame, makes the frame head and multimode terminal of next frame
Current persistent district alignment.Wherein, mode (1) is properly termed as finely tuning, and in practical application, last 5 time slots of a frame are provided
Do not allow registered events, so being adjusted in last 5 time slots of a frame to the time, can guarantee that event is not lost in this way
It loses.Mode (2) and mode (3) are properly termed as adjusting greatly, and after the completion of big adjustment, all event needs are re-registered, to prevent event
Loss or repeated trigger.Preferably, it can be adjusted according to MRTR value of the primary frequency of a framing control to multimode terminal.
The process for generating MRTR is as follows:
MRTR value corresponding with current network standard is determined according to the MRTR value of current network standard and free-running,
In, the MRTR value of free-running is the work clock of one of the multiple network standard supported using multimode terminal network formats
The MRTR value of the free-running of generation;The corresponding MRTR value of current network standard is adjusted to and the network under current network standard
The side frame boundaries consistent time.
Preferably, the MRTR value of free-running is the MRTR value of the free-running generated using the work clock of LTE system.
Preferably, MRTR corresponding with current network standard is determined according to the MRTR value of current network standard and free-running
If value includes: that current network standard is LTE system, determine the MRTR value of free-running as MRTR corresponding with LTE system
Value;If current network standard is WCDMA system, according to the ratio of the work clock of LTE system and the work clock of WCDMA system
The MRTR value of value and free-running determines MRTR value corresponding with WCDMA system;If current network standard is TD-SCDMA
System, according to the MRTR value of the ratio and free-running of the work clock of LTE system and the work clock of TD-SCDMA system,
Determine MRTR value corresponding with TD-SCDMA system.
Preferably, corresponding with current network standard according to the determination of the MRTR value of current network standard and free-running
After MRTR value, the above method further include: convert MRTR value corresponding with current network standard under current network standard
The MRTR value of frame structure format.
In practical applications, MRTR is counted according to the frame structure of each network formats, and LTE requires work to exist
Under 30.72M clock, WCDMA requires work under 15.36M clock, and TD-SCDMA requires work under 10.24M clock.
The MRTR value under each network formats is generated using the relationship between three clock frequencies, is produced using 30.72M clock
The MRTR of a set of free-running is given birth to, can directly use for LTE after format conversion, then be supplied respectively after except 2 and except 3
WCDMA and TD-SCDMA is used, and format conversion is mainly the frame structure lattice converted the MRTR of free-running under corresponding modes
Formula.
Step S104 includes: the event registration by present frame into event information;Event registration more than present frame is arrived
In outstanding message.In practical applications, generally shift to an earlier date field registered events, resource can be saved.
Preferably, will be more than present frame event registration into outstanding message after, the above method further include: according to pre-
The fixed period judges whether the event in outstanding message becomes the event of present frame;If so, qualified event is mobile
Into event information, and delete the qualified event in outstanding message.
Event table module registered events interruption or universal input/output (General Purpose into RAM by software
Input Output, referred to as GPIO) event, hardware is according to local_mrtr(Network Time Base) clocked flip event interrupt
Or GPIO event.Interrupt can be full frame, in field or symbol any position interruption.Interrupt type can be periodically or
Single.GPIO event supports symbol level.Event table stores the information of 3 tables using 3 block RAMs, through software into table
Corresponding information is written, hardware accurately generates corresponding event and interrupt signal according to the count value of local_mrtr.LTE mould
TPU allocation list provides normal cp(Cyclic Prefix, cyclic prefix respectively under formula) and extend cp both of which under
Allocation list, hardware automatically switch 2 tables according to CP mode, and according to the when base of MRTR(free-running)+offset(radio frames
Head offset) value, can for a frame each symbol (symbol) provide event triggering.
TPU hardware supports mixing CP pattern switching under LTE mode, also supports list CP mode.If not configuring switching,
TPU can be always worked under normal cp or extend cp mode, if switching is determined by software completely.TPU configuration
Each in table includes the control signal and symbol bias internal interrupted, each in table includes GPIO control signal and GPIO sublist index
Address.
Preferably, above-mentioned outstanding message is to wait chained list.Above-mentioned event information is event table, and event table includes event master
Table interrupts sublist and radio frequency event sublist, wherein the main table of event stores the week of interruption and RF event according to wireless frame structure
Phase property or single configuration, interrupt sublist storage interrupting information and interrupt flag bit information, and RF event sublist stores RF control word
And offset address.
Preferably, the event registration responded is being needed to arrive upstream data to be sent and/or the downlink data received
After in event information, the above method further include: judging the difference of the event to be deleted and current time in outstanding message is
It is no less than 1 frame;If being not less than 1 frame, the deletion event directly in outstanding message, and by corresponding mark position 0;If it is less than
1 frame, by the relevant position 0 of corresponding event in the main table of event.In this preferred embodiment, judgement the event to be deleted and it is current when
Between difference whether less than 1 frame, to determine how to delete, if it is less than 1 frame, by the correlation of corresponding event in the main table of event
Position 0, the event registered in the past in this way would not be responded.Since the address of the main table of MRTR and event of registered events is one by one
Corresponding relationship, interruption may be implemented to be optionally plugged into, and software does not need to be ranked up interrupt event yet.
Step S106 includes: according to the interruption or RF event in MRTR value clocked flip event information;According to interrupt or
Person's RF event sends upstream data by radio frequency, and/or handles downlink data.The processing of downlink data can be
The operations such as filtering, parsing.
Preferably, according to interrupt or RF event, by radio frequency send upstream data, and/or to downlink data at
Before reason, the above method further include: the RF control word in event information is parsed.
The embodiment of the invention also provides a kind of data processing equipment of multimode terminal, the data processing of the multimode terminal is filled
Set the data processing method that can be used to implement above-mentioned multimode terminal.Fig. 2 is the number of multimode terminal according to an embodiment of the present invention
According to the structural block diagram of processing unit, as shown in Fig. 2, the device includes adjustment module 22, registration module 24 and processing module 26.Under
It is described in detail in face of its structure.
Module 22 is adjusted, for the MRTR value of multimode terminal to be adjusted to and the network side frame boundaries under current network standard
The consistent time;Registration module 24, the thing for needing to respond upstream data to be sent and/or the downlink data received
Part is registered in event information;Processing module 26 is connected to adjustment module 22 and registration module 24, for according to adjustment module 22
MRTR value adjusted and registration module 24 are registered to event handling upstream data and/or downlink data in event information.
In the related technology, support multiple network standard multimode terminal need its support each network formats between into
Row switching, and the time of each network formats is different, difficult, software maintenance complexity is realized in timing.Through the invention, by multimode
The MRTR of terminal be adjusted to the network side frame boundaries consistent time under current network standard, register in event information wait locate
The data of reason need the event responded, then according to the above-mentioned data of event handling in MRTR value and event information, wherein event
Information is that the various network formats that multimode terminal is supported are general, and multimode terminal switches in the multiple network standard that it is supported
When, the MRTR of the terminal is adjusted, implementation method is simple, and software maintenance is easier to.
Preferably, adjustment module 22 can be adjusted by way of at least one of: with a time slot for adjustment
Amplitude is adjusted the MRTR value of multimode terminal;It is directly entered next frame;The length for increasing present frame, makes the frame head of next frame
It is aligned with the current persistent district of multimode terminal.
Preferably, adjustment module 22 can be adjusted according to MRTR value of the primary frequency of a framing control to multimode terminal
It is whole.
Preferably, adjustment module 22 comprises determining that unit, for the MRTR value according to current network standard and free-running
Determine MRTR value corresponding with current network standard, wherein the MRTR value of free-running is to utilize a variety of of multimode terminal support
The MRTR value for the free-running that the work clock of one of network formats network formats generates;Adjustment unit is connected to determination
Unit, it is consistent with the network side frame boundaries under current network standard for being adjusted to the corresponding MRTR value of current network standard
Time.
Preferably, the MRTR value of free-running is the MRTR value of the free-running generated using the work clock of LTE system.
Preferably, determination unit includes: the first determining subelement, for the case where current network standard is LTE system
Under, determine the MRTR value of free-running as MRTR value corresponding with LTE system;Second determines subelement, in current net
In the case that network standard is WCDMA system, according to the ratio of the work clock of LTE system and the work clock of WCDMA system with
And the MRTR value of free-running, determine MRTR value corresponding with WCDMA system;Third determines subelement, in current network
In the case that standard is TD-SCDMA system, according to the ratio of the work clock of LTE system and the work clock of TD-SCDMA system
The MRTR value of value and free-running determines MRTR value corresponding with TD-SCDMA system.
Preferably, module 22 is adjusted further include: format conversion unit is connected to determination unit, will be with current network standard
Corresponding MRTR value is converted into the MRTR value of the frame structure format under current network standard.
Registration module 24 includes: the first registering unit, for by the event registration of present frame into event information;Second note
Volume unit, for that will be more than the event registration of present frame into outstanding message.Preferably, above-mentioned outstanding message is to wait chained list.
Preferably, registration module 24 further include: judging unit is connected to the second registering unit, for according to scheduled week
Phase judges whether the event in outstanding message becomes the event of present frame;Processing unit, for the case where judging result, which is, is
Under, qualified event is moved in event information, and delete the qualified event in outstanding message.
Preferably, above-mentioned event information is event table, and event table includes the main table of event, interrupts sublist and radio frequency event
Table, wherein the main table of event is configured according to the periodicity or single that wireless frame structure stores interruption and RF event, interrupts sublist
Interrupting information and interrupt flag bit information are stored, RF event sublist stores RF control word and offset address.
Preferably, above-mentioned apparatus further include: judgment module is connected to registration module 24, for judging in outstanding message
Whether the difference of the event and current time to be deleted is less than 1 frame;Removing module is used in the case where being not less than 1 frame, directly
The deletion event in outstanding message, and by corresponding mark position 0;Set module is used for less than 1 frame, by thing
The relevant position 0 of corresponding event in the main table of part.
Processing module 26 includes: trigger unit, for according in MRTR value clocked flip event information interruption or RF
Event;Processing unit is connected to trigger unit, is used for according to interruption or RF event, by radio frequency transmission upstream data, and/
Or downlink data is handled.
Preferably, processing module 26 further include: resolution unit is connected to trigger unit, controls the RF in event information
Word is parsed.
It should be noted that the data processing equipment of multimode terminal described in Installation practice corresponds to above-mentioned method
Embodiment, concrete implementation process had carried out detailed description in embodiment of the method, and details are not described herein.
It can be seen from the above, the multimode terminal in the embodiment of the present invention, which is based on the time, carries out data processing, 3 kinds of modes are supported
The MRTR of (WCDMA, TD-SCDMA, LTE) is counted, and using the adjustment mode (big reconcile is finely tuned) of 2 kinds of different scenes, keeps terminal
MRTR and network side be aligned.The design method that MRTR value generates generates a free-running using 30.72M clock
MRTR is then converted into the MRTR value of other modes.A kind of event table of software programmable has also been devised in the embodiment of the present invention, adopts
The mechanism separated with main table sublist, can produce GPIO event and interrupt event, and mixing CP mould had both been supported under LTE mode
Formula switching, also supports list CP mode.The embodiment of the present invention supports event table setting/removing (set/clear) function, avoids software
Sequence to event.Wait_list is increased when registered events, software can write the event for needing to respond after reference field
Enter in Wait_list, avoids the sequence of software.
In order to keep technical solution of the present invention and implementation method clearer, below in conjunction with preferred embodiment and attached
Figure realizes that process is described in detail to it.
Fig. 3 is the structural schematic diagram of the data processing equipment of multimode terminal according to the preferred embodiment of the invention, such as Fig. 3 institute
Show, which includes: uplink transmission unit 302, downlink reception unit 304, time reference unit 306, event list
Member 308, radio frequency control word resolution unit 310 and serial peripheral interface (Serial Peripheral Interface, referred to as
SPI) control unit 312.Its structure is described in detail below.
Uplink transmission unit 302(realizes the partial function of above-mentioned processing module 26), it completes to software radio
The caching of the antenna data of (Software Defined Radio, referred to as SDR) TX input, it is accurate fixed to be generated using event table
When signal control caching (BUFFER) data send.
Downlink reception unit 304(realizes the partial function of above-mentioned processing module 26), it completes to radio frequency input data
The caching of antenna (RF/ABB) data, realize it is data cached be aligned with base when network, SDR takes respectively according to TPU accurate timing
Data are handled out.
Time reference unit 306(realizes the function of above-mentioned adjustment module 22), 2 sets of time references are maintained, i.e., are freely transported
Base and base when network when capable, according to base when LOCAL_MRTR(network)=MRTR(free-running operation when base)+OFFSET(is wireless
Frame header deviation) it is adjusted, ascending-descending subframes head positions timing diagram, exists as shown in figure 4, being mainly used for locator frame head
Position in buffer, calculation formula are as follows: (n+ (307200-offset-M) %30720) %30720, wherein n is data
Number in buffer, the calculated result of above-mentioned formula are just position of the subframe head in buffer, since remainder operates
It is bad to be realized using hardware, so being calculated as far as possible using software in practice;Base adjustment mode when devising 2 kinds of networks: micro-
Adjustment and big adjustment;It completes LOCAL_MRTR and remains synchronous with main plot.
Event table unit 308(realizes the function of above-mentioned registration module 24), it completes event table module and passes through software to RAM
Middle registered events interrupt or GPIO event, and hardware is according to LOCAL_MRTR clocked flip event interrupt or GPIO event.Interruption can
Be full frame, in field or symbol any position interruption.Interrupt type can be periodic or single.GPIO event
Support symbol level.Event table stores the information of 3 tables using 3 block RAMs, corresponding information is written into table by software, firmly
Part accurately generates corresponding event and interrupt signal according to the count value of LOCAL_MRTR.
Radio frequency control word resolution unit 310(realizes the function of above-mentioned resolution unit), event table output is penetrated in completion
These instructions and control word are issued different module and peripheral hardware by the parsing of frequency control word.
SPI control unit 312, the SPI control word for completing directly to generate software (are controlled by BMI bus transfer to SPI
Unit 312) and timing controlled generate SPI order and synchronous serial interface controller (Synchronous Serial
Interface Controller, referred to as SSC) module parallel data grabbing card.
Combining the treatment process of upstream data and downlink data separately below, the above scheme will be described in detail.
(1) for uplink transmission for, SDR TX according to the respective data rate of LTE/WCDMA/TD-SCDMA to
It is write inside BUFFER, uplink transmission unit 302 is read according to phase same rate from BUFFER.It is accurate fixed to be generated by TPU RF event table
When signal control BUFFER data read by radio-frequency antenna (RF/ABB) send, be described below in detail event table registration on act
The process of part:
The first step selects operating mode, i.e., selects in LTE/WCDMA/TD-SCDMA one such as multimode terminal
Working method.
Second step adjusts the MRTR time of the side UE by time reference unit 306, so that UE and network side frame boundaries are kept
Unanimously.The big tune or fine adjustment function of TPU can be used in the MRTR time of the adjustment side UE, specific as shown in Figure 5 and Figure 6.
Fig. 5 is the timing diagram according to the preferred embodiment of the invention being finely adjusted to MRTR, as shown in figure 5, when system needs
When micro-adjustment MRTR being wanted to be aligned with cell, TPU supports positive justification and two kinds of negative justification operations, and the adjustment frequency of micro-adjustment is a frame
Adjustment is primary, and amplitude is +/- 1Ts.Software corresponding operation: when discovery needs that the TPU time is micro-adjusted, to accordingly posting
Storage issues adjustment order, can be adjusted in the last 5Ts of a frame (10ms) to the time after the adjustment order of TPU Hardware Response Delay,
It can guarantee that event is not lost in this way, because last 5Ts regulation does not allow registered events.
Fig. 6 is the timing diagram according to the preferred embodiment of the invention adjusted greatly to MRTR, as shown in fig. 6, when system needs
When significantly adjusting MRTR, TPU supports short framing control and long framing control.Wherein, short framing control refers to that this frame receives adjustment life
After order, lower frame is directly jumped into;Long framing control refers to that after receiving long adjustment order, adjustment increases the length of present frame backward
Greatly, so that lower frame frame head be made to be aligned with cell.
The frequency significantly adjusted is that a frame is primary, range be any time slot in 1024 frames (Time Slot, referred to as
TS).Software corresponding operation: when discovery needs to adjust the TPU time greatly, according to relationship LOCAL_MRTR=MRTR+
OFFSET sends out write-in adjusted value to corresponding registers, can adjust accordingly operation after the adjustment order of TPU Hardware Response Delay.Big adjustment
After the completion, all event needs re-register, to prevent the loss or repeated trigger of event.
MRTR generates process as shown in fig. 7, MRTR is counted according to the frame structure of each mode, and LTE mode is wanted
Ask work under 30.72M clock, WCDMA mode requires work under 15.36M clock, and TD-SCDMA mode requires work to exist
10.24M under clock.Time reference unit 306 mainly generates the MRTR of each mode using the relationship between three clock frequencies
Value is generated the MRTR of a set of free-running using 30.72M clock, can directly used for LTE mode after format conversion, then
It is used respectively for WCDMA and TD-SCDMA after except 2 and except 3, format conversion mainly converts the MRTR of free-running to
Frame structure format under corresponding modes, this method will compare saving resource from realizing.
But except 3 circuits can generate error, the error except 3 circuits is held and measured in actual use.Except 3 electricity
The specific implementation on road and error are as follows, wherein it can be completed except 3 circuit counting methods use to move to left with add circuit, as follows:
a/3=a/4+a/42+a/43+ ...+a/4 ..., wherein a is the number that remove 3, and error is less than a/(2*4n).
Third step registers uplink in event table unit 308 and handles event, upstream data is needed to ring in transmission process
The event answered all is registered in event table, then to the moment, is issued and is interrupted to processor, execute corresponding interrupt processing journey
Sequence, the processing of complete paired data.
The process of registered events is specific as shown in figure 8, the event of present frame directly registers in event table, more than present frame
Event be then first registered in Wait_list.When the field moment arrives, hardware can inquire Wait_list automatically, will meet item
The event of part is transplanted in event table (by symbol writing events table), while being discharged and being stored sky in Wait_list accordingly
Between.During uplink and downlink registered events, the event for surmounting current frame number can be registered in waitlist table, these event meetings
It is automatically registered in event table when corresponding frame number arrives, if this event does not need accordingly, can directly exist
It is deleted in waitlist.
It is as follows that Wait_list specifically reads and writes event procedure:
When registered events, when the field moment arrives, qualified thing is searched for according to triggering moment from Wait_list
Part is registered in mast, is searched for since first address every time.
Event procedure is write in Wait_list, the event for needing to respond can be written in Wait_list at any time for software, but need
Frame number information is written.When writing event, software is write data into first in fixed register, and then hardware event is written corresponding
Address in, which is the address calculated in advance of hardware, while corresponding address mark position 1(address mark position is 0
When indicate that the address can be written into data, be 1 when indicate that data cannot be written in the address), calculation method process as shown in figure 9,
It is calculated according to the whether available marker bit in each address, calculates the higher address of priority every time.Priority is by address
Size determines that is, 0 address priority highest, 255 address priorities are minimum.
It is as follows to delete interrupt event process:
If the trigger event and current time difference to be deleted is greater than 1 frame, directly deleted in Wait_list, simultaneously
By corresponding mark position 0;If the time difference is regular interrupt event less than 1 frame, software can be by the address calculated
With byte_en by the full set 0 of interruption relevant bits corresponding in main table, the event registered in the past in this way would not be responded.Due to
The address of the MRTR of registered events and main table is one-to-one relationship, and corresponding relationship is seen below, and interruption may be implemented arbitrarily to insert
Enter, software does not need to be ranked up interrupt event yet.
Figure 10 is that registration according to the preferred embodiment of the invention is interrupted and generates the flow diagram interrupted, such as Figure 10 institute
Show, half frame time need to be shifted to an earlier date when registration is interrupted every time, the lower field event to be responded is registered in preceding field, to the lower field moment
The event registered is responded when arrival.
Figure 11 is the schematic diagram of event table according to the preferred embodiment of the invention, and as shown in figure 11, whole event table uses
The design of main table and sublist separation: main table is matched according to periodicity/single that wireless frame structure stores interruption and RF sublist event
It sets;Interrupt sublist storage interrupting information and interrupt flag bit information;RF sublist stores RF control word information and offset address.
0 ~ 149 in the main table of TPU is the main table of TPU under normal CP mode, and 256 ~ 375 be the TPU master extended under CP mode
Table.Wherein, int is 14 bits, and bit1 is periodically to generate signal, and bit2 is that single generates signal, during bit3-bit14 is
Disconnected offset (offset_int).Rf is 8 bits, and bit1 ~ bit6 is GPIO allocation index, and bit7 is that single generates signal,
Bit8 is periodically to generate signal.
Sublist, i.e. TPU int allocation list (140) are interrupted, interrupting the Tpuint in sublist is 2 bits, and bit2 indicates dsp
It interrupts, bit1 indicates that arm is interrupted.Int_index has 8 bits, indicates Int_index_dsp or Int_index_arm,
In, Int_index_arm represents the index of arm interruption, is initially arranged in table, when TPU, which is interrupted, to arrive, will be stored in interruption
In indexed registers, which is obtained by read register.Int_index_dsp represents dsp and interrupts index, initially sets in table
It sets, when TPU, which is interrupted, to arrive, will be stored in and interrupt in indexed registers, which is obtained by read register.When the main table of TPU
Interruption is generated, which interrupts output and its index.
RF sublist, i.e. rf event table (1024), the Continue in RF sublist is 1 bit, is indicated according to symbol next
RF event.Offset is 12 bits, and unit is chip, 0~2207.Rf is 32 bits.Also storage has RF control in the table
Word.
By software, the registered events into RAM interrupt event table module or GPIO event, hardware are fixed according to local_mrtr
When trigger event interrupt or GPIO event.Interrupt can be full frame, in field or symbol any position interruption.Interrupt type can
To be periodic or single.GPIO event supports symbol level.Event table stores the information of 3 tables using 3 block RAMs,
Be written corresponding information into table by software, hardware according to the count value of local_mrtr, accurately generate corresponding event and
Interrupt signal.TPU allocation list provides the allocation list under normal cp and extend cp both of which respectively under LTE mode, firmly
Part automatically switches 2 tables according to CP mode, and according to the value of MRTR+offset, can provide for each symbol of a frame
Event triggering.
TPU hardware supports mixing CP pattern switching under LTE mode, also supports list CP mode.If not configuring switching,
TPU can be always worked under normal cp or extend cp mode, if switching is determined by software completely.TPU configuration
Each in table includes the control signal and symbol bias internal interrupted, each in table includes GPIO control signal and GPIO sublist index
Address.
4th step, data to be sent are written in the BUFFER of uplink transmission unit 302, next to be sent out to handle
The data sent.
5th step is passed through the data in BUFFER by MRTR value accurate timing and radio frequency control word resolution unit 310
Radio frequency is sent.
(2) for downlink reception, TPU accurate timing is only needed to take out number respectively downlink subsystems module
According to handling, the process of event table registration downlink event is described below in detail:
The first step selects operating mode, i.e., selects in LTE/WCDMA/TD-SCDMA one such as multimode terminal
Working method.
Second step adjusts the MRTR time of the side UE by time reference unit 306, so that UE and network side frame boundaries are kept
Unanimously, the second step that specifically adjustment process and uplink are sent is identical, and details are not described herein again.
Third step, by event table unit 308, by the event registration for needing to respond in current downlink data to event table
In, specific registration process is identical with the third step that uplink is sent, and details are not described herein again.
4th step, according to MRTR value accurate timing and radio frequency control word resolution unit 310, by radio frequency reception to data delay
The BUFFER being stored in downlink reception unit 304.
5th step sends interrupts to processor when arriving constantly according to the event in event table, executes corresponding interrupt
Processing routine, from the BUFFRR access in downlink reception unit 304 according to being handled.
It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions
It is executed in computer system, although also, logical order is shown in flow charts, and it in some cases, can be with not
The sequence being same as herein executes shown or described step.
In conclusion according to the abovementioned embodiments of the present invention, providing the data processing method and dress of a kind of multimode terminal
It sets.Through the invention, by the MRTR of multimode terminal be adjusted to the network side frame boundaries consistent time under current network standard,
The event that data to be processed need to respond is registered in event information, then according to the event in MRTR value and event information at
Manage above-mentioned data, wherein event information is that the various network formats that multimode terminal is supported are general, and multimode terminal is in its support
Multiple network standard in when switching, the MRTR of the terminal is adjusted, implementation method is simple, and software maintenance is easier to.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
Be performed by computing device in the storage device, perhaps they are fabricated to each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific
Hardware and software combines.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.