RXtoRINEX
V2.1
RXtoRINEX provides tools to collect data from GPS / GNSS receivers in mobile devices, convert them to RINEX or RTK formats, and process RINEX files.
|
Functions | |
int | extractMsgs (FILE *, Logger *) |
int | main (int argc, char *argv[]) |
Contains the command line program to dump contents of an OSP binary data file to the standard output.
Usage:
OSPtoTXT.exe {options} [OSPfileName]
Options are:
Copyright 2015 Francisco Cancillo
This file is part of the RXtoRINEX tool.
RXtoRINEX is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. RXtoRINEX is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. A copy of the GNU General Public License can be found at http://www.gnu.org/licenses/.
Ver. |Date |Reason for change ---—+----—+---------------— V1.0 |2/2015 |First release V1.1 |2/2016 |Minor changes to improve logging V1.2 |2/2018 |Reviewed to run on Linux
int extractMsgs | ( | FILE * | inFile, |
Logger * | plog | ||
) |
extractMsgs extracts OSP messages contained in a OSP binary file and prints relevant data to stdout. The OSP binary file contain OSP messages (see SiRF IV ICD for details)
inFile | the pointer to the OSP binary FILE to read |
plog | the pointer to the Logger object |
For each input message, the following data are printed:
-MID 70 GLONASS almanac/ephemeris response to MID 212
int main | ( | int | argc, |
char * | argv[] | ||
) |
main gets the command line arguments, set parameters accordingly and performs the data acquisition for printing them. Input data are contained in a OSP binary file containing length and payload of receiver messages (see SiRF IV ICD for details). The output contains printed descriptive relevant data from each OSP message:
argc | the number of arguments passed from the command line |
argv | the array of arguments passed from the command line |
The main process sequence follows:
1- Defines and sets the error logger object
2- Setups the valid options in the command line. They will be used by the argument/option parser
3- Setups the default values for operators in the command line
4- Parses arguments in the command line extracting options and operators
5- Sets logging level stated in option
6- Opens the OSP binary file
7- Call extractMsgs to extract messages from the binary OSP file and print contents