Matter Light bulb sample project modify for Matter over Thread keeping WiFi for AWS

I would like to modify the Matter: Light Bulb sample project, which comes as a dual Matter + AWS integration all running on WiFi. I would like to modify this project so that the Matter is running over Thread, and the WiFi continues to be used for the AWS integration. 

This is the project: docs.nordicsemi.com/.../README.html

Ideally, we have Matter-over-thread as sleepy end device, and WiFi-AWS using legacy power save mode. 

Parents Reply Children
  • Hi nabeela,

    I wasn't aware of the Thread-Wi-Fi Switch feature showcased in the Matter: Lock sample.

    I initially thought that the two stacks together would consume so much memory that it can't fit and planned to verify that. However, the existence of the Thread-Wi-Fi Switch feature obviously means that the two stacks can fit on the nRF5340 at the same time.

    I have been studying this feature and the sample but have been unable to build the sample to test things out.
    Looks like I will need some more time. My apology. I will follow-up in 1-2 business days.

  • Hi nabeela,

    I checked with our developers today. The Thread-Wi-Fi switching feature is experimental, and the Lock sample almost use up the entire memory of the nRF5340. Using that as a benchmark, it's going to be very challenging to fit AWS support in. Thus, we don't recommend this.

    If you attempt this, you can start with any Matter over Thread setup and add Wi-Fi to it following the AWS IoT sample.

    We also recommend having the nRF70 Series firmware patches reside in the external memory and using Link Time Optimization.

  • Hi - thanks for following up. Can we not make use of the external flash? such as XIP or something? or is the RAM itself is not sufficient?

    in any case, thanks for the update. 

  • Hi nabeela,

    nabeela said:
    Can we not make use of the external flash? such as XIP or something? or is the RAM itself is not sufficient?

    Will you not have DFU with your product? If you need DFU, you need external flash anyway.

    XIP can help save some flash memory, yes, but only one image sector (in DFU context). That is not enough here.

    Fitting things on RAM is going to be a challenge too, but as things are right now, fitting things on flash is a bigger challenge.

  • So I just want to make clear that I don't need thread-wifi switching for Matter. 

    What I would like is the Matter Light Bulb sample project, which is currently Matter-WiFi + WiFi-AWS combo, if we can change that to be Matter-Thread + WiFi-AWS combo. So it's still matter, but running over Thread, and Wi-Fi is only used to communicate with AWS, not for Matter. 

    Is that doable? Is it possible to do this with just modifying the necessary Kconfig, project config, and board config / overlay (using either the nRF7002DK which also has a 5340 on it, or the 5340DK with 7002EK). 

Related