-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NetworkInterface Type serialization format differences #579
Comments
That first one is the only real/correct value. The others come from an old node or whatever ? |
Hm, it was interviewed quite recently:
|
I re-tested today. Running Python Matter Server using Docker on a freshly formatted Raspberry Pi 4 and a clean data directory. Added two Matter over Thread devices. This is the response from the "start_listening" command: { |
hmm strange, that would indicate an issue with our serializer as it should use the index as key for those sdk structs. |
@marcelveldt Did you make any explicit changes lately to address this? When testing now with 5.8.0, I get the format like this again:
|
I still see "randomness" in format. This is from 5.8.1 setup from a blank data directory:
|
I have a question about the format if index are used for structs that are fabric-scoped. This is an example where names are used:
In the 23-27349-003_Matter-1.2-Core-Specification.pdf the the documentation for the ProviderLocation Type is clear on the index values for "providerNodeID" and "endpoint". Since this structure is so-called "fabric-scoped" it also contains an implicitly documented "fabricIndex". However the index number for "fabricIndex" is then a bit unclear. How can one be sure about what index number the "fabricIndex" would get by reading the documentation? Will it always be the last documented index + 1? What if a newer version of the standard defines more attributes? Could one risk that the index for the "fabricIndex" field would change? If there is a risk for the "fabricIndex" index number to change, I think it would be safer to user the names only. |
I found the answer to my last concerns about the index of the "fabricIndex" field and it is documented under 7.13. Global Elements to be 0xFE (245). |
The attributes for General Diagnostics Cluster attribute NetworkInterfaces (attribute path "0/51/0") seems to have possible variations in the serialization format.
For one device:
For another device:
It also looks like format can be different for the same device.
I now also see in another test:
The text was updated successfully, but these errors were encountered: