[summary of the invention]
The technical problem to be solved in the present invention is to provide a kind of baseband processing module of receiver to realize positioning with the broadcasting framing signal, and the baseband processing module of its receiver can be realized positioning with the broadcasting framing signal.
The present invention is achieved in that a kind of baseband processing module realization of receiver positions with the broadcasting framing signal, described receiver comprises the RF tuner, analog to digital converter, baseband processing module, separate locating module, map and subscriber interface module, described RF tuner will be broadcasted the location radiofrequency signal and will be converted to baseband signal, and the baseband processing module that the digital signal data that described baseband signal is converted to broadcasting location through analog to digital converter inputs to receiver partly handled, described receiver baseband processing module is by utilizing DMA (direct memory access unit) that digital signal data is carried out transfer process, digital signal data transmission Interrupt Process flow process and Base-Band Processing algorithm main flow are realized;
The described DMA of utilization carries out transfer process to digital signal data: the digital signal data of importing in Base-Band Processing is to store by the memory space that DMA moves processor inside to, described memory space is divided into identical two of size, and the digital signal data that receives circulation is stored in this two memory spaces; When the transfer of data of a monoblock memory space is finished, DMA can produce one and finish interruption, the processor of triggering receiver is carried out described digital signal data transmission Interrupt Process flow process this blocks of data is handled, and simultaneously, new biography is input into the storage of coming and arrives another piece memory space;
Described digital signal data transmission Interrupt Process flow process concrete steps are as follows:
Step 11, the stable sign of definition AGC (automatic gain control), sign, frame synchronization that the frame synchronization data are ready to complete are finished sign, essence and are caught the sign that executable sign, frame head data are ready to complete; Earlier transmission is interrupted counting to digital signal data, judges the whether set of the stable sign of AGC, if past step 16 is jumped in not set; If set enters step 12;
Step 12, judge whether the frame synchronization of described Base-Band Processing algorithm main flow is finished, then do not enter step 13, otherwise jump toward step 14 if finish;
Step 13, judge the data of the frame synchronization of described Base-Band Processing algorithm main flow are prepared whether to finish, if finish then the required data of frame synchronization in the digital signal data of described input are not imported in the data space of frame synchronization, whether the synchronous required data of judgment frame are ready to complete once more, if the required data of frame synchronization are ready to complete, the sign set that described frame synchronization data are ready to complete;
Step 14, judge the data whether the frame head symbol is arranged in the digital signal data of described input,, then directly enter step 15 if do not have; If have then the data of frame head symbol imported in the frame head data memory space, and judge whether the data of frame head symbol are ready to complete, and are ready to complete the sign set that then described frame head data is ready to complete, and enter step 15;
Step 15, judge in the digital signal data of described input whether have the essence of described Base-Band Processing algorithm main flow to catch needed data, if then directly do not enter step 17; According to smart frequency expansion sequence of catching emitter ID institute respective path in the tabulation essence is caught needed data and carry out despreading and handle if having then, and import the result of despreading into data space that the essence in the corresponding footpath of corresponding emitter is caught, judge that essence catches needed data and whether be ready to complete, be ready to complete the essence of then essence being caught the corresponding emitter respective path in the data structure array and catch executable sign set, enter step 17;
Step 16, after the adjustment number of times of AGC counting arrives the fixed value that sets in advance, the sign set that AGC is stable enters step 17;
Step 17, interrupt the value of count value when being the fixed value that sets in advance when the transmission of described digital signal data through being converted to, input data in this piece memory space are carried out the statistics of energy, the thresholding that makes it and expect compares, if greater than the thresholding upper limit of expectation, with the past ditty of the gain of RF tuner; If less than the lower limit of expected range, then the gain of RF tuner is transferred toward big; If within the scope of expectation, do not need the gain of RF tuner is adjusted; Judge the whether set of the stable sign of AGC, if set does not then need inferior counting number that AGC is adjusted; Enter step 18;
Step 18, count value is interrupted in digital signal data transmission compare, just digital signal data is transmitted the zero clearing of interruption count value more than or equal to the frame end count value if count value is interrupted in the digital signal data transmission with the frame end count value; Described frame end count value is that the pairing digital signal data transmission of next frame frame head starting point data interruption count value subtracts 1, count down to this value to the zero clearing of digital signal data transmission interruption count value, interrupt count value and be 0 to guarantee the pairing digital signal data transmission of each frame frame head starting point data.
Described Base-Band Processing algorithm main flow concrete steps are as follows:
The hardware components of step 21, initialization receiver and baseband processing module part;
The sign that step 22, the described frame synchronization data of inquiry are ready to complete, if identifying not set then inquires about this sign always, the call frame synchronized algorithm carries out frame synchronization after this sign set; Described frame synchronization algorithm is in order to determine the start position of frame; If on frame synchronization is not synchronous, then empty the sign that described frame synchronization data are ready to complete, and counting zero clearing, repeating step 22 interrupted in the digital signal data transmission; If in the frame synchronization success synchronously, then frame synchronization is carried out initialization to the count value relevant with frame structure after finishing sign set, the described count value relevant with frame structure comprises which data is count values of frame head in the digital signal data that is used to refer to input, which data is count values that essence is caught the data that need, and the starting point of frame data and end point are in the count value of which position; And calculate rough frequency deviation, enter step 23.
Step 23, to slightly catching slightly catching tabulation, carrying out essence and catch that the essence of processing is caught tabulation, initialization is carried out in the tracking tabulation of following the tracks of processing of processing in the receiver Base-Band Processing, enter step 24.
Step 24, judge the whether set of sign that described frame head data is ready to complete, be ready to complete that the sign that frame head data is ready to complete resets, call thick acquisition algorithm and catch slightly to described that emitter ID slightly catches in the tabulation up to frame head data; Thick acquisition algorithm is estimated the energy that the pairing spreading code of broadcast transmission device ID carries out code phase, multipath and each footpath, and is compared with desired value; To add essence greater than the emitter ID of threshold value and catch tabulation, and this emitter ID will be removed from catching tabulation, enter step 25 afterwards; If there is not the path greater than threshold value to exist, and essence is caught tabulation and the tracking tabulation all is empty, then empties the sign that described frame synchronization data are ready to complete, and jumps to step 22, carries out frame synchronization again;
Step 25, essence is caught the pairing path of emitter ID in the tabulation judge that essence catches desired data and whether be ready to complete, if smart catch required data and be ready to complete and then carry out essence and catch, essence caught emitter ID carries out meticulous frequency offset estimating in pairing path in the tabulation, this path added follow the tracks of tabulation, and this emitter ID caught the tabulation from essence remove; Jump to step 26;
Step 26, the path that the emitter ID that follows the tracks of in the tabulation is existed are carried out the code phase of carrier phase and spreading code and are followed the tracks of, solve delay inequality, the signal to noise ratio parameter of the broadcasting framing signal of the text of broadcasting framing signal transmission, the emission of different emitter, and the track loop of judging carrier phase and code phase losing lock whether; If the path of all tracking of emitter is losing lock all, then the ID of this emitter is removed from follow the tracks of tabulation, and add and slightly catch tabulation, enter step 27 afterwards.
Step 27, the parameter that tracking is obtained are passed to and are separated locating module, jump to step 24;
The parameter that described digital signal data obtains after the baseband processing module section processes is separated the location by separating locating module, described parameter is follows the tracks of the parameter that obtains, to separate positioning result and show, thereby realize the function of location by map and subscriber interface module.
The present invention has following advantage: the baseband processing module part of traditional receiver is realized by utilizing DMA that digital signal data is carried out transfer process, digital signal data transmission Interrupt Process flow process and Base-Band Processing algorithm main flow, rather than the simple chip that passes through is realized, can satisfy requirement to low-power consumption and real-time, can adjust making amendment of algorithm easily again and optimize, be beneficial to upgrading and upgrade to meet the different needs.The present invention can be easy to existing broadcasting receiver is changed a social system, and makes it increase positioning function, has shortened the time that broadcasting location receiver product is released.Low cost of manufacture of the present invention, it is high and take the problem of communication resources to efficiently solve GPS locate mode of the prior art and portable terminal locate mode cost.
[embodiment]
With reference to shown in Figure 2, a kind of baseband processing module of receiver is realized positioning with the broadcasting framing signal, described receiver comprises the RF tuner, analog to digital converter, baseband processing module, separate locating module, map and subscriber interface module, described RF tuner will be broadcasted the location radiofrequency signal and will be converted to baseband signal, and the baseband processing module that the digital signal data that described baseband signal is converted to broadcasting location through analog to digital converter inputs to receiver partly handled, described receiver baseband processing module is by utilizing DMA that digital signal data is carried out transfer process, digital signal data transmission Interrupt Process flow process and Base-Band Processing algorithm main flow are realized;
The described DMA of utilization carries out transfer process to digital signal data: the digital signal data of importing in Base-Band Processing is to store by the memory space that DMA moves processor inside to, memory space is divided into identical two of size, and the input datacycle is stored in this two memory spaces; When a monoblock transfer of data was finished, DMA can produce one and finish interruption, triggers processor combine digital signal data transmission Interrupt Process flow process this blocks of data is handled, and simultaneously, new biography is input into the storage of coming and arrives another piece memory space;
Described digital signal data transmission Interrupt Process flow process concrete steps are as follows:
Step 11, the stable sign of definition AGC, sign, frame synchronization that the frame synchronization data are ready to complete are finished sign, essence and are caught the sign that executable sign, frame head data are ready to complete; Earlier transmission is interrupted counting to digital signal data, judges the whether set of the stable sign of AGC, if past step 16 is jumped in not set; If set enters step 12;
Step 12, judge whether the frame synchronization of described Base-Band Processing algorithm main flow is finished, then do not enter step 13, otherwise jump toward step 14 if finish;
Step 13, judge the data of the frame synchronization of described Base-Band Processing algorithm main flow are prepared whether to finish, if finish then the required data of frame synchronization in the digital signal data of described input are not imported in the data space of frame synchronization, whether the synchronous required data of judgment frame are ready to complete once more, if the required data of frame synchronization are ready to complete, the sign set that described frame synchronization data are ready to complete;
Step 14, judge the data whether the frame head symbol is arranged in the digital signal data of described input,, then directly enter step 15 if do not have; If have then the data of frame head symbol imported in the frame head data memory space, and judge whether the data of frame head symbol are ready to complete, and are ready to complete the sign set that then described frame head data is ready to complete, and enter step 15;
Step 15, judge in the digital signal data of described input whether have the essence of described Base-Band Processing algorithm main flow to catch needed data, if then directly do not enter step 17; According to smart frequency expansion sequence of catching emitter ID institute respective path in the tabulation essence is caught needed data and carry out despreading and handle if having then, and import the result of despreading into data space that the essence of corresponding emitter respective path is caught, judge that essence catches needed data and whether be ready to complete, be ready to complete the essence of then essence being caught the corresponding emitter respective path in the data structure array and catch executable sign set, enter step 17;
Step 16, after the adjustment number of times of AGC counting arrives the fixed value that pre-sets, the sign set that AGC is stable enters step 17;
Step 17, interrupt after the value of count value through being converted to be the fixed value that pre-sets when the transmission of described digital signal data, input data in this piece memory space are carried out the statistics of energy, the thresholding that makes it and expect compares, if greater than the thresholding upper limit of expectation, with the past ditty of the gain of RF tuner; If less than the lower limit of expected range, then the gain of RF tuner is transferred toward big; If within the scope of expectation, do not need the gain of RF tuner is adjusted; Judge the whether set of the stable sign of AGC, if set does not then need inferior counting number that AGC is adjusted; Enter step 18;
Step 18, count value is interrupted in digital signal data transmission compare, just digital signal data is transmitted the zero clearing of interruption count value more than or equal to the frame end count value if count value is interrupted in the digital signal data transmission with the frame end count value; Described frame end count value is that the pairing digital signal data transmission of next frame frame head starting point data interruption count value subtracts 1, count down to this value to the zero clearing of digital signal data transmission interruption count value, interrupt count value and be 0 to guarantee the pairing digital signal data transmission of each frame frame head starting point data.
Described Base-Band Processing algorithm main flow concrete steps are as follows:
The hardware components of step 21, initialization receiver and baseband processing module part;
The sign that step 22, the described frame synchronization data of inquiry are ready to complete, if identifying not set then inquires about this sign always, the call frame synchronized algorithm carries out frame synchronization after this sign set; Described frame synchronization algorithm is in order to determine the start position of frame; If on frame synchronization is not synchronous, then empty the sign that described frame synchronization data are ready to complete, and counting zero clearing, repeating step 22 interrupted in the digital signal data transmission; If in the frame synchronization success synchronously, then frame synchronization is carried out initialization to the count value relevant with frame structure after finishing sign set, the described count value relevant with frame structure comprise be used to refer to the input data in which data are count values of frame head, which data is count values that essence is caught the data that need, the starting point of one frame data and end point are in the count value of which position and calculate rough frequency deviation, enter step 23.
Step 23, to slightly catching slightly catching tabulation, carrying out essence and catch that the essence of processing is caught tabulation, initialization is carried out in the tracking tabulation of following the tracks of processing of processing in the receiver Base-Band Processing, enter step 24.
Step 24, judge the whether set of sign that described frame head data is ready to complete, be ready to complete that the sign that frame head data is ready to complete resets, call thick acquisition algorithm and catch slightly to described that emitter ID slightly catches in the tabulation up to frame head data; Thick acquisition algorithm is estimated the energy that the pairing spreading code of broadcast transmission device ID carries out code phase, multipath and each footpath, and is compared with desired value; To add essence greater than the emitter ID of threshold value and catch tabulation, and this emitter ID will be removed from slightly catching tabulation, enter step 25 afterwards; Do not exist if having greater than the path of threshold value, and essence to catch tabulation and follow the tracks of tabulation all be sky, then empty the sign that sign that described frame synchronization data are ready to complete and frame synchronization are finished, jump to step 22, carry out frame synchronization again;
Step 25, essence is caught the pairing path of emitter ID in the tabulation judge that essence catches desired data and whether be ready to complete, if smart catch required data and be ready to complete and then carry out essence and catch, essence caught emitter ID carries out meticulous frequency offset estimating in pairing path in the tabulation, this path added follow the tracks of tabulation, and this emitter ID caught the tabulation from essence remove; Jump to step 26;
Step 26, the path that the emitter ID that follows the tracks of in the tabulation is existed are carried out the code phase of carrier phase and spreading code and are followed the tracks of, solve delay inequality, the signal to noise ratio parameter of the broadcasting framing signal of the text of broadcasting framing signal transmission, the emission of different emitter, and the track loop of judging carrier phase and code phase losing lock whether; If the path of all tracking of emitter is losing lock all, then the ID of this emitter is removed from follow the tracks of tabulation, and add and slightly catch tabulation, enter step 27 afterwards.
Step 27, the parameter that tracking is obtained are passed to and are separated locating module, jump to step 24;
The parameter that described digital signal data obtains after the baseband processing module section processes is separated the location by separating locating module, described parameter is follows the tracks of the parameter that obtains, to separate positioning result and show, thereby realize the function of receiving broadcast signal and location by map and subscriber interface module.
Frame synchronization among the present invention and rough frequency offset estimating can be finished with frame synchronization in the baseband processing method of original broadcast singal and frequency offset estimating algorithm, slightly catch, essence is caught and follow the tracks of can be with slightly catching in the baseband processing method of GPS software receiver, essence is caught and track algorithm is finished.Separating locating module can realize with the geometry location method among the GPS, can be that disclosed localization method is realized in 101977172 with the Chinese invention patent application publication number also.Map and subscriber interface module can be realized with map and subscriber interface module that existing GPS receiver uses.
The invention will be further described below in conjunction with specific embodiment.
As shown in Figure 3, be the frame structure schematic diagram of broadcast singal CMMB (China Mobile multimedia broadcasting), its per 1 second is 1 frame, is divided into 40 time slots, and the length of each time slot is 25ms, comprises 1 beacon and 53 OFDM symbols, and bit rate is 10M.The structure of beacon comprises identification signal of transmitter (TXID) and 2 identical synchronizing signals as shown in Figure 4, and the length of TXID is 36us, and the length of a synchronizing signal is 204.8us.
The broadcasting framing signal is 511 a Gold sign indicating number of stack on the CMMB signal, bit rate is 5M, the Gold sign indicating number of stack is to repeat in the cycle with time slot (25ms), its structure chart in time slot as shown in Figure 5, wherein, harbour part (136us) is removed original C MMB signal (being the preceding 100us of TXID and first synchronizing signal), has only the Gold sign indicating number, and the CMMB signal energy of signal energy and back is suitable; Superimposed code partly keeps original CMMB signal, and the signal energy of the Gold sign indicating number of stack is lower than harbour 20db.The Gold sign indicating number of harbour part is modulated text with BPSK, and the duration of every bit text is 50ms; The superimposed code part is not modulated text.The Gold sign indicating number always has 20 groups, its ID numbering from 0 to 19.
With reference to shown in Figure 2, a kind of baseband processing module of receiver is realized positioning machine with the broadcasting framing signal, described receiver comprises the RF tuner, analog to digital converter, baseband processing module, separate locating module, map and subscriber interface module, described RF tuner will be broadcasted the location radiofrequency signal and will be converted to the baseband signal of being made up of homophase (I) component and quadrature (Q) component, described analog to digital converter is a twin-channel analog to digital converter, TCXO sampling clock sample conversion with 20M is I, the digital signal that the Q two-way is respectively 8 bit bit wides inputs to the baseband processing module of receiver and partly handles, and described receiver baseband processing module part is by utilizing DMA that digital signal data is carried out transfer process, digital signal data transmission Interrupt Process flow process and Base-Band Processing algorithm main flow are realized;
The described DMA of utilization carries out transfer process to digital signal data: the digital signal data of importing in Base-Band Processing is to store by the memory space that DMA moves processor inside to the form of an I road signal and a common Word of composition of Q road signal (representing 2 bytes), memory space is divided into the data space of two 1024Word, and the input datacycle is stored in this two memory spaces; When one 1024 number reportedly is totally lost into, DMA can produce one and finish interruption, trigger processor combine digital signal data transmission Interrupt Process flow process this blocks of data is handled, simultaneously, new biography is input into next storage in the memory space of another piece 1024Word;
Described digital signal data transmission Interrupt Process flow process concrete steps are as follows:
Step 11, elder generation add 1 to digital signal data transmission interruption counting DataTransIsrCnt (representing the definition of counting variable parameter, down together), judge whether the stable sign AgcStableFlag of AGC is True, if False jumps past step 16 again; If True enters step 12;
Whether step 12, the sign FrameSyncReadyFlag that is ready to complete by the judgment frame synchrodata are that True judges whether the frame synchronization of described Base-Band Processing algorithm main flow is finished, if Flase then enters step 13, for Ture then jumps toward step 14;
Step 13, judge the data of the frame synchronization of described Base-Band Processing algorithm main flow are prepared whether to finish.According to the required data of the algorithm principle frame synchronization of frame synchronization is 510000 data, judge whether the data number FrameDataCnt that imports in the frame synchronization memory space arrives 510000, if no show is then imported the required data of frame synchronization in the digital signal data of described input in the data space of frame synchronization into, and FrameDataCnt added 1024, judge once more whether FrameDataCnt arrives 510000, if more than or equal to 510000, the sign FrameSyncDataReadyFlag that described frame synchronization data are ready to complete is changed to True, and with the FrameDataCnt zero clearing;
Step 14, judge the data whether the frame head symbol is arranged in the digital signal data of described input,, then directly enter step 15 if do not have; If have then the data of frame head symbol imported in the frame head data memory space, and judge whether the data of frame head symbol are ready to complete, and are ready to complete the sign FrameHeadDataReadyFlag that then described frame head data is ready to complete and are changed to True, enter step 15;
The concrete grammar of judging the data whether the frame head symbol is arranged in the digital signal data of described input is as follows: the end block that counting DataTransIsrCnt and frame head are interrupted in the digital signal data transmission is counted HeadEndBlkNum and is compared, if smaller or equal to HeadEndBlkNum, then thinking has the data of frame head in this piece; Need judge that the data that begin wherefrom in this data block are the data of frame head according to the StartBlkIndex that counts of the skew in the frame head original position piece for first blocks of data (be digital signal data transmission interrupt counting DataTransIsrCnt equal at 0 o'clock); Need judge in this data block that the data of front are the data of frame head wherefrom according to the EndBlkIndex that counts of the skew in the frame head end position piece for last blocks of data when equaling HeadEndBlkNum (be DataTransIsrCnt); Otherwise thinking does not have the data of frame head in this piece.
Judge that the concrete grammar whether data of frame head symbol be ready to complete is as follows: as DataTransIsrCnt during more than or equal to FrameEndBlkNum, the data of frame head are and are ready to complete.
Step 15, judge in the digital signal data of described input whether have the essence of described Base-Band Processing algorithm main flow to catch needed data, if then directly do not enter step 17; If have then and data carried out the despreading processing according to smart path of catching the pairing passage of tabulation, and with the result of despreading import into the essence of the corresponding emitter respective path data space of catching, judge that essence catches needed data and whether be ready to complete, be ready to complete the essence of then essence being caught the corresponding emitter respective path in the data structure array and catch executable sign FineAcqDataReadyFlag and be changed to True (its essence is caught has the essence of a plurality of different emitter respective path to catch executable sign in the data structure array), enter step 17;
It is similar to judge that the essence whether described Base-Band Processing algorithm main flow is arranged in the digital signal data of described input is caught the method for the data that judge whether the frame head symbol in the concrete grammar of needed data and the preceding step 14, DataTransIsrCnt and smart starting block of catching required data number and end block number are compared, if between this two number, then thinking has essence to catch needed data.
The despread data that essence is caught is unit with the millisecond, and when despreading and count down to the data of 1024ms, then the essence in respective channel path is caught needed data and is ready to complete.
Step 16, that whether the adjustment time counting number AgcAdjustCnt that judges AGC arrives 200 (predefined values) is inferior, if arrive 200, then that AGC is stable sign AgcStableFlag is changed to True.Enter step 17;
Step 17, interrupt counting DataTransIsrCnt to 8 complementations when the transmission of described digital signal data, remainder is (can also use method for distinguishing herein at 7 o'clock, not necessarily 8 complementations are controlled), the data of the input in this piece memory space are carried out the statistics of energy, the thresholding that makes it and expect compares, if greater than the thresholding upper limit of expectation, with the duty ratio of PWM (pulse width modulation) toward step-length of ditty so that the gain of RF tuner toward ditty; If less than the lower limit of expected range, then the duty ratio of PWM is transferred a step-length so that the gain of RF tuner is transferred toward big toward big; If within the scope of expectation, do not need the duty ratio of PWM is adjusted; And judge whether the stable sign AgcStableFlag of AGC is True, if False then needs the number of times AgcAdjustCnt that AGC adjusts is added 1; Enter step 18;
Step 18, count value DataTransIsrCnt is interrupted in digital signal data transmission and frame end count value FrameEndCnt compares, if digital signal data transmission interrupt count value DataTransIsrCnt more than or equal to frame end count value FrameEndCnt just to the DataTransIsrCnt zero clearing, and to the indication frame structure those variablees (comprise which data is frame heads, which data is data that essence is caught to be needed, frame end count value etc.) carry out assignment again according to the relation of frame structure and data block length;
Described Base-Band Processing algorithm main flow concrete steps are as follows:
The hardware components and the baseband processing module part of step 21, initialization broadcasting location receiver.Described hardware components initialization comprise 1024 data of the every transmission that enables, is provided with DMA that the enabling of RF tuner, RF tuner receive the initialization of the required pulse width modulation (PWM) of setting, the RF tuner gain controlling of frequency, AD analog to digital converter trigger once interrupt, the DMA transmission is interrupted enables; The initialization of described baseband processing module part comprises that the stable sign AgcStableFlag of initialization AGC is False, the number of times AgcAdjustCnt that AGC adjusts is 0, the sign FrameSyncDataReadyFlag that the frame synchronization data are ready to complete is False, data number FrameDataCnt in the frame synchronization memory space puts 0, it is False that frame synchronization is finished sign FrameSyncReadyFlag, it is False that the essence that essence is caught all paths in the data structure array is caught executable sign FineAcqDataReadyFlag, the sign FrameHeadDataReadyFlag that frame head data is ready to complete is False, it is 0 that counting DataTransIsrCnt is interrupted in the digital signal data transmission, frame end count value FrameEndCnt is 10000000 (for guaranteeing can not count down to the frame end count value before frame synchronization is finished);
Step 22, judgment frame synchrodata are ready to complete whether sign FrameSyncDataReadyFlag is True, if this is designated False and then inquires about this sign always, the call frame synchronized algorithm carries out frame synchronization after this is designated True; If frame synchronization synchronously on, then putting the frame synchronization data, to be ready to complete sign FrameSyncDataReadyFlag be False, and counting DataTransIsrCnt assignment is interrupted in the digital signal data transmission is 0, repeating step 22.If in the frame synchronization success synchronously, then the sign FrameSyncReadyFlag that finishes of frame synchronization is set to True, those variablees (comprise which data is frame heads, which data is data that essence is caught to be needed, frame end count value etc.) to the indication frame structure carry out assignment; And utilize the rough frequency deviation of data computation of the slot length that frame synchronization uses, enter step 23 afterwards;
Step 23, catch tabulation FineAcqList to slightly catching tabulation CoarsAcqList, essence, follow the tracks of tabulation TrackList and carry out initialization, slightly catching list initialization is 0 to 19, and essence is caught tabulation and followed the tracks of list initialization for empty; Enter step 24;
Step 24, judge whether the sign FrameHeadDataReadyFlag that described frame head data is ready to complete is True, be designated this sign of True up to this and be set to False, and emitter ID slightly catches among the tabulation CoarsAcqList to slightly catching to call thick acquisition algorithm; Thick acquisition algorithm is estimated the energy that the pairing spreading code of broadcast transmission device ID carries out code phase, multipath and each footpath, and is compared with desired value; To add essence greater than the emitter ID of threshold value and catch among the tabulation FineAcqList, and this emitter ID will be removed from slightly catch tabulation CoarsAcqList, enter step 25 afterwards; If there is not path to exist greater than threshold value, and essence is caught tabulation and followed the tracks of tabulation all is empty, it is False that the sign FrameSyncReadyFlag that frame synchronization finishes then is set, it is False that the sign FrameSyncDataReadyFlag that the frame synchronization data are ready to complete is set, jump to step 22, carry out frame synchronization again;
Step 25, essence is caught the emitter ID pairing path of tabulation among the FindAcaList judge that essence catches desired data and whether be ready to complete, essence catch the essence in all paths in the data structure array whether catch executable sign FineAcqDataReadyFlag be that True finishes by judging, if True then carries out meticulous frequency offset estimating to this path, this path added follow the tracks of among the tabulation TrackList, and this path caught the tabulation FineAcqList from essence remove; Jump to step 26;
Step 26, the path that the emitter ID that follows the tracks of among the tabulation TrackList is existed are carried out the code phase of carrier phase and spreading code and are followed the tracks of, solve delay inequality, the signal to noise ratio parameter of the broadcasting framing signal of the text of broadcasting framing signal transmission, the emission of different emitter, and the track loop of judging carrier phase and code phase losing lock whether; If the path of all tracking of emitter is losing lock all, then the ID of this emitter is removed from follow the tracks of tabulation TrackList, and add and slightly catch among the tabulation CoarsAcqList, enter step 27 afterwards.
Step 27, the parameter that tracking is obtained are passed to and are separated locating module, jump to step 24;
The parameter that the digital signal data of described input obtains after the baseband processing module section processes is separated the location by separating locating module, described parameter is follows the tracks of the parameter that obtains, to separate positioning result and show, thereby realize the function of receiving broadcast signal and location by map and subscriber interface module.
The above only is preferred embodiment of the present invention, and all equalizations of being done according to the present patent application claim change and modify, and all should belong to covering scope of the present invention.