problem in xbee API mode

i explained all …i am doing a home automation system…in coordinator api and end device AT it work properly with no delay and good response… but when change it to api coordinator with pc and api router with micro controller and AT end device to sensors then the system not work properly…some time it hang and stucked…Here i need to send frames from PC and micro controller so i keep xbee router with micro controller and xbee coordinator with PC as in API mode…sampling rate set in end device are 1 sec…

Try this case like if your Mc contains two uarts change the uarts in transparent mode like
UART0(rx/tx)<–>(tx/rx)UART1.i think some delay u are implemented at controller level.