Can't Get Raspberry Pi and Xbee to Work Together
You are using API mode; is that escaped API (ATAP=2) or non-escaped API? The frame you are sending has to be escaped/non-escaped to match the setting configured on the sender XBee.

Try achieving some kind of transmission in AT mode first; when that works, then upgrade to API mode.