openthread MTD offline in long time stability testing

NCS ver: 2.0.1

chip: nrf52840

node: MTD not SED

network: one OTBR as leader and one MTD as child

After about 4~10 hours, MTD will offline. Sometimes it can reconnect to the network but sometimes it can never reconnect until I reboot it.

MTD output log like this:

[00:01:00.778,533] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:00.783,966] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:00.786,773] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:00.788,757] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:00.792,388] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:00.800,567] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:00.807,189] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:00.811,737] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:00.818,847] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:00.822,906] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:00.827,209] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:00.833,465] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:00.839,324] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:00.844,360] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:00.850,769] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:00.855,041] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:00.858,673] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:00.860,656] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:00.864,471] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:00.872,711] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:01.216,033] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:01.223,693] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:02.768,676] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered
[00:01:02.782,257] <dbg> net_openthread: [D] Mac-----------: Frame rx failed, error:DestinationAddressFiltered

Parents
  • Hi Kelly,

    I have the following suggestions for the issue:

    1) Can you provide more information about your MED device? Is it modified form Thread: CoAP Client ? Did it do something after connecting with OTBR formed thread network? I want to repeat the same test on my side to understand the issue.

    2) Are you able to test with the latest NCS2.2.0? Try to also use the latest OTBR suggested(0895ad5).

    Best regards,

    Charlie

  • Hi Charlie,

    1. The firmware I test now is define by our product hardware(some gpio and sensor). It will report some data every half hours by coap udp.

    I also test the openthread/cli project and add some code as follow. I think you can use nrf52840DK board to test.

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    /*
    * Copyright (c) 2020 Nordic Semiconductor ASA
    *
    * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
    */
    #include <zephyr/kernel.h>
    #include <zephyr/logging/log.h>
    #if defined(CONFIG_BT)
    #include "ble.h"
    #endif
    #include <drivers/gpio.h>
    #include <devicetree.h>
    #include <device.h>
    #include <dk_buttons_and_leds.h>
    #include <zephyr/drivers/uart.h>
    #include <zephyr/usb/usb_device.h>
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    prj.conf add this:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    CONFIG_NEWLIB_LIBC_MIN_REQUIRED_HEAP_SIZE=2048
    CONFIG_NET_BUF_LOG=y
    CONFIG_OPENTHREAD_FULL_LOGS=y
    CONFIG_OPENTHREAD_JOINER_AUTOSTART=y
    CONFIG_OPENTHREAD_JOINER_PSKD="AAAAAA"
    CONFIG_NET_LOG=y
    CONFIG_OPENTHREAD_DEBUG=y
    CONFIG_OPENTHREAD_LOG_LEVEL_INFO=y
    CONFIG_OPENTHREAD_L2_DEBUG=y
    CONFIG_OPENTHREAD_L2_DEBUG_DUMP_15_4=y
    CONFIG_OPENTHREAD_L2_DEBUG_DUMP_IPV6=y
    CONFIG_OPENTHREAD_THREAD_PREEMPTIVE=y
    CONFIG_OPENTHREAD_MTD=y
    CONFIG_DK_LIBRARY=y
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    2. I will update my ncs version and test again next week 

Reply
  • Hi Charlie,

    1. The firmware I test now is define by our product hardware(some gpio and sensor). It will report some data every half hours by coap udp.

    I also test the openthread/cli project and add some code as follow. I think you can use nrf52840DK board to test.

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    /*
    * Copyright (c) 2020 Nordic Semiconductor ASA
    *
    * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
    */
    #include <zephyr/kernel.h>
    #include <zephyr/logging/log.h>
    #if defined(CONFIG_BT)
    #include "ble.h"
    #endif
    #include <drivers/gpio.h>
    #include <devicetree.h>
    #include <device.h>
    #include <dk_buttons_and_leds.h>
    #include <zephyr/drivers/uart.h>
    #include <zephyr/usb/usb_device.h>
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    prj.conf add this:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    CONFIG_NEWLIB_LIBC_MIN_REQUIRED_HEAP_SIZE=2048
    CONFIG_NET_BUF_LOG=y
    CONFIG_OPENTHREAD_FULL_LOGS=y
    CONFIG_OPENTHREAD_JOINER_AUTOSTART=y
    CONFIG_OPENTHREAD_JOINER_PSKD="AAAAAA"
    CONFIG_NET_LOG=y
    CONFIG_OPENTHREAD_DEBUG=y
    CONFIG_OPENTHREAD_LOG_LEVEL_INFO=y
    CONFIG_OPENTHREAD_L2_DEBUG=y
    CONFIG_OPENTHREAD_L2_DEBUG_DUMP_15_4=y
    CONFIG_OPENTHREAD_L2_DEBUG_DUMP_IPV6=y
    CONFIG_OPENTHREAD_THREAD_PREEMPTIVE=y
    CONFIG_OPENTHREAD_MTD=y
    CONFIG_DK_LIBRARY=y
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    2. I will update my ncs version and test again next week 

Children
No Data