Other Parts Discussed in Thread: Z-STACK, SIMPLELINK-CC13X2-26X2-SDK
Hi,
I'm reading the source code for "Z-Stack 3.0.2".
I have a question about how the nwkUpdateId make a round.
nwkUpdateId is incremented.
nwkUpdateId be back from 0xFF to 0.
The following comparison method, I don't think nwkUpdatId will be updated.
Is this okay?
If it's wrong, how should it be fixed?
For example
uint8 nwkUpdateId;
(Current) _NIB.nwkUpdateId = 0xFF
(Next) Req.nwkUpdateId = 0xFF+1 = 0
ZDNwkMgr.c
static void ZDNwkMgr_ProcessMgmtNwkUpdateReq( zdoIncomingMsg_t *inMsg )
{
else if ( Req.scanDuration == 0xFE )
{
xx if (( Req.nwkUpdateId > _NIB.nwkUpdateId ) && ( Req.channelMask != 0))
{
// Set update ID in the Beacon
}
}
else if ( Req.scanDuration == 0xFF )
{
xx if (( Req.nwkUpdateId > _NIB.nwkUpdateId ) && ( Req.channelMask != 0))
{
// Set update ID in the Beacon
}
}