i want to setup a serial connection between three xbee s2, i want to send data from one side to another through medium

Try following http://knowledge.digi.com/articles/Knowledge_Base_Article/Range-Testing-with-a-ZigBee-Mesh-Network/