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

    gpy modem upgrade alternative

    Scheduled Pinned Locked Moved GPy
    gpymodemupgrade
    2 Posts 2 Posters 282 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.
    • K Offline
      kjm
      last edited by

      While the instructions at https://docs.pycom.io/tutorials/lte/firmware/ work, I find the whole sd card/serial uart pathway for GPY modem upgrades cumbersome. Herewith an alternative approach;

      1. upgrade the gpy to the latest version with the Pycom firmware updater tool
      2. check your modem version with lte.send_at_cmd('ATI1').split('\r\n'), usually 33080 for most new GPYs
      >>> import network; lte=network.LTE()
      >>> lte.send_at_cmd('ATI1').split('\r\n')
      ['', 'UE5.0.0.0d', 'LR5.1.1.0-33080', '', 'OK', '']
      
      1. mod your project settings in Atom so that elf & dup extensions are in sync_file_types for uploads
      "sync_file_types": [
              "py",
              "txt",
              "log",
              "json",
              "xml",
              "html",
              "js",
              "css",
              "mpy",
              "pem",
              "cet",
              "crt",
              "key",
              "dup",
              "elf"
      
      1. put updater.elf(only needed for 1st time modem upgrades) & upgdiff_33080-to-41065.dup files in your Atom
        upload folder
      2. click upload. Despite claims to the contrary they both fit in the gpy flash
      3. Do import sqnsupgrade; sqnsupgrade.run('/flash/upgdiff_33080-to-41065.dup', '/flash/updater.elf') for 1st time modem upgrades or import sqnsupgrade; sqnsupgrade.run('/flash/upgdiff_33080-to-39529.dup') for subsequents
      >>> import sqnsupgrade; sqnsupgrade.run('/flash/upgdiff_33080-to-41065.dup', '/flash/updater.elf')
      <<< Welcome to the SQN3330 firmware updater [1.2.5] >>>
      >>> GPy with firmware version 1.18.2.r6
      Attempting AT auto-negotiation...
      Session opened: version 1, max transfer 2048 bytes
      Sending 430284 bytes: [########################################] 100%
      Waiting for updater to load...
      Attempting AT wakeup...
      Session opened: version 1, max transfer 8192 bytes
      Sending 1658508 bytes: [########################################] 100%
      Waiting for modem to finish the update...
      <<<=== DO NOT DISCONNECT POWER ===>>>
      Resetting......
      Your modem has been successfully updated.
      Here is the current firmware version:
      
      UE5.0.0.0d
      LR5.1.1.0-41065
      
      1. Enjoy the fruits of your effort
      >>> sqnsupgrade.info()
      <<< Welcome to the SQN3330 firmware updater [1.2.5] >>>
      >>> GPy with firmware version 1.18.2.r6
      Your modem is in application mode. Here is the current version:
      UE5.0.0.0d
      LR5.1.1.0-41065
      
      robert-hhR 1 Reply Last reply Reply Quote 1
      • robert-hhR Offline
        robert-hh @kjm
        last edited by

        @kjm For people using Atom the this is a possible approach. But not all people do, and this approach makes quite a few assumptions, like that the image fits into flash. And there a lot if threads about problems with Atom and syncing. Your approach is an alternative, but people will too have issues with it.

        1 Reply Last reply Reply Quote 1

        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