I am looking to bind my Ti CC2650 SensorTag with my Digi Gateway and pull temperature data from it. The sensortag uses the HA profile for Zigbee and uses Cluster 402, Profile 302 for temperature. I currently am having troubles binding the two and receiving messages from the device. In particular making the Digi X4 ask the 2650 to send messages properly.
My code is as follows:
DESTINATION=("00:12:4b:00:07:b5:64:81!", 0x09, 0x0302, 0x0402)
# Create the socket, datagram mode, aps transport: or should this be api?
sd = socket(AF_XBEE, SOCK_DGRAM, XBS_PROT_APS)
# Bind to endpoint 0x07 on gateway:
sd.bind(("", 0x07, 0, 0))
print "Bound now getting Temperature"
# Send "Hello, World!" to the destination node, endpoint,
# using the profile_id and cluster_id specified in
SentMsg = sd.sendto("Hello World!",0,DESTINATION)
Msg,add = sd.recvfrom(255)
content = Msg[7:-1]
print("Msg: " + Bites.itemint(content, Msg))
For now I just want to see the Hello World come back but apparently the error "11, No more processes" suggest that I may be doing something wrong. Am I way off here? Or is there something I have totally missed? The Digi documentation does a really good job of hiding non xbee references. I have tried using DDO parameters like the zigbee.ddo_get_param() and it doesnt seem to work. Returns error fetching DDO param. Do i have to send a string of API or AT commands in sendto to get the temp data?
Any help is greatly appreciated.