SiliconLabs / matter

Matter is creating more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://www.silabs.com/wireless/matter
Apache License 2.0
151 stars 45 forks source link

EFR32DeviceDataProvider pointer overwritten by GenericDeviceInstanceInfoProvider #132

Closed tomasz-kos closed 1 year ago

tomasz-kos commented 1 year ago

Description of the issue

I'm working in Simplicity Studio with GSDK 4.2.2 and matter extension 1.0.5. As development board I'm using Thunderboard Sense 2 and lighting over thread app. I'm playing with parameters like product name, serial number, sw and hw version. I couldn't get it to work as expected. After investigating I found out that function SetDeviceInstanceInfoProvider() first is call with argument pointer to EFR32DeviceDataProvider (from EFR32MatterConfig::InitMatter()) which I assume is expected behaviour. But latter SetDeviceInstanceInfoProvider() is called again with argument pointer to sGenericDeviceInstanceInfoProvider. Because of that all function for providing info about product are called from GenericDeviceInstanceInfoProvider.ipp instead of EFR32DeviceDataProvider.cpp

Steps to reproduce the issue

It is all time behaviour. To check set breakpoint in function SetDeviceInstanceInfoProvider()and check what arguments are passed.

Device type(s) and network topology

Matter lighting over thread on Thunderboard Sense 2 ( confirmed also with xG24 Dev Kit - DK2601B) with Google Nest 2.

Proposed solution(s)

No response

SMG version

release_1.0.3-1.0

Protocol(s)

Openthread

Hardware platform(s)

Thunderboard Sense 2

Development platform(s)

SSv5 on Windows 11

Captured data or logs

No response

tomasz-kos commented 1 year ago

release_1.0.5-1.0 but I couldn't select from dropdown list

silabs-sebastien commented 1 year ago

Hi @tomasz-kos , Please note bug reports filed in this repo are only for SMG (Silabs Matter GitHub) and not for bugs related to MGE (Matter GSDK Extension) or general support requests. Please follow this link to open a question on the community instead for your support request concerning the Matter GSDK Extension.