This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Thread auto switch channel

Hello,

My name is Edward, I am trying to configure a net Thread with auto selection channel, do you have any example about this? 

I have based my development on the simple_coap_server and simple_coap_client examples.

I had tried to call these functions in my code:

   otChannelManagerSetAutoChannelSelectionInterval (thread_ot_instance_get(),60);
   otChannelManagerSetAutoChannelSelectionEnabled(thread_ot_instance_get(),true);

 and I have added this include: 

   #include <openthread/channel_manager.h>

 and this define in  my .emProject

   OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE

But I don´t know if I have to configure something else like a panid, channel...

When I build my code, I have two erros:

 

 Could you help me please?

Thank you in advance.

Parents
  • Hi everyone,

    Does anyone manage to solve this issue ?

    I am working with nRF5 SDK for Thread and Zigbee v4.1.0 on Keil, with only nRF52840 FTD devices with BLE/OpenThread running in the same time.
    In the channel-manager.h file we can find:
    " *   The functions in this module are available when Channel Manager feature
     *   (`OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE`) is enabled. Channel Manager is available only on an FTD build.
     *"

    I have tried to add
        - OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE,
        - OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE=y 
        - CONFIG_OPENTHREAD_CHANNEL_MONITOR=y 
    in the project C/C++ Define options, but it never compiles, I always get the following error message.

    .\_build\nrf_app.axf: Error: L6218E: Undefined symbol otChannelManagerSetAutoChannelSelectionEnabled (referred from thread_utils.o).
    .\_build\nrf_app.axf: Error: L6218E: Undefined symbol otChannelManagerSetAutoChannelSelectionInterval (referred from thread_utils.o).

    Any ideas ?

Reply
  • Hi everyone,

    Does anyone manage to solve this issue ?

    I am working with nRF5 SDK for Thread and Zigbee v4.1.0 on Keil, with only nRF52840 FTD devices with BLE/OpenThread running in the same time.
    In the channel-manager.h file we can find:
    " *   The functions in this module are available when Channel Manager feature
     *   (`OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE`) is enabled. Channel Manager is available only on an FTD build.
     *"

    I have tried to add
        - OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE,
        - OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE=y 
        - CONFIG_OPENTHREAD_CHANNEL_MONITOR=y 
    in the project C/C++ Define options, but it never compiles, I always get the following error message.

    .\_build\nrf_app.axf: Error: L6218E: Undefined symbol otChannelManagerSetAutoChannelSelectionEnabled (referred from thread_utils.o).
    .\_build\nrf_app.axf: Error: L6218E: Undefined symbol otChannelManagerSetAutoChannelSelectionInterval (referred from thread_utils.o).

    Any ideas ?

Children
No Data
Related