Sony's Developer World forum

    • Home
    • Forum guidelines

    GPS not able to obtain the location

    Spresense
    2
    4
    277
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jp04 last edited by

      Hi. I am running the code example gnss.ino in order to test the GPS but i have been running it for more than an hour and it hasn't been possible to obtain the location. Is any recommendation to improve this functionality or what should i do to get the location information from the GPS?

      Screen Shot 2023-01-26 at 17.51.18.png

      J 1 Reply Last reply Reply Quote
      • J
        jens6151 0 1 1 @jp04 last edited by

        Hi @jp04,

        I had the same situation here. 3-4 satellites are not enough to get a fix. I got a fix quickly when the readings showed 7-10 satellites.

        I recommend to try the following.

        1. You might have bad luck with the sight of the satellites. Therefore try again at another location or another time. Attach a battery and go outside or at least near a window. You can use an augmented reality app on your phone that shows where the satellites are.
        2. Add other satellites than the default. For example set satType to eSatGpsQz1cQz1S if you are in Japan. See the comments in the demo.
        3. Try to attach an external GPS antenna. It requires additional parts (available at Adafruit or Akizukidenshi) and requires soldering. I can give you some advice if you want.
        4. Check if the wifi board or anything you place around the antenna causes interference.

        Should you get a fix, you can save the satellite data for a hot start the next time. This call persists the data to flash memory in case you power off. Don't use the function on each update as it will wear off the flash memory.

        Gnss.saveEphemeris();
        

        Btw. I would be interested your opinion on the wifi addon board you ask for in another post. Will you send large data like images? Is it fast and reliable?
        I flashed the AT firmware to one of my ESP-32 boards and connected it via UART. It works but the transfer rate is pretty slow due to the limitting UART.

        J 1 Reply Last reply Reply Quote
        • J
          jp04 @jens6151 0 1 1 last edited by

          @jens6151-0-1-1 Thanks for your reply. By the way, do you know the precision of the GPS?

          J 1 Reply Last reply Reply Quote
          • J
            jens6151 0 1 1 @jp04 last edited by

            @jp04 No I do not know the precission of the GNSS. I did not measure it.
            So we need to believe the documentation. See

            • GNSS Performance
            • GNSS Performance

            If you can use QZSS-L1S then it says <2m 95% accuracy in Japan. Otherwise <7.8m in the city.

            If I ever should do any measurements with I can post them. However sorry, there is currently no plan to do so.

            1 Reply Last reply Reply Quote
            • First post
              Last post
            Developer World
            Copyright © 2021 Sony Group Corporation. All rights reserved.
            • Contact us
            • Legal