This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AF_DATA_REQUEST_EXT

Other Parts Discussed in Thread: Z-STACK

Hello all,

I am working with ZigBee module with znp framework.

I have two devices , one is a home automation coordinator and one is home automation slave.

i'm trying to send a big data message from the slave to the coordinator.

I think i'm not using AF_DATA_REQUEST_EXT command in the right way.

i'm  trying to send a 300 bytes message.

from the specification I understood that I need to call  AF_DATA_REQUEST_EXT with no data , and only specify how many bytes I want to transmit.

then I need to call AF_ DATA_STORE as many times I need to store the data I want to send.

in the end of the process I need to call AF_ DATA_STORE with length of zero to send all of the data I stored so far.

in the coordinator side i'm getting a message of length 300 but it's not the message I sent.

I have a few questions:

- if I don't call AF_DATA_REQUEST_EXT with parameter  (DstPanId = 0) , what should be the options parameter (in home automation profile)

does anyone encounter this problem before with this command because i'm using the command exactly as the specification pdf explains how to use it but the message that I am getting in the coordinator side is the same length of what the slave sent but it's not the same data

 

  • I had suggested you to break 300 bytes into several separated packets and sent them one by one in your application. If you insist to send with Zigbee fragment capability in Z-Stack and suffer this issue, I suggest you to use Ubiqua Packet Analyzer to check what happens over the air.