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

    Fipy Modem Error

    Scheduled Pinned Locked Moved FiPy
    16 Posts 2 Posters 379 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.
    • R Offline
      Rakesh Maduupu @Gijs
      last edited by

      @Gijs Thank you. I will update all the steps that I have taken till now. Antenna placement and SIM card placements are good as i see that in portal.

      What i dont see is the APN in the pybytes portal , were you referring to this section ?
      (/assets/uploads/files/1626084079173-screenshot-2021-07-12-at-10.59.24-resized.png) image url)

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gijs
        last edited by

        It seems like something failed while uploading the image. But the APN should be listed in a screen on this page: https://pybytes.pycom.io/sim-cards

        R 1 Reply Last reply Reply Quote 0
        • R Offline
          Rakesh Maduupu @Gijs
          last edited by

          @Gijs Thank you for the reply. Some Reason Image is not going through. Below are the details that i see

          IMEI
          n/a

          last Detected IMEI
          n/a

          APN
          n/a

          Base Country
          N/A

          First Used On
          n/a

          Has Been Active Test
          No - n/a

          Sim is Active

          1 Reply Last reply Reply Quote 0
          • G Offline
            Gijs
            last edited by

            All parameters, except for the APN, should become available after a first connection. The APN should show pycom.io for the Vodafone simcard. The band is region dependent and you'll have to check the Vodafone information for that. Leaving it open is also possible, but it will take a longer time before the device is attached to the network.

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              Rakesh Maduupu @Gijs
              last edited by Rakesh Maduupu

              @Gijs Thank you for the reply. Am trying to upgrade again seeing the below message

              sd = SD()
              os.mount(sd, '/sd')
              print(os.listdir('/sd'))
              ['.Spotlight-V100', '.fseventsd', 'NB1-41019.dup', '._NB1-41019.dup', 'updater.elf', '._updater.elf', 'upgdiff_33080-to-41019.dup', '._upgdiff_33080-to-41019.dup', 'upgdiff_39529-to-41019.dup', '._upgdiff_39529-to-41019.dup', 'upgdiff_40343-to-41019.dup', '._upgdiff_40343-to-41019.dup', 'upgdiff_41065-to-41019.dup', '._upgdiff_41065-to-41019.dup']
              import sqnsupgrade
              print(sqnsupgrade.info())
              <<< Welcome to the SQN3330 firmware updater [1.2.6] >>>
              FiPy with firmware version 1.20.2.r4
              Your modem is in application mode. Here is the current version:
              UE5.0.0.0d
              LR5.1.1.0-47510

              IMEI:
              None

              sqnsupgrade.run('/sd/upgdiff_41065-to-41019.dup')
              <<< Welcome to the SQN3330 firmware updater [1.2.6] >>>
              FiPy with firmware version 1.20.2.r4
              Attempting AT wakeup...
              Session opened: version 1, max transfer 8192 bytes
              Sending 2427590 bytes: [########################################] 100%
              Waiting for modem to finish the update...
              This might take several minutes!
              <<<=== DO NOT DISCONNECT POWER ===>>>
              Upgrade failed with result failure[diffUpgrade,239] Patch didn't apply!
              Please check your firmware file(s)
              True

              I have made sure i downloaded the files multiple times still it gives out this error , any way forward for this, does this only mean corrupt firmware?

              1 Reply Last reply Reply Quote 0
              • R Offline
                Rakesh Maduupu
                last edited by

                Never mind, i should have downgrade the base version and then applied the Diff file. It would help if you could mention in the documentation for starters like me.

                1 Reply Last reply Reply Quote 1
                • R Offline
                  Rakesh Maduupu
                  last edited by Rakesh Maduupu

                  @Gijs, looks like something new, I have attached LTE antenna as well, am i missing anything here ?

                  print(sqnsupgrade.info())

                  FiPy with firmware version 1.20.2.r4
                  Your modem is in application mode. Here is the current version:
                  UE6.0.0.0
                  LR6.0.0.0-41019

                  lte.attach(band=20, apn="pycom.io")
                  Traceback (most recent call last):
                  File "<stdin>", line 1, in <module>
                  OSError: the requested operation failed

                  lte.connect()
                  Traceback (most recent call last):
                  File "<stdin>", line 1, in <module>
                  OSError: modem not attached

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    Gijs
                    last edited by Gijs

                    You might have to hard-reset the device using the reset button (or unplugging-replugging the device) to put the LTE modem back in application mode. Next, could you paste your code in codeblocks in the future, using three backticks (```) to start and end. That makes for more convenient reading.

                    If that does not work, could you use lte=LTE(debug=True) and paste the output?

                    R 1 Reply Last reply Reply Quote 0
                    • R Offline
                      Rakesh Maduupu @Gijs
                      last edited by

                      @Gijs said in Fipy Modem Error:

                      lte=LTE(debug=True)

                      >>> Connecting to /dev/tty.usbmodemPy27899a1...
                      WMAC: F008D1CBCE30
                      Firmware: 1.20.2.r4
                      Pybytes: 1.6.1
                      Initialized watchdog for WiFi and LTE connection with timeout 1260000 ms
                      Error connecting using WIFI: Connection to AP Timeout!
                      Initialized watchdog for WiFi and LTE connection with timeout 1260000 ms
                      Exception connect_lte: can't convert NoneType to int
                      Traceback (most recent call last):
                        File "_pybytes_connection.py", line 188, in connect_lte
                      TypeError: can't convert NoneType to int
                      ERROR! Could not connect to Pybytes!
                      Pybytes configuration read from /flash/pybytes_config.json
                      Pycom MicroPython 1.20.2.r4 [v1.11-ffb0e1c] on 2021-01-12; FiPy with ESP32
                      Pybytes Version: 1.6.1
                      Type "help()" for more information.
                      >>> 
                      >>> from network import LTE
                      >>> lte=LTE(debug=True)
                      Traceback (most recent call last):
                        File "<stdin>", line 1, in <module>
                      OSError: Couldn't start connection to Modem (modem_state=disconnected)
                      >>> 
                      
                      >>> print(sqnsupgrade.info())
                      <<< Welcome to the SQN3330 firmware updater [1.2.6] >>>
                      >>> FiPy with firmware version 1.20.2.r4
                      Cannot determine modem state!
                      None
                      >>> 
                      

                      I have tried powering off and reset as well, enabled wifi

                      R 1 Reply Last reply Reply Quote 0
                      • R Offline
                        Rakesh Maduupu
                        last edited by Rakesh Maduupu

                        @Gijs I could get this working after couple of formats again

                        [(2, 1, 0, '', ('172.31.8.78', 80))]
                        >>> 
                        

                        I would document everything as a starter guide and update my own blog and also here so that it would be helpful for few others, again I appreciate the support, as a feedback this is not as easy as our testing with LoPy and looks like we cannot ship it to our end user as is for plug and play as we could with Lopy as an example, looks like there is some learning curve here, when is this expected to end, any future releases will have appropriate firmwares by default without having our on field guys to do all this

                        -Rakesh

                        1 Reply Last reply Reply Quote 0
                        • R Offline
                          Rakesh Maduupu @Rakesh Maduupu
                          last edited by

                          Haha This forum thread burns and burns i guess , no stopping

                          >>> lte.attach(band=20, apn="pycom.io")
                          >>> lte.isattache> Failed to connect (Error: ENXIO: no such device or address, write).
                          

                          what i now see is this strange log and connection times out

                          1 Reply Last reply Reply Quote 0
                          • G Offline
                            Gijs
                            last edited by

                            I'm aware there is a learning curve for the LTE modem, please let me know how we can make it easier for beginners.

                            Could you elaborate what is happening here? the lte.isattache is half finished, making me think the error comes from somewhere else. Does the error just appear, does it always appear? Are you running any code on micropython _thread

                            lte.isattached() cannot return that error, it only returns True or False.

                            Are you perhaps using the mesh (that is the only place I could refernence the ENXIO error to) ?

                            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