@@ -11,37 +11,91 @@ UBX2RINEX
1111` ubx2rinex ` is a small command line utility to deserialize
1212a U-Blox data stream into standardized RINEX file(s).
1313
14- :warning : this tool is work in progress.
15-
1614## Licensing
1715
18- This application is part of the [ nav-solutions framework] ( https://github.com/nav-solutions ) which
19- is delivered under the [ Mozilla V2 Public] ( https://www.mozilla.org/en-US/MPL/2.0 ) license.
16+ This application is part of the [ nav-solutions framework] ( https://github.com/nav-solutions ) and
17+ is licensed under [ Mozilla V2 Public] ( https://www.mozilla.org/en-US/MPL/2.0 ) license.
18+
19+ ## Constellations
20+
21+ Supported constellations:
22+
23+ - GPS (US)
24+ - Galileo (EU)
25+ - Glonass (RU)
26+ - BeiDou (CH)
27+ - QZSS (Japan)
28+ - IRNSS/NAV-IC (India)
29+ - SBAS
30+
31+ ## Signals
32+
33+ Supported signals/modulations:
34+
35+ - GPS L1 C/A
36+ - SBAS L1 C/A
37+ - QZSS L1 C/A
38+ - Galileo E1 (C+B)
39+ - Glonass L1
40+ - GPS L2 (M+L)
41+ - QZSS L2 (M+L)
42+ - Glonass L2
43+ - Galileo E5A (I+Q)
44+ - Galileo E5B (I+Q)
45+ - QZSS L5 (I+Q)
46+ - BDS B1i (D1+D2)
47+ - BDS B2i (D1+D2)
48+ - BDS B1C
49+ - BDS B2A
50+ - QZSS L1 S
51+ - IRNSS/NAV-IC L5 (A)
52+
53+ ## U-Blox protocol
54+
55+ Supported UBX protocol versions
56+
57+ - V14
58+ - V23 (Default)
59+ - V27
60+ - V31
61+
62+ You need to select one at least. When building with default features, you obtain the default UBX protocol.
63+ You cannot build this application with ` --all-features ` until further notice, because you can only select
64+ one particular revision of the UBX protocol.
2065
2166## Install from Cargo
2267
23- You can directly install the tool from Cargo with internet access :
68+ Install the latest official release from the worldwide portal directly :
2469
2570``` bash
2671cargo install ubx2rinex
2772```
2873
29- ## Build from sources
74+ # Build from sources
3075
3176Download the version you are interested in:
3277
3378``` bash
3479git clone https://github.com/nav-solutions/ubx2rinex
3580```
3681
37- And build it using cargo:
82+ Grab our test data if you're interested in the .UBX files:
83+
84+ ``` bash
85+ git clone --recurse-submodules https://github.com/nav-solutions/ubx2rinex
86+ ```
87+
88+ Build the latest version with default UBX protocol:
3889
3990``` bash
4091cargo build -r
4192```
4293
43- The application uses the latest ` UBX ` protocol supported. This may unlock full potential
44- of modern devices, and does not cause issues with older firmwares, simply restricted applications.
94+ Build for protocol v31 specifically:
95+
96+ ``` bash
97+ cargo build -r --no-default-features --features ubx31
98+ ```
4599
46100## Getting started
47101
@@ -53,15 +107,25 @@ Connecting and operating a GNSS module requires more knowledge and involes more
53107Mostly, to configure the hardware and operate correctly. One example would be the selection
54108of the desired Constellation, and navigation signals. You select this mode of operation by
55109connecting to a device with ` -p,--port ` (mandatory).
110+ In active mode, you must select at least one constellation and one signal. For example, ` --gps ` and ` --l1 ` .
56111
57112When operating in passive mode, all hardware related options no longer apply.
58113You select this mode of operation by loading at least one file with ` -f,--file ` (mandatory).
59- Passive deployment example:
114+ For example:
60115
61116``` bash
62- ubx2rinex -f data/UBX/F9T-L2-5min.ubx.gz --l1 --gps --bds --galileo
117+ ubx2rinex -f data/UBX/F9T-L2-5min.ubx.gz
63118```
64119
120+ Will deserialize any data to be encountered. But you can select Constellations specifically,
121+ for example:
122+
123+ ``` bash
124+ ubx2rinex -f data/UBX/F9T-L2-5min.ubx.gz --gps
125+ ```
126+
127+ Will only deserialize GPS data.
128+
65129In any case, either ` -p,--port ` or ` -f,--file ` is required and they are mutually exclusive:
66130you cannot operate in both modes at the same time.
67131
@@ -191,12 +255,53 @@ every time a new gathering period starts.
191255File name conventions
192256=====================
193257
194- ` ubx2rinex ` follows and uses RINEX standard conventions. By default we will generate
195- RINEX ` V2 ` (short) filenames, as it only requires one field to be complete.
196- By default, this field is set to ` UBX ` , but you can change that with ` --name ` :
258+ ` UBX2RINEX ` will generate short (V2) standardized RINEX file names by default,
259+ even though we generate a V3 file format by default.
260+
261+ ``` bash
262+ ubx2rinex -f data/UBX/F9T-L2-5min.ubx.gz --gps
263+ ```
264+
265+ This is because the V3 file format is the most common and normal RINEX format.
266+ Yet, it is impossible to generate a valid V3 file name by default.
267+
268+ To switch to V3 file name by default, simply use ` -l,--long ` , which means
269+ you prefer longer filenames. But to obtain a valid file name, you should specify
270+ a country code as well:
271+
272+ ``` bash
273+ ubx2rinex -l --gps -c USA -f data/UBX/F9T-L2-5min.ubx.gz
274+ ```
275+
276+ Note that country codes are always 3 letters.
277+
278+ The receiver model also impacts the standardized V2/V3 standardized filename.
279+ For example, here we emphasize that this is a F9T receiver model, and that applies
280+ to each standard:
281+
282+ ``` bash
283+ ubx2rinex -m F9T --gps -c USA -f data/UBX/F9T-L2-5min.ubx.gz
284+ ubx2rinex -l -m F9T --gps -c USA -f data/UBX/F9T-L2-5min.ubx.gz
285+ ```
286+
287+ You can generate a completely custom name and not use the standard generator:
288+
289+ ``` bash
290+ ubx2rinex -n CUSTOM --gps -f data/UBX/F9T-L2-5min.ubx.gz
291+ ```
292+
293+ And still take advantage of session customization, for example:
294+
295+ ``` bash
296+ ubx2rinex -n CUSTOM -m F9T --gps -f data/UBX/F9T-L2-5min.ubx.gz
297+ ```
298+
299+ You can select a destination folder with ` --prefix ` , which applies to either
300+ customized or standardize names:
197301
198302``` bash
199- RUST_LOG=trace ubx2rinex -p /dev/ttyUSB1 --gps --name M8T
303+ ubx2rinex --prefix /tmp -m F9T --gps -f data/UBX/F9T-L2-5min.ubx.gz
304+ ubx2rinex --prefix /tmp -n CUSTOM -m F9T --gps -f data/UBX/F9T-L2-5min.ubx.gz
200305```
201306
202307Signal Collection
0 commit comments