Fipy Modem Error
-
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
-
@Gijs Thank you for the reply. Some Reason Image is not going through. Below are the details that i see
IMEI
n/alast Detected IMEI
n/aAPN
n/aBase Country
N/AFirst Used On
n/aHas Been Active Test
No - n/aSim is Active
-
All parameters, except for the APN, should become available after a first connection. The APN should show
pycom.iofor 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. -
@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-47510IMEI:
Nonesqnsupgrade.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)
TrueI 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?
-
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.
-
@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-41019lte.attach(band=20, apn="pycom.io")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: the requested operation failedlte.connect()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: modem not attached -
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? -
@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
-
@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
-
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
-
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.isattacheis 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_threadlte.isattached()cannot return that error, it only returnsTrueorFalse.Are you perhaps using the mesh (that is the only place I could refernence the ENXIO error to) ?
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