Closed MaxPayne86 closed 6 days ago
the output is truncated but is evident that the mDNS records are visible
Well, some sort of records are visible. Are the Matter records visible? At the point when you expect the operational node to be advertising, can avahi-browse
inside the service see them @MaxPayne86 ?
We didn't tried yet to keep avahi-browse going while commissioning, I guess we will be able to try since Monday, thx for the reply!
Ps: I was trying to understand if
chip-tool discover commissioners
could help us troubleshoot the issue better. This command returns
[1728639948.284168][593:593] CHIP:TOO: Run command failure: ../../examples/chip-tool/commands/discover/DiscoverCommissionablesCommand.cpp:74: CHIP Error 0x0000002D: Not Implemented
on the same setup.
The discover command stuff in chip-tool is only implemented on Mac, and has nothing to do with discovery during actual commissioning.
Hi @bzbarsky-apple, Thanks for your reply! I'm working with @MaxPayne86 on this topic.
We solved the issue by removing networks
field from the Docker Compose configuration file and adding network_mode: "host"
.
The first Docker Compose configuration creates a custom network with dedicated IPv6 addresses for each service, which seems to cause issues with the chip-tool. The second configuration uses network_mode: "host"
, sharing the host's network with the containers for easier communication.
docker-compose.yml
version: '3.8'
services:
otbr:
image: arduino/otbr:latest
container_name: otbr
privileged: true
cap_add:
- NET_ADMIN
- SYS_ADMIN
restart: unless-stopped
devices:
- "/dev/ttyACM0:/dev/ttyACM0"
volumes:
- "/run/dbus/system_bus_socket:/run/dbus/system_bus_socket"
environment:
- DBUS_SYSTEM_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket
- CHANNEL=${CHANNEL:-15}
- PANID=${PANID:-0x1234}
- NETWORKKEY=${NETWORKKEY:-00112233445566778899aabbccddeeff}
stdin_open: true
tty: true
entrypoint: otbr-agent -I wpan0 -B eth0 spinel+hdlc+uart:///dev/ttyACM0 -v trel://eth0
network_mode: "host"
chip-tool:
image: arduino/chip-tool:latest
container_name: chip-tool
volumes:
- "/run/dbus/system_bus_socket:/run/dbus/system_bus_socket"
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
- DBUS_SYSTEM_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket
stdin_open: true
tty: true
depends_on:
- otbr
restart: unless-stopped
network_mode: "host"
Test commissioning of Matter device via Ble using chip-tool
Hello, I am using project-chip v2.3.0-1.3 from SiliconLabs
I have packed the solution (otbr-agent/ot-ctl & chip-tool) in a docker compose app. The docker images are public so you can test them on any arm64 platform
docker-compose.yml
in order for otbr to access dbus, you need to place this file in your system
/etc/dbus-1/system.d/otbr-agent.conf
then you can start everything with
to trigger a commissioning, log into chip-tool service
via docker-compose logs, is possible to follow the log during all the phases. At some point, I get the following error
in my understanding, chip-tool is not able to see the mDNS records published by avahi daemon running on host machine. However, a quick check using another client, avahi-browse, reveals that the records are accessible from within the very same service
the output is truncated but is evident that the mDNS records are visible
This commit seems promising
https://github.com/project-chip/connectedhomeip/commit/c6ad5b160b64c8b7d76a16d1dde169ed2c7ca175
however if you have any suggestion, greatly appreciated.
Platform
IMX8
Anything else?
No response