GPS starts emitting data as soon as I kill GPSD

The name of the pictureThe name of the pictureThe name of the pictureClash 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.










share|improve this question

























    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.










    share|improve this question























      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.










      share|improve this question













      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 23 at 19:30









      Vallo

      1012




      1012




















          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 by gpsd

          • 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.






          share|improve this answer






















          • 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










          • 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 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










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          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






























          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 by gpsd

          • 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.






          share|improve this answer






















          • 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










          • 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 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














          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 by gpsd

          • 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.






          share|improve this answer






















          • 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










          • 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 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












          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 by gpsd

          • 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.






          share|improve this answer














          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 by gpsd

          • 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.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          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 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










          • 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 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











          • 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










          • 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















          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

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          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













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay