diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-07-25 04:37:57 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-07-25 04:37:57 +0000 |
commit | 24b03b74736a84662acb923fba4050248ab03497 (patch) | |
tree | a5ae00ec4a74c9b31bc7f773061cfb0b001e2e4c /www | |
parent | 4ebe5831b83eba90b0465856013a98fbd5ab6176 (diff) | |
download | gpsd-24b03b74736a84662acb923fba4050248ab03497.tar.gz |
Enhance ?DEVICES to report driver type and subtype.
Diffstat (limited to 'www')
-rw-r--r-- | www/hacking.html | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/www/hacking.html b/www/hacking.html index 145d9b25..32b55ef1 100644 --- a/www/hacking.html +++ b/www/hacking.html @@ -1438,17 +1438,14 @@ say ?WATCH={"TPV":true,"SKY":true,"STATUS":true} and be done.</p> # Client asks daemon what devices are available # The response tells it there is one GPS, one AIS transceiver, # and one RTCM3 correction source. The fields are full name, -# service type, and name tag, +# service type, driver name and (possibly) a subtype attribute +# containing the firmware version. -> ?DEVICES --> {"class":"DEVICES","devices":[{"name":"/dev/ttyUSB0","type":"GPS"}, +-> {"class":"DEVICES","devices": + [{"name":"/dev/ttyUSB0","type":"GPS","driver":"SiRF binary"}, {"name":"/dev/ttyUSB1","type":"AIS"}, {"name":"/dev/ttyS0","type":"RTCM3"}] # -# Client asks the GPS to identify itself. --> ?ID={"device":"/dev/ttyUSB0"} -<- {"class":"ID","type":"GPS", - "driver":\"SiRF\","firmware":"231.000.000ES-01-39"} -# # Client subscribes to TPV, SKY, and STATUS reports # Daemon confirms this is possible. -> ?WATCH={"TPV":true,"SKY":true,"STATUS":true} |