simple communication between two XBee modules
What I had to do was issue (ATRE,ATWR) commands on both coordinator and router. And after setting ID and destination addresses again, I issued a network reset command (ATNR0) on each. then router joined coordinator and serial communication worked without a problem.