Is it possible that running Matter_light and BLE peripheral_uart at the same time?

Maybe the title doesn't make that clear. 

First of all, I have customed my own nrf54l15 board, and I successfully built and run some ncs demos.

Now, I want to do something different. I want to run Matter_light and ble peripheral_uart on one board at the same time. But strictly speaking, it is not actually at the same time, I just want to switch between peripheral_uart and Matter_light using a toglgle switch.

Now, I have two ideas:

1. Make peripheral_uart and Matter_light run in two different slots, is this possible? How to do this?

2. Combine the codes of peripheral_uart  and codes of Matter_light into one project and build out a functionally combined firmware, using some conditional statements to make it switch to peripheral_uart codes or Matter_light codes. I am tring this way now, but some conflict of code appeared. For example, when I set CONFIG_BT_SMP=y, I would get this booting error.

So, what's your advice about this?

Parents
  • Hello Barry,

    Yes this should be possible, though how exactly is a bit more complex. You should preferably have both in use in the app, and switch between which of the two applications gets control over the radio using MPSL. This is how our other "coexistance" samples works, which would for instance allow you to use Zigbee and BLE "at the same time", using one radio.

    So no, do not put them on two different slots - this would make things difficult for multiple reasons. 

    It seems that there are already several cases on how to get BLE and matter working here on DevZone. Have a look at this for instance.

    Regards,

    Elfving

Reply
  • Hello Barry,

    Yes this should be possible, though how exactly is a bit more complex. You should preferably have both in use in the app, and switch between which of the two applications gets control over the radio using MPSL. This is how our other "coexistance" samples works, which would for instance allow you to use Zigbee and BLE "at the same time", using one radio.

    So no, do not put them on two different slots - this would make things difficult for multiple reasons. 

    It seems that there are already several cases on how to get BLE and matter working here on DevZone. Have a look at this for instance.

    Regards,

    Elfving

Children
No Data
Related