summaryrefslogtreecommitdiff
path: root/gpsflash.c
Commit message (Collapse)AuthorAgeFilesLines
* Quell compiler warning. I'll revisit this when someone sends me aChris Kuethe2006-12-051-1/+1
| | | | | SiRF development kit so I don't have to be absolutely terrified of trashing the receiver.
* Sigh...avoid harmless but *annoying* name collision...Eric S. Raymond2006-11-021-29/+29
| | | | | between our LOG_ERR and the syslog() macro by changing ours to LOG_ERROR.
* Define uniform log level macros.Eric S. Raymond2006-11-021-51/+51
| | | | | | | | | | | | | | | | | | | | | | 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.
* splint cleanup of gpsflash code.Eric S. Raymond2006-10-271-4/+8
|
* splint cleanup.Eric S. Raymond2006-10-261-8/+8
|
* Rename config.h so it can be installed as gpsd_config.h...Chris Kuethe2006-10-261-0/+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
* use the hex2bin function that libgpsd now providesChris Kuethe2006-09-281-27/+0
|
* More stringent firmware checks.Chris Kuethe2006-09-261-0/+95
| | | | | Validate the s-record file before trying to send it to the receiver, just in case it got corrupted.
* Invert the sense of the test.Chris Kuethe2006-09-261-1/+1
| | | | Yes, this does mean I'm hacking on firmware loading some more.
* Add subversion ID tags near the beginning of every file.Chris Kuethe2006-09-211-0/+1
| | | | First line where possible, second line for scripts called with #!
* fix the $Id$ keywords hereChris Kuethe2006-09-211-1/+1
|
* splint cleanup after CK's strcat()/strlcopy() cleanup.Eric S. Raymond2006-08-201-2/+2
|
* String safety, courtesy of snprintf, strlcat and strlcpy.Chris Kuethe2006-08-191-2/+2
| | | | | | | GPSD is now free from the often-misused strcat, strcpy and sprintf. Future code should not use unbounded string functions. Glibc users, please verify that the integrated strlcat and strlcpy are correctly linked in.
* SiRF name cleanup.Chris Kuethe2006-08-171-1/+1
| | | | | | | | | | 1) the product line is called SiRFstar 2) I don't have any original SiRFstar receivers but my documentation says the protocol remained mostly the same between SS1, SS2 and SS3; it just got richer as time went by. At least with my SS2 and SS3 receivers, this holds true. 3) elsewhere in the code there are SIRF_THIS and SIRF_THAT, which implies (correctly) independence of chipset version.
* Change -v to -V for Verbose optionGary E. Miller2006-03-131-1/+4
|
* Enable gpsflash to compile without SiRF enabled...Eric S. Raymond2005-08-191-0/+7
| | | | ...not that it will do anything useful.
* Splint cleanup.Eric S. Raymond2005-07-301-3/+5
|
* Not having I_READ_THE_WARNING set forces probe mode after giving the warning.Eric S. Raymond2005-07-291-9/+10
|
* More gpsflash infrastructure.Eric S. Raymond2005-07-291-9/+10
|
* Added expect(), so we can get a version string from the GPS.Eric S. Raymond2005-07-291-18/+67
|
* Enable a probe option in gpsflash.Eric S. Raymond2005-07-291-85/+86
|
* Added -n option and probe method to gpsflash.Eric S. Raymond2005-07-281-5/+25
|
* More steps towards getting the packet state machine to recognize RTCM.Eric S. Raymond2005-07-191-0/+27
|
* Add progress messages to gpsflash. splint cleanup.Eric S. Raymond2005-07-191-0/+30
|
* Restore some lost splint cleanups. Stronger regression tests.Eric S. Raymond2005-07-161-59/+120
|
* Do consistent naming and some splint cleaning.Eric S. Raymond2005-07-161-9/+10
|
* The big gpsflash refactoring.Eric S. Raymond2005-07-151-60/+252
| | | | | Shouldn't change any actual behavior, except the environment variable checked now natches the manual page.
* Turn off BOFH mode.Chris Kuethe2005-07-151-2/+4
| | | | | | | In case of improper invocation, don't unlink the program (gpsflash has no business writing the local filesystem) and don't be rude to the user. Rather, explain that something could go very wrong, and that you must read our warnings in the manpage.
* ESR pointed out that I wasn't actually calling serialConfig() anywhere...Chris Kuethe2005-07-151-0/+4
| | | | | | | | | which was wrong. The serialConfig function sets up a number of useful parameters like flow control, parity checking and VMIN/VTIME. This only needs to be done once, so we do it right after we open the port. Other port changes are baud rate only, so we call a different function to just set the baud rate.
* Remove SiRF-specific assumptions from srecord.c and add it to libgps.c Eric S. Raymond2005-07-151-0/+4
| | | | for future use.
* Firmware loader rename -- internal filename and #ifdef changes.Eric S. Raymond2005-07-151-1/+1
|
* Rename Chris's firmware loader files.Eric S. Raymond2005-07-151-0/+191