problems updating sqns firmware
-
i'm trying to get the newest firmware on the LTE modem of the fipy
but when i do this : sqnsupgrade.run('/sd/FIPY_NB1_37781.dup')i get :
File "<stdin>", line 1, in <module> File "/flash/lib/sqnsupgrade.py", line 106, in run OSError: [Errno 2] ENOENT
this is the firmware running on the fipy
Pycom MicroPython 1.18.0 [v1.8.6-849-046b350] on 2018-06-01; FiPy with ESP32
i downloaded the updated versions of the pycom libraries today.i tried formatting the SD card but that doesn't help
any thoughts?
-
getting further on this problem
found list of OSErrors ENOENT means No such file or directorythere was a typo in the file path
at this point i'm getting other errors at line 121
>>> sqnsupgrade.run('/sd/FIPY_GPY_NB1_37781.dup',921600) <<< Welcome to the SQN3330 firmware updater >>> Entering recovery mode Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/flash/lib/sqnsupgrade.py", line 121, in run TypeError: extra keyword arguments given >>>
reading the sqnsupgrade.py says that the line does
print('Resetting.', end='', flush=True)
guessing it is not important that to print something i removed the line
running the upgrade again gives me this>>> sqnsupgrade.run('/sd/FIPY_GPY_NB1_37781.dup',921600) <<< Welcome to the SQN3330 firmware updater >>> Entering recovery mode Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/flash/lib/sqnsupgrade.py", line 123, in run File "/flash/lib/sqnsupgrade.py", line 74, in wait_for_modem TypeError: extra keyword arguments given
reading the code at that line 74 gives
print('.', end='', flush=True)
this makes me think that there is something wrong with the call of the print() function
so i removed the
flush=True
from both lines. after running the sqnsupgrade i now get the following
>>> sqnsupgrade.run('/sd/FIPY_GPY_NB1_37781.dup',921600) <<< Welcome to the SQN3330 firmware updater >>> Entering recovery mode Resetting.. Starting STP (DO NOT DISCONNECT POWER!!!) STP started Session opened: version 1, max transfer 8192 bytes Code download failed, aborting! >>>
this is how far i am at he moment still looking in to this
any help is appreciatededit:
after some more trying got some more info
if i try the update again i get this error>>> sqnsupgrade.run('/sd/FIPY_GPY_NB1_37781.dup',921600) <<< Welcome to the SQN3330 firmware updater >>> Entering recovery mode AT+SMSWBOOT=3,0 response b'' Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/flash/lib/sqnsupgrade.py", line 131, in run OSError: AT+SMSWBOOT=3,0 failed!
the modem is not responsive to any AT commands
if i send just AT+CGMI i get ERRORi tried to locate the cause of the error of the code download
i eddited the sqnsupgrade.py to find out where this error is generated
it is in line 155except: blob.close() print('Code download failed 2, aborting!') abort = True
i'm really out of ideas for the moment
-
yes i did
the new sqnsupgrade.py file does that too by the way on line 87 so i figure it isn't needed to do that.
also tried with mounting doesn't make a difference
-
@eric-waai just checking, did you mount the SD device ?