gpy modem upgrade alternative



  • 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
    


  • @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.


Log in to reply
 

Pycom on Twitter