Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Pytrack GPS API

    Scheduled Pinned Locked Moved Enhancements
    pytrack
    51 Posts 13 Posters 16.1k Views 20 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      andrethemac @andrethemac
      last edited by

      @andrethemac published a new version of the Library to github
      https://github.com/andrethemac/L76GLNSV4

      If you find some errors or have a request, please ask.
      best regards

      S 2 Replies Last reply Reply Quote 0
      • S Offline
        stefan85e @andrethemac
        last edited by

        @andrethemac

        The program stop after 180 sec and if I do this:

        #print(L76.coordinates(debug=True)) it will not do anything :)

        0_1524127959536_b577631a-0d05-460c-906e-6afe4d29af99-image.png

        1 Reply Last reply Reply Quote 0
        • S Offline
          stefan85e @andrethemac
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • S Offline
            stefan85e @andrethemac
            last edited by stefan85e

            @andrethemac

            (I dont get any nr due to I done get a signal from the GPS, I have to go outside to get it)

            When I do this the program keeps running:

            #print(L76.gps_message('GSV'))
            print(L76.gps_message('GGA'))

            0_1524133170243_82dc4f1c-524e-4fe8-ae72-e6260007f14e-image.png

            And when I doing this then this happens:

            print(L76.gps_message('GSV'))

            print(L76.gps_message('GGA'))

            0_1524133705311_8db7519c-c6fa-416c-b145-743597a3be5f-image.png

            A 1 Reply Last reply Reply Quote 0
            • A Offline
              andrethemac @stefan85e
              last edited by

              @stefan85e Hi Stefan
              sorry for the delay. you better put the the two firsts lines following the while(true): before. you don't need to init the library every run . I'll guess it's generating the error's.
              the commands stop when the timeout runs out (default aflter 180 seconds). you can change that if needed.
              The timeout occurs if the gps itself can't get a fix because it can't see (enough) sattelites.
              best regards

              S 1 Reply Last reply Reply Quote 0
              • A Offline
                andrethemac
                last edited by

                some tweaks to my library https://github.com/andrethemac/L76GLNSV4
                methods returning multiple values now return them as a dict;

                J 1 Reply Last reply Reply Quote 0
                • S Offline
                  stefan85e @andrethemac
                  last edited by

                  @andrethemac Like this?

                  0_1524467501012_92c1dda9-b3f3-49c3-b873-3e1967959789-image.png

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    andrethemac @stefan85e
                    last edited by

                    @stefan85e yes.
                    maybe of interest. I have 2 pytrack board and testing them side by side I found out that 1 takes way longer to get a fix, almost double as long.
                    So you need to tweak the timeout parameter to get the best results for your module.
                    best regards

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      stefan85e @andrethemac
                      last edited by

                      @andrethemac Okay thanks... what time are you using!?

                      A 1 Reply Last reply Reply Quote 0
                      • A Offline
                        andrethemac @stefan85e
                        last edited by

                        @stefan85e I'm up to 5 minutes now (timeout=300)
                        when your outside you'll get a fix a lot faster

                        S 1 Reply Last reply Reply Quote 0
                        • S Offline
                          stefan85e @andrethemac
                          last edited by

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • J Offline
                            johncaipa @andrethemac
                            last edited by

                            @andrethemac Hi, Is there any way to have the accuracy value of each GPS fix? when my pytrack is stationary the accuracy of each point is very different

                            bmarkusB 1 Reply Last reply Reply Quote 0
                            • bmarkusB Offline
                              bmarkus @johncaipa
                              last edited by

                              @johncaipa said in Pytrack GPS API:

                              @andrethemac Hi, Is there any way to have the accuracy value of each GPS fix? when my pytrack is stationary the accuracy of each point is very different

                              Do you mean HDOP?

                              J 1 Reply Last reply Reply Quote 0
                              • J Offline
                                johncaipa @bmarkus
                                last edited by

                                @bmarkus I am not an expert in this topic, I need to send the coordinate and accuracy as possible in my project, plus some way to detect when it is moving to send the message. If that parameter HDOP works for me, I'll keep it in mind.

                                bmarkusB 1 Reply Last reply Reply Quote 0
                                • bmarkusB Offline
                                  bmarkus @johncaipa
                                  last edited by

                                  @johncaipa said in Pytrack GPS API:

                                  @bmarkus I am not an expert in this topic, I need to send the coordinate and accuracy as possible in my project, plus some way to detect when it is moving to send the message. If that parameter HDOP works for me, I'll keep it in mind.

                                  There are no accuracy available in terms of meters. HDOP is a factor in determining the relative accuracy of a horizontal position. The smaller the DOP number, the better the geometry.

                                  1 Reply Last reply Reply Quote 0
                                  • X Offline
                                    xbolshe
                                    last edited by

                                    @bmarkus HDOP can be recalculated to meters. So, an accuracy is a function of HDOP.

                                    1 Reply Last reply Reply Quote 0
                                    • A Offline
                                      Alex Dew @Neuromystix
                                      last edited by

                                      @Neuromystix Did you ever figure out a way to get faster fixes? Is it really just a hardware issue or is there some programming that can make it faster?

                                      1 Reply Last reply Reply Quote 0
                                      • G Offline
                                        Gijs
                                        last edited by

                                        I had a short discussion with someone here: https://github.com/pycom/pycom-libraries/pull/143 where they used an undocumented message ID to improve fix time. I did not yet get around to testing that, but perhaps it can help you out

                                        A 1 Reply Last reply Reply Quote 1
                                        • A Offline
                                          Alex Dew @Gijs
                                          last edited by

                                          @Gijs Thanks for your reply. I have been following what @Neuromystix and @andrethemac have been doing and it looks like there is also a check in L76GNSV4.py for the 2nd character.
                                          I feel like there is something missing, because one day, sitting at my desk inside, I got between 8 and 10 satellites (even 12 at one point) on the pytrack, just like I consistently do for the Adafruit gps, but then most of the time I struggle to get 3 satellites on the pytrack in the same spot and it takes forever to get data returned from the messages.

                                          J 1 Reply Last reply Reply Quote 0
                                          • G Offline
                                            Gijs
                                            last edited by

                                            I understand your issue, but I cannot be conclusive about what is causing this. There's both different hardware and software on the adafruit GPS (not sure which make and model you're talking about there) and the Pytrack that can have effect on the GPS reception and signal handling, next to that, they probably use a different antenna as well, making the direct comparison even more difficult.

                                            There's plenty of GPS systems out there, all with different price points and capabilities and its hard to do a 1 on 1 comparison between different modules.

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • First post
                                              Last post

                                            Pycom on Twitter

                                            Pycom