[FOSS-GPS] software for convering UBX to RINEX?

Timo Juhani Lindfors timo.lindfors at iki.fi
Tue Jul 20 03:31:48 EDT 2010


Hi, 

I finally figured out how to get RXM-RAW UBX messages that supposedly
contain raw pseudorange information. How should I go about checking if
the data is any good? I guess I should first figure how to convert it
to RINEX?

1) Google finds http://home.comcast.net/~dmilbert/softs/ant2rin.htm which
does not quite compile with gfortran in Debian:

wget http://home.comcast.net/~dmilbert/softs/ant2rin.for.txt
mv ant2rin.for.txt ant2rin.f
gfortran-4.4 ant2rin.f
ant2rin.f:27.72:

      open(lin, file='ant2rin.ubx',form='binary',status='old')
                                                                        1
Error: FORM specifier in OPEN statement at (1) has invalid value 'binary'
ant2rin.f:496.72:

        call getarg(ipos,buff,status)
                                                                        1
Error: Too many arguments in call to 'getarg' at (1)


2) http://ls.unavco.org/pipermail/teqc/2006/000342.html talks about
some teqc program which has an FAQ entry with "The UNAVCO Facility does
not make the teqc source code available, except in special
circumstances usually requiring a non-disclosure agreement."

3) http://www.gogps-project.org/ depends on non-free matlab with java
version "available soon".

4) gpstoolkit source code does not mention UBX at all.

5) rtklib has a convbin tool. Is this the tool I should be using?

lindi1:~/tmp$ cat /dev/gps > RXM-RAW.1279580805.ubx
lindi1:~/tmp$ ~/debian/debian-rtklib/rtklib_2.3.0/app/convbin/gcc/convbin RXM-RAW.1279580805.ubx
input file: RXM-RAW.1279580805.ubx (u-blox)
rinex obs  : RXM-RAW.1279580805.obs
rinex nav  : RXM-RAW.1279580805.nav
rinex gnav : RXM-RAW.1279580805.gnav
sbas msg   : RXM-RAW.1279580805.sbs
2010/07/19 23:07:09-07/20 04:33:07: O=19557 N=0 G=0 S=0 E=2
lindi1:~/tmp$ ls -l
total 15960
-rw-r--r-- 1 lindi kurp      324 Jul 20 10:26 RXM-RAW.1279580805.gnav
-rw-r--r-- 1 lindi kurp      648 Jul 20 10:26 RXM-RAW.1279580805.nav
-rw-r--r-- 1 lindi kurp 11985665 Jul 20 10:26 RXM-RAW.1279580805.obs
-rw-r--r-- 1 lindi kurp        0 Jul 20 10:26 RXM-RAW.1279580805.sbs
-rw-r--r-- 1 lindi kurp  4313904 Jul 20 10:22 RXM-RAW.1279580805.ubx
lindi1:~/tmp$ RinexDump RXM-RAW.1279580805.obs | head
# Rinexdump File: RXM-RAW.1279580805.obs   Satellites: ALL   Observations: ALL
# Time (%4F %10.3g) Sat            C1 L S            L1 L S            P2 L S            L2 L S
    1593 169628.998 G03  22012169.085 0 0 115674638.547 0 0         0.000 0 0         0.000 0 0
    1593 169628.998 G06  22691984.402 0 0 119247189.216 0 0         0.000 0 0         0.000 0 0
    1593 169628.998 G11  22447756.940 0 0 117963803.785 0 0         0.000 0 0         0.000 0 0
    1593 169628.998 G14  22096609.520 0 0 116118456.058 0 0         0.000 0 0         0.000 0 0
    1593 169628.998 G19  20574963.864 0 0 108122199.305 0 0         0.000 0 0         0.000 0 0
    1593 169628.998 G22  20783906.467 0 0         0.000 3 0         0.000 0 0         0.000 0 0
    1593 169628.998 G28  23463557.027 0 0 123301866.456 0 0         0.000 0 0         0.000 0 0
    1593 169629.998 G03  22012570.798 0 0 115676748.734 0 0         0.000 0 0         0.000 0 0

I'm bit lost. Does this look sensible? Do I need more than RXM-RAW to
calculate my position? Perhaps ephemeris in some format? I would
greatly appreciate a step-by-step tutorial for newbies :-)

I have two identical receivers so I was hoping that if I keep one at a
fixed location I could use it to aid the moving receiver (perhaps over
WLAN?). Is this possible and are there command line tools for it?

best regards,
Timo  Lindors


More information about the FOSS-GPS mailing list