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 and GPS Balloon mode

    Scheduled Pinned Locked Moved Expansion Board
    pytrackballoongps
    6 Posts 3 Posters 1.5k 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.
    • B Offline
      brunoS
      last edited by

      Hello,

      For a stratospheric balloon project, I'm going to ship a Pytrack card.
      But for the I76 GPS to operate at high altitude, it is necessary to activate the "balloon mode" :

      Quectel_L76_Series_Protocol_Specification_V2.0

      Therefore, send a frame $PMTK886,32B <CR> <LF> and wait for the answer $PMTK001,886,336.

      Has any of you tested and managed to send a frame to the Pytrack GPS module so that I do not start from scratch?

      Thanks for your help

      T 1 Reply Last reply Reply Quote 0
      • T Offline
        this.wiederkehr @brunoS
        last edited by this.wiederkehr

        @brunoS

        class L76GNSS:
            def __init__(self, py=None, sda='P22', scl='P21', writer=None):
                if py is not None:
                    self.i2c = py.i2c
                else:
                    from machine import I2C
                    self.i2c = I2C(0, mode=I2C.MASTER, pins=(sda, scl))
                GPS_CONFIG = b'$PMTK314,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*28\r\n'
                self.i2c.writeto(GPS_I2CADDR, GPS_CONFIG)
                self.i2c.writeto(GPS_I2CADDR, bytes([0]))
                ....
        

        That is what I added in the init method to restrict sentence output. Be sure to have the correct checksum.

        B A 2 Replies Last reply Reply Quote 2
        • B Offline
          brunoS @this.wiederkehr
          last edited by brunoS

          @this-wiederkehr

          Thank you for the quick reply !
          I tested and I saw well the answer in the flow of the frames.
          What is the purpose of the line :

          self.i2c.writeto(GPS_I2CADDR, bytes([0])) 
          
          T 1 Reply Last reply Reply Quote 1
          • T Offline
            this.wiederkehr @brunoS
            last edited by

            @brunos: I think the application note of the gps ( there is one regarding i2c) mentioned to perform a dummy write like this. But I dont have that at hand right now...

            1 Reply Last reply Reply Quote 0
            • A Offline
              Alex Dew @this.wiederkehr
              last edited by

              @this-wiederkehr Has anything changed with this? When I run the exact same thing, I do not get any 001 response.

              1 Reply Last reply Reply Quote 0
              • T Offline
                this.wiederkehr
                last edited by

                sorry no clue, I am not using pycom devices anymore so I can't tell. Sorry.

                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