Home/Support/Support Forum/ConnectPort X2D receives frames from other radios but the other radios can not receive X2's transmission back
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

ConnectPort X2D receives frames from other radios but the other radios can not receive X2's transmission back

0 votes
I currently have my connectport x2d programmed to receive a frame and then reply to the sender of the frame. The x2 receives every packet completely fine and then supposedly replies to the sender but my sender never gets the frame. Here is my code:
Code:
import sys, os import time import xbee from socket import * # ConnectPort's address addr = "0013a20040c042dd" # Create the socket, datagram mode, proprietary transport: sd = socket(AF_XBEE, SOCK_DGRAM, XBS_PROT_TRANSPORT) # Bind to endpoint 0xe8 (232): sd.bind(("", 0xe8, 0, 0)) while 1: # Block until a single frame is received, up to 72 bytes: payload, src_addr = sd.recvfrom(8192) # If packet was commission if payload.startswith("\xff\xfe"): # Send ConnectPort Address and current time newPayload = addr + ";" + time.strftime("%Y-%m-%d %H:%M:%S") print newPayload, src_addr print sd.sendto(newPayload, 0, src_addr)

I followed the example xbee_echo.py then just added some logic.

The output of the code:
Code:
#> python dpdsrv.py Launching Python application 'test.py' ... 0013a20040c042dd;2015-01-08 15:20:55 ('[00:13:a2:00:40:ac:6f:23]!', 232, 49413, 149, 194, 0) 36

Any help would be great. Thanks!
asked Jan 8, 2015 in Python by dstahulak New to the Community (4 points)

Please log in or register to answer this question.

1 Answer

0 votes
do the other radios (non X2D) receive data from anything else? (have one remote radio send data to another)

your code looks correct. what firmware is the gateway and end nodes?

What are the settings on the end nodes?
answered Jan 14, 2015 by kjensen8 Veteran of the Digi Community (623 points)
...