What you are asking is actually considered writing your own custom application for the XBee module. It is something that while you are allowed to do this, you are completely on your own. That is to say, Digi is not able to assist you in this endeavor.