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 in XBee Cellular by soterboat New to the Community (13 points)

Please log in or register to answer this question.

1 Answer

+2 votes
 
Best answer
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%7Cclass%2520Cellular%7C_____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%7CXBee%2520MicroPython%2520module%2520on%2520the%2520XBee%25203%2520RF%25C2%25A0Modules%7C_____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
answered Aug 25 by DigiFan23 Veteran of the Digi Community (278 points)
selected Aug 26 by soterboat
Much appreciated DigiFan.
...