# Xbee Cat-M AT Command Error

**URL:** <https://forums.digi.com/t/xbee-cat-m-at-command-error/21705>\
**Category:** XBee - Cellular\
**Tags:** error, xbee-cellular, xbee3\
**Created:** [August 25, 2020, 2:38pm UTC](https://forums.digi.com/t/xbee-cat-m-at-command-error/21705 "2020-08-25T14:38:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![soterboat](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@soterboat](https://forums.digi.com/u/soterboat)\
**Post date:** [August 25, 2020, 2:38pm UTC](https://forums.digi.com/t/xbee-cat-m-at-command-error/21705/1 "2020-08-25T14:38:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![DigiFan23](https://avatars.discourse-cdn.com/v4/letter/d/b38774/32.png) [@DigiFan23](https://forums.digi.com/u/DigiFan23)\
**Post date:** [August 25, 2020, 4:44pm UTC](https://forums.digi.com/t/xbee-cat-m-at-command-error/21705/2 "2020-08-25T16:44:36Z")

</div>

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](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|XBee%2520MicroPython%2520module%2520on%2520the%2520XBee%25203%2520RF%25C2%25A0Modules|\_\_\_\_\_0](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](https://www.digi.com/resources/documentation/digidocs/90002219/default.htm#reference/r_unavailable_at.htm?Highlight=active%20scan)

---

<div class="post-metadata">

**Author:** ![soterboat](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@soterboat](https://forums.digi.com/u/soterboat)\
**Post date:** [August 26, 2020, 12:14pm UTC](https://forums.digi.com/t/xbee-cat-m-at-command-error/21705/3 "2020-08-26T12:14:34Z")

</div>

Much appreciated DigiFan.
