diff options
author | Andre Naujoks <nautsch2@googlemail.com> | 2011-02-13 05:52:59 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-02-13 05:52:59 -0500 |
commit | 2ad085cf59eeb49e833cc0512a5fad80b06d3f19 (patch) | |
tree | b8a49320c2952e30b9dd920751e4113014be4bd8 /driver_ubx.c | |
parent | a4950ec0cce35824485c3ba9afcf2677526ff653 (diff) | |
download | gpsd-2ad085cf59eeb49e833cc0512a5fad80b06d3f19.tar.gz |
Bug fixes and improvements for the NTRIP code.
The first thing I had to do to make RTCM work at all, was to remove
the separate poll for the socket (the change in gpsd.c). The same
stuff is done in consume_packet, so there is no loss here. In fact the
duplicated read caused constant lock losses on the RTCM stream because
of missing data, which was already read by the now removed read.
Add RTCM2 passthrough to the UBX driver: versions of the firmware since 7.0
can handle this.
The change in net_ntrip.c adds another string to the valid strings for
rtcm2 to be recognized. See:
http://www.sapos-ni-ntrip.de:2101/sourcetable.htm for the sourcetable
of the server. The mountpoint I am using is EPS_NI. The problem is
the RTCM1_ data format. The people from sapos confirmed, that this is
a RTCM2 stream and so far it works.
All regression tests pass.
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
Diffstat (limited to 'driver_ubx.c')
-rw-r--r-- | driver_ubx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_ubx.c b/driver_ubx.c index 8b5cbed3..20abb8ac 100644 --- a/driver_ubx.c +++ b/driver_ubx.c @@ -760,7 +760,7 @@ const struct gps_type_t ubx_binary = { .probe_detect = NULL, /* Startup-time device detector */ .get_packet = generic_get, /* Packet getter (using default routine) */ .parse_packet = parse_input, /* Parse message packets */ - .rtcm_writer = NULL, /* RTCM handler (using default routine) */ + .rtcm_writer = pass_rtcm, /* RTCM handler (using default routine) */ .event_hook = ubx_event_hook, /* Fiew in variious lifetime events */ #ifdef ALLOW_RECONFIGURE .speed_switcher = ubx_speed, /* Speed (baudrate) switch */ |