GPS starts emitting data as soon as I kill GPSD
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I can't really figure out how GPSD works. If I start gpsmon nothing happens. But if I run sudo killall gpsd immediately position starts to appear on screen.
The same happens in my node app. I start receiving position as soon as I kill gpsd (after starting my program).
I'm using Garmin USB GPS 18x and a Jetson TX2 on Node v8.11.3. In my program I'm using node-gpsd to handle the GPS data.
gpsd
add a comment |Â
up vote
0
down vote
favorite
I can't really figure out how GPSD works. If I start gpsmon nothing happens. But if I run sudo killall gpsd immediately position starts to appear on screen.
The same happens in my node app. I start receiving position as soon as I kill gpsd (after starting my program).
I'm using Garmin USB GPS 18x and a Jetson TX2 on Node v8.11.3. In my program I'm using node-gpsd to handle the GPS data.
gpsd
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I can't really figure out how GPSD works. If I start gpsmon nothing happens. But if I run sudo killall gpsd immediately position starts to appear on screen.
The same happens in my node app. I start receiving position as soon as I kill gpsd (after starting my program).
I'm using Garmin USB GPS 18x and a Jetson TX2 on Node v8.11.3. In my program I'm using node-gpsd to handle the GPS data.
gpsd
I can't really figure out how GPSD works. If I start gpsmon nothing happens. But if I run sudo killall gpsd immediately position starts to appear on screen.
The same happens in my node app. I start receiving position as soon as I kill gpsd (after starting my program).
I'm using Garmin USB GPS 18x and a Jetson TX2 on Node v8.11.3. In my program I'm using node-gpsd to handle the GPS data.
gpsd
gpsd
asked Aug 23 at 19:30
Vallo
1012
1012
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
The gpsd
deamon reads out the GPS-data coming via the serial interface and provides them to other applications via a socket on a specific port (default: port 2947).
The client program gpsmon
can be run in one of two modes.
- as a client for
gpsd
using the socket provided bygpsd
- in direct mode, reading out the data coming from the serial interface of the GPS device
Which of both modes you use is determined, with which arguments you start gpsmon
.
I don't know, how you start gpsmon
, but judging by your description, I assume you start gpsmon
in direct mode and therefore only see data, once you kill gpsd
and have gpsmon
access the serial interface, which was before used by gpsd
.
In order to use gpsmon
as client for gpsd
, please refer to the official documentation of gpsmon
.
Regarding your node app:
It's just a guess, but I assume this app is not using the socket provided by gpsd
, but wants to listen on the serial interface directly. Thus the behaviour you observe.
Thanks for your answer. I've reproduced the following scenario: If I start Jetson and rungpsmon localhost:2947
i see the gps data. If I stopgpsmon
and rungpsmon localhost:2947
i see a blank screen and if I press enter i seetcp://localhost:2947 Unknown device>
. If I leave this screen and kill or restart gpsd, gpsmon automatically starts working again. I can't figure out how to reconnect to gpsd without killing or restarting it. I assumegpsmon localhost:2947
means running gpsmon as client for gpsd, right?
â Vallo
Aug 24 at 12:08
Yes,gpsmon localhost:2947
will run it as client for gpsd. In the setups, where I have been usinggpsd
I never had an issue as you described. How do you stopgpsmon
?
â oh.dae.su
Aug 24 at 20:09
ctrl + C. is this a wrong way?
â Vallo
Aug 27 at 11:17
no that's fine. In order to see, if the problem is ongpsmon
side orgpsd
side you could do the following test. After stoppinggpsmon
doesgpsd
still work with other applications such ascgps
orxgps
?
â oh.dae.su
Aug 27 at 20:50
No other application related to GPSD works until I kill GPSD. I recorded a short video showing this: youtu.be/puA0Vq9ARrM
â Vallo
Aug 28 at 13:43
 |Â
show 1 more comment
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
The gpsd
deamon reads out the GPS-data coming via the serial interface and provides them to other applications via a socket on a specific port (default: port 2947).
The client program gpsmon
can be run in one of two modes.
- as a client for
gpsd
using the socket provided bygpsd
- in direct mode, reading out the data coming from the serial interface of the GPS device
Which of both modes you use is determined, with which arguments you start gpsmon
.
I don't know, how you start gpsmon
, but judging by your description, I assume you start gpsmon
in direct mode and therefore only see data, once you kill gpsd
and have gpsmon
access the serial interface, which was before used by gpsd
.
In order to use gpsmon
as client for gpsd
, please refer to the official documentation of gpsmon
.
Regarding your node app:
It's just a guess, but I assume this app is not using the socket provided by gpsd
, but wants to listen on the serial interface directly. Thus the behaviour you observe.
Thanks for your answer. I've reproduced the following scenario: If I start Jetson and rungpsmon localhost:2947
i see the gps data. If I stopgpsmon
and rungpsmon localhost:2947
i see a blank screen and if I press enter i seetcp://localhost:2947 Unknown device>
. If I leave this screen and kill or restart gpsd, gpsmon automatically starts working again. I can't figure out how to reconnect to gpsd without killing or restarting it. I assumegpsmon localhost:2947
means running gpsmon as client for gpsd, right?
â Vallo
Aug 24 at 12:08
Yes,gpsmon localhost:2947
will run it as client for gpsd. In the setups, where I have been usinggpsd
I never had an issue as you described. How do you stopgpsmon
?
â oh.dae.su
Aug 24 at 20:09
ctrl + C. is this a wrong way?
â Vallo
Aug 27 at 11:17
no that's fine. In order to see, if the problem is ongpsmon
side orgpsd
side you could do the following test. After stoppinggpsmon
doesgpsd
still work with other applications such ascgps
orxgps
?
â oh.dae.su
Aug 27 at 20:50
No other application related to GPSD works until I kill GPSD. I recorded a short video showing this: youtu.be/puA0Vq9ARrM
â Vallo
Aug 28 at 13:43
 |Â
show 1 more comment
up vote
1
down vote
The gpsd
deamon reads out the GPS-data coming via the serial interface and provides them to other applications via a socket on a specific port (default: port 2947).
The client program gpsmon
can be run in one of two modes.
- as a client for
gpsd
using the socket provided bygpsd
- in direct mode, reading out the data coming from the serial interface of the GPS device
Which of both modes you use is determined, with which arguments you start gpsmon
.
I don't know, how you start gpsmon
, but judging by your description, I assume you start gpsmon
in direct mode and therefore only see data, once you kill gpsd
and have gpsmon
access the serial interface, which was before used by gpsd
.
In order to use gpsmon
as client for gpsd
, please refer to the official documentation of gpsmon
.
Regarding your node app:
It's just a guess, but I assume this app is not using the socket provided by gpsd
, but wants to listen on the serial interface directly. Thus the behaviour you observe.
Thanks for your answer. I've reproduced the following scenario: If I start Jetson and rungpsmon localhost:2947
i see the gps data. If I stopgpsmon
and rungpsmon localhost:2947
i see a blank screen and if I press enter i seetcp://localhost:2947 Unknown device>
. If I leave this screen and kill or restart gpsd, gpsmon automatically starts working again. I can't figure out how to reconnect to gpsd without killing or restarting it. I assumegpsmon localhost:2947
means running gpsmon as client for gpsd, right?
â Vallo
Aug 24 at 12:08
Yes,gpsmon localhost:2947
will run it as client for gpsd. In the setups, where I have been usinggpsd
I never had an issue as you described. How do you stopgpsmon
?
â oh.dae.su
Aug 24 at 20:09
ctrl + C. is this a wrong way?
â Vallo
Aug 27 at 11:17
no that's fine. In order to see, if the problem is ongpsmon
side orgpsd
side you could do the following test. After stoppinggpsmon
doesgpsd
still work with other applications such ascgps
orxgps
?
â oh.dae.su
Aug 27 at 20:50
No other application related to GPSD works until I kill GPSD. I recorded a short video showing this: youtu.be/puA0Vq9ARrM
â Vallo
Aug 28 at 13:43
 |Â
show 1 more comment
up vote
1
down vote
up vote
1
down vote
The gpsd
deamon reads out the GPS-data coming via the serial interface and provides them to other applications via a socket on a specific port (default: port 2947).
The client program gpsmon
can be run in one of two modes.
- as a client for
gpsd
using the socket provided bygpsd
- in direct mode, reading out the data coming from the serial interface of the GPS device
Which of both modes you use is determined, with which arguments you start gpsmon
.
I don't know, how you start gpsmon
, but judging by your description, I assume you start gpsmon
in direct mode and therefore only see data, once you kill gpsd
and have gpsmon
access the serial interface, which was before used by gpsd
.
In order to use gpsmon
as client for gpsd
, please refer to the official documentation of gpsmon
.
Regarding your node app:
It's just a guess, but I assume this app is not using the socket provided by gpsd
, but wants to listen on the serial interface directly. Thus the behaviour you observe.
The gpsd
deamon reads out the GPS-data coming via the serial interface and provides them to other applications via a socket on a specific port (default: port 2947).
The client program gpsmon
can be run in one of two modes.
- as a client for
gpsd
using the socket provided bygpsd
- in direct mode, reading out the data coming from the serial interface of the GPS device
Which of both modes you use is determined, with which arguments you start gpsmon
.
I don't know, how you start gpsmon
, but judging by your description, I assume you start gpsmon
in direct mode and therefore only see data, once you kill gpsd
and have gpsmon
access the serial interface, which was before used by gpsd
.
In order to use gpsmon
as client for gpsd
, please refer to the official documentation of gpsmon
.
Regarding your node app:
It's just a guess, but I assume this app is not using the socket provided by gpsd
, but wants to listen on the serial interface directly. Thus the behaviour you observe.
edited Aug 23 at 22:09
answered Aug 23 at 22:01
oh.dae.su
171118
171118
Thanks for your answer. I've reproduced the following scenario: If I start Jetson and rungpsmon localhost:2947
i see the gps data. If I stopgpsmon
and rungpsmon localhost:2947
i see a blank screen and if I press enter i seetcp://localhost:2947 Unknown device>
. If I leave this screen and kill or restart gpsd, gpsmon automatically starts working again. I can't figure out how to reconnect to gpsd without killing or restarting it. I assumegpsmon localhost:2947
means running gpsmon as client for gpsd, right?
â Vallo
Aug 24 at 12:08
Yes,gpsmon localhost:2947
will run it as client for gpsd. In the setups, where I have been usinggpsd
I never had an issue as you described. How do you stopgpsmon
?
â oh.dae.su
Aug 24 at 20:09
ctrl + C. is this a wrong way?
â Vallo
Aug 27 at 11:17
no that's fine. In order to see, if the problem is ongpsmon
side orgpsd
side you could do the following test. After stoppinggpsmon
doesgpsd
still work with other applications such ascgps
orxgps
?
â oh.dae.su
Aug 27 at 20:50
No other application related to GPSD works until I kill GPSD. I recorded a short video showing this: youtu.be/puA0Vq9ARrM
â Vallo
Aug 28 at 13:43
 |Â
show 1 more comment
Thanks for your answer. I've reproduced the following scenario: If I start Jetson and rungpsmon localhost:2947
i see the gps data. If I stopgpsmon
and rungpsmon localhost:2947
i see a blank screen and if I press enter i seetcp://localhost:2947 Unknown device>
. If I leave this screen and kill or restart gpsd, gpsmon automatically starts working again. I can't figure out how to reconnect to gpsd without killing or restarting it. I assumegpsmon localhost:2947
means running gpsmon as client for gpsd, right?
â Vallo
Aug 24 at 12:08
Yes,gpsmon localhost:2947
will run it as client for gpsd. In the setups, where I have been usinggpsd
I never had an issue as you described. How do you stopgpsmon
?
â oh.dae.su
Aug 24 at 20:09
ctrl + C. is this a wrong way?
â Vallo
Aug 27 at 11:17
no that's fine. In order to see, if the problem is ongpsmon
side orgpsd
side you could do the following test. After stoppinggpsmon
doesgpsd
still work with other applications such ascgps
orxgps
?
â oh.dae.su
Aug 27 at 20:50
No other application related to GPSD works until I kill GPSD. I recorded a short video showing this: youtu.be/puA0Vq9ARrM
â Vallo
Aug 28 at 13:43
Thanks for your answer. I've reproduced the following scenario: If I start Jetson and run
gpsmon localhost:2947
i see the gps data. If I stop gpsmon
and run gpsmon localhost:2947
i see a blank screen and if I press enter i see tcp://localhost:2947 Unknown device>
. If I leave this screen and kill or restart gpsd, gpsmon automatically starts working again. I can't figure out how to reconnect to gpsd without killing or restarting it. I assume gpsmon localhost:2947
means running gpsmon as client for gpsd, right?â Vallo
Aug 24 at 12:08
Thanks for your answer. I've reproduced the following scenario: If I start Jetson and run
gpsmon localhost:2947
i see the gps data. If I stop gpsmon
and run gpsmon localhost:2947
i see a blank screen and if I press enter i see tcp://localhost:2947 Unknown device>
. If I leave this screen and kill or restart gpsd, gpsmon automatically starts working again. I can't figure out how to reconnect to gpsd without killing or restarting it. I assume gpsmon localhost:2947
means running gpsmon as client for gpsd, right?â Vallo
Aug 24 at 12:08
Yes,
gpsmon localhost:2947
will run it as client for gpsd. In the setups, where I have been using gpsd
I never had an issue as you described. How do you stop gpsmon
?â oh.dae.su
Aug 24 at 20:09
Yes,
gpsmon localhost:2947
will run it as client for gpsd. In the setups, where I have been using gpsd
I never had an issue as you described. How do you stop gpsmon
?â oh.dae.su
Aug 24 at 20:09
ctrl + C. is this a wrong way?
â Vallo
Aug 27 at 11:17
ctrl + C. is this a wrong way?
â Vallo
Aug 27 at 11:17
no that's fine. In order to see, if the problem is on
gpsmon
side or gpsd
side you could do the following test. After stopping gpsmon
does gpsd
still work with other applications such as cgps
or xgps
?â oh.dae.su
Aug 27 at 20:50
no that's fine. In order to see, if the problem is on
gpsmon
side or gpsd
side you could do the following test. After stopping gpsmon
does gpsd
still work with other applications such as cgps
or xgps
?â oh.dae.su
Aug 27 at 20:50
No other application related to GPSD works until I kill GPSD. I recorded a short video showing this: youtu.be/puA0Vq9ARrM
â Vallo
Aug 28 at 13:43
No other application related to GPSD works until I kill GPSD. I recorded a short video showing this: youtu.be/puA0Vq9ARrM
â Vallo
Aug 28 at 13:43
 |Â
show 1 more comment
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f464488%2fgps-starts-emitting-data-as-soon-as-i-kill-gpsd%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password