# \[868LP\] Correct way to configure serial and API2 mode?

**URL:** <https://forums.digi.com/t/868lp-correct-way-to-configure-serial-and-api2-mode/18143>\
**Category:** XBee - Point-to-Point/Multi-Point\
**Tags:** 868lp\
**Created:** [March 13, 2017, 3:50am UTC](https://forums.digi.com/t/868lp-correct-way-to-configure-serial-and-api2-mode/18143 "2017-03-13T03:50:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![El\_Berto](https://avatars.discourse-cdn.com/v4/letter/e/bbce88/32.png) [@El\_Berto](https://forums.digi.com/u/El_Berto)\
**Post date:** [March 13, 2017, 3:50am UTC](https://forums.digi.com/t/868lp-correct-way-to-configure-serial-and-api2-mode/18143/1 "2017-03-13T03:50:52Z")

</div>

Hi to all, I’m trying to configure Xbee module.  
On datasheet it’s reported XB868LP default parameters are:

- 9600 8N1 (serial)
- transparent AT (mode)

I want to set it to API2 mode, 115200 8N1.

So:

1. I send “+++” sequence to enter in command mode (XBEE answer is 0x4F 0x4B 0x0D)
2. I try to switch to API2 mode sending “ATAP2+0x0D” (answer 0x4F 0x4B 0x0D)
3. Apply changes through command “ATAC+0x0D” (no answer)
4. Using discovery radio module I correctly see 9600-8N1, API2 mode
5. I try to read SH value using frame generator (API2 mode) and I correctly get SH values from module
6. switch-off, then switch-on power, I try to discover and I get again 9600-8N1, AT mode.

Why AT mode instead API2?

Then I try to switch to 115200 using AT command BD06 in API2 (using frame generator)  
In this case, if I try to discover module, I don’t find module, I need to unplug-plug power supply then I find again 9600 in AT mode…

---

<div class="post-metadata">

**Author:** ![NicholasWilson](https://avatars.discourse-cdn.com/v4/letter/n/c77e96/32.png) [@NicholasWilson](https://forums.digi.com/u/NicholasWilson)\
**Post date:** [March 13, 2017, 4:34am UTC](https://forums.digi.com/t/868lp-correct-way-to-configure-serial-and-api2-mode/18143/2 "2017-03-13T04:34:37Z")

</div>

ATWR?

Are you saving your changes?

---

<div class="post-metadata">

**Author:** ![El\_Berto](https://avatars.discourse-cdn.com/v4/letter/e/bbce88/32.png) [@El\_Berto](https://forums.digi.com/u/El_Berto)\
**Post date:** [March 13, 2017, 5:15am UTC](https://forums.digi.com/t/868lp-correct-way-to-configure-serial-and-api2-mode/18143/3 "2017-03-13T05:15:47Z")

</div>

Mmh, ok, thanks for advice…  
Taking a look to library I’ve seen AT+WR was disabled (it was reported AT+WR is automatically sent).  
I used a serial port sniffer, so I’ve seen XCTU uses a different way to program module (I’ll use that), it wasn’t so clear reading user’s guide…  
Thanks.
