Pycom board: FiPY
Firmware version:
(sysname='FiPy', nodename='FiPy', release='1.18.0', version='v1.8.6-849-046b350 on
2018-06-01', machine='FiPy with ESP32', lorawan='1.0.2', sigfox='1.0.1')
After attaching and connecting to my internal NB-IoT network (Amarisoft)...
from network import LTE
>>> lte = LTE()
>>> lte.attach(band=20)
>>> lte.isattached()
True
>>> lte.connect()
>>> lte.isconnected()
True
if the network is unavailable after a while (I manually stop the network)
>>> lte.send_at_cmd('AT+CEREG?')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: LTE modem is in data state, cannot send AT commands
>>> lte.isconnected()
False
>>> lte.isattached()
True
>>> lte.connect()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: modem already connected
>>> lte.disconnect()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: the requested operation failed
>>> lte.send_at_cmd('AT+CEREG?')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: LTE modem is in data state, cannot send AT commands
I think the modem knows that it is not connected to the network, but the LTE object is not so sure about that: it is returning that it not connected but if I try to send an AT command or connect again it is returning that it is already connected!