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.

Channel change command

Other Parts Discussed in Thread: CC2538, Z-STACK

Hello

I am using ZStack Energy on the CC2538. 

I would like to be able to send a command from a PC  via a connected coordinator (ESP) to make all nodes change their channel to some other value. 

I found these two commands which seem to be for this purpose, can I use these to change the channel when ever the need arises? :

1)

NLME_SetUpdateID(_NIB.nwkUpdateId + 1);

2)

/*
* ZDP_MgmtNwkUpdateReq - Send a Management NWK Update Request
*
* @MT SPI_CMD_ZDO_MGMT_NWK_UPDATE_REQ
* (uint16 dstAddr,
* uint32 ChannelMask,
* uint8 ScanDuration,
* uint8 ScanCount,
* uint16 NwkManagerAddr )
*
*/
extern afStatus_t ZDP_MgmtNwkUpdateReq( zAddrType_t *dstAddr,
uint32 ChannelMask,
uint8 ScanDuration,
uint8 ScanCount,
uint8 NwkUpdateId,
uint16 NwkManagerAddr );

If these commands are not suitable for this purpose, is there a way to change the channel of a network at random?

Thanks alot