# Why does XBee switch to AT mode despite API-Mode without escapes?

**URL:** <https://forums.digi.com/t/why-does-xbee-switch-to-at-mode-despite-api-mode-without-escapes/16697>\
**Category:** XBee - Zigbee\
**Tags:** error, escape, xbee\
**Created:** [May 2, 2016, 1:08pm UTC](https://forums.digi.com/t/why-does-xbee-switch-to-at-mode-despite-api-mode-without-escapes/16697 "2016-05-02T13:08:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![martin.b](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@martin.b](https://forums.digi.com/u/martin.b)\
**Post date:** [May 2, 2016, 1:08pm UTC](https://forums.digi.com/t/why-does-xbee-switch-to-at-mode-despite-api-mode-without-escapes/16697/1 "2016-05-02T13:08:30Z")

</div>

Hi,

My XBee modules switch to AT mode when I send the escape sequence, although I am using API mode without escape sequences (ATER 1). If I understand correctly, that should only happen in the other two modes (ATER 0, ATER 2). What am I doing wrong?

I am using two XBee Pro 868 (XBP08-DP, hardware version 1D47) each on a USB dev board (xbib-u-dev), Firmware version 1061 MAC onlyMay 28 2010 09:38:14.

I also cannot get them to associate, but probably that is related to my problem.

Thank you.

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [May 3, 2016, 9:24am UTC](https://forums.digi.com/t/why-does-xbee-switch-to-at-mode-despite-api-mode-without-escapes/16697/2 "2016-05-03T09:24:30Z")

</div>

I think you may need to look at this again. The ATER command is a Read only command.

ER  
RF errors  
. Read the number of times a packet was  
received which contained integrity errors of some  
sort. When the value reaches 0xFFFF, it stays there.

If you mean by Escape sequence of issuing the +++ function to Enter AT command mode, that would be normal.

---

<div class="post-metadata">

**Author:** ![martin.b](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@martin.b](https://forums.digi.com/u/martin.b)\
**Post date:** [May 3, 2016, 9:47am UTC](https://forums.digi.com/t/why-does-xbee-switch-to-at-mode-despite-api-mode-without-escapes/16697/3 "2016-05-03T09:47:44Z")

</div>

Sorry, that was just a typo. What I meant is ATAP (API Mode), of course. XCTU also confirms that API Mode is set to one, but still the escape sequences are recognized.

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [May 3, 2016, 1:29pm UTC](https://forums.digi.com/t/why-does-xbee-switch-to-at-mode-despite-api-mode-without-escapes/16697/4 "2016-05-03T13:29:24Z")

</div>

What escape sequence are you referring to?
