CN1384631A - Decode driving method for base station modem chip - Google Patents

Decode driving method for base station modem chip Download PDF

Info

Publication number
CN1384631A
CN1384631A CN01112836A CN01112836A CN1384631A CN 1384631 A CN1384631 A CN 1384631A CN 01112836 A CN01112836 A CN 01112836A CN 01112836 A CN01112836 A CN 01112836A CN 1384631 A CN1384631 A CN 1384631A
Authority
CN
China
Prior art keywords
task
decoding
chip
csm
drives
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN01112836A
Other languages
Chinese (zh)
Other versions
CN1219376C (en
Inventor
沈弘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CNB011128364A priority Critical patent/CN1219376C/en
Publication of CN1384631A publication Critical patent/CN1384631A/en
Application granted granted Critical
Publication of CN1219376C publication Critical patent/CN1219376C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The decode driving method includes creating all RTOS jobs and initialization to establish voice channel; turning on the decoder driver of corresponding CSM chip to renew the job state; dispatching job to decode; turning off the decoder driver of corresponding CSM chip to renew the job state; and releasing voice channel. By the method of the present invention, for a CEM hardware platform with 24 CSM chips, the CPU occupany may reach about 70 % when all the chips have established voice channel. The present invention results in raised resource utilization and makes system ever stable and effective.

Description

A kind of realization base station modem chip decoding method of driving
The present invention relates to a kind of code division multiple access (Code Division Multiple Access, CDMA) in the mobile communication system to base station modem (Cell Site Modem, CSM) chip a kind of method of decoding.
For cdma system, in base station modem CSM chip, the spread-spectrum signal sampling by antenna searches by the processing of despreading, deinterleaving, decodes backward channel (comprising access channel and reverse traffic channel) data by viterbi decoder at last.(Channel ElementModule CEM) provides the driving function that the CSM chip is decoded to Channel Elements process software module, guarantees to read decoded backchannel data in per 20 milliseconds of decoded data registers from the CSM chip.The CEM module run on real time operating system (Real Time Operating System, RTOS) on, this RTOS should be (as the pSOSystem operating system of Integrated Systems company) of multitask preemptive type.In this operating system, task is executable least unit, and it participates in the competition to system resource, comprises CPU, internal memory, communication port or the like.The scheduling of task and switching are finished by operating system nucleus, and this scheduling and switching will take certain CPU time.Generally have a plurality of CSM chips on the hardware platform of CEM, the example of the corresponding CDMA Channel of each chip, promptly the CEM module is a kind of software module of many examples.Like this, each CSM chip just corresponding the task of RTOS.When a plurality of CSM chips all are activated in various channel mode of operations, will exist a plurality of RTOS tasks in the system, scheduling between these tasks and switching will consume a large amount of CPU times.
Mentioning in the laid-open U.S. Patents 5511067, the decoding that each CDMA backward channel activates drives the corresponding CSM chip of example.In other words, when based on RTOS operating system, the decoding of each CSM chip drives corresponding RTOS task.Require reverse traffic channel to guarantee that per 20 milliseconds receive a reverse traffic Frame in the cdma system.When setting up speech channel, the time of reception of each CSM chip generally is assigned as far as possible with respect to time difference on 20 milliseconds of borders (being called frame biasing FRAME OFFSET, is 1.25 milliseconds integral multiple, and minimum is 0, is 20/1.25-1=15 to the maximum) and has nothing in common with each other.Like this, when all CSM chips all have speech channel to activate, in any one 20 milliseconds of time, the pairing RTOS task of each CSM chip all will be scheduled and once block (because the signal that it is waited for does not arrive) then, particularly the CSM core number on the hardware platform of CEM more for a long time, the switching between a plurality of tasks and scheduling will reduce the operational efficiency of system significantly.
The objective of the invention is in order to overcome the shortcoming that above-mentioned a plurality of CSM chips of the prior art (particularly more than 16) cause inefficiency,, make system's operation more stable, more efficient by a kind of decoding method of driving is provided.
In order to achieve the above object, key is to reduce task scheduling and switches the CPU time that is consumed.Because the number of CSM chip is unfixing, might also can increase, if still adopt the method for the corresponding RTOS task of a chip, obviously, task number and scheduling are consumed continue to increase.And the number of considering frames biasing in each 20 milliseconds of time is (being 20/1.25=16) of fixing, and CSM chip receiving data frames is finished on the time border of these frames biasings exactly.Therefore,, then in 20 milliseconds, will dispatch 16 tasks at most if each frame biasing only activates a RTOS task, and no matter how many numbers of CSM chip is.
Based on above-mentioned thought, the present invention proposes a kind of method that in base station modem CSM chip, drives decoding: may further comprise the steps: create all RTOS task and initialization, set up speech channel with static task; The decoding of opening corresponding CSM chip drives the updating task state; Scheduler task is decoded; The decoding of closing corresponding CSM chip drives, and the updating task state discharges speech channel then.
Use the present invention, can improve the resource utilization of CPU, for the CEM hardware platform that 24 CSM chips are arranged, when all chips all were established speech channel, the occupancy of CPU was about 70%, and did not adopt when inventing, even if having only 16 CSM chips, CPU usage is near 100%.
Be described in further detail below in conjunction with the enforcement of accompanying drawing technical scheme.
Fig. 1 is the general flow chart of the method for the invention.
Fig. 2 is the flow chart that each static decoding drives task initialization.
Fig. 3 specifies the CSM chip to open the flow chart that decoding drives.
Fig. 4 is the workflow diagram of each task.
Fig. 5 specifies the CSM chip to close the flow chart that decoding drives.
Basic thought of the present invention is, promptly creates 16 RTOS tasks in system initialisation phase, a frame biasing in corresponding 20 milliseconds of each task, and each task has a counter and a CSM chip tabulation; Described counter is used to be recorded in the number of the CSM chip that this frame biasing activates, and the numbering of these CSM chips is deposited to tabulation.
The method of the invention is divided into following steps: at first need each static decoding driving task (S101) of initialization; Open the decoding driving (S102) of corresponding CSM chip by setting up speech channel then, make the CSM chip enter the operating state (S103) of timing decode; Decode at last (being that speech channel discharges) behind the end-of-job, the decoding of closing corresponding CSM chip drives (S104).
During beginning, owing to also be established without any speech channel, so the value of counter is zero, and tabulating is sky.Though each task is created, also just be in suspended state, do not move and can not be assigned with any CPU time.When setting up speech channel, decoding drives and is opened, setover according to the frame that is distributed and to activate corresponding RTOS task, the Counter Value of this task adds 1, and corresponding C SM chip number is added tabulation, unimpeded as long as speech channel keeps then, when arrived in this frame offset time border at every turn, this task all can be scheduled and carry out the reception of backchannel data frame.When finishing speech channel, the task counter subtracts 1, and with the deletion from tabulation of corresponding C SM chip number.If the value of this hour counter is zero, decoding drives and is closed, and next speech channel is still set up in this frame biasing, otherwise this task can not be scheduled again.
Fig. 2 is a flow chart of creating the corresponding static state decoding driving task of each frame biasing.Reset the earlier state (S202) of task of this flow process is created 16 RTOS tasks (S203) with frame biasing (from 0 to 15) successively then, and is started this 16 tasks (S204).Wherein creation task and initiating task are all finished by the corresponding system call of RTOS.
Each frame biasing task creation and start after, wait for " opening decoding drives " signal immediately, the mode of wait for as long as this signal less than with regard to Beyond.And in system initialisation phase or when not conversing, this signal can not be sent out, so these tasks can not dispatched by RTOS, does not promptly take CPU running time.
Fig. 3 has represented to specify the CSM chip to open the flow process (S102) that decoding drives.This flow process is a parameter with CSM chip number (being the CEM instance number), and the pattern (S301) of having specified decoding to drive.If this designated mode is invalid, then finish this flow process, otherwise, read the frame biasing (S302 that this appointment CSM chip is set up by the equipment I/O function that calls bottom, before upper layer application began once to open the flow process of decoding driving, the frame biasing of corresponding CSM chip was set up).Then this CSM chip number is added into this frame and setovers in the chip tabulation of pairing RTOS task, unison counter adds 1 (S303).Be set at the CSM chip (S304) behind the decoding schema of appointment, whether the Counter Value of judging corresponding RTOS task is greater than 0 and task be not activated as yet (promptly also not receiving " opening decoding drives " signal), in this way, then sending " opening decoding drives " signal (S306) to this task makes it to be dispatched by RTOS to activate this task.
Fig. 4 has shown the workflow of each RTOS task, and their task main body function is biased to parameter with frame.
Each task is after being created and starting, and at first decoding interrupt signal time boundary value (S401) is calculated in biasing according to frame, begins to wait for " opening decoding drives " signal (S402) then immediately, and waiting mode is a Beyond.In this case, each task all is in unactivated state, and Counter Value is zero, and the chip tabulation is for empty.Have only when upper layer application is opened the operation that the decoding of certain CSM chip drives, this CSM chip frame is setovered pairing RTOS task just can be because receiving " opening decoding drives " signal be activated (S404), thereby also can be operated system call.
Owing to will guarantee that on reverse traffic channel per 20 milliseconds receive a Frame, therefore need the notice time block to increase a decoded frame and interrupt sideband signal (S405), this boundary value is the result who calculates among the S401.This task waits for that with certain time limit " closing decoding drives " signal or decoded frame interrupt sideband signal (S406) then.
If receive " closing decoding drives " signal (S407), then this task comes back to unactivated state (S408), also the timing signal that adds time block in S405 to be removed (S409) simultaneously, forward to then and continue Beyond " opening decoding drives " signal (S402); Interrupt sideband signal (S410) if receive decoded frame,, successively the decoded data of each the CSM chip in the tabulation is handled (S411), continue then to wait for one of above-mentioned two kinds of signals with the same time limit then by calling equipment I/O function that bottom provides; Because each RTOS task is static the establishment, and is in operation (but being not always to be scheduled) state always, so all end never of each task main body, unless whole system is reset.
" closing decoding drives " signal of RTOS reception that task is waited for is by upper layer application calling interface function when discharging speech channel, just sends under meeting some requirements.For upper layer application, only be concerned about the decoding corresponding to discharges speech channel drives whether can cancel activation, whether also cancel activation then and be indifferent to as for the RTOS task.And, will at once transition between states be " un-activation " whether still to be scheduled in the back thereby influence the RTOS task in case the RTOS task has received " closing decoding drives " signal at bottom.
Fig. 5 shown and closed the flow process that decoding drives, and it represents that promptly upper layer application closes the flow process that decoding drives time institute's calling interface function, but not cancellation activates the RTOS task as described in Figure 4.Upper layer application at first reads the frame biasing (S501) that this appointment CSM chip is set up by the equipment I/O function that calls bottom, then this CSM chip is deleted from the chip tabulation of this corresponding RTOS task of frame biasing institute, and the unison counter value subtracts 1 (S502).If this moment, the Counter Value of corresponding RTOS task equalled zero and task is in state of activation, then send " closing decoding drives " signal (S504) to this task, for the RTOS task, just should change S408 over to this moment, state becomes " un-activation ", can not dispatched by RTOS again.Thereby, upper layer application drives to corresponding RTOS task transmission " opening decoding drives " signal, just this task can be dispatched once more by RTOS unless opening decoding once more.

Claims (5)

1, a kind of realization base station modem chip decoding method of driving is characterized in that, may further comprise the steps:
Create all RTOS task and initialization, set up speech channel; (S101)
The decoding of opening corresponding CSM chip drives the updating task state; (S102)
Scheduler task is decoded; (S103)
The decoding of closing corresponding CSM chip drives, and the updating task state discharges speech channel then.(S104)
2, realization base station modem chip decoding method of driving as claimed in claim 1 is characterized in that all RTOS tasks (S101) of described establishment comprising:
The state of task is resetted (S202), create 16 RTOS tasks (S203) with frame biasing (from 0 to 15) successively then, and start this 16 tasks (S204).
3, realization base station modem chip decoding method of driving as claimed in claim 1 is characterized in that, described decoding of opening corresponding CSM chip drives (S102) and comprising:
With the CSM chip number is parameter, the pattern (S301) of specifying decoding to drive; If this designated mode is invalid, then finish this flow process, otherwise,
Read the frame biasing (S302) that this appointment CSM chip is set up by the equipment I/O function that calls bottom;
This CSM chip number is added into this frame setovers in the chip tabulation of pairing RTOS task, unison counter adds 1 (S303);
Be set at the CSM chip (S304) behind the decoding schema of appointment, whether the Counter Value of judging corresponding RTOS task is greater than 0 and task be not activated as yet (S305), in this way, then sending " opening decoding drives " signal (S306) to this task makes it to be dispatched by RTOS to activate this task.
4, realization base station modem chip as claimed in claim 1 decoding method of driving is characterized in that, described scheduler task decode (S103) comprising:
Decoding interrupt signal time boundary value (S401) is calculated in biasing according to frame;
Begin to wait for " opening decoding drives " signal (S402) then immediately, waiting mode is a Beyond; Judge whether the signal that receives is that " opening decodes drives " (S403), as not, then finishes; In this way, then make the CSM chip frame pairing RTOS task be activated (S404) of setovering;
Increase a decoded frame and interrupt sideband signal (S405);
Wait for that with certain time limit " closing decoding drives " signal or decoded frame interrupt sideband signal (S406);
Judge whether to receive " closing decoding drives " signal (S407); In this way
Make this task come back to unactivated state (S408), the timing signal that adds time block in S405 to is removed (S409), forward S402 then to;
As not receiving " closing decoding drives " signal, then judge whether as not, then to return S406 into decoded frame interrupts sideband signal (S410);
Successively the decoded data of each the CSM chip in the tabulation is handled (S411), return S406 then.
5, realization base station modem chip as claimed in claim 1 decoding method of driving is characterized in that, describedly closes decoding and drives (S104) and comprising:
Read the frame biasing (S501) that specified CSM chip is set up;
Then this CSM chip is deleted from the chip tabulation of the corresponding RTOS task of this frame biasing institute, the unison counter value subtracts 1 (S502);
Whether the Counter Value of judging corresponding RTOS task equals zero and task is in state of activation (S503), as not, then finishes;
This task sends " closing decoding drives " signal, makes this task status become " un-activation "; (S504) finish.
CNB011128364A 2001-04-30 2001-04-30 Decode driving method for base station modem chip Expired - Lifetime CN1219376C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB011128364A CN1219376C (en) 2001-04-30 2001-04-30 Decode driving method for base station modem chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB011128364A CN1219376C (en) 2001-04-30 2001-04-30 Decode driving method for base station modem chip

Publications (2)

Publication Number Publication Date
CN1384631A true CN1384631A (en) 2002-12-11
CN1219376C CN1219376C (en) 2005-09-14

Family

ID=4659584

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB011128364A Expired - Lifetime CN1219376C (en) 2001-04-30 2001-04-30 Decode driving method for base station modem chip

Country Status (1)

Country Link
CN (1) CN1219376C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8161276B2 (en) 2006-07-21 2012-04-17 Sony Service Centre (Europe) N.V. Demodulator device and method of operating the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8161276B2 (en) 2006-07-21 2012-04-17 Sony Service Centre (Europe) N.V. Demodulator device and method of operating the same

Also Published As

Publication number Publication date
CN1219376C (en) 2005-09-14

Similar Documents

Publication Publication Date Title
CN101382833B (en) System and electronic device having multiple operating systems and operating method thereof
CN100517236C (en) Intelligent card embedded operation system and its control method
US9372729B2 (en) Task scheduling method and apparatus
CN101160559B (en) Reducing power by shutting down portions of a stacked register file
EP1789874A2 (en) Method and system for concurrent excution of mutiple kernels
CN1327349C (en) Task level resource administration method for micro-kernel embedded real-time operation systems
JPH06119300A (en) Method and apparatus for scheduling multiprocessor system
CN111200541B (en) Network data processing method and device
CN102855156A (en) Interrupt controller and interrupt controlling method
US5627888A (en) Telecommunication system for handling basic and supplementary functions
US20030008690A1 (en) Synchronizing power conservation modes
CN1219376C (en) Decode driving method for base station modem chip
WO2008017489A1 (en) Fine grain os scheduling
CN100589594C (en) The timing of software timer and control method
CN103136045A (en) Dispatching method and device of virtualization operating system
CN1426215A (en) Call processing system adapted for application server and its realizing method
CA2017608A1 (en) Method and apparatus for managing tasks
CN108304257A (en) Hard real time hybrid tasks scheduling method based on Delay Service device
CN1323351C (en) Method for implementing a flow state machine
CN100531039C (en) Method for implementing client system state machine using database
EP1365322A1 (en) Improvements relating to computer programs
CN101136766B (en) Task scheduling method for telecommunication network management system
CN101707653A (en) Intelligent mobile terminal of single processor and realizing method thereof
CN1154378C (en) Process for treating middle or high traffic load in intelligent mobile network
CN101141435B (en) Scheduling system and message processing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20050914