This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

gazell out_of_sync and in_sync

hi ,all

I feel confused about" out_of_sync" and" in_sync" parameters .If a devece is in sync,how the channels was changed ?And what's the use of"nrf_gzll_set_device_channel_selection_policy())"? And how could I get the sync_lifetime in our softcode ?

  • Hi

    If you want the device to stick to the same channel over and over you should use the NRF_GZLL_DEVICE_CHANNEL_SELECTION_POLICY_USE_SUCCESSFUL channel selection policy. Then the same channel will be used as long as the packet loss on that channel is not too high.

    The method you describe, where the host is configured with multiple channels and the devices with a unique sub set, is the recommended way to reduce interference when you have multiple devices. Just remember to set the timeslot period 4 times as long on the device side, and make sure that the device channels are 'interleaved' in the host.
    In other words, in the host the channels should be configured like this:
    Dev 1 ch 1, dev 2 ch 1, dev 3 ch 1, dev 4 ch 1, dev 1 ch 2, dev 2 ch 2 ++++

    If no ACK is received on a certain channel the device will pick the next channel in the list and try again.

    Best

Related