I have a ConnectPort X4 802.15.4 Gateway that I try to send messages to a product using a Freescale microprocessor talking IEEE 802.15.4 on the MAC layer.
I have successfully connected the product to the Gateway with the Gateway acting as a Coordinator and the product acting as an End-Device.
But now when I have moved on to the next step trying to write Python code to send messages to the product from the Gateway I'm not able to send any valid MAC layer messages.
I need to be able to route messages received from RPC calls to the IEEE 802.15.4 PAN and back.
I have tried for example the helloxbee sample project in the ESP:
import sys, os
from socket import *
# The Format of the tuple is:
# (address_string, endpoint, profile_id, cluster_id)
# The values for the endpoint, profile_id, and
# cluster_id given below are the values used to write
# to the serial port on an Ember-based XBee module.
DESTINATION=("00:0d:6f:00:00:06:89:29!", 0xe8, 0xc105, 0x11)
# Create the socket, datagram mode, proprietary transport:
sd = socket(AF_XBEE, SOCK_DGRAM, XBS_PROT_TRANSPORT)
# Bind to endpoint 0x00 (IEEE 802.15.4):
sd.bind(("", 0x00, 0, 0))
# Send "Hello, World!" to the destination node, endpoint,
# using the profile_id and cluster_id specified in
sd.sendto("Hello, World!", 0, DESTINATION)
But the message that is sent is some APS layer message.
The documentation does not cover anything about IEEE 802.15.4 communication even though the Gateway is specified to just use that medium!?
Could someone point me to the correct documentation or provide me with an example how to send the messages?
Thanks in advance.