# XBee Channel Setting

**URL:** <https://forums.digi.com/t/xbee-channel-setting/19027>\
**Category:** XBee - 802.15.4\
**Tags:** programming, xbee\
**Created:** [December 29, 2017, 10:17am UTC](https://forums.digi.com/t/xbee-channel-setting/19027 "2017-12-29T10:17:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RogerHarrold](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@RogerHarrold](https://forums.digi.com/u/RogerHarrold)\
**Post date:** [December 29, 2017, 10:17am UTC](https://forums.digi.com/t/xbee-channel-setting/19027/1 "2017-12-29T10:17:15Z")

</div>

I am a little confused about channel setting on an XBee Pro using AT commands.  
Available channels are shown as hexC to hex17, dec12 to dec23

I have seen websites where setting to, say, hexD is achieved by  
“ATCH D” followed by dec13, implying that the XBee expects a  
hexadecimal string so setting channel hex17 would be done by  
Sending “ATCH 17” followed by dec13.  
This interpretation is supported by screen shots from XCTU.

I have also seen suggestions that the XBee expects a single byte whose  
binary value is the required channel. This would imply that to set channel  
HexD should be done by sending “ATCH “ followed by dec13 followed by another dec13.

These interpretations are incompatible. Which of is true, please?

---

<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 29, 2017, 10:30am UTC](https://forums.digi.com/t/xbee-channel-setting/19027/2 "2017-12-29T10:30:00Z")

</div>

The 802.15.4 XBee modules use a signal hex byte for the channel. For example, the ATCH is in ASCII with ASCII values. That is to say, if I want to set the radio to channel C, then the command in ASCII characters is ATCHC  
If I want to set it to channel 10, then the command would be ATCHA.

So what i am saying is that while the channels are Hex, you issue the Hex as an ASCII characters.

A B C D 14 15 16 17
