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

    Writing NMEA messages to L76 GPS chip

    Scheduled Pinned Locked Moved FiPy
    3 Posts 2 Posters 41 Views 2 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.
    • W Offline
      WilkinsSq
      last edited by WilkinsSq

      Hi All

      Could anyone provide assistance on writing NMEA messages to the L76 chip aboard my Pytrack 2.0 using L76GNSS.write()? The Pycom documentation for this command is very sparse and I am struggling to interpret the GPS datasheet containing the MTK NMEA commands from Quectel.

      Specifically, I'm trying to issue a command to cold restart the chip so that it gets a GPS fix with no prior almanac or ephemeris data. Then I'd like to ask it to warm restart so I can see the time difference between the TTFF's. From what I've tried so far, it's not clear whether the chip is obeying the commands, or if the TTFF variations I'm seeing are just natural variation.

      For example, the following command should cause a cold restart.
      Screenshot 2020-08-13 at 13.29.36.png

      However, I know from the documentation that no acknowledgment of this message should be sent by the chip, so I've tried other commands such as to ask for the version number of the chip, but I still get no response. Perhaps there is a command to configure the chip to give responses?

      Could anyone lend a hand?
      Regards
      WilkinsSq

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

        @WilkinsSq A quick glance at the source of the L76GNSS module tells me the write method will automatically add the $, the *, the checksum, and the CR+LF.

        So l76.write("PMTK103") should be enough. Can you confirm?

        1 Reply Last reply Reply Quote 0
        • W Offline
          WilkinsSq
          last edited by WilkinsSq

          Hi @jcaron

          Ok, thanks very much! I've tried that new format but I'm not sure what to expect from the chip by means of response. The specific command PMTK103 shouldn't warrant an acknowledgment, so I'm sending PMTK605 which is a command to query the firmware release info and see if I get a response to confirm this whole thing is working.

          L76GNSS.dump_nmea() isn't showing the response message I'd expect (PMTK705) after writing PMTK605 to the L76 chip. Is there a better way to see responses from the L76? Or do I first have to configure it to send acknowledgments?

          Regards
          WilkinsSq

          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