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 2.0X not displaying continuous GPS-tracks

    Scheduled Pinned Locked Moved Discussion
    5 Posts 3 Posters 40 Views 3 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.
    • S Offline
      SanOls
      last edited by

      Hi,
      I'm currently working with a program that tracks the RSSI between two Pycom-modules using PyTrack 2.0X and its GPS. I'm displaying my tracks using Pandas and Bokeh, but it's not displaying a continuous track, dispite using only 2sec sleep between each value reading (and GPS-track). I've checked the coordinates in other softwares aswell, and they are all spaced the way I describe. Is this caused by some limitations in the GPS, or does it have anything to do with some kind of buffer? I'm using the main part of the example code for PyTrack provided by Pycom to get the GPS-tracks.
      Attached is a snippet showing the problem.
      b113dc5c-2a46-43fe-8237-a9606d222998-image.png

      robert-hhR 1 Reply Last reply Reply Quote 0
      • J Offline
        jcaron
        last edited by

        It could be GPS coverage issues, but that seems quite unlikely to me, there's a form of regularity here which is troubling.

        Can you share the file, or at least the timestamps?

        Also you say you track the RSSI between two Pycom modules (using what? Wifi? BLE? LoRA?...), so this clearly changes the way the script works, can you share that script?

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          SanOls @jcaron
          last edited by

          @jcaron Thanks for answering! Here is a part of the script that tracks the coordinates with the RSSI using LoRa:
          4cbc4aed-fb4f-477b-a584-94967d6b8baa-image.png
          I did't track the timestamps, but when running the script I can see in the CLI that the coordinates is printed in a regular interval.

          J 1 Reply Last reply Reply Quote 0
          • robert-hhR Offline
            robert-hh @SanOls
            last edited by

            @SanOls What is the real time duration of each on/ off phases? Could it be something like 17 minutes? That is the time needed for ticks_us() to overflow.

            1 Reply Last reply Reply Quote 0
            • J Offline
              jcaron @SanOls
              last edited by

              @SanOls

              When you look at the file, do you see any lines with coordinates with values null or 0 or something similar?

              I think you need to add more logs, including:

              • Timestamps, ideally before and after send, coordinates and recv
              • Logs of the return value of coordinates in all cases
              • Logs of any retries (which I believe would happen if recv returned something other than 'bob'

              What is the duration of each good/bad phase? Looks like about 8 to 10 points, which should be 15-20 seconds each, is that the case?

              What is the range of the RSSI values?

              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 / 1
              • First post
                Last post

              Pycom on Twitter

              Pycom