# How CSMA/CA works on XBee?

**URL:** <https://forums.digi.com/t/how-csma-ca-works-on-xbee/16182>\
**Category:** XBee Programamble (S2C & 900 HP)\
**Tags:** collision, xbee\
**Created:** [January 31, 2016, 12:34pm UTC](https://forums.digi.com/t/how-csma-ca-works-on-xbee/16182 "2016-01-31T12:34:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gizemneb](https://avatars.discourse-cdn.com/v4/letter/g/cab0a1/32.png) [@gizemneb](https://forums.digi.com/u/gizemneb)\
**Post date:** [January 31, 2016, 12:34pm UTC](https://forums.digi.com/t/how-csma-ca-works-on-xbee/16182/1 "2016-01-31T12:34:25Z")

</div>

I’m trying to implement S-MAC protocol on waspmote xbee sensors and i know it has its own CSMA/CA. So first of all I need to understand the basic of xBee collision avoidance. Two senders set up in api mode in libraries and both periodically sending single bytes to a common receiver. I reduce the delay and many changing in libabries to make collision and to see how algorithm works. But when i monitor data at the receiver all looks as expected at the receiver … byte1, byte 2 … byte1, byte2. Do u have any idea how can i make collision? and is it possible to modify xbee module firmware?

---

<div class="post-metadata">

**Author:** ![asgm](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/asgm/32/3688_2.png) [@asgm](https://forums.digi.com/u/asgm)\
**Post date:** [February 1, 2016, 4:30am UTC](https://forums.digi.com/t/how-csma-ca-works-on-xbee/16182/2 "2016-02-01T04:30:13Z")

</div>

CSMA/CA is available on XBee 802.15.4 S1 modules. It can be disabled/enabled using “RN” parameter.

But remember that these modules (802.15.4) implements minimum retries as well and will make your job very difficult.
