Firmware Release v1.20.2.r2


  • Global Moderator

    Dear Pycom community!

    We're happy to announce the release of version 1.20.2.r2

    This version contains various changes and bugfixes to LTE, BLE, Pygate and Pybytes.

    Changes:

    • LTE: check for SIM card before attaching
    • LTE: Add timeout parameter to lte_send_at_cmd
    • LTE: improve exception texts
    • LTE: callback LTE_EVENT_BREAK
    • LTE: reduce AT+CEREG from 2 to 1
    • BLE: Fix a problem when machine.sleep(resume_wifi_ble=True)
    • BLE: Resume the BT Connection from the original list if connection was not…
    • BLE: Fix memory leak happens after Bluetooth disconnect
    • BLE: fix address type handling
    • Pybytes version 1.6.1 - OTA bug fix
    • Pygate: add pygate_reset() to power cycle the module
    • Pygate: reset the JIT queue margins
    • make: option MICROPY_FLOAT_IMPL - thanks for this contribution! PR 470
    • make: Pybytes and Pygate firmwares built from same source tree

    Downgrade note!
    If you update a FiPy or Gpy to this version and later downgrade again to any previous version, you need to run the following commands:

    from network import LTE
    lte = LTE()
    print(lte.send_at_cmd('AT+CEREG=2'))
    

    As usual, you can

    • install this update via Pybytes
    • or with the Firmware Updater
    • find the source code and detailed commit log in the git branch Dev
    • download the firmware packages (.tar.gz) from the docs
    • and get the .elf files from the github release


  • This post is deleted!

  • Global Moderator

    @mxklt said in Firmware Release v1.20.2.r2:

    I get an error when i try to use machine.pygate_reset() -> LORAPF_ERROR:pygate_reset failed to reset

    Pycom MicroPython 1.20.2.r2 [v1.11-3a7776d] on 2020-11-23; GPy with ESP32

    Please update the Pygate FW and try again: https://docs.pycom.io/updatefirmware/expansionboard/


  • Global Moderator

    @rcolistete said in Firmware Release v1.20.2.r2:

    The .tar.gz firmware files of v1.20.2.r2 aren't present in the links cited in Pycom docs :
    https://docs.pycom.io/advance/downgrade/

    Apologies. It's fixed now.



  • The .tar.gz firmware files of v1.20.2.r2 aren't present in the links cited in Pycom docs :
    https://docs.pycom.io/advance/downgrade/



  • I get an error when i try to use machine.pygate_reset() -> LORAPF_ERROR:pygate_reset failed to reset

    Pycom MicroPython 1.20.2.r2 [v1.11-3a7776d] on 2020-11-23; GPy with ESP32



  • @peterp Good you fixed this! I learned it the hard way as I had changed my CEREG to 1 playing around with the modem.


  • Global Moderator

    @peterp said in Firmware Release v1.20.2.r2:

    Downgrade note!
    If you update a FiPy or Gpy to this version and later downgrade again to any previous version, you need to run the following commands:

    from network import LTE
    lte = LTE()
    print(lte.send_at_cmd('AT+CEREG=2'))
    

    Let me add a little more detail to this:

    Previous firmwares expect the "verbosity" of the AT+CEREG command to be 2.

    This new firmware v1.20.2.r2 sets it to 1, when lte is started and also expects it to be 1 to function as expected.

    Now, lets say you downgrade from v1.20.2.r2 to an earlier version. The modem will remember the setting of 1. The earlier firmware versions are not explicitly setting the level, however they expect the setting to be 2. This means, that after a downgrade the lte API will not be able to perform an attach(). With the lines above you can correct this setting. If in doubt you can check the current setting like this:

    print(lte.send_at_cmd('AT+CEREG?'))
    

    it will return something that looks similar to one of these:

    +CEREG: 2,0
    +CEREG: 2,1,"0001","01A2D001",7
    +CEREG: 1,4
    +CEREG: 1,0
    ...
    

    In this context we only care about that first number. You want this to be 2, like in the first two examples. Then you're good to go with older firmwares.


Log in to reply
 

Pycom on Twitter