summaryrefslogtreecommitdiff
path: root/driver_italk.c
Commit message (Collapse)AuthorAgeFilesLines
* Back out the attempt to use VTIME.Eric S. Raymond2015-01-311-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to Matthias Drochner at http://lists.lysator.liu.se/pipermail/lsh-bugs/2003q4/000151.html: I thought I'd give lsh a try, just to see how it compares to openssh... The client didn't work well on NetBSD, got a message like "unexpected EWOULDBLOCK" on each keystroke. Looked a bit deeper and found that stdin is set to O_NONBLOCK and a raw tty mode with c_cc[VMIN] > 1 and c_cc[VTIME] > 0. I'll append a little test program which does the same. I've tried it on 3 operating systems (Linux, NetBSD, Digital UNIX), and it behaves differently on each: -on Linux, if a key is pressed, the read returns immediately with that one character -on NetBSD, the read returns with no data but EWOULDBLOCK -on D'UNIX, the poll() doesn't teturn before 4 keypresses are done; the read() returns these 4 characters Indeed, in SUSv2's termios page is a sentence which says that if both O_NONBLOCK and VTIME>0 are set, the behaviour is more or less undefined. I've solved my immediate problems by setting VMIN to 1 instead of 4 in unix_interact.c:do_make_raw(), but VTIME is still pointless, so I wouldn't call this a clean solution. All regression tests pass.
* Add a minimum packet length to every driver.Eric S. Raymond2015-01-291-0/+1
| | | | Length 0 means the minimum is unknown and the driver should use character I/O.
* Easy splint cleanups. All regression tests pass.Eric S. Raymond2015-01-211-4/+4
|
* Almost entirely eliminate use of sats_used array.Eric S. Raymond2015-01-101-9/+8
| | | | | | | Instead, set the used member in the satellites array directly where possible. The NMEA0183 and TSIP drivers still need a local equivalent. This changes pseudo-NMEA GSA output in several binary-protocol tests.
* Refactor representation of satellite data into an array of structs...Eric S. Raymond2014-09-221-9/+12
| | | | | | | | | | | | | | | | | | ...from a set of parallel arrays. This change flushed out a longstanding bug in the computation of DOPs for estimated error bars. Some test-load rebuilds were required: geostar-geos1m-binary.log.chk: With this change error estimates are computed and reported. trimble-lassen_iq-3dfix.log, trimble-lassen_iq-3dfix.log: the change revealed a bug in the computation of satellite-seen bits. Error estimates did not change. navcom.log: Error estimates changed. With these rebuilds, all regression tests pass.
* Now that the transition is done we can restore the gpsd_report name.Eric S. Raymond2014-08-271-23/+23
| | | | All regression tests pass.
* The big leap. Most instances of gpsd_report are replaced...Eric S. Raymond2014-08-271-23/+23
| | | | | | | | | | | | | | | | ...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-23/+23
| | | | | | 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-5/+5
| | | | All regression tests pass.
* Split firmwqre version query out of the init method.Eric S. Raymond2014-08-251-0/+1
| | | | | | 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.
* Drop the obsolete tag field from JSON output. Bump the minor protocol number.Eric S. Raymond2014-08-241-2/+0
| | | | | | | Required a regression-test rebuild, of course. The field is still set by the TSIP and SiRF drivers; the SiRF driver actually uses it. It may be possible to eliminate the TSIP uses, but so far attempting this has produced odd regression-test failures.
* More consistent ise of LOG_PROG.Eric S. Raymond2013-11-121-1/+2
| | | | This logging level is intended to directly explain accompanying I/O messages.
* Reduce gpsd log verbosity a lot.Eric S. Raymond2013-11-121-11/+20
| | | | | | | | | | 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-2/+2
|
* Code is fully cppcheck, splint, and Coverity clean.Eric S. Raymond2013-11-061-2/+2
| | | | All regression tests pass. PPS is live.
* Contain the assumption that time hinting is done to NTPD.Eric S. Raymond2013-10-311-3/+3
| | | | | | | Because it might be going to chrony. Or something else. No logic changes, just name changes and one new derived #define, TIMEHINT_ENABLE.
* Revert "Separate ntpd support from chrony support, step 1."Eric S. Raymond2013-10-301-3/+3
| | | | We'll have to sneak up on this change more slowly.
* Separate ntpd support from chrony support, step 1.Eric S. Raymond2013-10-301-3/+3
| | | | | | | | | | | | | 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.
* More efficiebt sticky-flagging.Eric S. Raymond2013-10-151-1/+1
|
* OK, visualize as a method was a bad idea. All regression tests pass.Eric S. Raymond2013-10-141-3/+0
|
* Create driver slot and scons option for a visualizer driver method.Eric S. Raymond2013-10-131-0/+3
|
* Change the logic for managing the drive mode bit to report reality...Eric S. Raymond2013-10-041-9/+3
| | | | ...rather than setting it ad-hoc on a per-driver basis.
* Change gpsd_report to no longer use a global. All regression tests pass.Eric S. Raymond2013-09-291-23/+27
| | | | | | | | 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.
* More cppcheck cleanup.Eric S. Raymond2013-09-171-1/+0
|
* Nuke trailing whitespace in C source.Eric S. Raymond2012-09-071-2/+2
|
* Replace 'ushort' with 'unsigned short'.Eric S. Raymond2012-09-071-9/+9
|
* Remove unnecessary includes of termios.h .ukyg9e5r6k7gubiekd62012-09-071-1/+0
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Suppress some silly signedness warnings.Eric S. Raymond2012-07-021-3/+3
|
* Refacter the bits.c stuff to eliminate ugly globals...Eric S. Raymond2012-06-021-3/+2
| | | | | | ...and be more explicit about operand sizes. All regressuion tests [ass, code splints clean.
* More cppcheck warning fixups. All regression tests pass.Eric S. Raymond2012-05-181-0/+1
|
* Cleanup motivated by new cppcheck with more tests. All regression tests pass.Eric S. Raymond2012-05-161-1/+2
|
* Remove gpsd_hexdump_wrapper() from everything outside the packet sniffer.Eric S. Raymond2011-06-171-2/+1
|
* Regularize some names.Eric S. Raymond2011-04-011-4/+4
|
* gps_maskdump() has been a CPU hog. Drastically reduce the number of calls...Eric S. Raymond2011-03-311-3/+2
| | | | | ...and guard them with debug level so they won't be done when the output would never be shipped anywhere.
* Scan-build and splint cleanup. All regression tests pass.Eric S. Raymond2011-03-281-2/+2
|
* Re-identify most *_IS flags with corresponding *_SET flags.Eric S. Raymond2011-03-271-8/+8
| | | | | | | | | | | Required so clients looking at flag masks in data exported via the shared-memory interface will see the right thing. These were separated originally in order to avoid pushing the reqyuired width of the gpsdata.set flag mask over 32 bits. It became 64 bits in the Version 5 API change, so that constraint went away. All regression tests pass.
* Make all drivers set the PPSTIME_IS mask where appropriate. It's not yet used.Eric S. Raymond2011-03-231-2/+2
| | | | All regression tests pass.
* Simplify and regularize #ifdefs. All regression tests pass.Eric S. Raymond2011-03-041-2/+2
|
* Remove pass_rtcm(),Eric S. Raymond2011-02-271-1/+1
| | | | | Replace it wuth what it calls, gpsd_write(). Requiresd only a prototype tweak and some casts, no logic changes. All regression tests pass.
* Don't pretent to have methods we have not implemented.Eric S. Raymond2011-02-271-75/+4
|
* Refactor time handling yet again. All regression tests pass.Eric S. Raymond2011-01-211-4/+4
|
* Add some suitable warning comments.Eric S. Raymond2011-01-211-0/+5
|
* Added a driver-type flags member to the driver method structure.Eric S. Raymond2011-01-191-0/+1
| | | | All regression tests pass.
* splint cleanup. All regression tests pass.Eric S. Raymond2011-01-181-3/+2
|
* Cope with week counter rollovers while gpsd is running.Eric S. Raymond2011-01-171-3/+0
|
* Refactor time resolution. All regression tests pass.Eric S. Raymond2011-01-171-46/+16
|
* Introduce GPS_TIME_VALID flag for GPS time validation.Eric S. Raymond2011-01-171-0/+4
|
* More deheader testing. All regressions pass, codebase splints clean.Eric S. Raymond2011-01-131-0/+1
|
* A lot of subframes are invalid, only SUBFRAME_IS on good ones.Gary E. Miller2011-01-031-2/+1
|
* Reporting framework for subframes. All regression tests pass.Eric S. Raymond2011-01-031-1/+1
|