Xbee API issue?

Hi Everyone,

How to send packets from one xbee to another xbee. When i am connecting with usb to my pc it is working fine. But when i am send the data through a micro-controller it is not responding. Please help me how to send a packet through a controller when xbee in API?

Thanks in advance.