Replies: 3 comments 5 replies
-
@x4t-de I looked into this briefly about a year ago, it didn't look easy at all. The problem is essentially you need to combine three things: the Matter SDK, MicroPython, and the vendor SDK (e.g. ESP-IDF), and all three of those things expect to be "in charge". Espressif is probably going to be one of the easiest routes to Matter support though. I would be interested to hear if anyone else has looked into this. |
Beta Was this translation helpful? Give feedback.
-
Hi @x4t-de, I'm attaching a patch to micropython which will hopefully help you continue integrating Matter into Micropython. 0001-demo-of-adding-esp-matter-to-Micropython-build.patch.txt The patch adds esp-mater as a managed component from the IDF component registry: https://components.espressif.com/components/espressif/esp_matter. I've added everything into the new Depending on the version of the IDF component manager you have installed locally and your OS, you might also need to set one environment variable for the build to succeed: export IDF_COMPONENT_OVERWRITE_MANAGED_COMPONENTS=1 |
Beta Was this translation helpful? Give feedback.
-
Integrating Matter IoT with Micropython will be amazing for IoT low power solutions! Thanks all! |
Beta Was this translation helpful? Give feedback.
-
Dear Micropython community,
I would like to make a PoC for using Micropython and Matter. I set up all prerequisites and the build chain for Micropython and ESP-MATTER and I am able to compile the "light" - example from the esp-matter example collection. I can also build Micropython with custom user-C-modules.
First question at this stage: are there any sources I could read for integrating Matter into Micropython? Has somebody already tried it? Is it even possible, or are there any things that would speak against such an endeavour?
Now I wanted to see how I need to adapt the CMakeFiles in Micropython so that the esp-matter SDK can be used. I added matter.c to the other custom source files, where I just have the following lines:
One obstacle was that according to espressif/esp-matter#604 the esp-matter SDK expects a "main" folder in my project. So I made a copy of the main_esp32 folder named "main".
Now the compilation goes a bit further, but stops with:
Does somebody have an idea about where to look for? I searched for occurences of __idf_mbedtls, but it only appears in the build dir of the light example, probably from my build test of this example project. Is this maybe related to this: espressif/esp-idf#8359? Are there maybe conflicting mbedtls libs or build definitions?
Thank you very much in advance for any tips and suggestions.
Regards
JR
Beta Was this translation helpful? Give feedback.
All reactions