@@ -80,30 +80,30 @@ defined:
80
80
81
81
## Building
82
82
83
- ### For Linux host example:
83
+ - For Linux host example:
84
84
85
- ```
85
+ ``` sh
86
86
source scripts/activate.sh
87
87
./scripts/build/build_examples.py --target linux-x64-fabric-sync-no-ble build
88
88
```
89
89
90
- ### For Raspberry Pi 4 example:
90
+ - For Raspberry Pi 4 example:
91
91
92
92
Pull Docker Images
93
93
94
- ```
94
+ ` ` ` sh
95
95
docker pull ghcr.io/project-chip/chip-build-crosscompile:90
96
96
` ` `
97
97
98
98
Run docker
99
99
100
- ```
100
+ ` ` ` sh
101
101
docker run -it -v ~ /connectedhomeip:/var/connectedhomeip ghcr.io/project-chip/chip-build-crosscompile:90 /bin/bash
102
102
` ` `
103
103
104
104
Build
105
105
106
- ```
106
+ ` ` ` sh
107
107
cd /var/connectedhomeip
108
108
109
109
git config --global --add safe.directory /var/connectedhomeip
@@ -116,7 +116,7 @@ defined:
116
116
117
117
Transfer the fabric-bridge-app binary to a Raspberry Pi
118
118
119
- ```
119
+ ` ` ` sh
120
120
scp ./fabric-sync ubuntu@xxx.xxx.xxx.xxx:/home/ubuntu
121
121
` ` `
122
122
@@ -126,9 +126,60 @@ defined:
126
126
127
127
Follow [Building](# building) section of this document.
128
128
129
- - Run Linux Fabric Sync Example App
129
+ - Run Linux Fabric Sync Example App on two Linux machine E1 and E2
130
130
131
131
` ` ` sh
132
+ sudo rm -rf /tmp/chip_*
132
133
cd ~ /connectedhomeip/
133
- sudo out/debug/fabric-sync
134
+ out/debug/fabric-sync
135
+ ` ` `
136
+
137
+ - Initiate the FS Setup Process from E1 to E2
138
+
139
+ ` ` ` sh
140
+ > app add-bridge 1 20202021 192.168.86.246 5540
141
+ Done
142
+ > New device with Node ID: 0000000000000001 has been successfully added.
143
+ A new device has been added on Endpoint: 2.
144
+ ` ` `
145
+
146
+ - Verify Reverse Commissioning of the Fabric-Bridge from E1 on E2
147
+
148
+ ` ` ` sh
149
+ > New device with Node ID: 0000000000000002 has been successfully added.
150
+ ` ` `
151
+
152
+ - Pair Light Example to E2
153
+
154
+ Since Fabric-Bridge also functions as a Matter server, running it alongside
155
+ the Light Example app on the same machine would cause conflicts. Therefore,
156
+ you need to run the Matter Light Example app on a separate physical machine
157
+ from the one hosting Fabric-Sync.
158
+
159
+ ` ` ` sh
160
+ > app add-device 3 < setup-pin-code> < device-remote-ip> < device-remote-port>
161
+ ` ` `
162
+
163
+ After the device is successfully added, you will observe the following
164
+ message on E2 with the newly assigned Node ID:
165
+
166
+ ` ` ` sh
167
+ > New device with Node ID: 0x3 has been successfully added.
168
+ ` ` `
169
+
170
+ Additionally, you should also get notified when a new device is added to E2
171
+ from the E1:
172
+
173
+ ` ` ` sh
174
+ > A new device is added on Endpoint 3.
175
+ ` ` `
176
+
177
+ - Synchronize Light Example to E1
178
+
179
+ After the Light Example is successfully paired in E2, we can start to
180
+ synchronize the light device to E1 using the new assigned dynamic endpointid
181
+ on Ecosystem 2.
182
+
183
+ ` ` ` sh
184
+ > app sync-device < endpointid>
134
185
` ` `
0 commit comments