SED&MED 3.5 Test inconclusive[MTD prebuilt lib]

When we run test case SED&MED 3.5 ,  the following inconclusive result happens:

COM78 command: ot test tmforiginfilter disable
COM78 FUNC __executeCommand failed: Error 35: InvalidCommand
COM78 command: ot test tmforiginfilter disable
COM78 FUNC __executeCommand failed: Error 35: InvalidCommand
COM78 command: ot test tmforiginfilter disable

I see the cli cmd "test" is depends on OPENTHREAD_FTD. But the MTD prebuilt lib is not support OPENTHREAD_FTD.

So How did you solve this problem?

Parents
  • Hi,

    MTD and FTD are two different Thread device types: Minimal Thread Device (MTD) and Full Thread Device (FTD). If you want features only supported by FTD, then you must configure the device type as FTD in prj.conf. You must also make sure to enable the FTD OpenThread libraries:

    CONFIG_OPENTHREAD_FTD=y
    CONFIG_OPENTHREAD_NORDIC_LIBRARY_FTD=y

    Best regards,
    Marte

  • why send udp need disable tmforiginfilter first, MTD is not support test cmd.

        @API
        def send_udp(
            self,
            interface,
            destination,
            port,
            payload="12ABcd",
            return_result=False,
            spiff_udp_ip="",
        ):
            """payload hexstring"""
            assert payload is not None, "payload should not be none"
            assert interface == 0, "non-BR must send UDP to Thread interface"
            self.__udpOpen(spiff_udp_ip, port)
            time.sleep(0.5)
            cmd_ = "test tmforiginfilter disable"
            self.__executeCommand(cmd_)
            cmd = "udp send %s %s -x %s" % (destination, port, payload)
            if not return_result:
                result = self.__executeCommand(cmd)[-1] == "Done"
            else:
                result = self.__executeCommand(cmd)[0]
            _cmd = "test tmforiginfilter enable"
            self.__executeCommand(_cmd)
            return result
Reply
  • why send udp need disable tmforiginfilter first, MTD is not support test cmd.

        @API
        def send_udp(
            self,
            interface,
            destination,
            port,
            payload="12ABcd",
            return_result=False,
            spiff_udp_ip="",
        ):
            """payload hexstring"""
            assert payload is not None, "payload should not be none"
            assert interface == 0, "non-BR must send UDP to Thread interface"
            self.__udpOpen(spiff_udp_ip, port)
            time.sleep(0.5)
            cmd_ = "test tmforiginfilter disable"
            self.__executeCommand(cmd_)
            cmd = "udp send %s %s -x %s" % (destination, port, payload)
            if not return_result:
                result = self.__executeCommand(cmd)[-1] == "Done"
            else:
                result = self.__executeCommand(cmd)[0]
            _cmd = "test tmforiginfilter enable"
            self.__executeCommand(_cmd)
            return result
Children
No Data
Related