BACKGROUND OF THE INVENTION
1. Field of the Invention
The invention relates generally to navigation systems and more specifically to methods and apparatus in global positioning system (GPS) devices that accelerate initial GPS satellite signal acquisition and reacquisition.
2. Description of the Prior Art
Global positioning system receivers use signals received from typically three or more overhead satellites to determine navigational data such as position and velocity. Such systems may also provide altitude and time. GPS signals are available worldwide at no cost and can be used to determine the location of a vehicle, such as a car or truck, to within one city block, or better. Dual-frequency carrier GPS receivers typically track a pair of radio carriers, L1 and L2, associated with the GPS satellites, to generate accumulated delta-range measurements (ADR) from P-code modulation on those carriers and at the same time track L1 coarse acquisition code (C/A-code) to generate code phase measurements. Carrier L1 is positioned at 1575.42 MHz and carrier L2 is positioned at 1227.78 MHz. Less expensive receivers tune only one carrier frequency, and therefore cannot compute for themselves the local ionospheric delays that will appear as position errors. At such carrier frequencies, radio carriers travel by line-of-sight.
The constellation of GPS satellites in orbit about the earth comprises individual satellites that each transmit a unique identifying code in a code multiple access arrangement (CDMA). This allows the many GPS satellites to all transmit in spread spectrum mode at the same frequency (plus or minus a Doppler shift of that frequency as results from the satellite's velocity). Particular satellites are sorted out of the jumble of signals and noise by correlating a 1023 "chip" code to a set of predefined codes that are matched to individual GPS satellites. These codes can be out of phase with one another. Therefore, "finding" a GPS satellite initially involves searching various carrier frequencies, to account for Doppler shift and oscillator inaccuracies, and search for a code match, using 1023 different code phases and twenty or more code templates.
In large cities with many tall buildings, one or more of the GPS satellites a particular receiver may be tracking can be temporarily blocked. When the GPS signal reappears, the Doppler frequency may be different than before and code phase may have drifted. Therefore a delay in gathering useful information will be experienced while the GPS receiver re-establishes lock.
A receiver that had a lock on a GPS satellite signal and lost the lock can use information about the satellite gathered during lock to predict what carrier frequencies and code phases are most likely to re-establish lock. Such predictions may be used to constrain a search and therefore takes less time to conduct the search.
SUMMARY OF THE PRESENT INVENTION
It is therefore an object of the present invention to provide a system and method for accelerating code correlations by conducting code and code phase searches at faster than real-time rates.
It is another object of the present invention to provide a system and method for using GPS satellite ephemeris data and code phase gathered while a receiver has a lock of a GPS satellite signal to constrain and thus speed up a new search conducted to re-establish lock once lock has been broken.
Briefly, a preferred embodiment of the present invention is a GPS system with accelerated search capability comprising a GPS receiver, a correlation code accelerator, a code correlator and GPS processor. The correlation code accelerator samples detected signals from the GPS receiver and writes the samples to a memory. The memory then supplies the samples at a rate two times the rate that they were gathered to the code correlator. The code correlator is such that code and code phase searches are conducted at two times the real-time transmission rate of a GPS satellite. Once lock is obtained, Doppler, code, code phase and ephemeris data are stored by the GPS processor. If lock is lost, past code phase and Doppler are projected forward in time using ephemeris and other relevant GPS satellite knowledge to constrain a new search to re-establish lock.
An advantage of the present invention is that it provides a system and method of accelerating an initial locking-on to GPS satellite signals.
Another advantage of the present invention is that a system and method is provided that reduce the time delay to re-establish GPS signal lock.
These and other objects and advantages of the present invention will no doubt become obvious to those of ordinary skill in the art after having read the following detailed description of the preferred embodiments which are illustrated in the various drawing figures.
IN THE DRAWINGS
FIG. 1 is a block diagram of a GPS receiver system embodiment of the present invention;
FIG. 2 is a functional block diagram of the code chip accelerator and RAM of the system of FIG. 1;
FIG. 3 is pin-out diagram of the code chip accelerator and RAM of the system of FIG. 1 as implemented in a commercially available electronically programmable logic device; and
FIG. 4 is a flowchart of a PRN code chip acceleration process embodiment of the present invention.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT
FIG. 1 illustrates a GPS receiver system embodiment of the present invention, referred to by the general reference numeral 10. System 10 comprises a global position system (GPS) downconverter 12, a pseudo random number (PRN) code chip accelerator 14, a GPS digital signal processor (DSP) 16, a microcomputer 17, a 16K-byte static random access memory (SRAM) 18, and a temperature compensated crystal oscillator (TCXO) 20. An antenna 22 is connected to an input of GPS downconverter 12.
In operation, a plurality of radio frequency (RF) carrier signals from GPS satellite vehicles (SVs) are received by antenna 22 and input to GPS downconverter 12. Such signals are allocated to be 1575.42 MHz for carrier signal L1 and 1227.78 MHz for carrier signal L2. In order to acquire and track a particular GPS SV, GPS downconverter 12 is operated to find a Doppler influenced GPS carrier frequency. GPS DSP is operated to find an associated code division multiple access (C/A) code phase from the GPS SV. Typically, a search will cover a range of frequencies, a range that can be widened by local oscillator uncertainties when first starting up. A range of 1023 code phases will be searched by GPS DSP 16, chip-by-chip, until a signal from the expected GPS SV is found. If the expected GPS SV is not found, C/A codes for other likely candidates are tried. This search is carried out by mixing a received signal with various local oscillator frequencies in a super-heterodyne fashion and correlating a detected signal with a trial C/A code that is predicted to be valid for the locale.
The code correlation interval is conventionally one millisecond, which is the periodicity of the C/A code. After an initial detection of a GPS signal, a phase lock loop is used to help bring it in to a full tracking condition. The success of the phase lock loop and the phase lock loop delay are dependent upon bringing the signal close enough to a pseudo-baseband via a carrier numerically controlled oscillator (NCO), and being close enough to an actual peak in C/A code phase. After a satellite signal is acquired, lock may be temporarily lost due to some physical obstruction between the receiver and the satellite, e.g. the user drives by a very tall building. Rather than resuming a search over a range of code phases, it is possible to use information from the last lock to predict the new code phase. This makes for fast re-acquisition once the obstruction is out of the way. However, such concerns and their solutions are conventional and well documented in the background art which a person skilled in the art will be conversant. Therefore, further details of the GPS downconverter 12 and GPS DSP 16 are unnecessary here.
PRN code chip accelerator 14 doubles the speed at which GPS DSP 16 can search through the PRN codes from the GPS SVs. Essentially, PRN codes at the normal rate of 1023 chips per millisecond are embedded in an intermediate frequency output (IF OUT) signal 24 produced by GPS downconverter 12. For a six-channel GPS receiver, GPS DSP 16 can produce one correlation value for each channel, each millisecond. Initially, the PRN code phase will be unknown, since the code phase itself is one of the objects of the search to obtain a first fix. Therefore, the IF OUT signal 24 is digitally sampled by PRN code chip accelerator 14 at a fast enough rate to guarantee that no PRN code information will be lost by the sampling process. A rate of 1023 chips per millisecond is 1.023 MHz. Since TCXO 20 outputs a reference frequency of 10.34 MHz, half of that frequency, or 5.17 MHz would allow a sampling rate of a little more than five samples per chip. Other sample rates can be used, and the present invention is not limited to any one particular sample rate. However, at a rate of 5.17 MHz, 5170 single-bit samples will be collected each millisecond. The number 5170 is evenly divisible by five, e.g., 1034. Therefore, it is convenient to store the collected samples in five bit words. The present invention is not limited to five bit words, other word sizes are appropriate and useful, especially at sampling rates other than 5.17 MHz.
PRN code chip accelerator 14 then converts a 5.17 MHz stream of serial one-bit samples into parallel words of five bits and stores each five-bit word as it is converted into a memory storage address within SRAM 18. For example, the first such five-bit word is stored at address zero within SRAM 18. The second such five-bit word is stored at the next address, address one. Each new five-bit word will be ready to store every 1023+5 chip periods, or 4.887 microseconds. PRN code chip accelerator 14 sequences SRAM 18 through 1034 addresses and then selects a new page of 1034 addresses by toggling an address line A11. Therefore, each page will store 5170 samples, or one millisecond worth of data. To support an output (2XIF) at twice the normal IF rate, a page of 5170 samples is read out twice serially to GPS DSP 16 in a single millisecond. That is a rate of 10.34 MHz.
The so-called epoch in the PRN code occurs every millisecond in real-time. An epoch will occur in both memory PAGE A and PAGE B at any of the 5170 samples written at any one of the 1034 addresses used with SRAM 18.
GPS DSP 16 issues a millisecond (MSO) signal that is conventionally provided in background art devices. The MSO signal is related to a time base for a set of correlators that operate within GPS DSP 16. A millisecond (MSEC) signal 26 is input to PRN code chip accelerator 14 to synchronize a readback of the samples stored in SRAM 18 at double the real-time rate. For example, the MSEC signal 26 can be used to reset addresses A0-A10 of SRAM 18 to zero every millisecond, in phase with the correlation of GPS DSP 16. Address All is used to choose between PAGE A and PAGE B. SRAM 18 is sequentially read at 2.068 MHz. Each read produces a five-bit word, therefore 10340 samples per millisecond are output from 2XIF. Each time 5170 samples is completed, an end-of-page (ENDPAGE) signal 28 is output to a millisecond input (MSI) clock of GPS DSP 16. The reading back of the 5170 samples every half of a millisecond is thus phase locked to the correlations occurring within GPS DSP 16.
The MSI clock input is thus fed a half-millisecond clock, two times its normal input. All the correlation operations within GPS DSP 16 are clocked by the MSI input. Therefore, GPS DSP 16 is able to search through the PRN codes looking for correlation peaks at twice the conventional rate. Searches thus require about half the usual time to complete. Each correlation each half millisecond for each of six channels produces an interrupt to microcomputer 17 via a correlation value signal 30. At such rates, microcomputer 17 approaches full utilization and can become CPU-bound at higher correlation value rates.
Although GPS receiver system 10 may be limited to the doubling of PRN code rates by PRN code chip accelerator 14, the present invention is not so limited. Tripling and quadrupling the rates would be feasible if concomitant speed improvements were made in GPS DSP 16 and microcomputer 17.
FIG. 2 shows PRN code chip accelerator 14 is functionally comprised of a serial-in to parallel-out (SIPO) shift register (SR) 40, a bus buffer 42, a bus transceiver 44, an eleven-by-two (11.times.2) multiplexor 46, a parallel-in to serial-out (PISO) shift register (SR) 48, a latch 50, a timing/control unit 52, a read address counter 54 and a write address counter 56. Real-time IF input from GPS downconverter 12 is input to SIPO SR 40 at a serial input port SI. A 5.17 MHz clock from timing/control unit 52 causes SIPO SR 40 to sample and shift the SI port once each cycle. After five cycles have been completed, buffer 42 is enabled by timing/control unit 52 and the five-bit sample word is driven onto a bus 54. Timing/control unit 52 then causes transceiver 44 to send data from bus 54 in the direction of SRAM 18, where it is written. The locations within SRAM 18 that are accessed are controlled by address counter 54 or 56. The MSEC signal input at timing/control unit 52 will basically reset address counters 54 and 56 to zero each millisecond. For every one location in SRAM 18 that is written by the input stream of samples, two word locations are read back out. Every fifth cycle of the 10.34 MHz input clock will cause timing/control unit 52 to turn transceiver 44 around to drive data from SRAM 18 onto bus 54. Timing/control unit 52 signals SRAM 18 to do a read operation. Latch 50 is clocked to strobe in the data and hold it for PISO SR 48. The 10.34 MHz clock is used to shift out the samples serially at the 10.34 MHz rate.
FIG. 3 illustrates a pin-out of an integrated circuit that was used to implement PRN code chip accelerator 14. For example, an electronically-programmable logic device (EPLD) can be used. The inventor has used an Altera EPM5128-2 device with good results. SRAM 18 may be a SRM20256LCT12, which is a commercially available memory. Tables I and II summarize the pin-outs of PRN code chip accelerator 14, implemented with the EPM5128-2, and SRAM 18, when implemented with the SRM20256LCT12 memory.
FIG. 4 illustrates a PRN code chip acceleration process 60, which comprises a series of steps 61-73. Step 61 zeroes a digital memory read and write address counters, e.g., counters 54 and 56 (FIG. 2) at beginning of each millisecond period. Step 62 samples a down-converted GPS signal containing PRN code of unknown phase, e.g., IF IN (FIG. 2). Step 63 stores the sample at a first rate in a digital memory, such as SRAM 18 (FIGS. 1 and 2). Step 64 increments the memory write address, e.g., timing/control unit 52 (FIG. 2). Step 65 reads a sample from the digital memory at a second, higher rate, e.g., timing/control unit 52 (FIG. 2). Step 66 increments the memory read address, e.g., timing/control unit 52 (FIG. 2). Step 67 reads a sample from the digital memory at a second, higher rate. Step 68 increments the memory read address. Step 69 output the samples at the second rate to a GPS PRN code correlator, e.g., PISO SR 48 (FIG. 2). Step 70 tests to see if there is an end of the read RAM page, e.g., timing control unit 52 (FIG. 2). Step 71 zeroes the digital memory read address counter 54. Step 72 tests to see if there is an end of the write RAM page, e.g., timing/control unit 52 (FIG. 2). Step 73 outputs ENDPAGE signal to pace the GPS correlator, e.g., timing/control unit 52 (FIG. 2).
EXPERIMENTAL TESTS
Tests were conducted by the inventor to collect data with and without an embodiment of the present invention fitted to an otherwise conventional GPS receiver. The data is repeated here in Tables VI and VII.
In order to acquire a GPS SV, a conventional GPS receiver needs to find the frequency and CDMA code phase of the signal. Typically, a GPS receiver searches over a range of frequencies and code phases until the signal is found. This search is carried out by mixing the received signal with various frequencies and correlating it with local CDMA code. The correlation interval is typically one millisecond, the periodicity of the CDMA code. Usually, this correlation is done with a "live" signal.
The method for fast acquisition of the present invention increases the number of correlations per millisecond, thereby decreasing the total search time, but does not increase the noisiness of the correlations. For instance, correlations can be performed over a 0.5 millisecond interval to double the number of correlations per millisecond, but there would be a relative increase in noise, because of the decreased amount of data used in the correlation.
One method for fast acquisition is to digitize and store in memory a one millisecond recording of the received signal. This data is then "played back" multiple times at a faster rate, allowing multiple correlations to be performed on the same millisecond of received signal. While this data is being played back at the higher rate, the next millisecond of signal may be digitized and stored in memory for later playback. This scheme reduces the time to acquire a satellite signal by the factor of increased playback speed. For example, if the stored data were played back at twice the rate at which it was recorded, the search time would be cut in half.
In system 10 (FIG. 1), the sampled IF data is played back at twice the rate at which it was recorded. The normal IF signal is sampled at 5.17 MHz and 5170 samples are stored in SRAM. The SRAM 18 is partitioned into two pages, "PAGE A" and "PAGE B", each of which hold one millisecond's run of samples, or 5170 samples. Between each write of data to PAGE A, a pair of samples are read out of PAGE B. PAGE B holds the previous millisecond's samples. When PAGE A has filled up with new data, successive samples are written to PAGE B. The two pages switch their roles, with two samples being read out of PAGE A between writes to PAGE B. This gives a continuous flow of output data at two times the normal rate. This signal is referred to as the "2.times.IF". The 2.times.IF is then fed to GPS DSP 16 to be mixed with a local oscillator to move the signal to pseudo-baseband and to correlate it with locally generated CDMA code that is clocked at 2.046 MHz.
A factor of two was chosen for the increase in playback speed. There are two main factors to take into account in deciding the playback rate. (1) GPS DSP 16 must be able to process the data, so the maximum data rate is 25 MHz. Since the data is sampled at 5.17 MHz and an integer factor is desired (to make the hardware simpler), the possible playback rates are 10.34 MHz, 15.51 MHz, and 20.68 MHz. Microprocessor 17 must be able to handle the increased interrupt rate of the channel. It was determined that a two KHz interrupt rate per channel was the maximum that microprocessor 17 could handle. At the two KHz interrupt rate, microprocessor 17 is capable of tracking three channels, but no more. After three channels are being tracked, the interrupt rate must be decreased to one KHz in order to track more satellites.
In order to establish a relationship between the code phase using the 2.times.IF and the corresponding code phase in the normal IF, the read out of the first data sample from the GPS code chip accelerator 14 SRAM is synchronized to the millisecond. While the 2.times.IF is useful for performing twice the number of correlations than normal, it is not useful for tracking because of the carrier phase discontinuity in the 2.times.IF signal. This carrier phase discontinuity occurs because there is a jump in phase between the last data sample and the first data sample in each page in the GPS code chip accelerator 14 SRAM. This problem may be avoided by using the normal IF signal for tracking once power is found using the 2.times.IF.
GPS DSP 16 clock comes from GPS code chip accelerator 14 and may be either 10.34 MHz, for initial acquisition or re-acquisition, or 5.17 MHz, when tracking more than three satellite carrier signals. In order to track more than three satellites, GPS DSP 16 clock is switched from 10.34 MHz to 5.17 MHz. The information from the 10.34 MHz tracking mode is used to quickly re-acquire and track in the 5.17 MHz mode.
When three satellites or less are being tracked in 5.17 MHz mode, GPS DSP 16 clock may be switched back to 10.34 MHz for fast acquisition and fast re-acquisition.
An expected decrease in acquisition time for a number of satellite carrier signals in a conventional GPS receiver with GPS code chip accelerator 14, versus a conventional GPS receiver, is not necessarily a factor of two, because it is necessary to switch the clock for GPS DSP 16 from 10.34 MHz to 5.17 MHz once three satellite carrier signals are being tracked in 10.34 MHz mode. After the frequency is switched, the search rates in a conventional GPS receiver and a conventional GPS receiver with GPS code chip accelerator 14 are about the same. Thus, a conventional GPS receiver with GPS code chip accelerator 14 will find the first three satellite carrier signals in half the time that it takes a conventional GPS receiver. However, additional satellite carrier signals will be found somewhat faster than in a conventional GPS receiver.
To test this, both a conventional GPS receiver and a conventional GPS receiver with GPS code chip accelerator 14 were set up to search for six satellite carrier signals that were known to be in view. A battery-backed up RAM was cleared, and the time to acquire satellite carrier signals from that point was measured. This test was repeated ten times for each, alternating between a conventional GPS receiver and a conventional GPS receiver with GPS code chip accelerator 14. The satellite carrier signals, their signal levels, and Dopplers at the beginning of the test were:
The individual times it took to acquire the satellite carrier signals were recorded. For the conventional GPS receiver alone:
For the conventional GPS receiver with GPS code chip accelerator 14:
This data shows that, for this specific case, the average time for a conventional GPS receiver to get three satellite carrier signals was 14.9 seconds versus 5.8 seconds for a conventional GPS receiver with GPS code chip accelerator 14 (a factor of 2.5). For six satellite carrier signals, a conventional GPS receiver took twenty-four seconds, versus 16.5 seconds for a conventional GPS receiver with GPS code chip accelerator 14 (a factor of 1.5). For the three satellite carrier signals case, the decrease in acquisition time was greater than the expected factor of two. This improvement is due to a decrease in total search time because of a more time-efficient search algorithm that was implemented in the conventional GPS receiver with GPS code chip accelerator 14.
Hardware for a method for fast acquisition was developed and put on a conventional GPS receiver. This hardware consisted of an Altera EPM5128 and a 16K byte SRAM. Due to limited microprocessing power, only a playback rate of two times is feasible, and even then, the GPS DSP 16 clock must be switched from 10.34 MHz to 5.17 MHz after three satellite carrier signals are being tracked to avoid overloading the processor.
The testing showed the improvement in acquisition time for one specific case, down to 5.8 seconds from 14.9 seconds for three satellite carrier signals, and down to 16.5 seconds from 24 seconds for 6 satellite carrier signals.
Fast Re-acquisition Technique
A fast re-acquisition strategy may be successfully employed on otherwise conventional GPS receivers. After a GPS receiver acquires a satellite signal, it may temporarily lose lock due to some physical obstruction between the receiver and the satellite, e.g. the user drives by a very tall building. Rather than resuming a search over a range of code phases, it is preferable to use information from a last lock to predict a new code phase. This makes for fast re-acquisition once an obstruction is out of the way. This strategy may be combined with the fast acquisition methods described herein in a conventional GPS receiver. This may be useful when using a system in a car driven in an urban environment. Often, satellite signals are obstructed by buildings, but they are available for a short time while passing through an intersection.
Assuming that a receiver, such as receiver 10, is in 5.17 MHz mode, once less than three satellite carrier signals are being tracked, the receiver preferably reconfigures itself for fast acquisition by switching the GPS DSP 16 clock back to 10.34 MHz. It sets the carrier NCO to the value for which re-acquisition is expected. The CDMA code phase is also moved to the appropriate position for re-acquisition. A narrow code search is performed, searching plus or minus ten chips from the predicted code phase. Every thirteen milliseconds, a new predicted CDMA code phase is calculated and the center of the narrow code phase search is moved to that new phase. This code phase adjustment is based on the Doppler frequency of the last lock and is commonly known as "Doppler aiding." At some point, the receiver 10 should give up the narrow code search, so if after one minute, a signal is not found, a wide code phase search takes over.
To test this fast re-acquisition strategy, a conventional GPS receiver and a conventional GPS receiver with GPS code chip accelerator 14 and fast re-acquisition, such as receiver 10, were driven through a downtown area. Each unit had its own antenna, mounted on the roof of a car. Data was logged using a CMT data logger set up to log two-dimensional or three-dimensional positions every second and raw measurements every 9999 seconds (nearly three hours). Raw measurements were not taken because the CMT data logger would have difficulty obtaining both the measurement data and position data.
During the road test, three satellite vehicles (SV's) were up: "4", "15" and "25". With only three SV's, there can be no constellation changes, since there is only one constellation that can give a position. Therefore no more than three SV's can be tracked, which leaves ample time for position calculations.
Over a ten minute test, a conventional GPS receiver without GPS code chip accelerator 14 and fast re-acquisition missed seven positions at times where the conventional GPS receiver with GPS code chip accelerator 14 and fast re-acquisition was able to get positions. There were eight periods when both missed positions. The durations of these outages varied from one to eight seconds. An example of this log data follows. Table VI is from the log of the conventional GPS receiver and Table VII is from the conventional GPS receiver with GPS code chip accelerator 14 and fast re-acquisition.
There were times at which positions were logged by the conventional GPS receiver with GPS code chip accelerator 14 and fast re-acquisition, but not by a conventional GPS receiver. The satellite signals were occasionally being obstructed by buildings and a conventional GPS receiver with GPS code chip accelerator 14 and fast re-acquisition was able to re-acquire the signal and log a position more quickly than the conventional GPS receiver.
The use of the narrow code search gives the bulk of the gain in fast re-acquisition. The use of GPS code chip accelerator 14 in a narrow code search actually has a negative effect. The gain of performing a narrow code search at 10.34 MHz versus 5.17 MHz is minimal, yet there is all the overhead of the switch from 10.34 MHz to 5.17 MHz once the signals are found. This overhead more than wipes out the small gain. Thus, re-acquisition time using a narrow code search would be smaller without the use of GPS code chip accelerator 14.
A narrow code search strategy for fast re-acquisition was implemented on a conventional GPS receiver, but it was conducted at 10.34 MHz. In fact, it would have been faster if it were done at 5.17 MHz. A road test suggested that there are gains to the fast re-acquisition strategy in an urban environment. A narrow code search without the use of GPS code chip accelerator 14 would have been more effective.
Although the present invention has been described in terms of the presently preferred embodiments, it is to be understood that the disclosure is not to be interpreted as limiting. Various alterations and modifications will no doubt become apparent to those skilled in the art after having read the above disclosure. Accordingly, it is intended that the appended claims be interpreted as covering all alterations and modifications as fall within the true spirit and scope of the invention.