OSError: Couldn't connect to Modem!
tveito last edited by tveito
We are trying to debug a problem we are having related to the LTE modem on the FiPy.
When pycom.lte_modem_en_on_boot() is set to False we are experiencing that we can not start LTE communication at all after a reset (deepsleep, machine.reset or button), but not after power cycling the device. As far as I understand, this flag should only stop the LTE modem from starting up every boot, but should not disable it all together. Will not post the entire code where we have done most of our testing with (too many files), but have created a simplified version that we have been able to reproduce it with:
from network import LTE import pycom import time import machine if pycom.lte_modem_en_on_boot(): print("LTE on boot was enabled. Disabling.") pycom.lte_modem_en_on_boot(False) lte = LTE() print("got lte!") time.sleep(10) machine.reset()
expected output when doing a "soft" reset: "OSError: Couldn't connect to Modem!"
expected output after powercycle: "got lte"
fipy firmware: 1.18.2.r7
modem firmware: LR126.96.36.199-41065
Any help or suggestions would be appreciated.
tveito last edited by
@Edward-Dimmack Hello and thanks for the response. Could you please give me the last part of the firmware? As my units did have firmware version 1.18.2.r7 (so still 1.18.2).
If anyone still have problems we have figured out a way of reliably turning on the modem:
When communicating set lte_modem_en_on_boot() to True.
Do a reset.
This does however introduce the need to keep state between resets, but that can be done by ether checking if lte_modem_en_on_boot is set to True or by checking reset cause if you don't want to start using the eeprom.
Edward Dimmack last edited by
@rskoniec Thank you for that. I tried all the modem firmware and it seemed to have little effect. However, I changed the firmware version to version 1.18.2 on the FiPy and so far they are all working. Even the ones that weren't working at all. Not sure if it will work for anyone else and I haven't done thorough testing yet. Will update if anything changes.
rskoniec last edited by
(...) Maybe the Sequans firmware on the first device is different but I am not sure where to get an older firmware for the modem.
You can use my prv modem f/w repo
Edward Dimmack last edited by
I agree. I wasn't having this issue with the first device we bought so we bought 14 more and all 14 are having the same issue. Some intermittent and some simply never work. I need to try downgrading the firmware but other than that everything is the same. Maybe the Sequans firmware on the first device is different but I am not sure where to get an older firmware for the modem.
PaulM last edited by
@tveito It's insane that this thread never received a response from Pycom. I'm facing the same issue on the GPy which is entirely foreclosing usage of the one and only thing I bought the board for: LTE communications.