Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    How to build the minimal thread device (MTD) for Lopy4 mesh networking?

    Scheduled Pinned Locked Moved LoPy
    meshopenthreadlopy4lora
    3 Posts 2 Posters 520 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I Offline
      iotGeek
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • catalinC Offline
        catalin
        last edited by

        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#L21

        Why 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).

        Catalin,

        Have you checked out our docs for the answer? (Now with an easy search function) https://docs.pycom.io
        Check out our newly revamped device management platform, Pybytes! https://pybytes.pycom.io/

        I 1 Reply Last reply Reply Quote 0
        • I Offline
          iotGeek @catalin
          last edited by

          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.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom