Home/Support/Support Forum/How to Recive API Frames on Connect port X2
New and improved user forum site going live on 12/6 (All users will need to reset their password when the new forum is active)

How to Recive API Frames on Connect port X2

0 votes
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.

Send a frame to the X2 and have it print the frame out.
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.
asked Dec 21, 2018 in DigiMesh Proprietary Mesh Networking by Sass123 New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
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))

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

for s in rsocks:
payload, source_address = s.recvfrom(MAX_PAYLOAD_LEN)
answered Dec 29, 2018 by jlovinger Veteran of the Digi Community (421 points)