matter:How can I enable a matter accessory device to actively send data to a matter control?

How can I enable a matter accessory device to actively send data to a matter control?

I'm using matter-lock sample to test the method of sending data from the matter-accessory(matter-lock) to matter-control(chip tool linux) .
I modified the zap file, enabled "lock alarm event" in zap-tool, and regenerated the code.
I called an event sending interface to the buttom2 response program,
After pressing the buutom2, the sender is called, and the hardware is reset.
of course, nothing is received on chip tool linux.
(Note: I can switch locks in the chip tool.
In this sample, I add other functions,
such as getting a temperature value in the accessory from the chip tool.
I want to explain that other parts of the program work normally.)

As shown in figure

Parents Reply
  • Hello,

    Sorry again for the delay.

    There are two spin locks occurring. They are shown in the log to be at lines 142 and 185 of spinlock.h. Find out which resource(s) is causing these.

    Adding functionality to a function may cause the thread which is running it to run out of stack size. Increasing the assigned stack size for the active thread will avoid issues with stack overflow. Make sure that the total stack size for all threads does not exceed the amount of RAM for the nRF52840.

    Are you changing the zap file with the zap tool (like in this guide) or by editing the JSON file?

    Kind Regards,
    Maria

Children
No Data
Related