Line 387: |
Line 387: |
| | | |
| See [[#Debug Options]] levels for more information on how this works. | | See [[#Debug Options]] levels for more information on how this works. |
| + | |
| + | |
| + | ==Trimble Debug Status Decoding== |
| + | The VOTER/RTCM when in TSIP mode (Trimble), assumes it is a Trimble Thunderbolt and is looking for two packets: |
| + | *0x8F-AB - Primary Timing Packet |
| + | *0x8F-AC - Supplemental Timing Packet |
| + | |
| + | |
| + | Grab a copy of the Thunderbolt User Guide: http://leapsecond.com/pages/tbolt/Thunderbolt-2012-02.pdf |
| + | |
| + | |
| + | Pages 78-83 are the important ones. |
| + | |
| + | |
| + | Packet 0x8F-AB is what grabs the timing information, and packet 0x8F-AC is what it looks at for everything else (including debug). |
| + | |
| + | |
| + | The debug string that the VOTER/RTCM reports: |
| + | |
| + | <pre> |
| + | printf("GPS-DEBUG: TSIP: ok %d, 9 - 14: %02x %02x %02x %02x %02x %02x\n", |
| + | happy,gps_buf[9],gps_buf[10],gps_buf[11],gps_buf[12],gps_buf[13],gps_buf[14]); |
| + | </pre> |
| + | |
| + | |
| + | So, the 1 after ok is the "happy gps" flag. The other 5 bytes are supposed to be bytes 9-14 from the packet... sort of. They are bytes 9-14 of the buffer, but they are actually bytes 8-13 of the binary message. |
| + | |
| + | |
| + | Looking at the message structure, bytes 8-13 are: |
| + | *8-9 Critical Alarms |
| + | *10-11 Minor Alarms |
| + | *12 GPS Decoding Status |
| + | *13 Disciplining Activity |
| + | |
| + | |
| + | Therefore, the messages you are seeing break down as follows: |
| + | |
| + | <pre> |
| + | GPS-DEBUG: TSIP: ok 1, 9 - 14: 00 00 00 00 00 00 - everything is good in the 'hood, Doing Fixes, Phase Locking |
| + | |
| + | GPS-DEBUG: TSIP: ok 0, 9 - 14: 00 00 00 18 08 06 - not happy, Not Tracking Satellites, Not Disciplining Oscillator (0x18 --> 0b000000011000), No Usable Sats, Inactive |
| + | |
| + | GPS-DEBUG: TSIP: ok 0, 9 - 14: 00 00 00 08 08 05 - not happy, Not Tracking Satellites, No Useable Sats, Compensating OXCO (holdover) |
| + | |
| + | GPS-DEBUG: TSIP: ok 0, 9 - 14: 00 00 00 00 00 05 - not happy, Compensating OXCO (holdover) |
| + | |
| + | GPS-DEBUG: TSIP: ok 1, 9 - 14: 00 00 00 00 00 08 - happy, Recovery Mode |
| + | |
| + | GPS-DEBUG: TSIP: ok 0, 9 - 14: 00 00 00 00 00 04 - not happy, Initializing Loop Filter |
| + | </pre> |
| + | |
| + | |
| + | The GPS is flagged as NOT HAPPY in TSIP mode if ANY of the following are TRUE: |
| + | *If GPS Decoding Status is anything other than "Doing Fixes". |
| + | *If Disciplining Activity is not Phase Locking or Recovery Mode. |
| + | *Any Critical Alarms. |
| + | *Any Minor Alarms. |
| | | |
| | | |