Skip to content

Commit bc605b3

Browse files
committed
Address review comments
1 parent df29dc9 commit bc605b3

7 files changed

+68
-84
lines changed

docs/guides/fabric_synchronization_guide.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,24 @@
66

77
## Fabric Sync Example Applications
88

9-
Fabric-Admin and Fabric-Bridge applications are provided to demonstrate Fabric
10-
Synchronization feature. You can find them in the examples.
9+
Fabric-Admin and Fabric-Bridge example applications are provided to demonstrate
10+
Fabric Synchronization feature. You can find them in the examples.
11+
12+
![Matter_Fabric_Synchronization](../images/Matter_Fabric_Synchronization.png)
13+
14+
Fabric-Admin example app implements the Fabric Administrator role and
15+
communicate with the Fabric-Bridge-App on the other side, facilitating the
16+
Fabric Synchronization process.
17+
18+
Fabric-Bridge-App example app implements the Aggregator device type with Fabric
19+
Synchronization condition met and demonstrates the end-to-end Fabric
20+
Synchronization feature using dynamic endpoints.
21+
22+
Fabric Synchronization can be triggered from either side. The initiator of the
23+
Fabric Synchronization process, who shares their devices, takes on the
24+
Commissioner role. The recipient of the Fabric Synchronization request, who
25+
receives the shared devices, assumes the Commissionee role. This flexibility
26+
enables a seamless and efficient synchronization process.
1127

1228
### Building the Example Application
1329

37.9 KB
Loading

examples/fabric-admin/scripts/run_fabric_sink_rp4.sh examples/fabric-admin/scripts/run_fabric_sink.sh

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
#!/bin/bash
22

3+
# Default paths
4+
FABRIC_ADMIN_PATH="./fabric-admin"
5+
FABRIC_ADMIN_LOG="/tmp/fabric_admin.log"
6+
7+
# Detect platform and set default paths
8+
if [[ $(uname -m) == "x86_64" ]]; then
9+
FABRIC_ADMIN_PATH="out/debug/standalone/fabric-admin"
10+
fi
11+
312
# Check if --verbose option is specified
413
VERBOSE=false
514
for arg in "$@"; do
@@ -22,7 +31,7 @@ echo "Removed /tmp/chip_* files and directories"
2231

2332
# Start fabric-admin with or without log file path based on --verbose option
2433
if [ "$VERBOSE" = true ]; then
25-
./fabric-admin
34+
"$FABRIC_ADMIN_PATH"
2635
else
27-
./fabric-admin --log-file-path /tmp/fabric_admin.log
36+
"$FABRIC_ADMIN_PATH" --log-file-path "$FABRIC_ADMIN_LOG"
2837
fi

examples/fabric-admin/scripts/run_fabric_sink_x86.sh

-28
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
3+
# Default paths
4+
FABRIC_ADMIN_PATH="./fabric-admin"
5+
FABRIC_BRIDGE_APP_PATH="./fabric-bridge-app"
6+
FABRIC_ADMIN_LOG="/tmp/fabric_admin.log"
7+
FABRIC_BRIDGE_APP_LOG="/tmp/fabric_bridge_app.log"
8+
BLE_ADAPTER="--ble-adapter 0"
9+
10+
# Detect platform and set default paths
11+
if [[ $(uname -m) == "x86_64" ]]; then
12+
FABRIC_ADMIN_PATH="out/debug/standalone/fabric-admin"
13+
FABRIC_BRIDGE_APP_PATH="out/debug/standalone/fabric-bridge-app"
14+
fi
15+
16+
# Check if --verbose option is specified
17+
VERBOSE=false
18+
for arg in "$@"; do
19+
if [ "$arg" == "--verbose" ]; then
20+
VERBOSE=true
21+
break
22+
fi
23+
done
24+
25+
# Stop any running instances and clean up
26+
./stop_fabric_source.sh
27+
28+
# Start fabric-bridge-app if available and redirect its output to /dev/null
29+
if [ -f "$FABRIC_BRIDGE_APP_PATH" ]; then
30+
"$FABRIC_BRIDGE_APP_PATH" >"$FABRIC_BRIDGE_APP_LOG" 2>&1 &
31+
echo "Started fabric-bridge-app"
32+
fi
33+
34+
# Start fabric-admin with or without log file path based on --verbose option
35+
if [ "$VERBOSE" = true ]; then
36+
"$FABRIC_ADMIN_PATH" "$BLE_ADAPTER"
37+
else
38+
"$FABRIC_ADMIN_PATH" "$BLE_ADAPTER" --log-file-path "$FABRIC_ADMIN_LOG"
39+
fi

examples/fabric-admin/scripts/run_fabric_source_rp4.sh

-26
This file was deleted.

examples/fabric-admin/scripts/run_fabric_source_x86.sh

-26
This file was deleted.

0 commit comments

Comments
 (0)