<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Signal and noise - GNSS</title><link href="http://www.pmonta.com/" rel="alternate"/><link href="http://www.pmonta.com/feeds/gnss.atom.xml" rel="self"/><id>http://www.pmonta.com/</id><updated>2025-08-17T12:45:00-04:00</updated><subtitle>Peter Monta's projects</subtitle><entry><title>Xona X5 data</title><link href="http://www.pmonta.com/xona-x5-data.html" rel="alternate"/><published>2025-08-17T12:45:00-04:00</published><updated>2025-08-17T12:45:00-04:00</updated><author><name>Peter Monta</name></author><id>tag:www.pmonta.com,2025-08-17:/xona-x5-data.html</id><summary type="html">&lt;p&gt;The 10230-chip Xona X5 data code has been added to my Github repository:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://github.com/pmonta/GNSS-DSP-tools"&gt;https://github.com/pmonta/GNSS-DSP-tools&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The signal is somewhat different from a &amp;quot;normal&amp;quot; GNSS data signal in that each code period has the code shifted by an amount equal to the data symbol sent during that period …&lt;/p&gt;</summary><content type="html">&lt;p&gt;The 10230-chip Xona X5 data code has been added to my Github repository:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://github.com/pmonta/GNSS-DSP-tools"&gt;https://github.com/pmonta/GNSS-DSP-tools&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The signal is somewhat different from a &amp;quot;normal&amp;quot; GNSS data signal in that each code period has the code shifted by an amount equal to the data symbol sent during that period.  Shown below is a plot of the correlation-peak positions over an 800-ms interval:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external image-reference" href="http://www.pmonta.com/uploads/2025/08/xona-X5-data-peaks.png"&gt;&lt;img alt="image-xona-x5-data-peaks" src="http://www.pmonta.com/uploads/2025/08/xona-X5-data-peaks.png" style="width: 100%;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Although the technique of shifting the code is described in one of Xona's patents &lt;a class="footnote-reference" href="#footnote-1" id="footnote-reference-1"&gt;[1]&lt;/a&gt;, this structure still puzzled me for a while.  The first portion of this signal, from the beginning out to 150 ms, has a nearly-repeating structure across four code periods.  This bit of bad luck caused me to wonder: is the data code actually of length 4*10230 chips (4 ms)?  Why would there be such strong correlation peaks at 1 ms offsets within this longer code?  But no, the code is 10230 chips and 1 ms after all, and the apparent 4 ms structure is just the pattern of data at that time (the data being of unknown organization).  Later in the recording, at around 600 ms, we see the data channel being used to its full extent, with apparently random code shifts at each millisecond.&lt;/p&gt;
&lt;p&gt;The span from minimum to maximum of these peak-shifts is about 1746 samples or about 255.3 chips.  So it seems clear that the code is shifted to one of 256 offsets each millisecond, resulting in a data-payload rate of 8000 bits/second.  Theoretically, all 10230 shifts could have been used, resulting in a higher data rate, but perhaps 8 bits is enough (and more convenient than 13 or 13.32 bits).&lt;/p&gt;
&lt;div class="section" id="references"&gt;
&lt;h2&gt;References&lt;/h2&gt;
&lt;table class="docutils footnote" frame="void" id="footnote-1" rules="none"&gt;
&lt;colgroup&gt;&lt;col class="label" /&gt;&lt;col /&gt;&lt;/colgroup&gt;
&lt;tbody valign="top"&gt;
&lt;tr&gt;&lt;td class="label"&gt;&lt;a class="fn-backref" href="#footnote-reference-1"&gt;[1]&lt;/a&gt;&lt;/td&gt;&lt;td&gt;US patent US11899120B2, Figure 16E.  &lt;a class="reference external" href="https://patents.google.com/patent/US11899120B2/en"&gt;https://patents.google.com/patent/US11899120B2/en&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
</content><category term="GNSS"/></entry><entry><title>Xona X1 pilot and data tracking</title><link href="http://www.pmonta.com/xona-x1-pilot-and-data-tracking.html" rel="alternate"/><published>2025-08-11T18:30:00-04:00</published><updated>2025-08-11T18:30:00-04:00</updated><author><name>Peter Monta</name></author><id>tag:www.pmonta.com,2025-08-11:/xona-x1-pilot-and-data-tracking.html</id><summary type="html">&lt;p&gt;I've added the Xona X1 pilot and data codes to my Github repository supporting the various GNSS signals:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://github.com/pmonta/GNSS-DSP-tools"&gt;https://github.com/pmonta/GNSS-DSP-tools&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There are also preliminary acquisition and tracking programs similar to the others.  In the case of the Xona signals, though, they really need either external aiding or …&lt;/p&gt;</summary><content type="html">&lt;p&gt;I've added the Xona X1 pilot and data codes to my Github repository supporting the various GNSS signals:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://github.com/pmonta/GNSS-DSP-tools"&gt;https://github.com/pmonta/GNSS-DSP-tools&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There are also preliminary acquisition and tracking programs similar to the others.  In the case of the Xona signals, though, they really need either external aiding or a third-order loop---with current settings, the carrier loop maintains lock but with a nonzero steady-state phase error due to the high dynamics.&lt;/p&gt;
&lt;p&gt;A 13-second track of X1 data:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external image-reference" href="http://www.pmonta.com/uploads/2025/08/xona-data.png"&gt;&lt;img alt="image-xona-data" src="http://www.pmonta.com/uploads/2025/08/xona-data.png" style="width: 100%;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;A closeup of one of the data frames:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external image-reference" href="http://www.pmonta.com/uploads/2025/08/xona-data-zoom.png"&gt;&lt;img alt="image-xona-data-zoom" src="http://www.pmonta.com/uploads/2025/08/xona-data-zoom.png" style="width: 100%;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;A frame of data is sent every second, with each frame using about half of the 1-second slot.  (No FEC yet?)  Some multipath is visible (causing the amplitude fluctuations), even over this short time interval.  It's hard to make much of the data without an ICD.  Maybe I should invert the data spreading code, since it seems semantically more likely that most of the data bits would be 0 rather than 1.&lt;/p&gt;
</content><category term="GNSS"/></entry><entry><title>Xona spreading codes</title><link href="http://www.pmonta.com/xona-spreading-codes.html" rel="alternate"/><published>2025-08-08T12:30:00-04:00</published><updated>2025-08-08T12:30:00-04:00</updated><author><name>Peter Monta</name></author><id>tag:www.pmonta.com,2025-08-08:/xona-spreading-codes.html</id><summary type="html">&lt;p&gt;The spreading code for what appears to be the pilot component of Xona's X1 signal is shown here:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external image-reference" href="http://www.pmonta.com/uploads/2025/08/xona-chips.png"&gt;&lt;img alt="image-xona-chips" src="http://www.pmonta.com/uploads/2025/08/xona-chips.png" style="width: 80%;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After carrier wipeoff, the signal is sampled at 1.023 MHz and coherently integrated for 800 ms.  The code chips are clearly apparent, and they have a 4-level structure because of the …&lt;/p&gt;</summary><content type="html">&lt;p&gt;The spreading code for what appears to be the pilot component of Xona's X1 signal is shown here:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external image-reference" href="http://www.pmonta.com/uploads/2025/08/xona-chips.png"&gt;&lt;img alt="image-xona-chips" src="http://www.pmonta.com/uploads/2025/08/xona-chips.png" style="width: 80%;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After carrier wipeoff, the signal is sampled at 1.023 MHz and coherently integrated for 800 ms.  The code chips are clearly apparent, and they have a 4-level structure because of the FQPSK modulation.  After slicing, the spreading code (modulo a sign ambiguity) in hexadecimal is:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
0038ec4d442b85abe805542f16e694c29cc0d5666b058f726eb211519888c562f848f3b5a65dd2d1674fd6d0439c89e1b1a779018e56bded20a3a378255d098c1f1b534347d499e522ea05c646b97e6ddf64b0ca9e8973d808e1f893aecdf2d841d52f5fd2430ee04e295e64f9fe49450f56f4d9f76fdff6d96506706e2078fe
&lt;/pre&gt;
&lt;p&gt;Using this code, weaker signals can now be acquired and tracked.  It is not a Gold code; I don't know how it is derived.&lt;/p&gt;
&lt;p&gt;Wiping off the spreading code reveals the secondary code with period 100 ms:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external image-reference" href="http://www.pmonta.com/uploads/2025/08/xona-secondary.png"&gt;&lt;img alt="image-xona-secondary" src="http://www.pmonta.com/uploads/2025/08/xona-secondary.png" style="width: 80%;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;pre class="literal-block"&gt;
0100010011110111001011100110010010111111011100011010111010001100111111101111100101001000011110000001
&lt;/pre&gt;
&lt;p&gt;Approximate values of the Doppler and Doppler rate were derived from the space-track.org orbit.  Since the satellite is in LEO, the Doppler is quite high compared to MEO satellites, and even the Doppler rate is significant over the 800 ms interval.  Chip alignment was obtained by trial and error, and the 1 ms alignment can be found by watching for near-zero-correlation remnants at the edges and then removing them by correcting the offset.  (A small code misalignment would not do much harm, but it's nice to try to get all 1023 chips correct.)&lt;/p&gt;
&lt;p&gt;Incidentally, the chipping rate and code length are mentioned in an ION GNSS+ abstract &lt;a class="footnote-reference" href="#footnote-1" id="footnote-reference-1"&gt;[1]&lt;/a&gt; but nowhere else that I know of.  Since it's the same as GPS C/A, it would be a natural first guess, but this brief mention in the literature at least serves to remove one set of variables.&lt;/p&gt;
&lt;p&gt;The 800 ms recording is linked below.  See the &lt;a class="reference external" href="gnss-signal-from-xona-pulsar-0-satellite.html"&gt;previous blog post&lt;/a&gt; for details (sampling rate, center frequency, etc.).&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="http://pmonta.com/data/xona-20250807-191936.iq"&gt;http://pmonta.com/data/xona-20250807-191936.iq&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have found a few whispers of L5 power near 1216 MHz that occur at the same time as a satellite pass.  From the FCC filing I was expecting a 10 Mchip/s signal centered at 1191 MHz, so I'm not sure what to make of this.  Its double-sided bandwidth is around 400 kHz, so again a narrowband signal.&lt;/p&gt;
&lt;div class="section" id="references"&gt;
&lt;h2&gt;References&lt;/h2&gt;
&lt;table class="docutils footnote" frame="void" id="footnote-1" rules="none"&gt;
&lt;colgroup&gt;&lt;col class="label" /&gt;&lt;col /&gt;&lt;/colgroup&gt;
&lt;tbody valign="top"&gt;
&lt;tr&gt;&lt;td class="label"&gt;&lt;a class="fn-backref" href="#footnote-reference-1"&gt;[1]&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&amp;quot;World’s First Authenticated Satellite Pseudorange from Orbit&amp;quot;, Jason Anderson, Xona Space Systems.  &lt;a class="reference external" href="https://www.ion.org/gnss/abstracts.cfm?paperID=16052"&gt;https://www.ion.org/gnss/abstracts.cfm?paperID=16052&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
</content><category term="GNSS"/></entry><entry><title>GNSS signal from Xona's Pulsar-0 satellite</title><link href="http://www.pmonta.com/gnss-signal-from-xona-pulsar-0-satellite.html" rel="alternate"/><published>2025-07-30T22:50:00-04:00</published><updated>2025-07-30T22:50:00-04:00</updated><author><name>Peter Monta</name></author><id>tag:www.pmonta.com,2025-07-30:/gnss-signal-from-xona-pulsar-0-satellite.html</id><summary type="html">&lt;p&gt;This waterfall plot shows the L1 signal from Pulsar-0:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external image-reference" href="http://www.pmonta.com/uploads/2025/07/xona-waterfall.png"&gt;&lt;img alt="image-xona-waterfall" src="http://www.pmonta.com/uploads/2025/07/xona-waterfall.png" style="width: 100%;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The frequency is as expected, 1593.322500 MHz give or take the Doppler shift (that is, a nominal carrier frequency of 155.75 times 10.23 MHz), but, curiously, the bandwidth appears to be only ~1.7 MHz rather than the …&lt;/p&gt;</summary><content type="html">&lt;p&gt;This waterfall plot shows the L1 signal from Pulsar-0:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external image-reference" href="http://www.pmonta.com/uploads/2025/07/xona-waterfall.png"&gt;&lt;img alt="image-xona-waterfall" src="http://www.pmonta.com/uploads/2025/07/xona-waterfall.png" style="width: 100%;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The frequency is as expected, 1593.322500 MHz give or take the Doppler shift (that is, a nominal carrier frequency of 155.75 times 10.23 MHz), but, curiously, the bandwidth appears to be only ~1.7 MHz rather than the 4 MHz mentioned in their FCC filing &lt;a class="footnote-reference" href="#footnote-1" id="footnote-reference-1"&gt;[1]&lt;/a&gt;.  Perhaps this represents additional isolation from nearby services like Galileo PRS.&lt;/p&gt;
&lt;p&gt;For total radiated power, I'm guessing &amp;quot;22 dBW&amp;quot; is a typo in their filing and that they really mean 22 W (13.4 dBW).  But if they really intend 160 W raining down from LEO range, well, then it's time to increase the dynamic range of my receivers.&lt;/p&gt;
&lt;p&gt;The recording with the strongest signal in this pass is available below, though it may not represent the strongest possible signal from the satellite because the recordings are not continuous.  The recording is 8-bit signed IQ, 69.984 Ms/s, 200 ms duration, center frequency 1584.754875 MHz, filename-time given in GPS time (UTC + 18 s), observed from Indiana, USA.&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="http://pmonta.com/data/2025/207/SBTH00USA_2025207191730_L1.iq"&gt;http://pmonta.com/data/2025/207/SBTH00USA_2025207191730_L1.iq&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Autocorrelation peaks with 1 ms spacing are visible, implying that the signal is not yet encrypted.  There's also a dip near the center frequency in the power spectrum, so perhaps the spreading code is not white for some reason.&lt;/p&gt;
&lt;div class="section" id="references"&gt;
&lt;h2&gt;References&lt;/h2&gt;
&lt;table class="docutils footnote" frame="void" id="footnote-1" rules="none"&gt;
&lt;colgroup&gt;&lt;col class="label" /&gt;&lt;col /&gt;&lt;/colgroup&gt;
&lt;tbody valign="top"&gt;
&lt;tr&gt;&lt;td class="label"&gt;&lt;a class="fn-backref" href="#footnote-reference-1"&gt;[1]&lt;/a&gt;&lt;/td&gt;&lt;td&gt;FCC SAT-LOA-20241215-00282.  &lt;a class="reference external" href="https://forum.nasaspaceflight.com/index.php?action=dlattach;topic=60273.0;attach=2341527;sess=44407"&gt;https://forum.nasaspaceflight.com/index.php?action=dlattach;topic=60273.0;attach=2341527;sess=44407&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
</content><category term="GNSS"/></entry><entry><title>GNSS sky recordings</title><link href="http://www.pmonta.com/gnss-sky-recordings.html" rel="alternate"/><published>2020-02-01T10:06:00-05:00</published><updated>2020-02-01T10:06:00-05:00</updated><author><name>Peter Monta</name></author><id>tag:www.pmonta.com,2020-02-01:/gnss-sky-recordings.html</id><summary type="html">&lt;p&gt;I'd like to make available to a wider audience a stream of GNSS sky recordings.&lt;/p&gt;
&lt;p&gt;The recordings are made with the GNSS Firehose digitizers and Tallysman TW3972 antennas.   Each recording is 200 ms long and contains three GNSS bands, each sampled at 70 MHz with a useful bandwidth of about …&lt;/p&gt;</summary><content type="html">&lt;p&gt;I'd like to make available to a wider audience a stream of GNSS sky recordings.&lt;/p&gt;
&lt;p&gt;The recordings are made with the GNSS Firehose digitizers and Tallysman TW3972 antennas.   Each recording is 200 ms long and contains three GNSS bands, each sampled at 70 MHz with a useful bandwidth of about 50 MHz.  The schedule repeats every 5 minutes:&lt;/p&gt;
&lt;table border="1" class="docutils"&gt;
&lt;colgroup&gt;
&lt;col width="64%" /&gt;
&lt;col width="36%" /&gt;
&lt;/colgroup&gt;
&lt;thead valign="bottom"&gt;
&lt;tr&gt;&lt;th class="head"&gt;GPS time modulo 300 seconds&lt;/th&gt;
&lt;th class="head"&gt;Recorded bands&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody valign="top"&gt;
&lt;tr&gt;&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;L1, L2, L5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;150&lt;/td&gt;
&lt;td&gt;L1, E6, L5&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Thus, the cadence for L1 and L5 is every 150 seconds and for L2 and E6 every 300 seconds.&lt;/p&gt;
&lt;p&gt;Here are the nominal center frequencies and spans for the various bands:&lt;/p&gt;
&lt;table border="1" class="docutils"&gt;
&lt;colgroup&gt;
&lt;col width="10%" /&gt;
&lt;col width="39%" /&gt;
&lt;col width="51%" /&gt;
&lt;/colgroup&gt;
&lt;thead valign="bottom"&gt;
&lt;tr&gt;&lt;th class="head"&gt;Band&lt;/th&gt;
&lt;th class="head"&gt;Center frequency, MHz&lt;/th&gt;
&lt;th class="head"&gt;Approximate useful span, MHz&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody valign="top"&gt;
&lt;tr&gt;&lt;td&gt;L1&lt;/td&gt;
&lt;td&gt;1584.754875&lt;/td&gt;
&lt;td&gt;1558-1610&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;E6&lt;/td&gt;
&lt;td&gt;1273.654125&lt;/td&gt;
&lt;td&gt;1248-1300&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;L2&lt;/td&gt;
&lt;td&gt;1227.727125&lt;/td&gt;
&lt;td&gt;1201-1253&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;L5&lt;/td&gt;
&lt;td&gt;1191.641625&lt;/td&gt;
&lt;td&gt;1165-1217&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;I think this covers every GNSS signal except the S-band signal from IRNSS.  (Incidentally, my antennas are not characterized for reception at E6, but the signal is good enough to be useful.)&lt;/p&gt;
&lt;p&gt;Now, these are pretty short recordings, but they should still be long enough to obtain good-quality observables for both pseudorange and carrier phase (or at least the fractional parts thereof).  The timing is chosen to coincide with observables from other GNSS receivers, which conventionally output estimates every 30 seconds (or faster), aligned with GPS time.  The maximum difference in arrival times between observers on Earth is about 20 ms, so a recording duration of 200 ms guarantees at least 180 ms of overlap.&lt;/p&gt;
&lt;p&gt;Currently I have two locations continuously uploading these recordings, one in Indiana, USA and one in California, USA.  Indiana has the better sky coverage---about half the sky is available, from azimuth 85 to 275, down to elevation 10 degrees or so.  I'd like to encourage others to upload waveforms of this type, so that worldwide signal monitoring becomes possible.  Of course, IGS and IGS/MGEX have been covering this ground for many years, but at the observable level, not the waveform level.&lt;/p&gt;
&lt;p&gt;The carrier-phase observables from successive waveform snippets hundreds of seconds apart will not be linked by integer cycles, unlike those from a continuously-tracking receiver (unless the receiver clock happens to be very stable, with TDEV(300s) &amp;lt;&amp;lt; 1 cycle).  But this is not an insurmountable drawback.  The integers can be put back in by differencing against a nearby reference receiver that does continously track; alternatively, analysis methods can be used that don't depend on integer cycles, for example the ambiguity function.&lt;/p&gt;
&lt;div class="section" id="storage-details"&gt;
&lt;h2&gt;Storage details&lt;/h2&gt;
&lt;p&gt;The files are being stored on Amazon's S3 cloud-storage platform.  For the first month, standard S3 is used, so the data is available immediately upon request (with request latency of less than one second).  After one month, the files are migrated to S3 Glacier Deep Archive, which has much lower storage cost but retrieval latency of up to 48 hours.  All the files are still accessible, but you'll have to wait up to 48 hours to get a copy, so it's best to do any processing (such as observable estimation, cross-correlation among stations, signal-health metrics, etc.) during the first month.&lt;/p&gt;
&lt;p&gt;The S3 bucket is &amp;quot;s3://gnss-recordings-pmonta&amp;quot;, and its region is us-east-1 (Northern Virginia).  If you want to do computation with these recordings, it would be cheapest to use EC2 compute resources in that region, since data transfer between S3 and EC2 is then free.  If you transfer the files to other AWS regions, or download them over the Internet to your own storage and computation, then transfer costs are imposed.&lt;/p&gt;
&lt;p&gt;If you upload GNSS waveforms to AWS, please also use us-east-1 if possible.&lt;/p&gt;
&lt;p&gt;Speaking of costs, the S3 bucket is marked &amp;quot;public&amp;quot; and &amp;quot;requester pays&amp;quot;.  This is so I don't have to foot the bill for possibly voluminous worldwide downloads of these files (I do have to pay for the storage costs though).  So downloading these files requires that you have an AWS account. I'd prefer to not have this speed bump, but I don't see any way around it.  Sorry.  Maybe at some point AWS can make it part of their &amp;quot;free public data set&amp;quot; offering, in which case anonymous access would be free I think.  Note that there is a free tier for AWS, which, after signup, allows a limited amount of storage, computation, and data transfer per month.&lt;/p&gt;
&lt;p&gt;A shallow hierarchy is used inside the s3://gnss-recordings-pmonta bucket, of the form &amp;lt;year&amp;gt;/&amp;lt;doy&amp;gt;/filename, where &amp;lt;doy&amp;gt; is the ordinal day within the year ranging from 1 to 366.  All dates and times are in GPS time, that is, TAI minus 19 seconds.&lt;/p&gt;
&lt;pre class="literal-block"&gt;
2020/
  029/
    ...
    PAOC00USA_2020029103500.json
    PAOC00USA_2020029103500_L1.iq.bz2
    ...
    SBTH00USA_2020029103500.json
    SBTH00USA_2020029103500_L1.iq.bz2
    ...
&lt;/pre&gt;
&lt;p&gt;To reduce the friction of getting started with these files, I have a small subset of them available here on a public basis with no need for AWS credentials:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="http://gnss-recordings-pmonta-sample.s3-website-us-east-1.amazonaws.com/index.html"&gt;http://gnss-recordings-pmonta-sample.s3-website-us-east-1.amazonaws.com/index.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This document is an index to the available files:  two sets of recordings, seven hours apart, from the two sites.  The sample files can be downloaded with a web browser using the provided links, or alternatively with wget as follows:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
wget http://gnss-recordings-pmonta-sample.s3-website-us-east-1.amazonaws.com/PAOC00USA_2020029103500.json
wget http://gnss-recordings-pmonta-sample.s3-website-us-east-1.amazonaws.com/PAOC00USA_2020029103500_L1.iq.bz2
...
&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="section" id="file-format-and-naming"&gt;
&lt;h2&gt;File format and naming&lt;/h2&gt;
&lt;p&gt;Each recording consists of a small amount of metadata and sample streams for the various RF bands.  There are many choices for packaging them:  HDF5, or the recent ION standard for GNSS waveform files &lt;a class="footnote-reference" href="#footnote-1" id="footnote-reference-1"&gt;[1]&lt;/a&gt;, or the various RF/IF formats from radio astronomy.  After reading this interesting essay about HDF5, archivalness, and software transparency &lt;a class="footnote-reference" href="#footnote-2" id="footnote-reference-2"&gt;[2]&lt;/a&gt;, I opted for flat binary files compressed with a well-known compressor (bzip2), together with metadata in JSON.  I don't claim it's the best choice, but at least it is easy to understand and can be easily translated into any of these other formats.&lt;/p&gt;
&lt;p&gt;Prior to compression, the sample streams consist of 8-bit signed integers, alternating between in-phase and quadrature part (or real and imaginary part):  i,q,i,q, etc.  This is a common format for SDR sample streams.  8 bits is ordinarily enough precision for GNSS signals; in fact my recordings are 2-bit (4-level), with signal values -3,-1,1,3.  (A signal value of 0 is used for missing data resulting from a dropped packet during recording, which is rare.)  Higher-precision data, such as 3-bit or 4-bit, would fit seamlessly into this scheme.  The compression reduces the file size to approximately the entropy of the underlying source.&lt;/p&gt;
&lt;p&gt;File names roughly follow the RINEX3 convention:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;a 9-character site string containing a 4-character site ID, 1-digit marker number, 1-digit receiver number, and 3-character country code&amp;lt;/li&amp;gt;&lt;/li&gt;
&lt;li&gt;Date and time (GPS time)&amp;lt;/li&amp;gt;&lt;/li&gt;
&lt;li&gt;Suffix, either .json for JSON metadata or &amp;lt;band&amp;gt;.iq.bz2 for IQ sample data&amp;lt;/li&amp;gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A full set of four files for a given site and time looks like this:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
PAOC00USA_2020029103500.json
PAOC00USA_2020029103500_L1.iq.bz2
PAOC00USA_2020029103500_L2.iq.bz2
PAOC00USA_2020029103500_L5.iq.bz2
&lt;/pre&gt;
&lt;p&gt;This scheme results in many small files (about 1000 per site per day), but has the advantage that the user can request just the data desired.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="metadata"&gt;
&lt;h2&gt;Metadata&lt;/h2&gt;
&lt;p&gt;I chose metadata fields mostly inspired by RINEX3.  In fact one goal is to be able to construct a single-epoch RINEX3 file from each file-set, and for that one needs observables from all the systems of interest and enough RINEX3 metadata to fill in the blanks.&lt;/p&gt;
&lt;p&gt;Here is an example JSON file:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
{
    &amp;quot;antenna&amp;quot;: {
        &amp;quot;serial_number&amp;quot;: &amp;quot;xxxx&amp;quot;,
        &amp;quot;type&amp;quot;: &amp;quot;Tallysman TW3972&amp;quot;
    },
    &amp;quot;approx_position&amp;quot;: [
        -2701201.6,
        -4291624.4,
        3855647.9
    ],
    &amp;quot;bands&amp;quot;: [
        {
            &amp;quot;center_freq&amp;quot;: [
                5797,
                256
            ],
            &amp;quot;filename&amp;quot;: &amp;quot;PAOC00USA_2020029103500_L1.iq.bz2&amp;quot;,
            &amp;quot;name&amp;quot;: &amp;quot;L1&amp;quot;,
            &amp;quot;receiver_channel&amp;quot;: 1
        },
        {
            &amp;quot;center_freq&amp;quot;: [
                4491,
                256
            ],
            &amp;quot;filename&amp;quot;: &amp;quot;PAOC00USA_2020029103500_L2.iq.bz2&amp;quot;,
            &amp;quot;name&amp;quot;: &amp;quot;L2&amp;quot;,
            &amp;quot;receiver_channel&amp;quot;: 2
        },
        {
            &amp;quot;center_freq&amp;quot;: [
                4359,
                256
            ],
            &amp;quot;filename&amp;quot;: &amp;quot;PAOC00USA_2020029103500_L5.iq.bz2&amp;quot;,
            &amp;quot;name&amp;quot;: &amp;quot;L5&amp;quot;,
            &amp;quot;receiver_channel&amp;quot;: 3
        }
    ],
    &amp;quot;marker_to_ARP&amp;quot;: [
        0,
        0,
        0
    ],
    &amp;quot;observer&amp;quot;: {
        &amp;quot;name&amp;quot;: &amp;quot;Peter Monta&amp;quot;
    },
    &amp;quot;receiver&amp;quot;: {
        &amp;quot;serial_number&amp;quot;: &amp;quot;70:B3:D5:F7:90:09&amp;quot;,
        &amp;quot;software_version&amp;quot;: &amp;quot;2&amp;quot;,
        &amp;quot;type&amp;quot;: &amp;quot;GNSS Firehose&amp;quot;
    },
    &amp;quot;sample_rate&amp;quot;: 69984000,
    &amp;quot;site&amp;quot;: {
        &amp;quot;country&amp;quot;: &amp;quot;USA&amp;quot;,
        &amp;quot;marker_number&amp;quot;: 0,
        &amp;quot;name&amp;quot;: &amp;quot;PAOC&amp;quot;,
        &amp;quot;receiver_number&amp;quot;: 0
    },
    &amp;quot;time_duration&amp;quot;: &amp;quot;0.2&amp;quot;,
    &amp;quot;time_start&amp;quot;: &amp;quot;1580294099.9&amp;quot;
}
&lt;/pre&gt;
&lt;p&gt;The fields are mostly self-explanatory (when read together with the RINEX3 spec) except for the &amp;quot;bands&amp;quot; list.  For each band, a center frequency is given as a ratio of integers P/Q, which is to be multiplied by the sample rate.  This represents the coherence between the sample rate and each channel's downconverter local oscillator.  If, for example, the user wanted to construct a single wideband signal from multiple overlapping subbands, then the exact ratios would allow the frequency difference to be set in stone, i.e., not estimated.  Only the relative phases would need to be estimated.  Those phases are fixed because the various PLLs in the receiver frequency chain never go out of lock.  (What, never?  Well, hardly ever.)&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="licensing"&gt;
&lt;h2&gt;Licensing&lt;/h2&gt;
&lt;p&gt;I'm not an expert on copyright, but my intent is to provide these files to be used freely by anyone, roughly according to the Creative Commons license CC BY-SA 4.0.  If the attribution or derivative portions of this license turn out to be unwieldy, especially if others contribute similar data, then it might be revised.  I don't know if entities like IGS or IERS have a formal license for their data, but if so, that might be a good model.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="applications"&gt;
&lt;h2&gt;Applications&lt;/h2&gt;
&lt;p&gt;Possible applications, exclusive of the usual ones involving observables, positioning, etc.:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;satellite health monitoring&lt;/li&gt;
&lt;li&gt;receiver development and testing&lt;/li&gt;
&lt;li&gt;observables obtainable only from waveforms, e.g. cross-correlation of GPS M code, Galileo PRS, etc.&lt;/li&gt;
&lt;li&gt;cooperative estimation of things like W bits or M bits (requires many stations)&lt;/li&gt;
&lt;li&gt;archival &amp;quot;history&amp;quot; of GNSS&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Using the current upload schedule, the average data rate per station is about 1 Mbit/s, with a duty cycle of either 0.07% or 0.13% depending on the band.  It is not currently feasible to provide megabit-class uplinks from GNSS stations in the middle of nowhere, although the large LEO constellations under construction might change that in the near future.  Continuous waveforms would be even better &lt;a class="footnote-reference" href="#footnote-3" id="footnote-reference-3"&gt;[3]&lt;/a&gt;, but currently require deep pockets for the storage and bandwidth.  A reasonable path might be a gradual increase in duty cycle.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="disclaimer"&gt;
&lt;h2&gt;Disclaimer&lt;/h2&gt;
&lt;p&gt;I can't make any guarantees about data uploads or data availability.  &amp;quot;Best effort.&amp;quot;&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="references"&gt;
&lt;h2&gt;References&lt;/h2&gt;
&lt;table class="docutils footnote" frame="void" id="footnote-1" rules="none"&gt;
&lt;colgroup&gt;&lt;col class="label" /&gt;&lt;col /&gt;&lt;/colgroup&gt;
&lt;tbody valign="top"&gt;
&lt;tr&gt;&lt;td class="label"&gt;&lt;a class="fn-backref" href="#footnote-reference-1"&gt;[1]&lt;/a&gt;&lt;/td&gt;&lt;td&gt;GNSS Software Defined Receiver Metadata Standard, &lt;a class="reference external" href="http://sdr.ion.org.s3-website-us-east-1.amazonaws.com"&gt;http://sdr.ion.org.s3-website-us-east-1.amazonaws.com&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;table class="docutils footnote" frame="void" id="footnote-2" rules="none"&gt;
&lt;colgroup&gt;&lt;col class="label" /&gt;&lt;col /&gt;&lt;/colgroup&gt;
&lt;tbody valign="top"&gt;
&lt;tr&gt;&lt;td class="label"&gt;&lt;a class="fn-backref" href="#footnote-reference-2"&gt;[2]&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Moving away from HDF5, &lt;a class="reference external" href="https://cyrille.rossant.net/moving-away-hdf5"&gt;https://cyrille.rossant.net/moving-away-hdf5&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;table class="docutils footnote" frame="void" id="footnote-3" rules="none"&gt;
&lt;colgroup&gt;&lt;col class="label" /&gt;&lt;col /&gt;&lt;/colgroup&gt;
&lt;tbody valign="top"&gt;
&lt;tr&gt;&lt;td class="label"&gt;&lt;a class="fn-backref" href="#footnote-reference-3"&gt;[3]&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Considerations for Future IGS Receivers, &lt;a class="reference external" href="http://www.ngs.noaa.gov/IGSWorkshop2008/docs/recDev-positionpaper.pdf"&gt;http://www.ngs.noaa.gov/IGSWorkshop2008/docs/recDev-positionpaper.pdf&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
</content><category term="GNSS"/></entry><entry><title>The L1C signal on GPS III</title><link href="http://www.pmonta.com/the-l1c-signal-on-gps-iii.html" rel="alternate"/><published>2019-02-27T01:19:00-05:00</published><updated>2019-02-27T01:19:00-05:00</updated><author><name>Peter Monta</name></author><id>tag:www.pmonta.com,2019-02-27:/the-l1c-signal-on-gps-iii.html</id><summary type="html">&lt;p&gt;The recently-launched GPS III satellite, SVN 74, is transmitting on PRN 4, though not yet set healthy. But it's a good opportunity to have a look at the L1C signal.&lt;/p&gt;
&lt;p&gt;The pilot is TMBOC; here is its correlation peak:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external image-reference" href="http://www.pmonta.com/uploads/2019/02/peak_l1cp.png"&gt;&lt;img alt="peak_l1cp" src="http://www.pmonta.com/uploads/2019/02/peak_l1cp.png" style="width: 100%;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It looks proper to me, though I haven't compared it against …&lt;/p&gt;</summary><content type="html">&lt;p&gt;The recently-launched GPS III satellite, SVN 74, is transmitting on PRN 4, though not yet set healthy. But it's a good opportunity to have a look at the L1C signal.&lt;/p&gt;
&lt;p&gt;The pilot is TMBOC; here is its correlation peak:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external image-reference" href="http://www.pmonta.com/uploads/2019/02/peak_l1cp.png"&gt;&lt;img alt="peak_l1cp" src="http://www.pmonta.com/uploads/2019/02/peak_l1cp.png" style="width: 100%;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It looks proper to me, though I haven't compared it against the ideal waveform. The BOC(6,1) wiggles are clearly present, narrowing the central peak. Note the small amount of signal on the quadrature phase. This could have a number of sources: the passband of my receiver is not ideally flat in amplitude and group delay (I may add some equalization at some point), and the GPS L1 carrier is significantly offset from the center of the passband (by about 9 MHz) so as to accommodate GLONASS. The satellite signal itself could also be contributing. The recording was taken with a gain antenna (a 15-turn helical, about 11 dBi), and the integration time for the correlation was two seconds.&lt;/p&gt;
&lt;p&gt;The data signal is pure BOC(1,1) with no BOC(6,1) content:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external image-reference" href="http://www.pmonta.com/uploads/2019/02/peak_l1cd.png"&gt;&lt;img alt="peak_l1cd" src="http://www.pmonta.com/uploads/2019/02/peak_l1cd.png" style="width: 100%;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I'm not sure what tracking is most appropriate for GPS III. Of course the individual observables for C/A and L1C{p,d} are available, and, in the case of L1C, a combined mode with PLL tracking of the pilot and Costas-loop tracking of the data channel (or PLL tracking after data wipeoff), suitably weighted. But should a joint weighting of both C/A and L1C be considered, which would seem to include even more signal energy, yielding a higher-quality observable? There's no RINEX name for this mode.&lt;/p&gt;
</content><category term="GNSS"/></entry><entry><title>BeiDou B2b codes</title><link href="http://www.pmonta.com/beidou-b2b-codes.html" rel="alternate"/><published>2018-12-24T10:10:00-05:00</published><updated>2018-12-24T10:10:00-05:00</updated><author><name>Peter Monta</name></author><id>tag:www.pmonta.com,2018-12-24:/beidou-b2b-codes.html</id><summary type="html">&lt;p&gt;It turns out to be an interesting exercise to extract the BeiDou B2b codes from GNSS recordings. If there were a pilot on B2b, there would have been plenty of SNR with even a short recording to see the pilot using a technique similar to that shown by Yudanov &lt;a class="footnote-reference" href="#footnote-1" id="footnote-reference-1"&gt;[1 …&lt;/a&gt;&lt;/p&gt;</summary><content type="html">&lt;p&gt;It turns out to be an interesting exercise to extract the BeiDou B2b codes from GNSS recordings. If there were a pilot on B2b, there would have been plenty of SNR with even a short recording to see the pilot using a technique similar to that shown by Yudanov &lt;a class="footnote-reference" href="#footnote-1" id="footnote-reference-1"&gt;[1]&lt;/a&gt;. But, when assuming a pilot with period 100 ms, and then trying a great many other possible periods, there appeared to be nothing there.&lt;/p&gt;
&lt;p&gt;As it turns out, there is no pilot. There are data signals on both B2bi and B2bq. One of them has what looks like a 2-second frame structure, but the data in the 2-second window changes periodically, so it is not a fixed pattern as the secondary code of a pilot would be.&lt;/p&gt;
&lt;p&gt;So rather than coherently combining many samples of the pilot, we instead need to estimate the data symbols individually by differentially-coherently correlating a designated 1 ms interval with successive intervals. This entails a squaring loss. Even with signals of 45 to 47 dBHz during favorable passes, the QPSK data symbols are quite weak, and the chip decisions after noncoherently integrating for a few seconds are not error-free. But there is enough there to hard-limit the chip estimates, track the signal conventionally using this code-with-some-errors, and then use the track to refine the chip estimates to be truly error-free. (Perhaps there is some relationship to iterative decoding and belief propagation, and maybe a more sophisticated algorithm could deal optimally with even weaker signals.)&lt;/p&gt;
&lt;p&gt;As an example, here is a plot of the QPSK B2b chips of BeiDou PRN 34, integrated for 4 seconds after wiping off the data modulation (using the unreliable estimates). The B2a signal is tracked (with its known code) to serve as a guide for code timing and to remove fluctuations of the local clock (a TCXO in my case). The carrier for B2b is then blindly applied as B2a + 30.69 MHz + a differential-doppler correction, which must be good to 0.1 Hz or so for the coherence to be maintained.&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external image-reference" href="http://www.pmonta.com/uploads/2018/12/chips.png"&gt;&lt;img alt="chips" src="http://www.pmonta.com/uploads/2018/12/chips.png" style="width: 100%;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The real part of these chips (after rotating a bit), hard limited, is taken as the B2bi code, and the imaginary part the B2bq code. Re-tracking with those codes yields a very much improved estimate of the code chips. One of the two quadratures, call it B2bi_improved, is shown below; the other is very similar when tracked using the other code. (I'm a little puzzled by the discrete nature of the imaginary part of these chips; perhaps it represents part of the ACEBOC multiplex. But the code is just taken as the real part.)&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external image-reference" href="http://www.pmonta.com/uploads/2018/12/chips-tracked-b2bi-prn34.png"&gt;&lt;img alt="chips-tracked-b2bi-prn34" src="http://www.pmonta.com/uploads/2018/12/chips-tracked-b2bi-prn34.png" style="width: 100%;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Tracking with this refined code yields the 1 ms data symbols shown below. Shown first are the complex values of the prompt correlator output (which are purely BPSK, showing that tracking is good), and second the real part over time, showing some of the structure of the data. (These are now the data symbols for B2bi over time, not the code chips.)&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external image-reference" href="http://www.pmonta.com/uploads/2018/12/track-b2bi-prn34.png"&gt;&lt;img alt="track-b2bi-prn34" src="http://www.pmonta.com/uploads/2018/12/track-b2bi-prn34.png" style="width: 100%;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external image-reference" href="http://www.pmonta.com/uploads/2018/12/track-b2bi-prn34-i.png"&gt;&lt;img alt="track-b2bi-prn34-i" src="http://www.pmonta.com/uploads/2018/12/track-b2bi-prn34-i.png" style="width: 100%;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Codes for the current set of 18 MEO BeiDou-3 satellites are available here:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://github.com/pmonta/GNSS-DSP-tools"&gt;https://github.com/pmonta/GNSS-DSP-tools&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Note that there is a 4-way ambiguity in each of these codes because of the (apparently equal-power) QPSK. But with the data format as yet unknown, this doesn't matter. Or, possibly, looking at B2a (for example by implementing B2ab tracking) could resolve the ambiguity.&lt;/p&gt;
&lt;p&gt;It might be possible to reverse-engineer the B2b codes to some underlying Gold-code parameters, if they are in fact of similar provenance as B2a, but there seems to be no tangible benefit to doing that. I think I'll just leave them expressed as memory codes and wait for the ICD.&lt;/p&gt;
&lt;table class="docutils footnote" frame="void" id="footnote-1" rules="none"&gt;
&lt;colgroup&gt;&lt;col class="label" /&gt;&lt;col /&gt;&lt;/colgroup&gt;
&lt;tbody valign="top"&gt;
&lt;tr&gt;&lt;td class="label"&gt;&lt;a class="fn-backref" href="#footnote-reference-1"&gt;[1]&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Sergei Yudanov, A Case History Using the New Galileo E6-B/C Signal.  &lt;a class="reference external" href="https://www.gpsworld.com/signal-decoding-with-conventional-receiver-and-antenna-a-case-history-using-the-new-galileo-e6-bc-signal/"&gt;https://www.gpsworld.com/signal-decoding-with-conventional-receiver-and-antenna-a-case-history-using-the-new-galileo-e6-bc-signal/&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</content><category term="GNSS"/></entry><entry><title>GNSS tri-band, quad-constellation sky recording</title><link href="http://www.pmonta.com/gnss-tri-band-quad-constellation-sky-recording.html" rel="alternate"/><published>2017-05-15T10:54:00-04:00</published><updated>2017-05-15T10:54:00-04:00</updated><author><name>Peter Monta</name></author><id>tag:www.pmonta.com,2017-05-15:/gnss-tri-band-quad-constellation-sky-recording.html</id><summary type="html">&lt;p&gt;I'd like to share my first tri-band GNSS sky recording along with scripts for acquisition and tracking.&lt;/p&gt;
&lt;p&gt;The recording is 50 seconds long with three channels of simultaneous 2-bit complex samples at 70 Msa/s (approx. 50 MHz usable bandwidth per channel) centered on L1, L2, and E5 (~1191 MHz …&lt;/p&gt;</summary><content type="html">&lt;p&gt;I'd like to share my first tri-band GNSS sky recording along with scripts for acquisition and tracking.&lt;/p&gt;
&lt;p&gt;The recording is 50 seconds long with three channels of simultaneous 2-bit complex samples at 70 Msa/s (approx. 50 MHz usable bandwidth per channel) centered on L1, L2, and E5 (~1191 MHz). It's therefore guaranteed to contain a complete data frame for each satellite---the length of an ephemeris frame is 30 seconds for all the GNSS systems, at least for the legacy data formats (though Galileo cuts this in half when using dual frequency via interleaving). An autonomous solution can be obtained for GPS, GLONASS, and Galileo (all of which have at least 4 satellites present), and nearly for BeiDou (only 3 satellites present).&lt;/p&gt;
&lt;p&gt;Here is the recording in tcpdump / libpcap format. The utility &lt;a class="reference external" href="https://github.com/pmonta/GNSS_Firehose/blob/master/test/packet2wav_3ch.c"&gt;packet2wav_3ch&lt;/a&gt; extracts one of the three RF channels from this packet stream and converts to a raw stream of signed 8-bit values for a downstream software receiver or other tool.&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="http://rf-waveforms.s3.amazonaws.com/gnss-20170427-L1L2L5.pcap"&gt;gnss-20170427-L1L2L5.pcap&lt;/a&gt; (5.4 GB)&lt;/p&gt;
&lt;p&gt;By my count there are 34 satellites in this recording that are emitting 64 distinct GNSS signals (more if you include P/Y and M and CS/PRS codes and count I and Q separately). The satellites with active signals are as follows:&lt;/p&gt;
&lt;table border="1" class="docutils"&gt;
&lt;colgroup&gt;
&lt;col width="26%" /&gt;
&lt;col width="74%" /&gt;
&lt;/colgroup&gt;
&lt;thead valign="bottom"&gt;
&lt;tr&gt;&lt;th class="head"&gt;GNSS system&lt;/th&gt;
&lt;th class="head"&gt;PRNs or FDMA channels&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody valign="top"&gt;
&lt;tr&gt;&lt;td&gt;GPS&lt;/td&gt;
&lt;td&gt;2 4 5 12 13 15 18 20 21 25 26 29&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;GLONASS&lt;/td&gt;
&lt;td&gt;-7 -5 -3 -2 1 2 3 5 6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Galileo&lt;/td&gt;
&lt;td&gt;7 12 14 19 20 24 26&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;BeiDou&lt;/td&gt;
&lt;td&gt;7 14 34&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;SBAS&lt;/td&gt;
&lt;td&gt;133 135 138&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;and the signals themselves:&lt;/p&gt;
&lt;table border="1" class="docutils"&gt;
&lt;colgroup&gt;
&lt;col width="24%" /&gt;
&lt;col width="11%" /&gt;
&lt;col width="65%" /&gt;
&lt;/colgroup&gt;
&lt;thead valign="bottom"&gt;
&lt;tr&gt;&lt;th class="head"&gt;GNSS system&lt;/th&gt;
&lt;th class="head"&gt;Band&lt;/th&gt;
&lt;th class="head"&gt;PRNs or FDMA channels&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody valign="top"&gt;
&lt;tr&gt;&lt;td&gt;GPS&lt;/td&gt;
&lt;td&gt;L1&lt;/td&gt;
&lt;td&gt;2 4 5 12 13 15 18 20 21 25 26 29&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;GPS&lt;/td&gt;
&lt;td&gt;L2C&lt;/td&gt;
&lt;td&gt;4 5 12 25 26 29&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;GPS&lt;/td&gt;
&lt;td&gt;L5&lt;/td&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;GLONASS&lt;/td&gt;
&lt;td&gt;L1&lt;/td&gt;
&lt;td&gt;-7 -5 -3 -2 2 5 6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;GLONASS&lt;/td&gt;
&lt;td&gt;L2&lt;/td&gt;
&lt;td&gt;-7 -5 -3 -2 1 2 3 5 6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;GLONASS&lt;/td&gt;
&lt;td&gt;L3OC&lt;/td&gt;
&lt;td&gt;9 26&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Galileo&lt;/td&gt;
&lt;td&gt;E1&lt;/td&gt;
&lt;td&gt;7 12 14 19 20 24 26&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Galileo&lt;/td&gt;
&lt;td&gt;E5b&lt;/td&gt;
&lt;td&gt;7 12 14 19 24 26&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Galileo&lt;/td&gt;
&lt;td&gt;E5a&lt;/td&gt;
&lt;td&gt;7 12 14 19 24 26&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;BeiDou&lt;/td&gt;
&lt;td&gt;B1I&lt;/td&gt;
&lt;td&gt;7 14 34&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;BeiDou&lt;/td&gt;
&lt;td&gt;B2I&lt;/td&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;SBAS&lt;/td&gt;
&lt;td&gt;L1&lt;/td&gt;
&lt;td&gt;135&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;SBAS&lt;/td&gt;
&lt;td&gt;L5&lt;/td&gt;
&lt;td&gt;133 135 138&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Below are plots of some of the acquisition metrics (but I've not yet automated any sort of detection threshold). Click for larger image:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external image-reference" href="http://www.pmonta.com/uploads/2017/05/acquisition-composite.png"&gt;&lt;img alt="acquisition-composite" src="http://www.pmonta.com/uploads/2017/05/acquisition-composite.png" style="width: 100%;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The L5/E5 channel should support tracking of the full Galileo E5 signal (E5ab). I haven't implemented this tracking mode yet, but it involves using a combination of a pure PLL for the pilot signals and a Costas loop for the data signals, optimally weighted and combined. (These would be the &amp;quot;C8X&amp;quot; and &amp;quot;L8X&amp;quot; observables in the taxonomy of RINEX 3.0.)&lt;/p&gt;
&lt;p&gt;A makefile is provided in the &lt;a class="reference external" href="https://github.com/pmonta/GNSS-DSP-tools"&gt;GNSS-DSP-tools&lt;/a&gt; repository that will download the recording, run all the acquisition routines, and track the signals. Acquisition of GPS L1 is quick, but some other signal types are slower because they search all PRNs exhaustively and with a fairly high sensitivity.&lt;/p&gt;
&lt;p&gt;Some miscellaneous notes on the signals:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;I'm not sure why SBAS 133 and 138 are not showing up on L1. They have strong signals on L5, and other recordings in the past have shown them on both L1 and L5 with no trouble. Perhaps there's some flaw in the acquisition related to the higher data rate on SBAS (although I do only 1 ms integrations, so it should not matter).&lt;/li&gt;
&lt;li&gt;Same for GLONASS channels 1 and 3 on L1 vs. L2.&lt;/li&gt;
&lt;li&gt;BeiDou PRNs 7 and 34 are apparently not transmitting on B2I. (PRN 34 is probably transmitting the BeiDou phase 3 L1 MBOC signal, incidentally.)&lt;/li&gt;
&lt;li&gt;The GLONASS L3OC PRNs nominally run from 1 to 24, corresponding to the slot number, at least according to &lt;a class="reference external" href="http://gpsworld.com/innovation-glonass-11405/"&gt;this GPS World article&lt;/a&gt;. Not sure why there's a PRN 26 being transmitted by one of the GLONASS-K satellites. As I recall, there were other PRNs outside of the range 1--24 also used by GLONASS-K; perhaps the code assignments have changed over time.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The antenna is a homemade 3-turn helical with highpass filter and LNA, both from Mini-Circuits. It's pretty much the simplest thing that could possibly work while still having acceptable bandwidth (1150--1610 MHz) and acceptable spatial pattern and circular polarization. Some slight interference from LTE is visible in the waterfall plots (using baudline), but it's weak enough that the GNSS signals are not affected. Probably better preselection filtering is needed, or a stronger LNA, or both.&lt;/p&gt;
</content><category term="GNSS"/></entry><entry><title>Squaring receiver for Galileo blind search</title><link href="http://www.pmonta.com/squaring-receiver-for-galileo-blind-search.html" rel="alternate"/><published>2014-09-23T02:51:00-04:00</published><updated>2014-09-23T02:51:00-04:00</updated><author><name>Peter Monta</name></author><id>tag:www.pmonta.com,2014-09-23:/squaring-receiver-for-galileo-blind-search.html</id><summary type="html">&lt;p&gt;I've been following the drama of the two recently-launched Galileo FOC satellites. To my knowledge, nothing is yet known about the status of the transmitters, nor have the PRNs been revealed, nor does an acquisition search over all 50 codes in the Galileo ICD yield any signals when the satellites …&lt;/p&gt;</summary><content type="html">&lt;p&gt;I've been following the drama of the two recently-launched Galileo FOC satellites. To my knowledge, nothing is yet known about the status of the transmitters, nor have the PRNs been revealed, nor does an acquisition search over all 50 codes in the Galileo ICD yield any signals when the satellites are in view (though PRNs 11, 12, and 19 show up as expected).&lt;/p&gt;
&lt;p&gt;So if the satellites are transmitting at all, perhaps it's with a nonstandard code. One way to check is to take a trip back in time and revisit one of the very oldest GNSS receiver techniques, that of squaring a BPSK signal to recover a tone, then driving a PLL with this tone. (The Macrometer V-1000 receiver used this scheme.)&lt;/p&gt;
&lt;p&gt;Now Galileo E1 when viewed in a 4 MHz bandwidth is not BPSK---it is, I believe, a three-level signal, {-1,0,1}, being the sum of equal-power E1-B and E1-C with negligible contribution in quadraphase from PRS. But squaring still works on a signal of this type, though not quite as well as with BPSK.&lt;/p&gt;
&lt;p&gt;Here is a waterfall plot with several satellites visible, and indeed Galileo PRN 11 is one of them. Its identity is confirmed by acquiring and tracking in the conventional way, then verifying that the Doppler is identical (modulo the factor of 2 from squaring).&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external image-reference" href="http://www.pmonta.com/uploads/2014/09/squaring.jpg"&gt;&lt;img alt="squaring" src="http://www.pmonta.com/uploads/2014/09/squaring.jpg" style="width: 100%;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As of September 20, though, there is still nothing from the new satellites. A predicted Doppler curve can be derived from orbital elements, but there is nothing in the spectrogram at the anticipated Doppler. So we wait.&lt;/p&gt;
&lt;p&gt;Code for this &amp;quot;receiver&amp;quot; (all of a dozen lines) is at the &lt;a class="reference external" href="https://github.com/pmonta/GNSS-DSP-tools"&gt;GitHub repository&lt;/a&gt; (squaring.py). Its output can be piped to the indispensable &lt;a class="reference external" href="http://www.baudline.com/"&gt;baudline&lt;/a&gt; spectrum analysis tool for interactive viewing.&lt;/p&gt;
</content><category term="GNSS"/></entry><entry><title>GNSS stamp collecting</title><link href="http://www.pmonta.com/gnss-stamp-collecting.html" rel="alternate"/><published>2014-09-16T01:38:00-04:00</published><updated>2014-09-16T01:38:00-04:00</updated><author><name>Peter Monta</name></author><id>tag:www.pmonta.com,2014-09-16:/gnss-stamp-collecting.html</id><summary type="html">&lt;p&gt;Here's a fun montage of the various GNSS signals-in-space. I think this accounts for all extant open-access signals that are likely to remain so (ruling out Galileo E6 for example) and that are intended for systems having global coverage (so no QZSS or IRNSS). A few comments on the signals …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Here's a fun montage of the various GNSS signals-in-space. I think this accounts for all extant open-access signals that are likely to remain so (ruling out Galileo E6 for example) and that are intended for systems having global coverage (so no QZSS or IRNSS). A few comments on the signals:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;Each waveform is 400 ms in length and is sampled at 1 ms intervals after code and carrier wipeoff&lt;/li&gt;
&lt;li&gt;Secondary codes have not been removed&lt;/li&gt;
&lt;li&gt;Carrier-to-noise ratios vary. The weakest signals are Galileo E5a-I and E5a-Q; by eye there is not much to see, but the acquisition metric is clearly well above threshold, and the histograms are clearly bimodal. My L1/L2 antenna receives some L5 but with about 15 dB of attenuation (!). I really need an antenna that covers down to L5. The GPS L5 signals must have been blisteringly strong to come through as well as they did.&lt;/li&gt;
&lt;li&gt;The pilot signals with no secondary codes, GPS L2CL and GLONASS L2 P, are shown correctly offset from the (undrawn) centerline. I'm not sure much is known about the data modulation on GLONASS P. Apparently L1 has some data at 50 Hz (no secondary/meander code?) and L2 is unmodulated.&lt;/li&gt;
&lt;li&gt;So far there are two GLONASS satellites transmitting L3OC CDMA signals. The signals shown are from PRN 30, but PRN 33 is also active and of comparable quality.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The tools for acquiring and tracking these signals are in my GitHub repository:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://github.com/pmonta/GNSS-DSP-tools"&gt;https://github.com/pmonta/GNSS-DSP-tools&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;They are command-line-ish and not very polished yet.&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external image-reference" href="http://www.pmonta.com/uploads/2014/09/track-collection.png"&gt;&lt;img alt="track-collection" src="http://www.pmonta.com/uploads/2014/09/track-collection.png" style="width: 100%;" /&gt;&lt;/a&gt;&lt;/p&gt;
</content><category term="GNSS"/></entry><entry><title>Height-based multipath mitigation</title><link href="http://www.pmonta.com/height-based-multipath-mitigation.html" rel="alternate"/><published>2014-09-06T23:22:00-04:00</published><updated>2014-09-06T23:22:00-04:00</updated><author><name>Peter Monta</name></author><id>tag:www.pmonta.com,2014-09-06:/height-based-multipath-mitigation.html</id><summary type="html">&lt;p&gt;Here's a crazy idea which I might as well put on the blog.&lt;/p&gt;
&lt;p&gt;Multipath is an important error source for GNSS reference stations. Monuments for antennas are nearly always placed close to the Earth's surface, so the ground will act as a reflector with a grazing geometry that generates short-delay …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Here's a crazy idea which I might as well put on the blog.&lt;/p&gt;
&lt;p&gt;Multipath is an important error source for GNSS reference stations. Monuments for antennas are nearly always placed close to the Earth's surface, so the ground will act as a reflector with a grazing geometry that generates short-delay multipath. Usually other objects contribute as well (nearby buildings or fences for example).&lt;/p&gt;
&lt;p&gt;Many solutions exist for multipath mitigation, both at the antenna and correlator levels. Another possible system technique, though, would seem to be to move the antenna upwards, far enough away from local objects that any reflected signals have delays larger than the support of the autocorrelation function for any signal of interest.&lt;/p&gt;
&lt;p&gt;Conceptually, an antenna could simply be placed at the top of a tall tower a few hundred meters in height. The tower would ideally be transparent to RF (perhaps of lightweight dielectric construction). Of course there are many practical problems with this, but the environment around the antenna would be nearly ideal.&lt;/p&gt;
&lt;p&gt;Another possibility is to place the GNSS antenna on a UAV, which would keep station above the reference monument and several auxiliary sensors (whose location and stability are not critical). The UAV would simultaneously maintain links with visible GNSS satellites (aided by an on-board inertial system) and with sensors on the ground using any of a variety of accurate (~0.1 mm say) short-range ranging techniques. In this way the pristine airborne GNSS signal environment is transferred to the reference monument despite the relative movement.&lt;/p&gt;
&lt;p&gt;The UAV could execute certain maneuvers to continuously calibrate its antenna, similar to robot absolute antenna calibrations on the ground. The craft could spin slowly around the vertical axis, or tilt slightly, or both. The attitude from the inertial system would become part of the observation stream to close the calibration loop. By contrast, there is great reluctance to move ground-based GNSS reference antennas to carry out any sort of ongoing calibration program on them. With flyers, continuous monitoring comes for free.&lt;/p&gt;
&lt;p&gt;Small rotations and tilts on an airborne platform are impossible to completely avoid, and high-wind situations may force some loss of observing time. But for most of the time, the environment should permit an accurate tie from UAV track to ground network. Depending on the choice of flying craft, several may be needed, spelling each other for charging or refueling. Automatic fleet management will probably have many good solutions over the next few years.&lt;/p&gt;
&lt;p&gt;It's hard to know whether there's a benefit without more detailed study, but the prevailing trends in GNSS system accuracy seem to be increasing the relative importance of multipath. If we assume progressively better satellite orbit and clock estimates and ionosphere and troposphere sensing, then multipath may well loom as the last remaining large, difficult, uncertain systematic error. (Perhaps a UAV could help with estimating the wet troposphere delay as part of normal operation, to the extent that measurements on the very bottom segment of the troposphere are predictive of the full path.)&lt;/p&gt;
&lt;p&gt;Finally, I wonder whether UAVs could help with urban canyons or tree-canopy issues. A surveyor might deal with an awkward situation by tossing a UAV into the air and replacing a bad-GNSS-signal problem with a perhaps easier-to-solve UAV-to-ground-sensor problem using vastly stronger optical or RF links.&lt;/p&gt;
</content><category term="GNSS"/></entry><entry><title>Semicodeless P(Y)-code processing using high-rate aiding</title><link href="http://www.pmonta.com/semicodeless-py-code-processing-using-high-rate-aiding.html" rel="alternate"/><published>2014-07-25T23:55:00-04:00</published><updated>2014-07-25T23:55:00-04:00</updated><author><name>Peter Monta</name></author><id>tag:www.pmonta.com,2014-07-25:/semicodeless-py-code-processing-using-high-rate-aiding.html</id><summary type="html">&lt;p&gt;Present schemes for semicodeless P(Y) processing assume an autonomous receiver that estimates W-code bits directly from the received signal. Given the limited C/N0 available, naturally the signals are noisy, resulting in squaring loss.&lt;/p&gt;
&lt;p&gt;One simple way around this is to use more reliable estimates of the W bits …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Present schemes for semicodeless P(Y) processing assume an autonomous receiver that estimates W-code bits directly from the received signal. Given the limited C/N0 available, naturally the signals are noisy, resulting in squaring loss.&lt;/p&gt;
&lt;p&gt;One simple way around this is to use more reliable estimates of the W bits acquired with a medium-gain antenna. These estimates can be published continuously in near-real-time by a suitable Internet-based service, then used by any client receiver, which could be a conventional real-time receiver or a recorded-waveform software receiver.&lt;/p&gt;
&lt;p&gt;This need not be all that expensive. All that's required is approximately one medium-gain antenna per satellite per hemisphere. A one-meter dish of 20 dB gain would reduce squaring loss to practically zero. Of course a reasonable Internet uplink is needed of 480 kbit/second for each satellite. Storage costs could be controlled by retaining the W bits for a limited time (a few weeks or months).&lt;/p&gt;
&lt;p&gt;Another possibility, in a world where every receiver is uploading full RF waveforms to a central service, is to sum together the signals from many receivers before estimating the W bits. (If the summing is done prior to detection, this is effectively a phased-array antenna.) Quite a few signals would be needed, though, if each receiver has the usual omni antenna. Better to rely on dedicated medium-gain antennas.&lt;/p&gt;
&lt;p&gt;The W-code bits would not be of any use to spoofers since they would be tens or hundreds of milliseconds out of date.&lt;/p&gt;
&lt;p&gt;The same trick can be played with other unknown codes, such as the GPS M code or the PRS codes on other GNSS services. The bit rates of the published reference waveforms would be much higher than those of W-code, but perhaps the effort would be repaid by observables that could be obtained in no other way, helping with multipath and ambiguity resolution. In the limit of a totally unknown waveform, this is just VLBI.&lt;/p&gt;
</content><category term="GNSS"/></entry><entry><title>Parallel processing of recorded GNSS signals</title><link href="http://www.pmonta.com/parallel-processing-of-recorded-gnss-signals.html" rel="alternate"/><published>2014-07-25T23:51:00-04:00</published><updated>2014-07-25T23:51:00-04:00</updated><author><name>Peter Monta</name></author><id>tag:www.pmonta.com,2014-07-25:/parallel-processing-of-recorded-gnss-signals.html</id><summary type="html">&lt;p&gt;Most GNSS receivers process signals serially. This is natural for tracking loops based on PLLs and DLLs, as they have a feedback structure. If signals are recorded and stored, however, another viewpoint might be more flexible.&lt;/p&gt;
&lt;p&gt;Let's regard the recorded waveform as a series of chunks of length, say, 5 …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Most GNSS receivers process signals serially. This is natural for tracking loops based on PLLs and DLLs, as they have a feedback structure. If signals are recorded and stored, however, another viewpoint might be more flexible.&lt;/p&gt;
&lt;p&gt;Let's regard the recorded waveform as a series of chunks of length, say, 5 minutes. All these chunks can be processed in parallel, though at the cost of ambiguities in whole cycles of carrier phase for each chunk. (Let's assume that acquisition or aiding has already allowed each chunk processor to start with good estimates of code phase and doppler, and that suitable guard intervals allow the tracking loops to converge somewhat in advance of the start of each chunk, so that effectively the chunks overlap a little.) Once all chunks are processed, whole cycles of carrier phase are simply cumulatively summed. This reduces the ambiguity set to the normal case of just a single ambiguity for the whole interval of the satellite pass (assuming no cycle slips or loss of lock).&lt;/p&gt;
&lt;p&gt;So an attractive GNSS processing scenario might be:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;deposit all waveforms in a central place, such as one of the cloud computation environments like Amazon's S3 and EC2&lt;/li&gt;
&lt;li&gt;do all processing of interest in parallel, by allocating as many processors as needed; place intermediate results as annotations on a common scoreboard&lt;/li&gt;
&lt;li&gt;coalesce the results, obtain observables, and post-process&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;By having the entire waveform accessible at once to a common pool of processors, a kind of annotation-based processing becomes possible. First, acquisition might be performed at fixed intervals, possibly aided by a location estimate and orbit estimates from IGS. Once the file has been annotated with acquisition results, each chunk can be tracked as outlined above. Vector tracking, differencing at the correlator level, quality monitoring, etc. can all be included as additional workflow options.&lt;/p&gt;
</content><category term="GNSS"/></entry><entry><title>GPS P code exploration</title><link href="http://www.pmonta.com/gps-p-code-exploration.html" rel="alternate"/><published>2014-07-08T06:49:00-04:00</published><updated>2014-07-08T06:49:00-04:00</updated><author><name>Peter Monta</name></author><id>tag:www.pmonta.com,2014-07-08:/gps-p-code-exploration.html</id><summary type="html">&lt;p&gt;As a first step towards obtaining GPS P-code observables, it seems prudent to verify that the P code is detectable in a test recording with high C/N0.&lt;/p&gt;
&lt;p&gt;Here's the result with an L1 recording containing a strong signal from PRN 30 (about 50 dBHz). The peak is smeared over …&lt;/p&gt;</summary><content type="html">&lt;p&gt;As a first step towards obtaining GPS P-code observables, it seems prudent to verify that the P code is detectable in a test recording with high C/N0.&lt;/p&gt;
&lt;p&gt;Here's the result with an L1 recording containing a strong signal from PRN 30 (about 50 dBHz). The peak is smeared over an extent somewhat larger than two chips, the result of some residual code doppler. Also the peak is offset by about 1 chip, again the result of residual error from the C/A acquisition (about 0.1 C/A chip). It was great to see it at all though. Certainly it proves out the P code generator.&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external image-reference" href="http://www.pmonta.com/uploads/2014/07/p_code.png"&gt;&lt;img alt="p_code" src="http://www.pmonta.com/uploads/2014/07/p_code.png" style="width: 100%;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The recording is about 1.4 seconds long and contains these data bits:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
000100010110111101111011110010001011000011000001100010101110010100100100101
&lt;/pre&gt;
&lt;p&gt;It turns out I was a bit lucky and got a complete TOW word at the end:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
0001000101101111011110111100
10001011                        # Preamble
00001100000110                  # TLM Message
0                               # Integrity Status Flag
0                               # Reserved
101011                          # Parity
10010100100100101               # TOW Count (inverted: 01101011011011010)
&lt;/pre&gt;
&lt;p&gt;This TOW count corresponds to Wednesday 19:40:12 in the GPS week, so the first bit of the preamble is at 19:40:06. Adding up the C/A code phase and the previous bits gives the time of the first RF sample of the file as 19:40:05.450822469 or 3375955761914 P code chips. That was the offset given to the script that produced the above plot.&lt;/p&gt;
&lt;p&gt;I've put the code generators and some preliminary acquisition and tracking software in a new GitHub repository:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://github.com/pmonta/GNSS-DSP-tools/"&gt;https://github.com/pmonta/GNSS-DSP-tools/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I'm sure it's not as efficient as low-level code in C, but it's nice to have concise scripts for prototyping, with everything in the Matlab-like python / numpy environment.&lt;/p&gt;
</content><category term="GNSS"/></entry></feed>