Other Parts Discussed in Thread: CC2531
Hello everyone,
i'm running a simple application where a ZED connects to the Coordinator and they periodically send each other a message using AF_DataRequest. The coordinator is plugged in my pc and notifies via usb every time some RF activity happens. A part of the code of the coordinator is the above:
if(AF_DataRequest( &newDevAddr, &ZCube_epDesc, TEST_CLUSTERID, 21, buff,
&ZCube_TransID, AF_DISCV_ROUTE, AF_DEFAULT_RADIUS)==ZSuccess)
{
//send ok message to the pc
}
else
{
//send error message to the pc
}
the problem is that on the pc i keep reiceving the Ok message even if sometimes the message is not sent at all by the coordinator! (i can see it by the fact that on the sniffer i see nothing coming out and the End Device never replies to the message). I can see that the ED is correctly included in the net because i see the Data Request on the sniffer and because it correctly sends his periodic message to the Coordinator.
So to me it looks like that even if the AF_DataRequest doesn't work, it returns ZSuccess...this happens maybe five or six times straight, than it goes back to work normally, than after some time (maybe even a day) it goes back to missing some message, etc...so it's a problem that gets fixed by itself after a while, but then sooner or later comes back...
i'm using 2007 ZigBee Pro Stack, IAR 8051 8.10 and CC2531 as both Coordinator and End Device
any suggestions?
regards
Claudio