Redefine RDC Channel Check Rate during runtime

307 Views Asked by At

How to can change channel check rate of a node in during runtime on Contiki OS? I use the ContikiMAC RDC protocol.

1

There are 1 best solutions below

1
On

This functionality is not supported by the OS.

If you want, you can implement this yourself by changing NETSTACK_RDC_CHANNEL_CHECK_RATE from a preprocessor definition to a variable and doing the same with CYCLE_TIME (in contikimac.c).

However, the current limitation is there for a reason. If different nodes in a network have different radio duty cycles, ContikiMAC will fail to work as intended. It's not a good idea to change the RDC unless you do it for all nodes at the same time.