Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FiPY modem firmware install fails at 'Starting STP ON_THE_FLY' #461

Open
csandor opened this issue Jul 1, 2020 · 0 comments
Open

FiPY modem firmware install fails at 'Starting STP ON_THE_FLY' #461

csandor opened this issue Jul 1, 2020 · 0 comments

Comments

@csandor
Copy link

csandor commented Jul 1, 2020

Firmware info:

>>> os.uname()
(sysname='FiPy', nodename='FiPy', release='1.20.2.rc10', version='v1.11-a159dee on 2020-06-26', machine='FiPy with ESP32', lorawan='1.0.2', sigfox='1.0.1', pybytes='1.5.1')

Downloaded this modem firmware: https://software.pycom.io/downloads/sequans/NB1-41019.zip

Firmware update code I'm trying from sd card:

from machine import SD
import sqnsupgrade
import os
sd=SD()
os.mount(sd,'/sd')
sqnsupgrade.run('/sd/upgdiff_33080-to-41019.dup', '/sd/updater.elf', debug=True)

Result in debug mode:

 <<< Welcome to the SQN3330 firmware updater [1.2.6] >>>
>>> FiPy with firmware version 1.20.2.rc10
File /sd/updater.elf has size 371307
File /sd/upgdiff_33080-to-41019.dup has size 2533108
The current delay is 1000
Response (+++ #1): None
Response (AT #1) None
Response (AT #3) None
Response (AT #4) None
Response (AT #1 @ 115200) b'ERROR\r\n'
Response (AT #2 @ 115200) b'OK\r\n'
Response (AT+SMOD?) b'0\r\nOK\r\n'
Converting response: 0 to int...
Modem state: 0
Success1? True
mirror? False  recover? True  resume? True  direct? False  atneg_only? False bootrom? False load_fff? False
baudrate: 115200 target_baudrate: 921600
Initial prepartion complete...
Loading /sd/updater.elf
Entering recovery mode
AT+SMOD? returned 0
Attempting AT auto-negotiation... with baudrate 115200 and target_baudrate 921600
b'OK\r\n'
Setting baudrate to 921600
b'OK\r\n'
Checking SMOD
AT+SMOD? returned b'0'
Starting STP code upload
running m.wipe
running m.reset
magic=0x74736166, op=0x80, sid=0x0, plen=0x0, tid=0x0, hcrc=0x0, pcrc=0xFEEC
Correct SRSP signature: 0x74736166
running m.open_session
Session opened: version 1, max transfer 2048 bytes
running push(m)
Sending 371307 bytes: [                                    Sending 371307 bytes: [                                    Sending 371307 bytes: [#                                   Sending 371307 bytes: [#                                   Sending 371307 bytes: [#                                   Sending 371307 bytes: [#                                   Sending 371307 bytes: [##                                  Sending 371307 bytes: [##                                  Sending 371307 bytes: [##                                  Sending 371307 bytes: [##                                  Sending 371307 bytes: [##                                  Sending 371307 bytes: [###                                 Sending 371307 bytes: [###                                 Sending 371307 bytes: [###                                 Sending 371307 bytes: [###                                 Sending 371307 bytes: [####                                Sending 371307 bytes: [####                                Sending 371307 bytes: [####                                Sending 371307 bytes: [####                                Sending 371307 bytes: [####                                Sending 371307 bytes: [#####                               Sending 371307 bytes: [#####                               Sending 371307 bytes: [#####                               Sending 371307 bytes: [#####                               Sending 371307 bytes: [######                              Sending 371307 bytes: [######                              Sending 371307 bytes: [######                              Sending 371307 bytes: [######                              Sending 371307 bytes: [######                              Sending 371307 bytes: [#######                             Sending 371307 bytes: [#######                             Sending 371307 bytes: [#######                             Sending 371307 bytes: [#######                             Sending 371307 bytes: [########                            Sending 371307 bytes: [########                            Sending 371307 bytes: [########                            Sending 371307 bytes: [########                            Sending 371307 bytes: [########                            Sending 371307 bytes: [#########                           Sending 371307 bytes: [#########                           Sending 371307 bytes: [#########                           Sending 371307 bytes: [#########                           Sending 371307 bytes: [#########                           Sending 371307 bytes: [##########                          Sending 371307 bytes: [##########                          Sending 371307 bytes: [##########                          Sending 371307 bytes: [##########                          Sending 371307 bytes: [###########                         Sending 371307 bytes: [###########                         Sending 371307 bytes: [###########                         Sending 371307 bytes: [###########                         Sending 371307 bytes: [###########                         Sending 371307 bytes: [############                        Sending 371307 bytes: [############                        Sending 371307 bytes: [############                        Sending 371307 bytes: [############                        Sending 371307 bytes: [#############                       Sending 371307 bytes: [#############                       Sending 371307 bytes: [#############                       Sending 371307 bytes: [#############                       Sending 371307 bytes: [#############                       Sending 371307 bytes: [##############                      Sending 371307 bytes: [##############                      Sending 371307 bytes: [##############                      Sending 371307 bytes: [##############                      Sending 371307 bytes: [###############                     Sending 371307 bytes: [###############                     Sending 371307 bytes: [###############                     Sending 371307 bytes: [###############                     Sending 371307 bytes: [###############                     Sending 371307 bytes: [################                    Sending 371307 bytes: [################                    Sending 371307 bytes: [################                    Sending 371307 bytes: [################                    Sending 371307 bytes: [#################                   Sending 371307 bytes: [#################                   Sending 371307 bytes: [#################                   Sending 371307 bytes: [#################                   Sending 371307 bytes: [#################                   Sending 371307 bytes: [##################                  Sending 371307 bytes: [##################                  Sending 371307 bytes: [##################                  Sending 371307 bytes: [##################                  Sending 371307 bytes: [###################                 Sending 371307 bytes: [###################                 Sending 371307 bytes: [###################                 Sending 371307 bytes: [###################                 Sending 371307 bytes: [###################                 Sending 371307 bytes: [####################                Sending 371307 bytes: [####################                Sending 371307 bytes: [####################                Sending 371307 bytes: [####################                Sending 371307 bytes: [#####################               Sending 371307 bytes: [#####################               Sending 371307 bytes: [#####################               Sending 371307 bytes: [#####################               Sending 371307 bytes: [#####################               Sending 371307 bytes: [######################              Sending 371307 bytes: [######################              Sending 371307 bytes: [######################              Sending 371307 bytes: [######################              Sending 371307 bytes: [#######################             Sending 371307 bytes: [#######################             Sending 371307 bytes: [#######################             Sending 371307 bytes: [#######################             Sending 371307 bytes: [#######################             Sending 371307 bytes: [########################            Sending 371307 bytes: [########################            Sending 371307 bytes: [########################            Sending 371307 bytes: [########################            Sending 371307 bytes: [########################            Sending 371307 bytes: [#########################           Sending 371307 bytes: [#########################           Sending 371307 bytes: [#########################           Sending 371307 bytes: [#########################           Sending 371307 bytes: [##########################          Sending 371307 bytes: [##########################          Sending 371307 bytes: [##########################          Sending 371307 bytes: [##########################          Sending 371307 bytes: [##########################          Sending 371307 bytes: [###########################         Sending 371307 bytes: [###########################         Sending 371307 bytes: [###########################         Sending 371307 bytes: [###########################         Sending 371307 bytes: [############################        Sending 371307 bytes: [############################        Sending 371307 bytes: [############################        Sending 371307 bytes: [############################        Sending 371307 bytes: [############################        Sending 371307 bytes: [#############################       Sending 371307 bytes: [#############################       Sending 371307 bytes: [#############################       Sending 371307 bytes: [#############################       Sending 371307 bytes: [##############################      Sending 371307 bytes: [##############################      Sending 371307 bytes: [##############################      Sending 371307 bytes: [##############################      Sending 371307 bytes: [##############################      Sending 371307 bytes: [###############################     Sending 371307 bytes: [###############################     Sending 371307 bytes: [###############################     Sending 371307 bytes: [###############################     Sending 371307 bytes: [################################    Sending 371307 bytes: [################################    Sending 371307 bytes: [################################    Sending 371307 bytes: [################################    Sending 371307 bytes: [################################    Sending 371307 bytes: [#################################   Sending 371307 bytes: [#################################   Sending 371307 bytes: [#################################   Sending 371307 bytes: [#################################   Sending 371307 bytes: [##################################  Sending 371307 bytes: [##################################  Sending 371307 bytes: [##################################  Sending 371307 bytes: [##################################  Sending 371307 bytes: [##################################  Sending 371307 bytes: [################################### Sending 371307 bytes: [################################### Sending 371307 bytes: [################################### Sending 371307 bytes: [################################### Sending 371307 bytes: [####################################Sending 371307 bytes: [####################################Sending 371307 bytes: [####################################Sending 371307 bytes: [####################################Sending 371307 bytes: [####################################Sending 371307 bytes: [####################################Sending 371307 bytes: [####################################Sending 371307 bytes: [####################################Sending 371307 bytes: [####################################Sending 371307 bytes: [####################################Sending 371307 bytes: [####################################Sending 371307 bytes: [####################################Sending 371307 bytes: [####################################Sending 371307 bytes: [####################################Sending 371307 bytes: [####################################Sending 371307 bytes: [####################################Sending 371307 bytes: [####################################Sending 371307 bytes: [####################################Sending 371307 bytes: [####################################Sending 371307 bytes: [####################################Sending 371307 bytes: [####################################Sending 371307 bytes: [########################################] 100%
running dev.set_timeout(2)
running m.reset(True)
start returned True type <class 'bool'>
Waiting for updater to load... [921600]
b'OK\r\n'
Upgrader loaded successfully, modem is in update mode
Success2? True
mirror? False  recover? False  resume? True  direct? False  atneg_only? False bootrom? False load_fff? False
baudrate: 921600 target_baudrate: 921600
Initial prepartion complete...
Loading /sd/upgdiff_33080-to-41019.dup
Attempting AT wakeup... [921600]
b'OK\r\n'
Entering recovery mode
AT+SMOD? returned 0
Starting STP ON_THE_FLY
Sending AT+SMSTPU="ON_THE_FLY"
Traceback (most recent call last):
  File "<stdin>", line 7, in <module>
  File "sqnsupgrade.py", line 1019, in run
  File "sqnsupgrade.py", line 906, in upgrade
  File "sqnsupgrade.py", line 552, in __run
OSError: Invalid answer 'b'ERRO'' from the device

result:

>>> sqnsupgrade.info()
<<< Welcome to the SQN3330 firmware updater [1.2.6] >>>
>>> FiPy with firmware version 1.20.2.rc10
Your modem is in recovery mode! Use firmware.dup and updater.elf to flash new firmware.

Tried also:

  • leaving out updater.elf, which resulted in an error saying that I need to include it
  • use the NB1-41019.dup file instead of the diff: same result
  • installing the CATM1 firmware: same result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant