summaryrefslogtreecommitdiff
path: root/gpsctl.c
Commit message (Collapse)AuthorAgeFilesLines
* Add gps_errstr() to the client API so client code doesn't have toEric S. Raymond2009-08-261-11/+2
| | | | reinvent it all the time. Use it in gpsmon.
* Unify CONFIGDEV and DEVICE responses.Eric S. Raymond2009-08-251-5/+5
|
* Add character type to JSON parser.Eric S. Raymond2009-08-251-41/+30
| | | | | Make gpsctl work with new protocol (only the device ID function is tested at this point).
* Major rearrangement of device members in struct gpsdata_t... Eric S. Raymond2009-08-231-24/+24
| | | | | ...documented in the protocol-transition white paper. All regression tests pass.
* Move some struct gpsdata_t members around to get better space economy.Eric S. Raymond2009-08-181-6/+6
| | | | | | Change the way device lists are represented so they can carry attributes from the new protocol. No more variable sizes by configure option, all that stuff gets swallowed up in the union member now.
* Add cycle-time reporting and setting to new protocol. Eric S. Raymond2009-08-171-3/+31
| | | | | | Steps towards making gpsctl work with new protocol. Incidentally, fixes a bug where min_cycle was not reported correctly in the C command.
* Comment fix.Eric S. Raymond2009-08-131-2/+3
|
* Fix typo. From Matt RoberdsChris Kuethe2009-06-051-1/+1
|
* Support --disable-controlsendEric S. Raymond2009-03-061-2/+11
|
* Simplify the way ALLOW_RECONFIGURE works.Eric S. Raymond2009-03-061-2/+26
| | | | | | | | | | It now conditions out the speed-switcher, mode-switcher, and rate-switcher methods of the driver structure entirely. This makes it possible to condition out whole functions (rather than small bits that do device writes) almost everywhere. Build tested with ALLOW_RECONFIGURE off. This improvement should make the embedded people happy.
* Support changing cycle time with gpctl and gpsmon, if the device supports it.Eric S. Raymond2009-03-051-3/+32
|
* Yikes! Change to -x and 'x'.Eric S. Raymond2009-03-051-4/+4
| | | | | -c and the c command shouldn't be "send arbitrary hex bytes" when there's a change-cycle-time method in the standard driver table.
* Process mode arguments a bit more forgivingly.Eric S. Raymond2009-03-021-4/+4
|
* Full support for setting parity and stop bits.Eric S. Raymond2009-03-021-20/+85
| | | | | Needs to be tested for non-8N1 modes on the devices that can support it: SiRF, UBX, Zodiac.
* Create infrastructure for allowing changes of parity and stop bits.Eric S. Raymond2009-02-281-3/+4
| | | | | Mainly useful for debugging odd stuff like Trimbles, most things run 8N1 these days. Don't expose it to the user yet.
* Set readonly properly for gpsctl -e.Eric S. Raymond2009-02-251-0/+6
|
* sirfmon now has a driver-table architecture, like the daemon.Eric S. Raymond2009-02-161-1/+1
|
* Give the ubx driver a real control_send method.Eric S. Raymond2009-02-151-22/+2
|
* sirfmon now switches speed using the driver method.Eric S. Raymond2009-02-141-1/+8
| | | | | | | | | The trick was to insert the right tcdrain() and delay combination before changing the tty parameters,. otherwise the control message gets trashed in the UART buffer when the baud rate change comes down. Put a similar delay after the gpsctl call. Probably not needed, but it can't hurt...
* Typo fix.Eric S. Raymond2009-02-131-1/+1
|
* All driver method tables are now const.Eric S. Raymond2009-02-121-3/+3
| | | | | | | This required moving one field, the modifiable cycle time, into the session structure; the driver type field is now the default value set on switching to that driver, if the field has not already been set during a previous activation.
* This typo fix means I should probably be asleep.Eric S. Raymond2009-02-121-1/+1
|
* Thinko fix.Eric S. Raymond2009-02-121-1/+1
|
* Fix some stuttering.Eric S. Raymond2009-02-121-25/+24
|
* Splint cleanup.Eric S. Raymond2009-02-111-3/+5
|
* Instrument autodetection a little better.Eric S. Raymond2009-02-101-2/+7
|
* Suppress probing for subtype if we're just sampling packets.Eric S. Raymond2009-02-091-0/+4
| | | | Otherwise it might flip the GPS into a different mode.
* Explain why we wait for packets.Eric S. Raymond2009-02-081-1/+9
|
* Add a packet_type member to the device structure. Eric S. Raymond2009-02-081-6/+11
| | | | | | This is so we can easily map from a driver to its binary packet type. gpsctl uses this to check whether a mode change has succeesded; no changes to gpsd logic. All regression tests pass.
* Eliminate anticipatory driver switching.Eric S. Raymond2009-02-071-23/+29
| | | | | | | | Eliminate anticipatory driver switching after NMEA-to-binary or binary-to-NMEA mode switches. Driver switching now takes place only when a packet of the right type is returned. This is more robust against the possibility that mode-change operations may fail; they seem to be prone to timing-dependent glitches.
* Set hex-dump level properly in gpsctl.Eric S. Raymond2009-02-071-0/+1
|
* Improved error messages.Eric S. Raymond2009-02-071-8/+10
|
* Make the tool time out if it can't open the device.Eric S. Raymond2009-02-071-8/+34
|
* Make hex_escapes() generally available.Eric S. Raymond2009-01-301-71/+0
|
* Refactor so we can re-use the hex dumper.Eric S. Raymond2009-01-301-70/+80
|
* Make gpsctl list speed switchers.Eric S. Raymond2009-01-291-0/+4
|
* String typo fix.Eric S. Raymond2009-01-291-1/+1
|
* Splint cleanup.Eric S. Raymond2009-01-291-1/+1
|
* Send mode-change strings unconditionally.Eric S. Raymond2009-01-281-19/+10
|
* Enhance gpsctl output so it shows a capability table.Eric S. Raymond2009-01-231-1/+10
| | | | | | Shows which options can be applied to which GPS types. Rearrange the driver pointers initializers and do one rename (ublox UBX -> ublox UBX binary) so he listing will be a bit neater and more informative.
* Splint cleanup. All regression tests pass.Eric S. Raymond2009-01-211-2/+3
|
* Splint cleanup.Eric S. Raymond2009-01-211-5/+13
|
* When attempting reset, try shipping the control string at current speed...Eric S. Raymond2009-01-211-0/+3
| | | | before hunting. Also call tcdrain() at strategic places.
* Teach gpsctl to ship control strings to a UBX device, and eliminate ubxsend.Eric S. Raymond2009-01-211-1/+19
|
* Fix some "What was I thinking?" code.Eric S. Raymond2009-01-211-14/+4
|
* Magic-number elimination.Eric S. Raymond2009-01-191-3/+3
|
* Device subtype probe has to be gated by the readonly flag...Eric S. Raymond2009-01-091-2/+0
| | | | ...and gpsctl cannot set that flag.
* the driver switcher that's coming back to bite us.Eric S. Raymond2009-01-091-4/+7
|
* hushChris Kuethe2009-01-091-1/+1
|
* Experimental code for gpsctl -r option.Eric S. Raymond2009-01-091-16/+53
|