Embodiment
Fig. 1 is mixed type global location (GPS) system block diagrams of a preferred embodiment of the present invention, wherein, GPS receiving trap 10 comprises radio-frequency (RF) front-end circuit 12, relevance circuit 13, detection (acquisition) engine 14 and interface control unit 16.Antenna 11 receives a plurality of gps satellite signal from a plurality of gps satellite, and radio-frequency (RF) front-end circuit 12 performs Simulation scale-up, frequency reducing, simulation to actions such as digital conversion, to be converted to digital baseband signal to gps satellite signal.Relevance circuit 13 is according to those digital baseband signals, perform a plurality of relevant (correlation) computing, detection engine 14 is according to the power level of the result detection reception gps satellite signal of those related operations, relevance circuit 13 and detection engine 14, through recursive operation repeatedly, pick out a plurality of gps satellites launching those gps satellite signals.In GPS, each gps satellite has unique spreading codes (spreading code, as C/A code (Coarse/Acquisitioncode)), inside be contained in the gps satellite signal launched separately, and relevance circuit 13 and detection engine 14 produce the important information of gps satellite through recursive operation repeatedly, comprise important parameter code groove (code bin), frequency slots (frequency bin), navigation data, raw data and local system time.Relevance circuit 13 can utilize yard groove and frequency slots and each digital baseband signal to perform related operation respectively; Detection engine 14 performs detection and satellite tracking signal, to lock the signal of effective gps satellite.Navigation data comprises the satellite information of picked out gps satellite, as year calendar (almanac) and ephemeris (ephemeris), uses for during follow-up positioning.Preferably, pick out at least four gps satellites, its satellite signals launched just can be utilized to position.
GPS receiving trap 10 is controlled by the control of main frame 18 through interface control unit 16, the GPS intermediate data that GPS receiving trap 10 can be produced, comprise important parameter code groove (code bin), frequency slots (frequency bin), navigation data (navigation data), raw data (raw data) and local system time, be optionally sent to main frame 18 via transmission interface 17; And main frame 18 operates through the hardware of interface control unit 16 control GPS receiving trap 10.Main frame 18 comprises existing microprocessor 180 and memory storage 182.The middle data of GPS that microprocessor 180 can be sent here according to demand during running and according to transmission interface 17, position (position) computing, the code groove produced according to GPS receiving trap 10 and frequency slots parameter, control GPS receiving trap 10 carries out detecting and/or following the trail of running, code groove and frequency slots parameter are very important parameter, its degree of accuracy has influence on the accuracy of follow-up location, for example, the degree of accuracy of code groove is wished at ± 1/2 chip (chip), and the degree of accuracy of frequency slots is at ± 500 hertz (Hz), according to the framework of Fig. 1, by the control of main frame 18, GPS receiving trap 10 is operated and arrives desired degree of accuracy, then, microprocessor 180 is transferred to position computing, by navigation data and the local system time of the GPS intermediate data of believable (reliable), measure the distance between GPS receiving trap 10 to each identification gps satellite, and accurately locate according to measurement result, even test the speed, navigate or timing etc.When memory storage 182 provides microprocessor 180 to operate, required storage area and microprocessor 180 carry out measuring computing and the firmware storage area needed for positions calculations, such as random access memory (RAM), ROM (read-only memory) (ROM) or flash memory.
By the framework of Fig. 1, GPS receiving trap 10 can with the resource of main frame 18 share host 18, as microprocessor 180 and internal memory 182, to perform accurate location, and can hardware cost be saved.In other words, the resource of main frame 18 is not specialized in GPS object and is used, and can have other different purposes along with the design of main frame 18 itself.For example, main frame 18 can be portable electronic devices, and such as but not limited to mobile phone, personal digital assistant (PDA) or mobile computer etc., and microprocessor 180 and internal memory 182 are this assembly had of this portable electronic devices.It is relevant greatly that GPS receiving trap 10 utilizes the relevance circuit 13 of hardware and detection engine 14 to perform operand, detection and the running of satellite tracking signal recurrence, significantly can reduce the transmitted data amount between GPS receiving trap 10 and main frame 18, therefore transmission interface 17 can use the low-speed bidirectional transmission interface that general microprocessor 180 adopts, such as but not limited to serial peripheral interface (Serial PeripheralInterface, be called for short SPI), UART Universal Asynchronous Receiver Transmitter (Universal AsynchronousReceiver/Transmitter, be called for short UART) interface, (Inter-IntegratedCircuit between integrated circuit, be called for short I2C) interface, GPIO or direct memory access (Direct Memory Access, be called for short DMA) interface etc., therefore, the framework of Fig. 1 can be applicable to multiple different microprocessor platform, and reach desirable setting accuracy.
Preferably, microprocessor 180 sends via transmission interface 17 and controls signal to interface control unit 16, with the running of control GPS receiving trap 10, for example, control the running of signal control GPS receiving trap 10, such as start or stop the running of GPS receiving trap 10, or order GPS receiving trap 10 enters or leaves sleep state.
Fig. 2 is the detailed circuit diagram of global location (GPS) receiving trap 200 according to a preferred embodiment of the present invention, and GPS receiving trap 200 comprises radio-frequency (RF) front-end circuit 220, relevance circuit 230, detection engine 240 and interface control unit 260.Antenna 210 receives a plurality of gps satellite signal from a plurality of gps satellite, and radio-frequency (RF) front-end circuit 220 pairs of gps satellite signals perform Simulation scale-up, frequency reducing, simulation to actions such as digital conversion, to be converted to digital baseband signal Sin.Relevance circuit 230, according to digital baseband signal Sin, performs related operation, and detection engine 240 through recursive operation repeatedly, picks out gps satellite according to the result of related operation.Relevance circuit 230 comprises correlator 232 and pseudo-random code generator (pseudo random codegenerator) 234, pseudo-random code generator 234 receiving code groove, frequency slots parameter, to provide the pseudo-random code of correspondence (also known as coarse adjustment acquisition code, C/A code) perform related operation for correlator 232 couples of baseband signal Sin, preferably, GPS receiving trap 200 comprises a plurality of identical relevance circuit 230 to carry out relevance computing respectively to a plurality of gps satellite signal.In this embodiment, the received power of detection engine 240 explorer satellite signal on frequency domain, detection engine 240 comprises 64 Fu Li leaf converters 242, power calculator 244, totalizer (accumulator) 246 and threshold value detector (threshold detector) 248, the result of the related operation that relevance circuit 230 produces is sent Fu Li leaf converter 242 to and is carried out Fu Liye conversion, so that the result in time domain of related operation is converted to frequency domain, power calculator 244 by frequency-domain result square to obtain the received power of satellite signals; Whether totalizer 246 can determine activation via enable signal EN1, when activation totalizer 24, the repeatedly power of satellite signals can be added up and improve the received power of weak satellite signal, when forbidden energy totalizer 24, then detection engine 240 calculates the power of single satellite signals; Whether the received power detecting these district's satellite signals through threshold value detector 248 exceedes threshold value, and correlated results is stored in internal memory 250 through memory interface unit 262, such as random access memory, flash memory or static random access memory, and can by the data in direct memory access (DMA) mode quick access internal memory 250, preferably, GPS receiving trap 200 and static random access memory 250 are integrated into integrated circuit (integrated circuit, IC); Interface control unit 260 provides host side (not shown) to access and the operation result observing GPS receiving trap 200, and the operating mode of control GPS receiving trap 200.The circuit framework that the personage knowing this skill can understand according to GPS receiving trap 200 can simplify hardware circuit complexity according to conception of the present invention further, generally speaking, GPS receiving circuit needs Search engine and tracing engine two kinds of independent circuits, and the pinpoint accuracy GPS location needing the Fu Li leaf converter of nearly 2048*2 point just can reach required, the such as degree of accuracy of code groove is wished at ± 1/2 chip, and two kinds of hardware that the degree of accuracy of frequency slots can realize Search engine and tracing engine at the circuit framework of ± 500Hz, GPS receiving trap 200 operate.For example, host side (not shown) operates on seek mode via interface control unit 260 GPS receiving trap 200 of ordering at the beginning, to calculate the satellite signals power of all code grooves and frequency slots, judge whether corresponding satellite signals exist according to the size of satellite signals power, and store code groove and the frequency slots of its corresponding correct satellite signals power; Host side then after the schedule time, reads the code groove of storage via interface control unit 260 and whether frequency slots is correctly believable, within this schedule time, host side can run its work voluntarily, such as main frame is mobile phone, therefore GPS receiving trap 200 and main frame can play its respective maximum operational paradigm, preferably, GPS receiving trap 200 by the running of enable signal EN1 forbidden energy totalizer 246, and finds the code groove of this satellite and the rough position of frequency slots rapidly by the computing of 64 Fu Li leaf converters.When host side judges that code groove and frequency slots are as after correctly believable, GPS receiving trap 200 can be made to operate on tracking pattern via interface control unit 260, for example, GPS receiving trap 200 can by the running of enable signal EN2 forbidden energy detection engine 240, directly utilize the output data of relevance circuit 230 to carry out loop (closed-loop) and finely tune code groove and frequency slots, that is the output of direct bypass (bypass) the relevance circuit 230 of detection engine 240, in other words, because the rough position of code groove and frequency slots to have been grasped roughly by GPS receiving trap 200 in seek mode, with the satellite signals energy branch of down scale mode computing zonule under tracking pattern, the degree of accuracy of such as code groove is at ± 1/2 chip, and the degree of accuracy of frequency slots is in the scope of ± 500Hz, the degree of accuracy of fine setting code groove and frequency slots, the degree of accuracy of further raising satnav, Fig. 3 is that in Fig. 2, GPS receiving trap 200 operates on the cooperatively operating circuits calcspar between loop and microcontroller 310, in above-described embodiment, after seek mode, the degree of accuracy of code groove drops on ± 1/2 chip, and the degree of accuracy of frequency slots is in the scope of ± 500Hz, host side can make GPS receiving trap 200 operate on tracking pattern via interface control unit 260, now, three code slot values representative in ± 1/2 chip range are fed into relevance circuit 230 by microcontroller 310, by the running of enable signal EN2 forbidden energy detection engine 240, make the output of the direct bypass relevance circuit 230 of detection engine 240 and result be stored in internal memory 250, the result of three code slot value institutes computing representative in correspondence ± 1/2 chip range to be got via interface control unit 260 and is also analyzed by microcontroller 310 again, and upgrade code groove and frequency slots parameter, loop operates and pins code groove and frequency slots, the accurate code groove of final generation and frequency slots result.Microcontroller 310 is such as 8051 microprocessors, it should be noted that, according to disclosed embodiment, required microcontroller 310 is that the microcontroller of low order can complete related work, does not need the high-order proprietary processor of prior art.
On the other hand, main frame can via the operating state of interface control unit 260 monitoring GPS receiving trap 200, for example, main frame can regularly via the variance (variance) that interface control unit 260 readout code groove is relevant to frequency slots and, judge the accuracy of this satnav at present, for example, if variation numerical value does not meet standard, such as exceed certain threshold value, then judge that code groove and frequency slots do not meet precise requirements.Further, main frame can make GPS receiving trap 200 operate on out loop (open loop) pattern via interface control unit 260, for example, GPS receiving trap 200 is by the running of enable signal EN2 activation detection engine 240, and by the running of enable signal EN1 activation totalizer 246, loop operating mode can be provided out, this pattern is very beneficial for the faint environment of satellite signals, such as, coffee shop under metropolitan built-up environment, when main frame discover GPS receiving trap 200 positional accuracy not good time, GPS receiving trap 200 can be made to switch to out circuit pattern from tracking pattern via interface control unit 260, can again with the strength distribution of high range mode observe satellites signal, and suitably can set totalizer 246 power accumulative frequency, therefore the station-keeping ability of the faint signal environment of satellite can significantly be promoted.
In this embodiment, GPS receiving trap 200 provides the GPS receiving circuit of simplifying framework, and provide host side by the seek mode of transmission interface 270 control GPS receiving trap 200, tracking pattern and open circuit pattern etc. elasticity and operate, and host side can access the significant data of GPS receiving trap 200 by transmission interface 270 and interface control unit 260, it should be noted that, transmission interface 270 can utilize the transmission interface of low speed to realize the present invention, for example, but be not limited to SPI interface, UART interface, I2C interface, GPIO interface or DMA interface etc.Main frame also can make the relevance circuit 230 of GPS receiving trap 200 export relevance operation result and stores (dump) and read it, that is observes the raw data (raw data) of time domain, judges whether its satellite signals normally receive running.
The circuit framework illustrating further GPS receiving trap 200 can simplify the hardware quantity of Fu Li leaf converter, also can reach the demand of pinpoint accuracy location.Be be achieved with 64 Fu Li leaf converters 242 in this embodiment, but the present invention should do not limited with this.The quantity of Fu Li leaf converter can coordinate the overall hardware structure of GPS receiving trap 200 to be simplified, and is described in detail as follows.Suppose that hope utilizes Nr point Fu Li leaf converter, the degree of accuracy realizing frequency slots is at ± 500Hz, and degree of accuracy ± 1/2 chip of code groove:
Fr=fss/Nr-------------------(formula one)
Fs/Ns=fss/Nss-------------------(formula two)
Nr/N
ss=T-------------------(formula three)
Wherein, fr is frequency resolution, and fss is the sub-sampling frequency in 1 millisecond, fs is the sampling frequency of analog front circuit, and Ns is the number of samples of corresponding sample frequency f s, and Nss is the sub-sampling number of corresponding sample frequency f ss, the time of T then needed for corresponding Nr point number of samples, unit is millisecond.When GPS receiving trap 200 circuit design, the hardware specification of wish can be defined, reach the setting accuracy of wish, for example, have 1024 chips with satnav, the cycle is 1 millisecond, degree of accuracy ± 1/2 chip of code groove, be equivalent to the sampling of Ns=2048 point, sampling frequency fs is 2.048Mhz, frequency resolution fr is 500Hz, Nr represents 64 Fu Li leaf converters, then according to formula one, formula two, formula three, can obtain fss=32Khz, Nss=32 point, T is 2 milliseconds.According to GPS receiving trap 200 circuit of this specifications design, 64 Fu Li leaf converters can be utilized to realize degree of accuracy ± 1/2 chip of code groove, the degree of accuracy of frequency slots is at the setting accuracy of ± 500Hz, and analog front circuit is the data of fs=2.048Mhz to analog signal sampling generation sampling frequency, for example, can utilize fall data that original upper frequency samples by sampler (down converter) (not shown) accurately frequency reducing be the data of the 2.048Mhz wanted, every millisecond produces Ns=2048 sampling, corresponding sub-sampling frequency f ss=32Khz, every millisecond produces sub-sampling number NSS=32 point, representative is under such hardware design framework, every millisecond produces 32 sub-sampling numbers, and Nr=64 point, therefore T=Nr/Nss=2 millisecond just can produce 64 sub-sampling numbers, that is the digital baseband signal Sin data frequency through sampling of GPS receiving trap 200 is fs=2.048Mhz in Fig. 2, and every 1 millisecond of relevance circuit 230 produces 32 sub-sampling relevance results, detection engine 240 can every 2 milliseconds utilize the relevance result of 64 Fu Li leaf converters 242 to 64 time domains to carry out the conversion of frequency domain signal, desired setting accuracy can be reached: degree of accuracy ± 1/2 chip of code groove, the degree of accuracy of frequency slots is at the setting accuracy of ± 500Hz.
The GPS method of reseptance process flow diagram of Fig. 4 system preferred embodiment of the present invention, in step 40, receives a plurality of gps satellite signal; In step 41, those gps satellite signals are converted to digital baseband signal; In step 42, each digital baseband signal and a pseudo-random code are carried out related operation; In step 43, according to the result of those related operations, calculate received power by Fu Liye conversion, to pick out a plurality of gps satellites launching those gps satellite signals; In step 44, produce GPS intermediate data, comprise a yard groove, frequency slots, navigation data, raw data, local system time and gps time; In step 45, in response to a request command, GPS intermediate data is sent to a main frame via transmission interface, transmission interface can be, such as but not limited to, SPI interface, UART interface, I
2c interface or DMA interface.
The above is utilize preferred embodiment to describe the present invention in detail, but not limits the scope of the invention.Know this skill personage all can understand, many may change can be made according to the announcement of above embodiment, still not depart from the spirit and scope of the present invention.