project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.39k stars 1.98k forks source link

openthread dbus method scan can't get attributes like channel, networkname, etc.[1.3] #34012

Open yf-fan-org opened 3 months ago

yf-fan-org commented 3 months ago

Reproduction steps

vendor/amlogic/connectedhomeip/src/platform/Linux/ThreadStackManagerImpl.cpp:void ThreadStackManagerImpl::_OnNetworkScanFinished(GAsyncResult * res) In the above function, attributes such as network_name and channel are obtained based on the results returned by the scan of the dbus method, but the actual call to scan does not put in the relevant values, as exemplified below:

sudo gdbus call --system --dest io.openthread.BorderRouter.wpan0 --object-path /io/openthread/BorderRouter/wpan0 --method io.openthread.BorderRouter.Scan

return

([(uint64 14267908647676109648, '', uint64 0, @ay [], uint16 62835, uint16 0, byte 0x0e, int16 -18, byte 0xff, byte 0x00, false, false)],)

The returned result does not have an associated property value

Bug prevalence

every

GitHub hash of the SDK that was being used

1

Platform

other

Platform Version(s)

No response

Type

Core SDK Interopability Issue

Anything else?

This causes the value associated with reading the thread server cluster to be null

yf-fan-org commented 1 month ago

@bzbarsky-apple pls help

bzbarsky-apple commented 1 month ago

Sorry, I have no idea about dbus. You might want some of the more Linux-familiar folks; check the git annotate for the file you are looking at?

yf-fan-org commented 1 month ago

ok,thanks

github-actions[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Remove stale label or comment or this will be closed in 30 days.