Home/Support/Support Forum/Gathering data from S5 Pro nodes to ConnectPort X2 868
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Gathering data from S5 Pro nodes to ConnectPort X2 868

0 votes
Hello everyone,

I am currently trying to establish a communication between s5 pro nodes and a connectPort X2 868.
To do so I have set my gateway as a coordinator and my nodes as end-devices. I have assigned the same PAN ID to each one of them (the nodes are detected by the gateway under Xbee Network) and the DH and DL of the nodes are set to the mac address of the gateway.
Sending data to the nodes works well but I can't receive any answer from them (I use XCTU to send packets).

Here is the python code I run on the gateway:
import sys
import os
import socket
import select
import binascii
import idigidata
import xbee
import time

print "Starting Application"

# Check platform of gateway. it's either NDS or Digi Embedded Linux
if sys.version_info < (2, 6):
print "Running NDS"
sock = socket.socket(socket.AF_ZIGBEE, socket.SOCK_DGRAM, socket.ZBS_PROT_TRANSPORT)
else:
print "Running DBL"
sock = socket.socket(socket.AF_ZIGBEE, socket.SOCK_DGRAM, socket.XBS_PROT_TRANSPORT)

# Determine if the xbee modem in the Digi gateway is using 'Zigbee' or
# 'DigiMesh' firmware. Then bind accordingly.
if ord(xbee.ddo_get_param(None, 'VR')[0]) == 0x10:
print "Binding to Digi Mesh"
sock.bind(("", 0x00, 0, 0))
else:
print "Binding to Zigbee"
sock.bind(("", 0xe8, 0, 0))

DESTINATION = ('00:13:a2:00:40:8b:cf:5b!',0,0,0)

sock.sendto('Hello World!', 0, DESTINATION)
print 'sent'
payload, src_addr = sock.recvfrom(255)
print 'received'
print src_addr

Any help would be much appreciated!
asked May 31, 2016 in Python by bl4sh20 New to the Community (2 points)
retagged Jun 1, 2016 by bl4sh20

Please log in or register to answer this question.

1 Answer

+1 vote
The binding for Digi Mesh, Point to point and Zigbee is all the same. They all use the end point E8.
answered Nov 10, 2016 by mvut Veteran of the Digi Community (11,302 points)
...