gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] tpc feed does not work an darwin?


From: Claus Klein
Subject: Re: [gpsd-dev] tpc feed does not work an darwin?
Date: Sun, 17 Feb 2013 20:43:40 +0100

Hi all,

I found my problem:

claus-kleins-macbook-pro:gpsd clausklein$ ./gpsd -h
usage: gpsd [-b] [-n] [-N] [-D n] [-F sockfile] [-G] [-P pidfile] [-S port] [-h] device...
  Options include: 
  -b        = bluetooth-safe: open data sources read-only
  -n    = don't wait for client connects to poll GPS
  -N    = don't go into background
  -F sockfile     = specify control socket location
  -G            = make gpsd listen on INADDR_ANY
  -P pidfile          = set file to record process ID 
  -D integer (default 0)      = set debug level 
  -S integer (default 2947) = set port for daemon 
  -h        = help message 
  -V    = emit version and exit.
A device may be a local serial device for GPS input, or a URL of the form:
     {dgpsip|ntrip}://[user:address@hidden:port][/stream]
     gpsd://host[:port][/device][?protocol]
in which case it specifies an input source for GPSD, DGPS or ntrip data.

(by the way, the tcp feed is not explained as option)

I have to use the -n option too:

claus-kleins-macbook-pro:gpsd clausklein$ sudo ./gpsd -n -N -D 3 tcp://192.168.1.130:11123         
gpsd:INFO: launching (Version 3.8~dev)
gpsd:INFO: listening on port gpsd
gpsd:INFO: NTPD ntpd_link_activate: 1
gpsd:INFO: stashing device tcp://192.168.1.130:11123 at slot 0
gpsd:INFO: opening TCP feed at 192.168.1.130, port 11123.
gpsd:INFO: gpsd_activate(): activated GPS (fd 5)
gpsd:INFO: device tcp://192.168.1.130:11123 activated
gpsd:INFO: running with effective group ID 0
gpsd:INFO: running with effective user ID -2
gpsd:INFO: startup at 2013-02-17T19:24:31.000Z (1361129071)
gpsd:INFO: tcp://192.168.1.130:11123 identified as type Generic NMEA (10.219428 sec @ 0bps)
gpsd:DATA: merge_ddmmyy(170213) sets year 2013
gpsd:DATA: GPRMC: registers fractional time 192441.00
gpsd:DATA: RMC: ddmmyy=170213 hhmmss=192441 lat=49.10 lon=9.78 speed=0.00 track=0.00 mode=2 status=1
gpsd:DATA: GPRMC time is 1361129081.000000 = 2013-02-17T19:24:41.00Z
gpsd:DATA: packet type 1 from tcp://192.168.1.130:11123 with {ONLINE|TIME|LATLON|SPEED|TRACK|STATUS|MODE|PACKET|DRIVER|CLEAR}
gpsd:DATA: merge_ddmmyy(170213) sets year 2013
gpsd:DATA: GPRMC: registers fractional time 192511.00
gpsd:DATA: RMC: ddmmyy=170213 hhmmss=192511 lat=49.10 lon=9.78 speed=0.00 track=0.00 mode=2 status=1
gpsd:DATA: GPRMC time is 1361129111.000000 = 2013-02-17T19:25:11.00Z
gpsd:DATA: packet type 1 from tcp://192.168.1.130:11123 with {ONLINE|TIME|LATLON|SPEED|TRACK|MODE|PACKET|CLEAR|REPORT}
^Cgpsd:WARN: received terminating signal 2.
gpsd:INFO: closing GPS=tcp://192.168.1.130:11123 (5)
gpsd:WARN: exiting.
claus-kleins-macbook-pro:gpsd clausklein$ 


But there are still problems with ipv6:

claus-kleins-macbook-pro:gpsd clausklein$ sudo ./gpsd -n -N -D 3 tcp://[::FFFF:192.168.1.130]:11123
Password:
gpsd:INFO: launching (Version 3.8~dev)
gpsd:INFO: listening on port gpsd
gpsd:INFO: NTPD ntpd_link_activate: 1
gpsd:INFO: stashing device tcp://[::FFFF:192.168.1.130]:11123 at slot 0
gpsd:INFO: opening TCP feed at [, port :FFFF:192.168.1.130]:11123.
gpsd:ERROR: TCP device open error can't get host entry.
gpsd:ERROR: initial GPS device tcp://[::FFFF:192.168.1.130]:11123 open failed
gpsd:INFO: running with effective group ID 0
gpsd:INFO: running with effective user ID -2
gpsd:INFO: startup at 2013-02-17T19:39:41.000Z (1361129981)
^Cgpsd:WARN: received terminating signal 2.
gpsd:WARN: exiting.
claus-kleins-macbook-pro:gpsd clausklein$ 


I think, the -n option should be the default, because the protocol is checked to late:

claus-kleins-macbook-pro:gpsd clausklein$ sudo ./gpsd -N -D 3 XXX://192.168.1.130:11123   
Password:
gpsd:INFO: launching (Version 3.8~dev)
gpsd:INFO: listening on port gpsd
gpsd:INFO: NTPD ntpd_link_activate: 1
gpsd:INFO: stashing device XXX://192.168.1.130:11123 at slot 0
gpsd:INFO: running with effective group ID 0
gpsd:INFO: running with effective user ID -2
gpsd:INFO: startup at 2013-02-17T19:30:41.000Z (1361129441)
gpsd:INFO: opening read-only GPS data source type 0 and at 'XXX://192.168.1.130:11123'

about a view minutes later, when a gpsd clients connect to server the will be this error:

gpsd:ERROR: device open failed: No such file or directory - retrying read-only
gpsd:ERROR: read-only device open failed: No such file or directory
gpsd:ERROR: XXX://192.168.1.130:11123: device activation failed.
gpsd:INFO: reconnection attempt on device 0
gpsd:INFO: opening read-only GPS data source type 0 and at 'XXX://192.168.1.130:11123'
gpsd:ERROR: device open failed: No such file or directory - retrying read-only
gpsd:ERROR: read-only device open failed: No such file or directory
gpsd:ERROR: XXX://192.168.1.130:11123: device activation failed.
^Cgpsd:WARN: received terminating signal 2.
gpsd:WARN: exiting.
gpsd:INFO: detaching 127.0.0.1 (sub 0, fd 5) in detach_client
claus-kleins-macbook-pro:gpsd clausklein$ 


//Regards
Claus



On 17.02.2013, at 14:16, Claus Klein wrote:

I have problems to use gps2ip iphone app as gps feed server:


reply via email to

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