How to Recive API Frames on Connect port X2

Can someone help us out. We have a Connect Port X2 here. XbeeHP 900 type.

I have sent a frame from the connect port to XCTU no issues. Now we are trying to send a frame to the X2 and have it print this frame.

Test#1
Send a frame to the X2 and have it print the frame out.
Test#2
Parse some Data
Test #3
send this data to MQTT

Everyone here is having a really hard time trying to decipher the help documents and all the dead links.

I really would like to get this working. Its part of a project test for a large global mining company. We are almost at the point of sending this gateway back to Digi.

Something like the following provides the basics for a 2.4GHz ZigBee network. I expect the 900MHz socket API should be similar.

sock = socket.socket(socket.AF_XBEE, socket.SOCK_DGRAM, socket.XBS_PROT_TRANSPORT)
sock.bind((‘’, endpoint_id, 0, 0))
sock.setblocking(0)

rsocks = select.select([sock], [], [], 0)[0]

for s in rsocks:
payload, source_address = s.recvfrom(MAX_PAYLOAD_LEN)