How to build the minimal thread device (MTD) for Lopy4 mesh networking?
-
I would like to build a minimal thread device (MTD) for Lopy4. The mesh announcement says "The MTD (Minimal Thread Device) can be obtained with an additional build (recompile)". So how does it work in detail?
-
hi @catalin,
thank you very much! This answers my question. I would like to evaluate the mesh networking functions for a project at our university. The devices are energy constrained and expected to consume as little energy as possible. For this usecase I would like to use a Sleepy End Device or at least a Minimal End Device.
I will use the CLI in combination with disabling the router role for a first evaluation.
-
hi @iotGeek,
The pycom-esp-idf needs to be recompiled with
CXXFLAGS += -DOPENTHREAD_MTD=1
:
https://github.com/pycom/pycom-esp-idf/blob/50d06df25679c98be05d1cb7ba945717de9726e3/components/openthread/component.mk#L21Why do you need MTD?
You could also disable Router Role, at run-time, using CLI command: https://github.com/openthread/openthread/blob/master/src/cli/README.md#routerrole
A note, the sleep of Lopy4 while the MTD has nothing to do, it's not ported (or I didn't tested it).