Need basic information to connect Zigbee module to rcm4000

hi to all.
i am new bee to zigbee module. what i am trying in my project is just to transmitting a data to zigbee and receiving the the same data by the same module. 1st can do like this?

     if i need to do this what should i do?

whats the need of AT commends? should i use it in my code? for what and how to use it.
How to find it whether my module is transmitting data and receiving data?

here i have attached m code. find it and let me know that where i have to alter my code. pls help me…