summaryrefslogtreecommitdiff
path: root/drivers.c
Commit message (Collapse)AuthorAgeFilesLines
* Now that the transition is done we can restore the gpsd_report name.Eric S. Raymond2014-08-271-37/+37
| | | | All regression tests pass.
* All gpsd_reportcalls are gone. Only the unused definitins are left.Eric S. Raymond2014-08-271-6/+7
| | | | | | Next, implement labeled reporting and fix up gpson to do the right thing. All regression tests pass.
* The big leap. Most instances of gpsd_report are replaced...Eric S. Raymond2014-08-271-34/+34
| | | | | | | | | | | | | | | | ...with calls to gps_notify(), which indirects to its output method through a slot in an errout structure. Usually the errout structure lives inside the session context, but because struct errout_t is its own thing this does not have to be the case. One large clique of gpsd_notify() calls, in packet.c and isgps.c, looks at a struct errout_t copy in a lexer control block This change is not complete. Remnant gpsd_report calls need to be changed, and gpsmon needs to be tweaked so that the struct_error_t in its context is a non-defaukt hook updating the cuses display rather than simply dumping to stderr. Also the report label functionality needs to be added. All regression tests pass.
* Introduce struct errout_t to encapsulate error-reporting hooks.Eric S. Raymond2014-08-271-39/+39
| | | | | | A major step towards eliminating reverse linkage. All regression tests pass.
* Structure member name change: packet -> lexer. No logic changes.Eric S. Raymond2014-08-271-43/+43
| | | | All regression tests pass.
* A steo topwrds eliminating the reverse linkage of gpd_report().Eric S. Raymond2014-08-271-1/+1
| | | | All regression tests pass.
* Split firmwqre version query out of the init method.Eric S. Raymond2014-08-251-2/+19
| | | | | | This enables us to force readonly off while it's being called. The practical effect is that gpsmon can get a firmware version (if this is possible) without reconfiguring the device.
* Recreare the driver union, curtting per-device storage requirements.Eric S. Raymond2014-08-241-1/+1
| | | | | | | This time, the NMEA privarte storage is outside the union, so mode-switching won't step on stuff. All regression tests pass.
* Add a minor error check to AIVDM parsing.Eric S. Raymond2014-08-241-1/+5
|
* drivers.c: move extern declaration of driver_nmea200 with other extern ↵Christian Gagneraud2013-11-211-2/+1
| | | | | | declarations Signed-off-by: Christian Gagneraud <chgans@gna.org>
* drivers.c: Remove dead reference to driver_{zodiac, ubx, sirf}_binaryChristian Gagneraud2013-11-211-3/+0
| | | | | | There's no such structures anywhere in the code, remove the extern declarations. Signed-off-by: Christian Gagneraud <chgans@gna.org>
* fix typo in drivers defineMike Frysinger2013-11-211-1/+1
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Suppress path rewrites in one important special case.Eric S. Raymond2013-11-171-20/+23
|
* Reduce gpsd log verbosity a lot.Eric S. Raymond2013-11-121-4/+8
| | | | | | | | | | Way too much logging was happening at LOG_IO level, which is intended for watching data traffic in and out of the daemon rather than all the minutiae of data analysis - that's LOG_DATA. Also, LOG_DATA gets pushed down two levels. The effect is that -D 5 means exactly what it did, but for purposes other than driver debugging -D 4 now suffices.
* Rename and rationalize driver table instances. No logic changes.Eric S. Raymond2013-11-121-60/+67
|
* Fix minor bugs in JSON packet passthrough.Eric S. Raymond2013-11-121-12/+14
|
* We can now change baud rates on the GR601-W.Eric S. Raymond2013-11-121-2/+2
| | | | | | | This required some unfortunate klugery because the GR601-W is a USB device that nevertheless has port ID 1 in the u-blox CFG-PRT message (associated with the primary USART) rather than port ID 3 which is what u-blox USB would give it.
* Fix more build breakage. Partial splint cleanup.Eric S. Raymond2013-11-121-2/+2
|
* Update a comment with a caveat.Eric S. Raymond2013-11-101-9/+14
|
* Make interpretation of the split24 flag propperly per-subscriber.Eric S. Raymond2013-11-101-3/+2
| | | | | | | | This involved moving some out of the AIS driver. There is a related small change in behavior; now, if split24 is on, the Type B half of a matched pair will be shipped with type 'both'. All regression tests pass. PPS is live.
* u-blox name cleanup. All regression tests pass, PPS is live.Eric S. Raymond2013-11-091-4/+4
|
* Partial code for setting MTK pulse width to a good value.Eric S. Raymond2013-11-081-0/+1
| | | | More is needed near driver_nmea0183.c:1108.
* Polish the JSON passthrough code, and add a regression test.Eric S. Raymond2013-11-071-4/+4
|
* Code is fully cppcheck, splint, and Coverity clean.Eric S. Raymond2013-11-061-1/+1
| | | | All regression tests pass. PPS is live.
* Full splint cleanup. Partial cppcheck cleanup.Eric S. Raymond2013-11-051-3/+3
|
* Contain the assumption that time hinting is done to NTPD.Eric S. Raymond2013-10-311-51/+51
| | | | | | | Because it might be going to chrony. Or something else. No logic changes, just name changes and one new derived #define, TIMEHINT_ENABLE.
* Document good support for MTK3329 as reported by Andy Walls.Eric S. Raymond2013-10-311-1/+7
|
* Revert "Separate ntpd support from chrony support, step 1."Eric S. Raymond2013-10-301-51/+51
| | | | We'll have to sneak up on this change more slowly.
* Separate ntpd support from chrony support, step 1.Eric S. Raymond2013-10-301-51/+51
| | | | | | | | | | | | | ntp_offset becomes time_offset. There is a new config symbol CHRONY_ENABLE; most time service code is npw controlled by TIMESERVICE_ENABLE. The file ntpshm.c becomes timeexport.c This change is not complete. More disentanglement has to be done inside timeexport.c itself; at the moment enabling one but not both of ntpshm or chrony will probably break its compile. The point of getting this commit out is so Gary will see the new baseline code ASAP. All regression tests pass.
* Address Savannah bug #40331: invalid empty AIS channel -> Warning instead of ↵Eric S. Raymond2013-10-211-1/+1
| | | | error
* Ignore (but log) "Secure SIS" channel C messages.Eric S. Raymond2013-10-211-0/+4
|
* Typo fix.Eric S. Raymond2013-10-161-1/+1
|
* More efficiebt sticky-flagging.Eric S. Raymond2013-10-151-12/+12
|
* The old Delorme Earthmate control_send method is never used...Eric S. Raymond2013-10-151-2/+2
| | | | ...but needs to be there for our consistency checks.
* Eliminate a swich_driver() call that is never used. All regression tests pass.Eric S. Raymond2013-10-151-12/+6
| | | | | This fallthrough became obsolete when we started dispatch primarily on packet type.
* Fix a bug in MT3301 handling.Eric S. Raymond2013-10-141-2/+1
| | | | Reported by Andy Walls <andy@silverblocksystems.net>.
* OK, visualize as a method was a bad idea. All regression tests pass.Eric S. Raymond2013-10-141-51/+0
|
* Make all hex-dumping truly thread-safe.Eric S. Raymond2013-10-131-2/+4
|
* Create driver slot and scons option for a visualizer driver method.Eric S. Raymond2013-10-131-0/+51
|
* Update news and fix typo.Eric S. Raymond2013-10-121-1/+1
|
* Enrich the driver method listing. Shorten an overly long name.Eric S. Raymond2013-10-121-1/+1
|
* Remove some driver methods that should not have been included.Eric S. Raymond2013-10-121-3/+3
|
* Move the AIVDM context into the main driver structure scratch area.Eric S. Raymond2013-10-111-13/+7
| | | | | | This allows us to get ride of the AIVDM event hook, because it all tthat was doing was zeroing a queue index that will now be zeroed at the time of the device structure initialization.
* Move the MTK extension parset to where it belongs in the NMEA 0183 driver.Eric S. Raymond2013-10-111-49/+6
|
* Having an generic NMEA mode switcher no longer fits the type transition rules.Eric S. Raymond2013-10-111-25/+1
| | | | | | This used to make sense before binary driver recognition was sticky. Now, though, once we've recognized a binary driver type, we never switch out of it to generic NMEA.
* Change the logic for managing the drive mode bit to report reality...Eric S. Raymond2013-10-041-1/+0
| | | | ...rather than setting it ad-hoc on a per-driver basis.
* Merge branch 'master' of git://git.sv.gnu.org/gpsdReinhard Arlt2013-10-031-15/+7
|\
| * Redirect more data to the GPS through gpsd_write().Eric S. Raymond2013-10-021-15/+7
| |
* | Let gpsmon -n survive AIVDM messages.Reinhard Arlt2013-10-021-1/+1
|/
* Change gpsd_report to no longer use a global. All regression tests pass.Eric S. Raymond2013-09-291-43/+76
| | | | | | | | This is a large, ugly change. But without it we can't troubleshoot the ICP/IP-source initialization bug properly - colliding definitions of gpsd_report() were interfering with error reporting early in gpsd runs. More cleanup work remains to be done, but at least this is working.