# Getting XBEE S2C End Device Address through USART by PIC MCU

**URL:** <https://forums.digi.com/t/getting-xbee-s2c-end-device-address-through-usart-by-pic-mcu/19349>\
**Category:** Realport\
**Tags:** address, enddevice, xbees2c, apimode\
**Created:** [March 30, 2018, 3:21pm UTC](https://forums.digi.com/t/getting-xbee-s2c-end-device-address-through-usart-by-pic-mcu/19349 "2018-03-30T15:21:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phonezawthein](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@phonezawthein](https://forums.digi.com/u/phonezawthein)\
**Post date:** [March 30, 2018, 3:21pm UTC](https://forums.digi.com/t/getting-xbee-s2c-end-device-address-through-usart-by-pic-mcu/19349/1 "2018-03-30T15:21:24Z")

</div>

Hello,  
Recently, I started using XBEE S2C modules in my project. I would like to get XBEE Device Address by sending commands to the XBEE module through USART. But, the XBEE Device doesn’t return any information. I used the API1 mode to connect with XBEE module. The Baud Rate is 9600 bps. The commands I use to get XBEE Device Address are described as below.

const uint8\_t XBEE\_ADDRESS\_MAC\_UPPER\_4BYTE [] = {0x7E, 0x00, 0x04, 0x08, 0x52, 0x53, 0x48, 0x0A};  
const uint8\_t XBEE\_ADDRESS\_MAC\_LOWER\_4BYTE [] = {0x7E, 0x00, 0x04, 0x08, 0x52, 0x53, 0x4C, 0x06};

Could you please tell me how to do it correctly ?

Thanks.
