gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-users] Garmin Montana 600, gpsd and Arch Linux


From: Pedro Antonio Neves
Subject: Re: [gpsd-users] Garmin Montana 600, gpsd and Arch Linux
Date: Mon, 19 Sep 2016 18:18:59 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0

Hi Gary:

On 19-09-2016 08:14, Gary E. Miller wrote:
run gpsd this way, after plugging in your GPS:

# su -
# killall gpsd
# gpsd -nND 8 /dev/ttyUSB0

This is what I get after disabling all systemd GPS-related units and using the above procedures:

gpsd -nND 8 /dev/ttyUSB0

gpsd:INFO: launching (Version 3.16)
gpsd:IO: opening IPv4 socket
gpsd:SPIN: passivesock_af() -> 3
gpsd:IO: opening IPv6 socket
gpsd:SPIN: passivesock_af() -> 4
gpsd:INFO: listening on port gpsd
gpsd:PROG: NTP: shmat(917509,0,0) succeeded, segment 0
gpsd:PROG: NTP: shmat(950281,0,0) succeeded, segment 1
gpsd:PROG: NTP: shmat(983050,0,0) succeeded, segment 2
gpsd:PROG: NTP: shmat(1015819,0,0) succeeded, segment 3
gpsd:PROG: NTP: shmat(1048588,0,0) succeeded, segment 4
gpsd:PROG: NTP: shmat(1081357,0,0) succeeded, segment 5
gpsd:PROG: NTP: shmat(1114126,0,0) succeeded, segment 6
gpsd:PROG: NTP: shmat(1146895,0,0) succeeded, segment 7
gpsd:PROG: successfully connected to the DBUS system bus
gpsd:PROG: shmget(0x47505344, 8936, 0666) for SHM export succeeded
gpsd:PROG: shmat() for SHM export succeeded, segment 1179664
gpsd:INFO: stashing device /dev/ttyUSB0 at slot 0
gpsd:PROG: no /etc/gpsd/device-hook present, skipped running ACTIVATE hook
gpsd:INFO: opening GPS data source type 3 at '/dev/ttyUSB0'
gpsd:ERROR: device open of /dev/ttyUSB0 failed: Device or resource busy - retrying read-only gpsd:ERROR: read-only device open of /dev/ttyUSB0 failed: Device or resource busy
gpsd:ERROR: initial GPS device /dev/ttyUSB0 open failed
gpsd:INFO: running with effective group ID 14
gpsd:INFO: running with effective user ID 99
gpsd:INFO: startup at 2016-09-19T17:12:40.000Z (1474305160)
gpsd:SPIN: select() {3 4} -> { 4 } at 1474305223.621316 (errno 0)
gpsd:SPIN: client ::1 (0) connect on fd 6
gpsd:CLIENT: => client(0): {"class":"VERSION","release":"3.16","rev":"3.16","proto_major":3,"proto_minor":11}\x0d\x0a
gpsd:INFO: reconnection attempt on device 0
gpsd:PROG: no /etc/gpsd/device-hook present, skipped running ACTIVATE hook
gpsd:INFO: opening GPS data source type 3 at '/dev/ttyUSB0'
gpsd:ERROR: device open of /dev/ttyUSB0 failed: Device or resource busy - retrying read-only gpsd:ERROR: read-only device open of /dev/ttyUSB0 failed: Device or resource busy
gpsd:ERROR: /dev/ttyUSB0: device activation failed.
gpsd:ERROR: /dev/ttyUSB0: activation failed, freeing device
gpsd:SPIN: select() {3 4 6} -> { 6 } at 1474305224.035957 (errno 0)
gpsd:PROG: checking client(0)
gpsd:CLIENT: <= client(0): ?WATCH={"raw":2,"pps":true}\x0d\x0a
json: json_read_object() sees '{"raw":2,"pps":true}
'
json: Target address for class (offset 0) is (nil)
json: Target address for enable (offset 0) is 0x55f43e0a5750
json: Target address for scaled (offset 0) is 0x55f43e0a5758
json: Target address for timing (offset 0) is 0x55f43e0a5759
json: Target address for split24 (offset 0) is 0x55f43e0a575a
json: Target address for pps (offset 0) is 0x55f43e0a575b
json: Target address for device (offset 0) is 0x55f43e0a5760
json: Target address for remote (offset 0) is 0x55f43e0a57e0
json: Target address for pps (offset 0) is 0x7ffd968d498f
json: JSON parse of '{"raw":2,"pps":true}
' begins.
json: State init          , looking at '{' (0x7ffd968d9467)
json: State await_attr    , looking at '"' (0x7ffd968d9468)
json: State in_attr       , looking at 'r' (0x7ffd968d9469)
json: State in_attr       , looking at 'a' (0x7ffd968d946a)
json: State in_attr       , looking at 'w' (0x7ffd968d946b)
json: State in_attr       , looking at '"' (0x7ffd968d946c)
json: Collected attribute name raw
json: Checking against class
json: Checking against enable
json: Checking against json
json: Checking against raw
json: State await_value   , looking at ':' (0x7ffd968d946d)
json: State await_value   , looking at '2' (0x7ffd968d946e)
json: State in_val_token  , looking at ',' (0x7ffd968d946f)
json: Collected token value 2.
json: State post_val      , looking at ',' (0x7ffd968d946f)
json: Target address for raw (offset 0) is 0x55f43e0a5754
json: State await_attr    , looking at '"' (0x7ffd968d9470)
json: State in_attr       , looking at 'p' (0x7ffd968d9471)
json: State in_attr       , looking at 'p' (0x7ffd968d9472)
json: State in_attr       , looking at 's' (0x7ffd968d9473)
json: State in_attr       , looking at '"' (0x7ffd968d9474)
json: Collected attribute name pps
json: Checking against class
json: Checking against enable
json: Checking against json
json: Checking against raw
json: Checking against nmea
json: Checking against scaled
json: Checking against timing
json: Checking against split24
json: Checking against pps
json: State await_value   , looking at ':' (0x7ffd968d9475)
json: State await_value   , looking at 't' (0x7ffd968d9476)
json: State in_val_token  , looking at 'r' (0x7ffd968d9477)
json: State in_val_token  , looking at 'u' (0x7ffd968d9478)
json: State in_val_token  , looking at 'e' (0x7ffd968d9479)
json: State in_val_token  , looking at '}' (0x7ffd968d947a)
json: Collected token value true.
json: State post_val      , looking at '}' (0x7ffd968d947a)
json: Target address for pps (offset 0) is 0x55f43e0a575b
json: JSON parse ends.
gpsd:CLIENT: => client(0): {"class":"DEVICES","devices":[]}\x0d\x0a{"class":"WATCH","enable":true,"json":false,"nmea":false,"raw":2,"scaled":false,"timing":false,"split24":false,"pps":true}\x0d\x0a



If I do:

gpsmon

I get:

tcp://localhost:2947          JSON slave driver>
(82) {"class":"VERSION","release":"3.16","rev":"3.16","proto_major":3,"proto_minor":11}
(32) {"class":"DEVICES","devices":[]}
(122) {"class":"WATCH","enable":true,"json":false,"nmea":false,"raw":2,"scaled":false,"timing":false,"split24":false,"pps":true}


But nothing else shows up. I.e., no nmea messages, etc.

Opencpn, qgis, etc. cannot access the gps.


I've checked that gpsd is using the port:

lsof -Pnl +M -i4
gpsd 9754 99 3u IPv4 1039353 0t0 TCP 127.0.0.1:2947 (LISTEN)

lsof -Pnl +M -i6
gpsd 9754 99 4u IPv6 1039354 0t0 TCP [::1]:2947 (LISTEN)


I'm sure I'm missing something...

Any hints?

Thanks for your help.

All the best:

Pedro





reply via email to

[Prev in Thread] Current Thread [Next in Thread]