Failed to start STP mode!



  • This is what im getting on my computer(Ubuntu 16.04):

    >>> import sqnsupgrade
    >>> sqnsupgrade.run('/dev/ttyUSB0', 'NB1-40343.dup', 'updater.elf')
    <<< Welcome to the SQN3330 firmware updater [1.2.0] >>>
    Failed to start STP mode!
    

    Edit: I'm running this on my computer and I opened as "sudo python3"
    Edit 2: I'm trying to do this over UART since i don't have the expansion board aka no sd card.
    Edit 3: Tried to do also upload the 'upgdiff_33080-to-40343', same result as I have here.
    thoughts?



  • @aen I had a different experience. This worked for me:

    >>> import sqnsupgrade
    >>> sqnsupgrade.info()
    <<< Welcome to the SQN3330 firmware updater [1.2.6] >>>
    >>> FiPy with firmware version 1.20.0.rc13
    Your modem is in application mode. Here is the current version:
    UE5.0.0.0d
    LR5.1.1.0-46470
    

    Then on the terminal:

    >>> sqnsupgrade.run('/dev/ttyACM0', 'NB1-41019.dup')
    <<< Welcome to the SQN3330 firmware updater [1.2.5] >>>
    Firmware file is too big to load via FFF method. Using ON_THE_FLY
    Attempting AT wakeup...
    Session opened: version 1, max transfer 8192 bytes
    Sending 5835531 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:
    
    UE6.0.0.0
    LR6.0.0.0-41019
    

    When I tried your method (to upgrade) the result was an error:

    Upgrade failed with result failure[diffUpgrade,239] Patch didn't apply!
    

    So I figured I'd just upload the final image rather than a diff as the factory shipped firmware appeared to be some unknown number (46470)

    The documentation on all this is convoluted when its probably quite simple.

    Philip



  • @aen Answering my own reply.

    I did manage to upgrade the modem to nb-iot using the uart method.

    The key was to

    1. use the "diff"-file and
    2. leaving out the parameter to the updater.elf file in the method call sqnsupgrade.run(...)
    Mini:sqnsupgrade aen$ python3.7
    Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 16:52:21) 
    [Clang 6.0 (clang-600.0.57)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import sqnsupgrade
    >>> sqnsupgrade.run('/dev/tty.usbmodemPy56c0ae','upgdiff_33080-to-41019.dup')
    <<< Welcome to the SQN3330 firmware updater [1.2.5] >>>
    Attempting AT wakeup...
    Session opened: version 1, max transfer 8192 bytes
    Sending 2533108 bytes: [########################################] 100%
    Waiting for modem to finish the update...
    This might take several minutes!
    <<<=== DO NOT DISCONNECT POWER ===>>>
    Your modem has been successfully updated.
    Here is the current firmware version:
    
    UE6.0.0.0
    LR6.0.0.0-41019
    
    


  • @oyarzo-pablo So you did not succeed upgrading the firmware using the uart method. But you were successful once the files was on the module?

    I am getting the same error message from the sqnsupgrade script.



  • Uploaded the diff and uploader files to the Gpy with the Pymakr and did the upgrade using the steps of the sd card but changing each path to flash.



  • @elizar said in Failed to start STP mode!:

    ccessible Sorry, I didn't specify enough, that is a python console opened on my computer in the path of the sqnsupgrade and NB1 files.



  • @oyarzo-pablo: Try leaving out the first parameter and specify only the *.dup and the *.elf files.
    Where are these files located? Are they accessible directly or do they need a path like /sd/updater.elf ?



Pycom on Twitter