This thread may help. I have not used the xbee.