# XBee series 2 radio response contains extra data

**URL:** <https://forums.digi.com/t/xbee-series-2-radio-response-contains-extra-data/15945>\
**Category:** XBee & XBee Gateway\
**Tags:** pi-python, \-raspberry, xbee\
**Created:** [December 15, 2015, 8:09am UTC](https://forums.digi.com/t/xbee-series-2-radio-response-contains-extra-data/15945 "2015-12-15T08:09:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![satish.gunjal](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@satish.gunjal](https://forums.digi.com/u/satish.gunjal)\
**Post date:** [December 15, 2015, 8:09am UTC](https://forums.digi.com/t/xbee-series-2-radio-response-contains-extra-data/15945/1 "2015-12-15T08:09:41Z")

</div>

Hi,

I have one XBee series 2(Coordinator) connected to Raspberry Pi B+ and XB series 2(router) connected another Raspberry pi 2. When I am trying to send data from router to coordinator there are extra characters prefixed and postfixed with actual value.

e.g.  
{‘id’: ‘rx’,  
‘options’: ‘\x01’,  
‘rf\_data’: ‘~\x00\x15\x10\x01\x00\x00\x00\x00\x00\x00\xff\xff\xff\xfe\x00\x00#100000\xaf’,  
‘source\_addr’: ‘91’,  
‘source\_addr\_long’: ‘\x00\x13\xa2\x00@\xdc\x88n’}

in above sample response message only “#100000” is actual value rest all is unwanted data!!

I am using a python script to send and receive data.

why is extra data coming and how to remove it??

---

<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:** [December 15, 2015, 10:36am UTC](https://forums.digi.com/t/xbee-series-2-radio-response-contains-extra-data/15945/2 "2015-12-15T10:36:56Z")

</div>

It is part of the API frames. Try switching to transparent mode.

---

<div class="post-metadata">

**Author:** ![satish.gunjal](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@satish.gunjal](https://forums.digi.com/u/satish.gunjal)\
**Post date:** [December 17, 2015, 8:06am UTC](https://forums.digi.com/t/xbee-series-2-radio-response-contains-extra-data/15945/3 "2015-12-17T08:06:28Z")

</div>

Hi Thanks for your response…

Router is in AT mode (22A7) and Coordinator is also in AT mode(20A7). Still I am receiving extra character when I send a message from router to coordinator.

Both the radios are near my Wi-Fi router …will it affect Xbee communication??

---

<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:** [December 17, 2015, 8:33am UTC](https://forums.digi.com/t/xbee-series-2-radio-response-contains-extra-data/15945/4 "2015-12-17T08:33:43Z")

</div>

No being next to a wifi router will not cause additional data. It would only force the radio to use a different frequency.

Can you provide the data you are sending into the UART as well as what you are getting out?

---

<div class="post-metadata">

**Author:** ![satish.gunjal](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@satish.gunjal](https://forums.digi.com/u/satish.gunjal)\
**Post date:** [December 17, 2015, 3:03pm UTC](https://forums.digi.com/t/xbee-series-2-radio-response-contains-extra-data/15945/5 "2015-12-17T15:03:13Z")

</div>

I have changed the both Xbee’s mode to API and now there is no issue with extra data or one-way communication… 🙂

Is it recommended to use API mode only, when using XBee with raspberry pi?

Is there any setting to force Xbee to use same channel and connect to same coordinator after reboot?

---

<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:** [December 17, 2015, 3:46pm UTC](https://forums.digi.com/t/xbee-series-2-radio-response-contains-extra-data/15945/6 "2015-12-17T15:46:11Z")

</div>

No, you don’t need to but most of your already built Library’s are designed to work with the radios in API mode.
