summaryrefslogtreecommitdiff
path: root/gpsd.c
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate the ntrip_state global.Eric S. Raymond2011-02-261-2/+11
|
* The NTRIP connection state musn't be zeroed on gpsd_activate().Eric S. Raymond2011-02-241-5/+5
| | | | Andre Naujoks informed me of this.
* Add an explanatory comment.Eric S. Raymond2011-02-241-0/+4
|
* Eliminate the context->netgnss_service member.Eric S. Raymond2011-02-241-1/+1
| | | | | | | | | This is more global context that really needed to be per-device state. Instead, create a per-devicd servicetype member to carry this information. Practically apeaking, this means gpsd can now watch multiple NTRIP and DGPS sessions without getting confused. All regressuin tests pass.
* Eliminate the dsock member in the context structure.Eric S. Raymond2011-02-241-9/+82
| | | | | | | | | | | | Another step towards integrating NTRIP support in a way that's actually correct for the daemon architecture. This involved conditioning out code for DGPSIP server lookups, a feature which was never documented and has probably been broken forever. It's actually not even clear there are still any DGPSIP servers still running; the dgpsip package was removed from Debiann at maintainer request in 2008 (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=392666). I may yet just rip out that code entirely.
* Move NTRIP per-connection state from global context to private driver area.Eric S. Raymond2011-02-241-8/+6
| | | | | | | The flap over probes revealed that the NTRIP support is bolted onto the daemon in a very awkward way that is likely to cause problems now that it's actually being, like, *used*. This is a step towards making it behave more like a normal driver.
* remove unneeded splint directives around open_device/add_deviceJon Schlueter2011-02-221-7/+0
|
* NTRIP fixes from Andre Naujoks.Eric S. Raymond2011-02-211-4/+40
| | | | I fixed them up to splint clean.
* notify_watchers take a const char * sentenceJon Schlueter2011-02-211-1/+1
|
* change add_device,find_device all take const char *Jon Schlueter2011-02-211-2/+2
|
* whitespace cleanup in gpsd.cJon Schlueter2011-02-211-12/+12
|
* splint cleanup make context,devices, subscribers static scopeJon Schlueter2011-02-211-3/+3
| | | | | in gpsd.c context,devices and subscribers were global in scope, but only ever used in gpsd.c. Made them static scope
* Simplify open_device(), eliminating an onnneeded table lookup.Andre Naujoks2011-02-211-25/+17
| | | | | | All regression tests pass. Live-tested in both -n mode and without -n. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* More layer separation. All regression tests pass.Eric S. Raymond2011-02-161-31/+2
|
* Refactoring step. All regression tests pass.Eric S. Raymond2011-02-161-79/+27
| | | | | | | | | | What's going in with this commit, and the last one, is that I'm disentangling the logic for JSON reporting of device state from the daemon dispatcher layer. This means that other programs that use libgpsd *without* necessarily going through the dispatcher layer will be able to do so. No logic changes.
* Refactoring step, no logic changes. All regression tests pass.Eric S. Raymond2011-02-161-37/+34
|
* Splint cleanup. All regression tests pass.Eric S. Raymond2011-02-161-1/+1
|
* Bug fix: RTCM2 JSON dumps get a device field.Eric S. Raymond2011-02-161-2/+3
| | | | All regression tests pass.
* Bug fix: AIS JSON objects get a device field.Eric S. Raymond2011-02-161-0/+1
| | | | All regression tests pass.
* Data hiding.Eric S. Raymond2011-02-161-1/+1
|
* SUBFRAME JSON object gets a device tag.Eric S. Raymond2011-02-161-3/+1
|
* Generate NMEA GPALM in pseudo-NMEA when almanic information is available.Michael Tatarinov2011-02-161-3/+13
|
* Bug fixes and improvements for the NTRIP code.Andre Naujoks2011-02-131-9/+1
| | | | | | | | | | | | | | | | | | | | | | 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>
* More name changes related to GST.Eric S. Raymond2011-02-011-1/+1
| | | | All regression tests pass.
* Process GPGST into noise statistics. All regression tests pass.Thomas Sprinkmeier2011-02-011-0/+20
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Timestamps in TPV and SKY go from float seconds since Unix epoch to ISO8601.Eric S. Raymond2011-01-291-2/+3
| | | | | | | | Protocol version number is bumped. Python and C test clients are known to work; interfaces of the C and Python client bindings are unchanged. Third-party client-side bindings which rely on naively copying JSON members will break (implementers have been repeatedly warned not to do this).
* Splint cleanup. All regression tests pass.Eric S. Raymond2011-01-271-1/+0
|
* Implement ?devices control-socket command for Bluetooth discovery.Eric S. Raymond2011-01-271-0/+11
| | | | Experimental. Not documented.
* Fix tracker bug #17810: ?WATCH filter isn't work[ing].Eric S. Raymond2011-01-271-1/+1
|
* Distinguish LOG_SHOUT from LOG_ERROR. Reduce verbosity.Eric S. Raymond2011-01-251-4/+8
| | | | All regression tests pass.
* Fix typos pointed out in Berlios tracker bug #17858.Eric S. Raymond2011-01-251-7/+8
| | | | All regression tests pass.
* Another refactoring step for the time logic. All regression tests pass.Eric S. Raymond2011-01-211-1/+1
|
* Go back to wiring in a default leap-second offset at start.Eric S. Raymond2011-01-201-26/+3
| | | | | I thought I could avoid this, but it turns out SiRF chips before firmware rev 2.3.2 don't reliably get a leap-second report either. Sigh...
* Stop making an assumption about the leap-second offset at startup.Eric S. Raymond2011-01-181-1/+1
| | | | | | | | | | | | Gains: the stored leap-second offset we used for this could go stale, breaking our regression tests in the process - itr's just dumb luck that it hasn't since done so since 2008. Losses: If the receiver doesn't have leap-second cached in NVRAM (e.g, between cold boot and the next subframe message) time will be inaccurate by a few more seconds. 10 regression test outputs of 66 had to be rebuilt.
* Comment and warning fixups.Eric S. Raymond2011-01-181-2/+2
|
* Remove the START_SUBFRAME optimization hack. All regression tests pass.Eric S. Raymond2011-01-181-4/+0
| | | | | Now that we're reporting subframe data, we no longer want to avoid getting it. Renoving this gets rid of one dependency on release time.
* Cope with week counter rollovers while gpsd is running.Eric S. Raymond2011-01-171-0/+1
|
* Yet more header munging.Eric S. Raymond2011-01-131-0/+1
|
* More deheader testing. All regressions pass, codebase splints clean.Eric S. Raymond2011-01-131-0/+1
|
* More deheader testing. All regression tests pass.Eric S. Raymond2011-01-131-1/+0
|
* fix build on openbsdChris Kuethe2011-01-121-0/+1
|
* More deheader testing.Eric S. Raymond2011-01-121-1/+3
|
* Regularize some function names.Eric S. Raymond2011-01-121-3/+3
|
* Fix visibilize() for chars with the top bit set.Gary E. Miller2011-01-111-2/+3
|
* Remove subframesflag so they're omitted uncinditionally.Eric S. Raymond2011-01-101-2/+2
|
* Under Linux, use /proc to avoid opening serial devices already open.Eric S. Raymond2011-01-101-1/+1
| | | | | | | This will help prevent gpsd from consuming data from devices such as USB modems that happen to look like GPSes because they use a USB-to-serial adapter thar we have whitelisted. Relies on there being a /proc filesystem with Linux-like semantics.
* Add unscaled versions of subframe almanac and ephem3.Gary E. Miller2011-01-101-1/+2
| | | | | Some consumers of gpsd subframes will want the raw values. Plus the floating point make regression tests almost useless.
* Reporting framework for subframes. All regression tests pass.Eric S. Raymond2011-01-031-0/+13
|
* Magic number elimination. All regression tests pass.Eric S. Raymond2011-01-031-8/+8
|
* Salutary warning to future hackers.Eric S. Raymond2011-01-021-0/+1
|