| 1 | Manual for rtcm3torinex | 
|---|
| 2 |  | 
|---|
| 3 | The program rtcm3torinex is an real-time converter from NTRIP streamed RTCM3 | 
|---|
| 4 | data into the RINEX format. | 
|---|
| 5 |  | 
|---|
| 6 | RTCM3 defines a number of message types. Among them are the following: | 
|---|
| 7 |  | 
|---|
| 8 | Message | 
|---|
| 9 | Type  Contains information about | 
|---|
| 10 | -------------------------------------------------------------------------- | 
|---|
| 11 | 1001  GPS L1 code and phase | 
|---|
| 12 | 1002  GPS L1 code and phase and ambiguities and carrier to noise ratio | 
|---|
| 13 | 1003  GPS L1 and L1 code and phase | 
|---|
| 14 | 1004  GPS L1 and L2 code and phase and ambiguities and carrier to noise ratio | 
|---|
| 15 | 1005  Station coordinates XZY for antenna reference point | 
|---|
| 16 | 1006  Station coordinates XYZ for antenna reference point and antenna height | 
|---|
| 17 | 1007  Antenna descriptor and ID | 
|---|
| 18 | 1008  Antenna serial number | 
|---|
| 19 | 1009  GLONASS L1 code and phase | 
|---|
| 20 | 1010  GLONASS L1 code and phase and ambiguities and carrier to noise ratio | 
|---|
| 21 | 1011  GLONASS L1 and L1 code and phase | 
|---|
| 22 | 1012  GLONASS L1 and L2 code and phase and ambiguities and carrier to noise ratio | 
|---|
| 23 | 1013  Modified julian date, leep second, configured message types and intervall | 
|---|
| 24 | 1014-1017 Network RTK (MAK) messages | 
|---|
| 25 | 1019  GPS Ephemeris | 
|---|
| 26 | 1020  GLONASS Ephemeris | 
|---|
| 27 | 4088-4095 Proprietary messages (under development) | 
|---|
| 28 |  | 
|---|
| 29 | Note that this version of rtcm3torinex only handles RTCM3 message types 1001, | 
|---|
| 30 | 1002, 1003, 1004, 1009, 1010, 1011, 1012, 1019 and 1020. | 
|---|
| 31 |  | 
|---|
| 32 | The generated RINEX is somewhat limited due to the streaming character of the | 
|---|
| 33 | conversion: | 
|---|
| 34 |  | 
|---|
| 35 | - Header records can only represent data, which is known after receiving the | 
|---|
| 36 | very first epoch. Data rate, position, number of observations and any such | 
|---|
| 37 | additional fields cannot be provided. | 
|---|
| 38 | - The number of observables cannot change during the program runtime. Only | 
|---|
| 39 | the observables, which exist in the first epoch are output. If there | 
|---|
| 40 | are new observables later on, these are ignored. | 
|---|
| 41 | - Only known message types are interpreted. Send me new RTCM3 data files and | 
|---|
| 42 | data support can be improved. See contact address at the end of this document. | 
|---|
| 43 | - If the ambiguity field in the RTCM3 data is not set, the output will be no | 
|---|
| 44 | valid RINEX. All values will be stored modulo 299792.458. A COMMENT line | 
|---|
| 45 | will tell you, when this happens. It would be necessary to approximately | 
|---|
| 46 | calculate the range to fix the ambiguity (needing ephemeris/alamanac and | 
|---|
| 47 | easy positioning algorithm). | 
|---|
| 48 |  | 
|---|
| 49 | Usage: ./rtcm3torinex -s server -u user ... | 
|---|
| 50 | -d --data             the requested data set | 
|---|
| 51 | -f --headerfile       file for RINEX header information | 
|---|
| 52 | -s --server           the server name or address | 
|---|
| 53 | -p --password         the login password | 
|---|
| 54 | -r --port             the server port number (default 2101) | 
|---|
| 55 | -t --timeout          timeout in seconds (default 60) | 
|---|
| 56 | -u --user             the user name | 
|---|
| 57 | -E --gpsephemeris     output file for GPS ephemeris data | 
|---|
| 58 | -G --glonassephemeris output file for GLONASS ephemeris data | 
|---|
| 59 | -3 --rinex3           output RINEX type 3 data | 
|---|
| 60 | -S --proxyhost        proxy name or address | 
|---|
| 61 | -R --proxyport        proxy port, optional (default 2101) | 
|---|
| 62 | -n --nmea             NMEA string for sending to server | 
|---|
| 63 | -M --mode             mode for data request | 
|---|
| 64 | Valid modes are: | 
|---|
| 65 | 1, h, http     NTRIP Version 2.0 Caster in TCP/IP mode | 
|---|
| 66 | 2, r, rtsp     NTRIP Version 2.0 Caster in RTSP/RTP mode | 
|---|
| 67 | 3, n, ntrip1   NTRIP Version 1.0 Caster | 
|---|
| 68 | 4, a, auto     automatic detection (default) | 
|---|
| 69 |  | 
|---|
| 70 | The fields --user and --password are used to specify the access data for the | 
|---|
| 71 | NTRIP server. The arguments --server and --port are used to specify the NTRIP | 
|---|
| 72 | server itself (defaults to "www.euref-ip.net" port 2101). The Argument --data | 
|---|
| 73 | must be used to specify the RTCM3 input data stream. If it is not given, you | 
|---|
| 74 | will be shown the source table of the selected NTRIP caster. | 
|---|
| 75 |  | 
|---|
| 76 | Alternatively a single text of the form | 
|---|
| 77 | "ntrip:data[/user[:password]][@[server][:port][@proxyhost[:proxyport]]][;nmea]" | 
|---|
| 78 | can be used. Everything in brackets is optional. | 
|---|
| 79 |  | 
|---|
| 80 | Additionally the argument --headerfile can be used to provide additional header | 
|---|
| 81 | information. The file must contain normal RINEX observation file header lines. | 
|---|
| 82 | The given lines overwrite the automatical generated lines. Overwriting the | 
|---|
| 83 | lines "# / TYPES OF OBSERV" and "TIME OF FIRST OBS" usually is a bad idea and | 
|---|
| 84 | you will get warned if you do so. The line "END OF HEADER" is ignored. | 
|---|
| 85 | Unknown lines or COMMENT lines will be appended before the "END OF HEADER". | 
|---|
| 86 |  | 
|---|
| 87 | NOTE: The tool does not check the input lines for validity. So be sure to | 
|---|
| 88 | use correct RINEX specifiers as well as correct alignment. | 
|---|
| 89 |  | 
|---|
| 90 | To stop RINEX output send the program a killing signal. Following signal | 
|---|
| 91 | sources are supported: | 
|---|
| 92 |  | 
|---|
| 93 | signal    number  usual source of the signal | 
|---|
| 94 | --------------------------------------------------------------------------- | 
|---|
| 95 | SIGINT       2    pressing CTRL+C in the shell running the tool | 
|---|
| 96 | SIGQUIT      3    pressing CTRL-\ or sending QUIT signal | 
|---|
| 97 | SIGTERM     15    called kill <num> with the process number of rtcm3torinex | 
|---|
| 98 | SIGPIPE     13    the output or input of rtcm3torinex has been closed | 
|---|
| 99 |  | 
|---|
| 100 | The programm will be terminated after the current epoch has been finished. | 
|---|
| 101 | You will not get corrupted RINEX files. | 
|---|
| 102 |  | 
|---|
| 103 | When compiling the program with older gcc versions running the `make' | 
|---|
| 104 | command, you may receive an informative error message saying | 
|---|
| 105 |  | 
|---|
| 106 | rtcm3torinex.c: In function `signalhandler_alarm': | 
|---|
| 107 | rtcm3torinex.c:1240: warning: `noreturn' function does return | 
|---|
| 108 |  | 
|---|
| 109 | This is most likely a compiler problem which only concerns the optimization | 
|---|
| 110 | and is thus not critical. New compilers will not show this problem. | 
|---|
| 111 |  | 
|---|
| 112 | Program written by | 
|---|
| 113 |  | 
|---|
| 114 | Dirk Stoecker | 
|---|
| 115 | Alberding GmbH | 
|---|
| 116 | http://www.alberding.eu/ | 
|---|
| 117 |  | 
|---|
| 118 | for | 
|---|
| 119 |  | 
|---|
| 120 | Federal Agency for Cartography and Geodesy (BKG) | 
|---|
| 121 | Richard-Strauss-Allee 11 | 
|---|
| 122 | D-60598 Frankfurt | 
|---|
| 123 | http://igs.bkg.bund.de/index_ntrip.htm | 
|---|
| 124 |  | 
|---|
| 125 | Contact Dirk Stoecker [stoecker@alberding.eu] or [euref-ip@bkg.bund.de] | 
|---|
| 126 | with your comments, suggestions, improvements, patches, ... | 
|---|