summaryrefslogtreecommitdiff
path: root/garmin.c
Commit message (Collapse)AuthorAgeFilesLines
* Refactor sending of control strings.Eric S. Raymond2009-01-061-4/+7
| | | | | | | | Most drivers now have a control_send method that takes a payload. provides whatever checksuming and leader/trailer bytes are needed, and ships it to a specified active device. This change should not alter any behavior. All regression tests pass.
* Add a wrapper function around gpsd_hexdump to avoid hexdumping buffers...Chris Kuethe2008-12-271-10/+14
| | | | | | | | ...and copying ascii strings around when they're not going to be printed. This saves quite a lot of CPU. I processed a 50MB ubx binary file. With no "-D" options, this saved nearly 2.2M calls to gpsd_hexdump and the processing time for this file went from 84 seconds to 35 seconds.
* change various PI macros to GPS_PIChris Kuethe2008-07-201-1/+1
|
* 'typename' is a reserved word in C++. Gary E. Miller2008-01-191-3/+3
| | | | | Change to 'type_name' so gpsd pieces can be used with C++. Reported by Matt Roberds <mattroberds@cox.net>.
* use gpsd_write rather than calling write directly.Chris Kuethe2007-04-061-9/+7
|
* Add sanity checking to Garmin lat/lon values.Gary E. Miller2006-12-291-0/+16
|
* Trivial splint cleanup for the Garmin driver.Eric S. Raymond2006-12-171-1/+1
|
* ACKing a garmin packet too soon may hang things.Gary E. Miller2006-12-111-1/+3
| | | | The linux Uvcvideo project reports similar issues with sending ACKs too quickly.
* Splint cleanup.Eric S. Raymond2006-12-071-1/+1
|
* Correct bad comment arising from a misunderstanding.Eric S. Raymond2006-12-051-8/+5
|
* Fix ALLOW_RECONFIGURE compilation.Eric S. Raymond2006-12-011-0/+2
| | | | Teach the daemon to ignore comment packets led with # and ended with \n.
* Teach Garmin how to return a subtype ID.Eric S. Raymond2006-12-011-0/+4
|
* Put the old code for computing Garmin SNRs back in, conditioned out.Eric S. Raymond2006-12-011-0/+6
| | | | It seems this might vary by firmware version.
* A user figured out how Garmin encodes signal strength.Eric S. Raymond2006-11-301-5/+7
| | | | See <https://lists.berlios.de/pipermail/gpsd-dev/2006-November/005392.html>.
* Gary dropped a stitch. No big deal.Eric S. Raymond2006-11-301-0/+2
|
* Fix Garmin USB initialization.Gary E. Miller2006-11-301-19/+2
|
* Split the packet-sniffer internals out of the session structure. Eric S. Raymond2006-11-301-6/+6
| | | | | | | | | | | | | This is a big, super-intrusive patch but changes no logic at all -- it's all about ripping out some of the gps_device_t structure members into a new gps_packet_t structure. Even the driver API doesn't change at all, this is all libgpsd(3) internals being rearranged. The motivation here is that we want to kill off the ad-hoc Python implementation of a packet-sniffer in gpsfake. To do that we need to be able to write a "pure" packet sniffer that uses the same C code as the daemon's but without being welded to the rest of the libgpsd(3) code. This is the first step towards that.
* Make our assumptions about the units in Garmin error estimatesEric S. Raymond2006-11-291-3/+6
| | | | | | | consistent, document them, and tie the two places where this assumption is used tigether with comments. Also, a minor documentation tweak.
* garmin_usb_configure() is NOT optional. Gary E. Miller2006-11-291-10/+8
| | | | | | No PVT, SAT or RMD data is sent from a USB Garmin until this data is sent to it. After this patch Garmin USB is still broken. garmin_usb_configure() is never being called?
* Fix bad packet logging. Delay the ACK a bit.Gary E. Miller2006-11-291-4/+7
|
* Change the configurator method to take a packet sequence number argument...Eric S. Raymond2006-11-271-1/+3
| | | | ...the same way probe_subtype does, and for the same reason.
* Split wrapup method into revert and wrapup. The revert method is onlt calledEric S. Raymond2006-11-141-0/+17
| | | | if configuration is enabled.
* Compiler-warning and splint cleanup.Eric S. Raymond2006-11-101-2/+2
|
* Interleave NMEA subtype probes with received packets. This seems to Eric S. Raymond2006-11-071-1/+3
| | | | | *immediately* improve detection of SiRF devices in NMEA mode, and probably solves Davor Emard's Garmin GPS-10 bug as well (though this is not yet proven.
* Fix bad check for garmin_gps in /prc. Thanks to Eivind Tagseth.Gary E. Miller2006-11-061-1/+1
|
* Sigh...avoid harmless but *annoying* name collision...Eric S. Raymond2006-11-021-9/+9
| | | | | between our LOG_ERR and the syslog() macro by changing ours to LOG_ERROR.
* Define uniform log level macros.Eric S. Raymond2006-11-021-77/+77
| | | | | | | | | | | | | | | | | | | | | | This patch defines a uniform set of log levels and changes all gpsd_report() instances to use them. In most cases (I'd say about 80%) this will make no observable difference, as the numeric log levels the code was using were not too badly inconsistent anyway. The new log level macros are defined and described in gpsd.h. The main thing I wanted was to be able to consistently force dumping of all I/O to devices and clients with -D 4. Some drivers didn't honor this. One or two still may not through lack of an internal write() wrapper that does logging; there will need to be some followup changes. Level 0 messages are always displayed, but to make the semantics clearer there are two defines LOG_ERR and LOG_SHOUT. Level 5 is still super-raw I/O reporting. Level 6 and 7 messages are tagged RAW_LOG+1 and RAW_LOG+2; I was particularly careful about these because we have one report of a user who is getting good results from Garmin serial only at -D 7 or up, and perish forbid I should interfere with that bug being found.
* Pure refactoring. Eric S. Raymond2006-11-011-11/+1
| | | | | Give serial.c a new entry point so storage for TTY settings can stay private to serial.c rather than being tweaked in the Garmin driver.
* Silence stupid splint message.Gary E. Miller2006-10-311-1/+1
|
* Typo and documentation fixes.Eric S. Raymond2006-10-311-1/+1
|
* Attempt to transplant the methods ftrom garminctl...Eric S. Raymond2006-10-311-13/+60
| | | | ...into a new garmin_switcher method. Also, some splint cleanup.
* Rename some methods for clarity.Eric S. Raymond2006-10-301-22/+28
|
* unused variable compiler warningChris Kuethe2006-10-301-1/+1
|
* Fix libgpsd(3) so it's usable when ntpshm_init() has not been called.Eric S. Raymond2006-10-301-1/+1
| | | | | While investigating this I discovered that part of a previous cange (moving an ntpshm_put() call out of the NMEA driver) was incorrect and reverted it.
* Convert garmin_usb to run in serial emulation mode...Gary E. Miller2006-10-301-290/+312
| | | | | instead of packet mode. A bit simpler than the old way and works around a kernel bug.
* Rename config.h so it can be installed as gpsd_config.h...Chris Kuethe2006-10-261-1/+2
| | | | | | ...for those who want to build their own apps linked against libgps and want the headers to work. Works on OpenBSD, tested by Jeff Francis on OS X and Linux
* Partial splint cleanup.Eric S. Raymond2006-10-261-11/+17
|
* Add a new capability to the generic driver structure: wakeup...Eric S. Raymond2006-10-261-0/+2
| | | | | | | | | | ...a function to be called just after the autobaud hunt sets the line speed each time. Use this to get rid of the internal baud hunt loop in the True North driver; instead, the ID query and rate-setting strings will be sent by the wakeup hook. Note: this patch is untested. I'm pretty certain it will work, but somebody needs to try it on live hardware.
* fix signed-vs-unsigned comparison warningChris Kuethe2006-10-231-2/+2
|
* Fix units error in Garmin speed. Thanks to Jeff Frances.Gary E. Miller2006-10-151-3/+2
|
* Cleanup some warnings.Gary E. Miller2006-10-111-2/+3
|
* Make germin_ser_parse() confirm to the generic parse_packet() prototype.Gary E. Miller2006-10-101-1/+3
|
* gcc thinks the size argument is coming from the wrong place.Chris Kuethe2006-10-101-1/+1
| | | | | I think this is right, but it would be nice if a garmin user could verify that this does still work.
* missed one... print the correct function name in debug outputChris Kuethe2006-10-101-1/+1
|
* rename garmin_parse_input to garmin_usb_parse...Chris Kuethe2006-10-101-3/+3
| | | | | ...to be consistent with garmin_ser_parse and to indicate this is the handler for the usb transport.
* correct function name in debug outputChris Kuethe2006-10-101-1/+1
|
* More packet handler consolidation.Gary E. Miller2006-09-291-27/+22
|
* Move all packet creation into one function.Gary E. Miller2006-09-291-37/+38
| | | | | The code is then cleaner and one step closer being able to send Garmin Serial Binary packets.
* Fix GPGSV output, tweak the file commentsGary E. Miller2006-09-271-4/+7
|
* Fix Garmin USB as broken by recent Garmin Serial Binary changesGary E. Miller2006-09-271-4/+11
|