Summary of the invention
The objective of the invention is to propose a kind of double-mode GSM physical layer system and its implementation, realize GSM dual mode data and the bimodulus handling process seamless fusion relevant with TD-SCDMA, technological difficulties when realizing to solve GSM/TD-SCDMA dual mode system digital baseband, and simplify the treatment mechanism of bimodulus, realize GSM and two technology of TD-SCDMA on single central processing unit and deposit.
Technical scheme of the present invention comprises:
A kind of implementation method of double-mode GSM physical layer system, it may further comprise the steps:
The physical layer of A, GSM realizes the deviation between the frame timing between GSM and two different systems of TD-SCDMA by the time processing unit of control GSM inside and the time processing unit of TD-SCDMA inside;
B, under GSM is main pattern, GSM controls to selling the TD-SCDMA system and arranges by oneself the time that task own handles; Under the pattern of GSM subordinate, the TD-SCDMA system can notify GSM the free time time slot by function, and helps GSM to determine following will carrying out of the task of subordinate pattern,
And under the pattern of GSM subordinate, the task that GSM will carry out comprises the following steps of rssi measurement process: B31, TD primary module execution function 11co_td_rssi_meas, and according to registered events ID request for data structure space, the skew of computing time and task starting time, the largest cell number of the interior energy measurement of clearance G AP computing time; B32, activation 11co_td_rssi_frame_tick, this activation realizes by GSM frame interrupt call 11co_td_frame_tick function, thus executing state machine STATE_RSSI_IDLE; STATE_RSSI_WAIT, STATE_RSSI_PREPARE, STATE_RSSI_WAIT_RESULT.
Described method, wherein, described step B also comprises:
B1, under GSM is main pattern, and during idle pulley, provide a free time of determining of calculating, and by message informing TD-SCDMA system.
Described method, wherein, described step B also comprises:
B2, under GSM is main pattern, and GSM is in and inserts or during connection mode, then arrange continuous idle frame to give the TD-SCDMA system.
Described method, wherein, described step B also is included under the pattern of GSM subordinate, the task that GSM will carry out comprises the request process of FCCH/SCH channel: the TD primary module is carried out function 11co_td_fcb_sb_read, and according to registered events ID request for data structure space, the zero-time of computing time skew and task, according to state machine state STATE_FCB_SB_IDLE and incident START_FCB_SEARCH, activation 11co_td_fcb_sb_frame_tick.
Described method, wherein, the process of described activation 11co_td_fcb_sb_frame_tick is called 11co_td_frame_tick by GSM frame terminal, carries out function 11co_td_fcb_sb_frame_tick, and to cell list executing state machine process: STATE_FCB_SB_IDLE successively; STATE_FCB_WAIT; STATE_FCB_PREPARE; STATE_FCB_RESULT, and judge whether FCB reads correct, if then continue to carry out following state machine process: STATE_SB_READ; STATE_SB-WAIT; STATE_SB_PREPARE; STATE_SB_RESULT.
A kind of double-mode GSM physical layer system, it is included in, and to carry out function mutual and carry out the GSM physical layer of interacting message with gsm wireless resource GRR and TD Radio Resource control TRRC with the TD correlation module; Wherein, the setting of described GSM physical layer comprises:
The asynchronous process module is used for interacting message and the processing with the high-rise module of GRR/TRRC, specifically comprises time processing unit and the time processing unit realization GSM of TD-SCDMA inside and the deviation frame timing TD-SCDMA two systems between between of the physical layer of GSM by control GSM inside;
Synchronous processing module, be used for by GSM frame down trigger, and interior work and the task of planning of each GSM frame of handling physical layer, and the relevant TD-SCDMA call function result of processing, specifically comprise: under GSM was main pattern, GSM controlled to selling the TD-SCDMA system and arranges by oneself the time that task own handles; Under the pattern of GSM subordinate, the TD-SCDMA system can notify GSM the free time time slot by function, and help GSM to determine following will carrying out of the task of subordinate pattern, and under the pattern of GSM subordinate, the task that GSM will carry out comprises the following steps of rssi measurement process: B31, TD primary module execution function 11co_td_rssi_meas, and according to registered events ID request for data structure space, the skew of computing time and task starting time, the largest cell number of the interior energy measurement of clearance G AP computing time; B32, activation 11co_td_rssi_frame_tick, this activation realizes by GSM frame interrupt call 11co_td_frame_tick function, thus executing state machine: STATE_RS_SI_IDLE; STATE_RS_SLWAIT, STATE_RS_SI_PREPARE, STATE_RS_SI_WAIT_RESULT;
Hardware drive module is used for the hardware module of gsm system inside is driven, comprising the driving of time processing unit;
The DSP control module is used for the DSP control to the calculation process module of GSM.
Described system, wherein, the driving of described Hardware drive module comprises hardware driving and the low power consumption control that uplink downlink is relevant.
Described system, wherein, the control of described DSP control module comprises interface, task interaction mechanism, interruption and handshake method.
Described system, wherein, the time processing unit of TD-SCDMA system can be triggered by the hardware interrupts rising edge of the time processing unit of gsm system, comes the synchronous and conversion time to the time timing point of deposited two different systems with this.
A kind of double-mode GSM physical layer system provided by the present invention and its implementation; owing to adopted mutual measurement, time synchronized, the interacting message of when bimodulus, realizing between the different service system; the coexistence of different system and can independent operate as normal two time has realized GSM/TD-SCDMA bimodulus mechanism when having made things convenient for bimodulus.
Embodiment
Below in conjunction with accompanying drawing, will be elaborated to preferred embodiment of the present invention.
The GSM physical layer implementation method and the system of bimodulus baseband chip of the present invention, it comprises the bimodulus message data of the control section of GSMDSP and TD-SCDMA protocol stack mutual, and the bimodulus message data reciprocal process of GSM AS layer protocol stack.
Implementation method of the present invention and system have solved following problem: mutual measurement, time synchronized, interacting message during bimodulus between the different system; and how different system coexists during two bimodulus; and the independent operate as normal of difference; and GSM can either work under the GSM single-mode system, problem such as can work under the bimodulus environment again.
The core inventive point of implementation method of the present invention and system is, under the situation that does not influence the GSM single mode, can support dual mode capability on uniprocessor; Extraordinary and TD protocol stack carries out interaction; Time conversion between the different system and alignment; Measurement in the inventive method between the different system, gravity treatment, switch under the support of bottom software change more succinct.
As shown in Figure 1, the GSM side physical layer of bimodulus baseband chip of the present invention represents that with symbol L1G (Layer1 for GSM) it mainly comprises following module:
The asynchronous process module: this module mainly is responsible for interacting message and the work of treatment with gsm protocol stack and TD-SCDMA protocol stack.
Synchronous processing module: this module is by GSM frame down trigger, main be responsible for handling need work and the task planned in each GSM frame of physical layer, and handle the correlation function result that relevant TD-SCDMA calls.
Hardware drive module: the hardware module to gsm system inside drives, drives as time processing unit, and radio-frequency driven, battery-operated, low power consumption control or the like.
DSP control module: be responsible for the DSP of GSM calculation process module is controlled, comprise interface, task interaction mechanism, interruption, handshake method or the like.
In the GSM of bimodulus baseband chip of the present invention physical layer implementation method, GSM Master Mode is meant that handheld terminal is registered in the network of GSM, and the related software of GSM and hardware are in maximized mode of operation; GSM Slave Mode is meant that handheld terminal is registered in the network of TD-SCDMA, and the related software of GSM and hardware are in the minimized mode of operation.
The key point that L1G realizes in the inventive method comprises: 1, time processing unit TPU and the time processing unit TPU of TD-SCDMA inside of the time relationship of GSM and TD-SCDMA: GSM by control GSM inside realizes the deviation of frame between regularly between GSM and two systems of TD-SCDMA.2, GSM Master Mode:GSM is under idle pulley, and that can fix provides the free time of calculating, and by message informing TD-SCDMA, allows the TD-SCDMA system according to arrange by oneself task of this section period itself; When being in access or connection mode, then can arrange continuous idle IDLE frame to give TD-SCDMA, handle so that TD-SCDMA can carry out the task of itself if having time according to actual conditions as GSM.3, GSM Slave Mode:TD-SCDMA system can notify GSM free time time slot GAP by function, and help GSM to determine will carrying out at present of task: rssi measurement (Relative Signal Strength Indicator (relative signal intensity indicating device))/FCCH channel (requency Correction Channel, frequency correction channel, be GSM broadcast channel (broadcast channel, BCCH) part, carry the message that is used to proofread and correct the MS frequency) read/SCH channel (Sync Channel, synchronizing channel (SCH): reading or heavily the confirm information that transmission is carried out synchronously for travelling carriage and the base station is discerned).
Be illustrated in figure 1 as the system architecture schematic diagram that bimodulus of the present invention is realized, physical layer L1G comprises with the relation of each operational module in whole system in the inventive method: carry out interacting message with GRR (GSM Radio Resource) and TRRC (TD Radio Resource Conrtrol); Mutual with the shared drive district of TD correlation module and two systems by function; Wherein the working interface of L1G and GSM DSP needs the data interaction that shared drive carries out ARM and DSP, and has interrupt mechanism to carry out the handshake mechanism control of ARM and DSP, needs the working condition that state flag bit identifies both sides simultaneously.
L1G described in the inventive method and GRR have bimodulus message data mutual, described L1G and TD correlation module have message data mutual, described L1G can control the DSP subsystem of TD indirectly by the function that calls the TD side, and the software code of described L1G is supported the realization of single antenna and double antenna.
In the inventive method two kinds of processing modes are arranged in GSM physical layer L1G:
The one, GSM Slave Mode is the GSM slave mode, promptly when the TD-SCDMA standard is in holding state, the GSM physical layer lays under tribute, at this moment need the related software of TD-SCDMA to call the relevant bimodulus of GSM physical layer, the relevant processing of bimodulus that a newly-increased for this reason channel model is specifically designed to TD-SCDMA is referred to as COTDSCDMA.
Channel model is according to definition and the use of gsm protocol stack to the GSM logic channel, in the application of reality, these regulations is abstracted into channel model one by one, can simplify the realization of GSM physical layer like this.And when bimodulus, for can be,, finish the physical layer function of bimodulus to bimodulus so be that the action that the GSM physical layer need be finished also is abstracted into a channel model with single-mode system is corresponding before, need call corresponding channel model to get final product.
When GSM need handle the inter-related task of TD-SCDMA, GSM physical layer bimodulus channel model COTDSCDMA was activated, and handled the inter-related task of bimodulus then in this channel model, comprising: the 1) rssi measurement of GSM frequency; 2) the frequency calibration channel FCCH's of GSM reads; 3) synchronous channel SCH of GSM read and BSIC (BSIC-definition base station identity code Base Station Identity Code kind comprises PLMN colour coding and BCC.Be used to distinguish different network operators or the identical different districts of same network operator's Broadcast Control Channel frequency) affirmation and heavily confirm etc.
The basic function process example of COTDSCDMA comprises:
Initialization procedure:
void?11co_td_initialise_req(void)
UMTS (Universal Mobile Telecommunications System, meaning is a universal mobile telecommunications system) when doing the initial configuration of measurement, can call this function.
Activation:
void?11co_td_activate_req(void)
The activation primitive of COTDSCDMA when UMTS/TD need do measurement between pattern, promptly can call this function.Realize the configuration of Timer Unit and the skew of time; And following three actions of meeting reset:
11d_ncell_meas_stm_reset(MEAS_CO_TD);
11d_lfcb_stm_reset(FALSE);
11d_sync_stm_reset();
The state machine example of COTDSCDMA is as follows:
typedef?enum
{
CO_STATE_NULL,
CO_STATE_CHANGE_PARAM,
CO_STATE_ACTIVATED_WAIT_FOR_START_FN,
CO_STATE_ACTIVATED_BUSY,
CO_STATE_ACTIVATED_RUNOUT,
CO_STATE_DEACTIVATION
}T_CO_STATE;
In the application of reality, above-mentioned state machine mainly is divided into following a few seed state:
IDLE: this sub-state is a dummy status, does not operate;
WAIT: this sub-state is a wait state, waits for the activation manipulation of oneself;
Prepare: this sub-state is being waited for executable operations for being activated;
BUSY: this sub-state is a task by just in executing state;
Result: this sub-state is for returning the execution result state;
Deactivation process:
void?11co_td_deactivate_req(void)
When time-out or stop mode measurements, can call this function.
The rssi measurement request process of the corresponding TD-SCDMA of GSM comprises TD primary module execution function 11co_td_rssi_meas as shown in Figure 2 in the inventive method, and corresponding implementation: according to registered events ID request for data structure space; The skew of computing time and task starting time; The largest cell number of the interior energy measurement of clearance G AP computing time; Activate 11co_td_rssi_frame_tick.
This activation realizes by GSM frame interrupt call 11co_td_frame_tick function, thus executing state machine: STATE_RSSI_IDLE; STATE_RSSI_WAIT; STATE_RSSI_PREPARE; STATE_RSSI_WAIT_RESULT.
In the inventive method, the measurement request process of the FCCH/SCH signal of the corresponding TD-SCDMA of GSM, as shown in Figure 3, it comprises TD primary module execution function 11co_td_fcb_sb_read, and corresponding implementation: according to registered events ID request for data structure space; The zero-time of computing time skew and task; According to state machine state STATE_FCB_SB_IDLE and incident START_FCB_SEARCH, activate 11co_td_fcb_sb_frame_tick.
This activation is called 11co_td_frame_tick by GSM frame terminal, carries out function 11co_td_fcb_sb_frame_tick, and to cell list executing state machine process: STATE_FCB_SB_IDLE successively; STATE_FCB_WAIT; STATE_FCB_PREPARE; STATE_FCB_RESULT, and judge whether FCB reads correct, if then continue to carry out following state machine process: STATE_SB_READ; STATE_SB-WAIT; STATE_SB_PREPARE; STATE_SB_RESULT.
The 2nd, GSM Master Mode, promptly GSM is a master mode, promptly when the GSM standard was in holding state, the TD-SCDMA physical layer laid under tribute.At this moment the GSM physical layer responds the message of coming from the gsm protocol stack, and relevant acknowledge message is returned to gsm protocol stack or TD-SCDMA protocol stack.
Related news illustrate as follows:
MPH_INTER_RAT_REQ: when the upper strata because autonomous gravity treatment or receive the cell change instruction cell change order of network when causing gravity treatment to arrive the UTRAN sub-district, is informed L1G by this message.After L1G receives, if having only a radio frequency, then deexcitation L1G; If dijection frequently, is not then done any processing.All respond upper strata MPH_INTER_RAT_CNF under two kinds of situations;
MPH_INTER_RAT_CNF: the MPH_INTER_RAT_REQ message on described L1G response upper strata;
MPH_NC_MEAS_REPORT_IND: be used for (UMTS Terrestrial Radio Access Network, Universal Mobile Telecommunications System to GRR report UTRAN.UTRAN is a kind of brand-new Access Network, is the most important a kind of access way of UMTS, and the scope of application is the widest.) measurement result;
ZPS_P_GSM_MEAS_IND: described L1G sends measurement result to URRC (UMTS Radio Resource Control).
In the inventive method, in bimodulus mechanism, two systems better work, and guarantee to be used for doing the reasonable correctness of different system works, need carry out the time synchronized between two different systems of described GSM and TD-SCDMA.
Because the time of the every frame of GSM is 60/13ms, the time of the every frame of TD-SCDMA is 10ms, this shows every 60ms of mistake, and the relation of an integral multiple will inevitably appear in GSM and TD-SCDMA timing.In this time period, the 2G counting is 13 frames, 104 time slots; The TD-SCDMA counting is 6 frames, 90 time slots.Based on this relation, TD-SCDMA can converse the time time slot GAP of GSM very easily, i.e. 13GSM Frames=6TD Frames, as shown in Figure 4.
In the GSM of the inventive method physical layer the i.e. time processing unit [Timer Processing Unit, i.e. TPU] of a hardware cell is arranged.When two different system synchronization of needs, the GSM physical layer triggers TPU and also provides the DSP of sync break to TD-SCDMA, responds this interruptions by the DSP of TD-SCDMA, and carries out the synchronous and time conversion between two systems.
The time processing unit TD TPU of TD-SCDMA can be triggered by the hardware interrupts rising edge of GSM time processing unit GSM TPU in the scheme of the inventive method, comes time timing point and conversion time to deposited both sides with this, as shown in Figure 5.
The GSM physical layer implementation method of bimodulus baseband chip of the present invention and system are by the improvement to the baseband chip physical layer; realized the dual mode capability under a baseband processor; reduce the complexity of cost and software processes, improved the treatment effeciency of dual mode system.
Should be understood that above-mentioned description at preferred embodiment of the present invention is comparatively concrete, can not therefore think the restriction to scope of patent protection of the present invention, scope of patent protection of the present invention should be as the criterion with claims.