Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

LTE cannot send AT commands if NB-IoT network gets unreachable #188

@arapostol

Description

@arapostol

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    LTEIssues related to LTE

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions