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.

why transID of AF_DATA_CONFIRM_CMD is different from transID of AF_DataRequest on zstack-home1.2.2

i merge my app from zstack 2.5.1a to zstack-home1.2.2, it do not work correctly, the transID of AF_DATA_CONFIRM_CMD is different from transID of AF_DataRequest, it's ok on zstack 2.5.1a.

I add some log in the function like this;

afStatus_t AF_DataRequest( afAddrType_t *dstAddr, endPointDesc_t *srcEP,
uint16 cID, uint16 len, uint8 *buf, uint8 *transID,
uint8 options, uint8 radius )

{

AF_DBG("send: ep:%d, tID:%d\n", srcEP->endPoint, *transID);

.....

}

void afDataConfirm( uint8 endPoint, uint8 transID, ZStatus_t status )

{

......

AF_DBG("%s, ep:%d, tID:%d, task:%d\n", __func__, endPoint, transID, *(epDesc->task_id));

...................

}

the log is:

znpInit, 0, May 19 2015, 11:11:30
send: ep:1, tID:130
afDataConfirm, ep:1, tID:0, task:0
send: ep:1, tID:132
afDataConfirm, ep:1, tID:1, task:0
send: ep:1, tID:137
afDataConfirm, ep:1, tID:2, task:0
send: ep:1, tID:140
afDataConfirm, ep:1, tID:3, task:0
send: ep:1, tID:147
afDataConfirm, ep:1, tID:4, task:0
send: ep:1, tID:150
afDataConfirm, ep:1, tID:5, task:0
send: ep:1, tID:156
afDataConfirm, ep:1, tID:6, task:0
send: ep:1, tID:159
afDataConfirm, ep:1, tID:7, task:0
send: ep:1, tID:164
afDataConfirm, ep:1, tID:8, task:0
send: ep:1, tID:171
afDataConfirm, ep:1, tID:9, task:0
send: ep:1, tID:175
afDataConfirm, ep:1, tID:10, task:0
send: ep:1, tID:178
afDataConfirm, ep:1, tID:11, task:0

it seems that the transID of data confirm is independent, but my app use the transID to check if it send ok, maybe there are some marco to control it, 

who can give me some tips? thanks in advance.

Peter