Skip to content

Commit

Permalink
Update the readme of fabric-sync app based on the latest update
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca committed Nov 18, 2024
1 parent 10a518b commit 0431721
Showing 1 changed file with 58 additions and 7 deletions.
65 changes: 58 additions & 7 deletions examples/fabric-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ defined:

### For Linux host example:

```
```sh
source scripts/activate.sh
./scripts/build/build_examples.py --target linux-x64-fabric-sync-no-ble build
```
Expand All @@ -91,19 +91,19 @@ defined:

Pull Docker Images

```
```sh
docker pull ghcr.io/project-chip/chip-build-crosscompile:90
```

Run docker

```
```sh
docker run -it -v ~/connectedhomeip:/var/connectedhomeip ghcr.io/project-chip/chip-build-crosscompile:90 /bin/bash
```

Build

```
```sh
cd /var/connectedhomeip

git config --global --add safe.directory /var/connectedhomeip
Expand All @@ -116,7 +116,7 @@ defined:

Transfer the fabric-bridge-app binary to a Raspberry Pi

```
```sh
scp ./fabric-sync [email protected]:/home/ubuntu
```

Expand All @@ -126,9 +126,60 @@ defined:

Follow [Building](#building) section of this document.

- Run Linux Fabric Sync Example App
- Run Linux Fabric Sync Example App on two Linux machine E1 and E2

```sh
sudo rm -rf /tmp/chip_*
cd ~/connectedhomeip/
sudo out/debug/fabric-sync
out/debug/fabric-sync
```

- Initiate the FS Setup Process from E1 to E2

```sh
> app add-bridge 1 20202021 192.168.86.246 5540
Done
> New device with Node ID: 0000000000000001 has been successfully added.
A new device has been added on Endpoint: 2.
```

- Verify Reverse Commissioning of the Fabric-Bridge from E1 on E2

```sh
> New device with Node ID: 0000000000000002 has been successfully added.
```

- Pair Light Example to E2

Since Fabric-Bridge also functions as a Matter server, running it alongside the
Light Example app on the same machine would cause conflicts. Therefore, you need
to run the Matter Light Example app on a separate physical machine from the one
hosting Fabric-Sync.

```sh
> app add-device 3 <setup-pin-code> <device-remote-ip> <device-remote-port>
```

After the device is successfully added, you will observe the following message
on E2 with the newly assigned Node ID:

```sh
> New device with Node ID: 0x3 has been successfully added.
```

Additionally, you should also get notified when a new device is added to
E2 from the E1:

```sh
> A new device is added on Endpoint 3.
```

- Synchronize Light Example to E1

After the Light Example is successfully paired in E2, we can start to
synchronize the light device to E1 using the new assigned dynamic
endpointid on Ecosystem 2.

```sh
> app sync-device <endpointid>
```

0 comments on commit 0431721

Please sign in to comment.