Xbee Cat-M AT Command Error

XBXC3 running modem firmware L05.08, A.02.04 and xbee firmware 11415

The modem is online and connected to a tower.

Receiving the following error when running these AT commands in REPL console in PyCharm ({DB, 1}, SQ, SW, AS):

>>> xbee.atcmd(‘SW’)
Traceback (most recent call last):
File “”, line 1, in
ValueError: command pending

It seems the modem is preoccupied, any insight is appreciated, thanks.

Hello,
Some commands (labeled as “pending commands”) cannot be run by MicroPython. Most of the time there is another API that presents similar functionality. For example, instead of ATDB1, ATSW, ATSQ, you may use the network.Cellular() objects .signal() function which returns a dictionary of different signal values. Reference: https://www.digi.com/resources/documentation/digidocs/90002219/default.htm#reference/r_function_signal__.htm%3FTocPath%3DCellular%2520network%2520configuration%2520module|class%2520Cellular|_____9

For the XBee 3 Zigbee there is also a native APIs as well:
https://www.digi.com/resources/documentation/digidocs/90002219/default.htm#reference/r_class_xbee_zb.htm%3FTocPath%3DXBee%2520module|XBee%2520MicroPython%2520module%2520on%2520the%2520XBee%25203%2520RF%25C2%25A0Modules|_____0

Here are a list of AT commands that do not work:
https://www.digi.com/resources/documentation/digidocs/90002219/default.htm#reference/r_unavailable_at.htm?Highlight=active%20scan

2 Likes

Much appreciated DigiFan.