Setting up OpenThread with the SLZB-MR01 key

I managed to do something with matterjs-server that I put on the same machine as the OpenThread border router :

Here is the docker compose for matterjs-server :

services:
  matterjs-server:
    container_name: matterjs-server
    image: ghcr.io/matter-js/matterjs-server:latest
    network_mode: host
    restart: unless-stopped
    environment:
        BLUETOOTH_ADAPTER: 0
    volumes:
      - ./matterjs-server:/data
      - /run/dbus:/run/dbus:ro

Then :

docker compose up -d

Then install the missing modules for Bluetooth :

docker exec -it matterjs-server sh
apt update
apt install python3 make gcc g++
npm install @stoprocent/noble
exit

Restart the container :

docker container restart matterjs-server

Then retrieve the dataset from your openthread docker with the following command:

sudo docker exec -it openthread-otbr-1 sh -c "sudo ot-ctl dataset active -x"

Click here :

The dataset we retrieved in the previous step is requested :

Then enter the code shown under the QR code of your device here :

Watching the logs with the following command you can see the progress :

docker logs matterjs-server -f

We can see that our device is added to matterjs-server :


You can also see it on OTBR in the topology section :

To add it to Gladys you need to get a sharing code which is found directly in the device on the matterjs-server web interface :

For now when I enter the code provided by matterjs-server and put it in Gladys it does not work.
I haven’t found a solution yet but I will edit this post when I find it

Edit :

I think Gladys must be able to see the device directly so I had to find its IPv6 address via the command :

avahi-browse -r _matterc._udp

Pinging the address fd6c:741e:2136:1:b534:6559:d9c1:c09c from my OTBR machine worked but not from Gladys.
For the ping to this IP to work with Gladys I had to add the following to the file /etc/sysctl.conf (I don’t know if everything is necessary but I will modify as needed):
(https://raw.githubusercontent.com/openthread/ot-br-posix/refs/heads/main/etc/docker/border-router/setup-host)

net.ipv6.conf.ens18.accept_ra = 2
net.ipv6.conf.ens18.accept_ra_rt_info_max_plen = 64
net.ipv6.conf.wpan0.accept_ra = 2
net.ipv6.conf.wpan0.accept_ra_rt_info_max_plen = 64
net.ipv6.conf.all.forwarding = 1
net.ipv4.ip_forward = 1

Now Gladys can reach my device over IPv6 but it’s still impossible to link Gladys with the code provided by matterjs-server

OpenThread indicates that the discriminator is: 1605
image

Whereas Gladys seems to indicate 6 :
image

Yet with the command :

avahi-browse -r _matterc._udp

it’s clearly 1605 :
image