canonical / matter-pi-gpio-commander

Matter Raspberry Pi GPIO Commander - Turn your Pi into a Matter lighting device!
Apache License 2.0
94 stars 2 forks source link

Upgrade SDK for lighting app Thread fix #28

Closed farshidtz closed 11 months ago

farshidtz commented 11 months ago

Upgrade the SDK to hash 6b01cb9 to incorporate the following change: https://github.com/project-chip/connectedhomeip/pull/27861

This is to address the bug fix describe at https://github.com/project-chip/connectedhomeip/issues/29738

Install:

sudo snap install matter-pi-gpio-commander --channel=edge/pr-28
MonicaisHer commented 11 months ago

Install the snap with devmode and monitor using snappy-debug. The commissioning failed at Step 19, 'ThreadNetworkEnable.'

Also snappy-debug indicates that matter-pi-gpio-commander snap needs dbus access for Thread commissioning.

Here are the logs during Thread commissioning process:

farshidtz commented 11 months ago

It is missing the DBus security policy needed for the communication.

Need to add:

plugs:
  dbus-otbr-wpan0:
    interface: dbus
    bus: system
    name: io.openthread.BorderRouter.wpan0

and:

apps:
  lighting:
    ...
    plugs:
      ...
      - dbus-otbr-wpan0

to snapcraft.yaml.

Then, connect:

sudo snap connect matter-pi-gpio-commander:dbus-otbr-wpan0 openthread-border-router:dbus-otbr-interface
farshidtz commented 11 months ago

Snap built with the latest change: matter-pi-gpio-commander_1.0.1_arm64.snap.zip

farshidtz commented 11 months ago

@MonicaisHer thanks for testing. I've released this snap to the latest/edge/pr-28. Will add documentation and merge after resolving https://github.com/canonical/openthread-border-router-snap/issues/29

farshidtz commented 11 months ago

For now, released to edge/thread.

To install:

sudo snap install matter-pi-gpio-commander --channel=latest/edge/thread