Home/Support/Support Forum/Xbee Cat-M AT Command Error

Xbee Cat-M AT Command Error

0 votes
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 "<stdin>", line 1, in <module>
ValueError: command pending

It seems the modem is preoccupied, any insight is appreciated, thanks.
asked Aug 25, 2020 in XBee Cellular by soterboat New to the Community (15 points)

Please log in or register to answer this question.

1 Answer

+2 votes
Best answer
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%7Cclass%2520Cellular%7C_____9

For the XBee 3 Zigbee there is also a native APIs as well:

Here are a list of AT commands that do not work:
answered Aug 25, 2020 by DigiFan23 Veteran of the Digi Community (278 points)
selected Aug 26, 2020 by soterboat
Much appreciated DigiFan.