Size problem while receiving data from the end point device

Hi all,

We have following code to collect data from a zigbee node. Basically, we can send data and we can get the response from the end point device perfecly but our problem is our incoming data has limit in the sense of size.

In detail;

payload, src_addr = sd.recvfrom(1024)

we belive that the problem come from above line. What we are trying to do is to write incoming data into the payload with 1024 size. Unfortunately, we are able to get only first 84 bytes of the data stream.

1-We have some idea to fix the problem but we do not know how. Maybee there is a size limit of payload.

2-Another question is about the src_addr in the consol we can read the payload data (limited) but cannot read src_addr. Why do you think it happens?

Our code is as follow;

from socket import * 
import sys
from symbol import except_clause
    
DESTINATION=("00:13:a2:00:40:62:59:56!", 0xe8, 0xc105, 0x11) 
            

sd = socket(AF_XBEE, SOCK_DGRAM, XBS_PROT_TRANSPORT) 

sd.bind(("", 0xe8, 0, 0))

sd.sendto('Hello', 0, DESTINATION)

sd.settimeout(5)

try:
    
    payload, src_addr = sd.recvfrom(1024)
    print 'DRO'
    print payload
except:
    print 'TO'

sd.close()

print 'Finish'
sys.exit()

We are waiting for your fast response.

If you use payload, src_addr = sd.recvfrom(1024), you will get both src_address and the data.

src_addr will be the valid source address. I m also using the recvfrom() to receive the data, and it is working fine for me.
Double check the sender network parameters again.

I think you can receive data upto 1024 size