Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    problems updating sqns firmware

    Scheduled Pinned Locked Moved Issues & Bugs
    fipy firmwarelte nb iot
    4 Posts 2 Posters 921 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E Offline
      Eric Waai
      last edited by Eric Waai

      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?

      T 1 Reply Last reply Reply Quote 0
      • T Offline
        timh @Eric Waai
        last edited by

        @eric-waai just checking, did you mount the SD device ?

        1 Reply Last reply Reply Quote 0
        • E Offline
          Eric Waai
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • E Offline
            Eric Waai
            last edited by Eric Waai

            getting further on this problem
            found list of OSErrors ENOENT means No such file or directory

            there 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 appreciated

            edit:

            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 ERROR

            i 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 155

            except:
                    blob.close()
                    print('Code download failed 2, aborting!')
                    abort = True
            

            i'm really out of ideas for the moment

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post

            Pycom on Twitter

            Pycom