########### MAIN print("dbg", dbg) try: import pycom print("sqnsup_uart.py is running on device") import pycom import binascii import machine print("sys", os.uname().sysname) print("unique_id", binascii.hexlify(machine.unique_id())) print("release", os.uname().release) sqnsupgrade.info(debug=True) # state 2 .. Application mode if use_recovery: import sqnsupgrade if use_updater: sqnsupgrade.uart(True, updater, debug=dbg) else: sqnsupgrade.uart(True, debug=dbg) else: import sqnsupgrade sqnsupgrade.uart(debug=dbg) except: print("sqnsup_uart.py is running on desktop") if use_full:
print(''' asdf jkl''') if False: _stress() try: mount_sd() find('/sd') import sqnsupgrade except: pass if False: ls('/sd/CATM1-41065') ls('/sd/NB1-41019') import sqnsupgrade sqnsupgrade.info() # published sqnsupgrade.run('/sd/CATM1-41065/CATM1-41065.dup', debug=True) sqnsupgrade.run('/sd/CATM1-41065/CATM1-41065.dup', '/sd/CATM1-41065/updater.elf', debug=True) sqnsupgrade.run('/sd/NB1-41019/NB1-41019.dup', debug=True) # delta # tbd # CAT-M1 sqnsupgrade.run('/sd/LR5.2.1.0-48829/LR5.2.1.0-48829-1.dup', load_fff=False, debug=True) sqnsupgrade.run('/sd/LR5.2.1.0-48829/LR5.2.1.0-48829-2.dup', debug=True) # NB-IoT sqnsupgrade.run('/sd/NB1-46262/NB1-46262.dup', debug=True) sqnsupgrade.run('/sd/NB1-46262/FIPY_LR6.1.2.0-46262_SMDD.dup', debug=True) sqnsupgrade.run('/sd/FIPY_LR6.1.2.0-46262_SMDD.dup', debug=True) sqnsupgrade.run('/sd/NB1-48939/NB1-48939.dup', debug=True) machine.reset()
def firmware_info(self): """ """ import sqnsupgrade sqnsupgrade.info(verbose=True, debug=True)