Skip to content

Commit 7dce633

Browse files
authored
Merge branch 'master' into meter_identification-XML
2 parents a2ccb39 + e8e9fc5 commit 7dce633

File tree

209 files changed

+5576
-8341
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

209 files changed

+5576
-8341
lines changed

.github/workflows/examples-cc13xx_26xx.yaml

+9-5
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@
1515
name: Build example - TI CC13XX_26XX
1616

1717
on:
18-
push:
19-
branches-ignore:
20-
- "dependabot/**"
21-
pull_request:
22-
merge_group:
18+
workflow_dispatch:
19+
# Temporarely disabled:
20+
# - TI CI runs out of disk space
21+
# - Image should be updated to an Ubuntu 24.04 or higher based one (move from :54 version)
22+
# push:
23+
# branches-ignore:
24+
# - 'dependabot/**'
25+
# pull_request:
26+
# merge_group:
2327

2428
concurrency:
2529
group:

.github/workflows/examples-cc32xx.yaml

+9-5
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@
1515
name: Build example - TI CC32XX
1616

1717
on:
18-
push:
19-
branches-ignore:
20-
- 'dependabot/**'
21-
pull_request:
22-
merge_group:
18+
workflow_dispatch:
19+
# Temporarely disabled:
20+
# - TI CI runs out of disk space
21+
# - Image should be updated to an Ubuntu 24.04 or higher based one (move from :54 version)
22+
# push:
23+
# branches-ignore:
24+
# - 'dependabot/**'
25+
# pull_request:
26+
# merge_group:
2327

2428
concurrency:
2529
group: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}

.github/workflows/examples-nxp.yaml

+54-10
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ env:
2929
CHIP_NO_LOG_TIMESTAMPS: true
3030

3131
jobs:
32-
k32w:
33-
name: K32W
32+
k32w0:
33+
name: K32W0
3434

3535
env:
3636
BUILD_TYPE: gn_k32w
@@ -39,7 +39,7 @@ jobs:
3939
if: github.actor != 'restyled-io[bot]'
4040

4141
container:
42-
image: ghcr.io/project-chip/chip-build-k32w:66
42+
image: ghcr.io/project-chip/chip-build-k32w:71
4343
volumes:
4444
- "/tmp/bloat_reports:/tmp/bloat_reports"
4545
steps:
@@ -66,8 +66,6 @@ jobs:
6666
--target nxp-k32w0-freertos-contact-sensor \
6767
--target nxp-k32w0-freertos-contact-sensor-low-power \
6868
--target nxp-k32w0-freertos-contact-sensor-low-power-factory \
69-
--target nxp-k32w1-freertos-lighting \
70-
--target nxp-k32w1-freertos-contact-sensor-low-power \
7169
build \
7270
--copy-artifacts-to out/artifacts \
7371
"
@@ -77,16 +75,62 @@ jobs:
7775
nxp k32w0+release light \
7876
out/artifacts/nxp-k32w0-freertos-lighting/chip-k32w0x-light-example.elf \
7977
/tmp/bloat_reports/
80-
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
81-
nxp k32w1+release light \
82-
out/artifacts/nxp-k32w1-freertos-lighting/chip-k32w1-light-example.elf \
83-
/tmp/bloat_reports/
8478
- name: Get contact sensor size stats
8579
run: |
8680
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
8781
nxp k32w0+release contact \
8882
out/artifacts/nxp-k32w0-freertos-contact-sensor-low-power/chip-k32w0x-contact-example.elf \
8983
/tmp/bloat_reports/
84+
- name: Uploading Size Reports
85+
uses: ./.github/actions/upload-size-reports
86+
if: ${{ !env.ACT }}
87+
with:
88+
platform-name: K32W0
89+
k32w1:
90+
name: K32W1
91+
92+
env:
93+
BUILD_TYPE: gn_k32w
94+
95+
runs-on: ubuntu-latest
96+
if: github.actor != 'restyled-io[bot]'
97+
98+
container:
99+
image: ghcr.io/project-chip/chip-build-nxp:71
100+
volumes:
101+
- "/tmp/bloat_reports:/tmp/bloat_reports"
102+
steps:
103+
- name: Checkout
104+
uses: actions/checkout@v4
105+
- name: Checkout submodules & Bootstrap
106+
uses: ./.github/actions/checkout-submodules-and-bootstrap
107+
with:
108+
platform: nxp
109+
extra-submodule-parameters: --recursive
110+
111+
- name: Set up environment for size reports
112+
uses: ./.github/actions/setup-size-reports
113+
if: ${{ !env.ACT }}
114+
with:
115+
gh-context: ${{ toJson(github) }}
116+
117+
- name: Build examples
118+
run: |
119+
scripts/run_in_build_env.sh "\
120+
./scripts/build/build_examples.py \
121+
--target nxp-k32w1-freertos-lighting \
122+
--target nxp-k32w1-freertos-contact-sensor-low-power \
123+
build \
124+
--copy-artifacts-to out/artifacts \
125+
"
126+
- name: Get lighting app size stats
127+
run: |
128+
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
129+
nxp k32w1+release light \
130+
out/artifacts/nxp-k32w1-freertos-lighting/chip-k32w1-light-example.elf \
131+
/tmp/bloat_reports/
132+
- name: Get contact sensor size stats
133+
run: |
90134
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
91135
nxp k32w1+release contact \
92136
out/artifacts/nxp-k32w1-freertos-contact-sensor-low-power/chip-k32w1-contact-example.elf \
@@ -95,7 +139,7 @@ jobs:
95139
uses: ./.github/actions/upload-size-reports
96140
if: ${{ !env.ACT }}
97141
with:
98-
platform-name: K32W
142+
platform-name: K32W1
99143
rw61x:
100144
name: RW61X
101145

docs/guides/fabric_synchronization_guide.md

+73-35
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
- [Fabric Synchronization Guide](#fabric-synchronization-guide)
44
- [Fabric Sync Example Applications](#fabric-sync-example-applications)
5-
- [Run Fabric Sync Demo on RP4](#run-fabric-sync-demo-on-rp4)
5+
- [Bootstrap Fabric Sync Demo on Linux](#bootstrap-fabric-sync-demo-on-linux)
6+
- [Bootstrap Fabric Sync Demo on RP4](#bootstrap-fabric-sync-demo-on-rp4)
7+
- [Run Fabric Sync Demo](#run-fabric-sync-demo)
68

79
## Fabric Sync Example Applications
810

@@ -38,57 +40,71 @@ enables a seamless and efficient synchronization process.
3840

3941
[Fabric-Bridge](https://github.com/project-chip/connectedhomeip/tree/master/examples/fabric-bridge-app/linux/README.md)
4042

41-
## Run Fabric Sync Demo on RP4
43+
## Bootstrap Fabric Sync Demo on Linux
4244

43-
### Setup Fabric Source
45+
### Start Fabric Synchronization on Ecosystem 1
4446

45-
Connect to the Fabric Source server:
47+
Run the Fabric Synchronization script:
4648

4749
```
48-
ssh ubuntu@xxx.xxx.xxx.xxx
50+
./examples/fabric-admin/scripts/run_fabric_sync.sh
4951
```
5052

51-
Password: <password>
53+
### Start Fabric Synchronization on Ecosystem 2
5254

53-
Run the Fabric Source script:
55+
Run the Fabric Synchronization script:
5456

5557
```
56-
./run_fabric_source.sh
58+
./examples/fabric-admin/scripts/run_fabric_sync.sh
5759
```
5860

59-
### Setup Fabric Sink
61+
## Bootstrap Fabric Sync Demo on RP4
6062

61-
Connect to the Fabric Sink server:
63+
### Start Fabric Synchronization on Ecosystem 1
64+
65+
Connect to the Ecosystem 1 server:
6266

6367
```
6468
ssh ubuntu@xxx.xxx.xxx.xxx
6569
```
6670

6771
Password: <password>
6872

69-
Run the Fabric Sink script:
73+
Run the Fabric Synchronization script:
7074

7175
```
72-
./run_fabric_sink.sh
76+
./run_fabric_sync.sh
7377
```
7478

75-
### Fabric Sync Setup
79+
### Start Fabric Synchronization on Ecosystem 2
80+
81+
Connect to the Ecosystem 2 server:
82+
83+
```
84+
ssh ubuntu@xxx.xxx.xxx.xxx
85+
```
7686

77-
Enable Fabric Auto Sync:
87+
Password: <password>
7888

79-
In Fabric-Sync console:
89+
Run the Fabric Synchronization script:
8090

8191
```
82-
fabricsync enable-auto-sync 1
92+
./run_fabric_sync.sh
8393
```
8494

85-
Pair the Fabric-Source bridge to Fabric-Sync with node ID 1:
95+
## Run Fabric Sync Demo
96+
97+
### Fabric Sync Setup
98+
99+
In Ecosystem 1 Fabric-Admin console:
100+
101+
Pair the Ecosystem 2 bridge to Ecosystem 1 with node ID 2:
86102

87103
```
88-
fabricsync add-bridge 1 <fabric-source-bridge-ip>
104+
fabricsync add-bridge 2 <e2-fabric-bridge-ip>
89105
```
90106

91-
### Pair Light Example to Fabric-Source
107+
### Pair Light Example to Ecosystem 2
92108

93109
Since Fabric-Bridge also functions as a Matter server, running it alongside the
94110
Light Example app on the same machine would cause conflicts. Therefore, you need
@@ -114,36 +130,54 @@ Pair the Light Example with node ID 3 using its payload number:
114130
pairing already-discovered 3 20202021 <ip> 5540
115131
```
116132

117-
After the Light Example is successfully paired in Fabric-Source, it will be
118-
synced to Fabric-Sink with a new assigned node ID.
133+
After the device is successfully added, you will observe the following on
134+
Ecosystem 2 with the newly assigned Node ID:
135+
136+
```
137+
>>> New device with Node ID: 0x3 has been successfully added.
138+
```
139+
140+
Additionally, you should also get notified when a new device is added to
141+
Ecosystem 2 from the Ecosystem 1:
142+
143+
```
144+
>>> A new device is added on Endpoint 3.
145+
```
146+
147+
### Synchronize Light Example to Ecosystem 1
148+
149+
After the Light Example is successfully paired in Ecosystem 2, we can start to
150+
synchronize the light device to Ecosystem 1 using the new assigned dynamic
151+
endpointid on Ecosystem 2.
152+
153+
```
154+
fabricsync sync-device <endpointid>
155+
```
119156

120157
Toggle the Light Example:
121158

122-
From Fabric-Source:
159+
From Ecosystem 1:
123160

124161
```
125162
onoff on <node-id> 1
126163
onoff off <node-id> 1
127164
```
128165

129-
From Fabric-Sink: (Use the node ID assigned)
166+
From Ecosystem 2: (Use the node ID assigned)
130167

131168
```
132169
onoff on x 1
133170
onoff off x 1
134171
```
135172

136-
### Remove Light Example from Fabric-Source
173+
### Remove Light Example from Ecosystem
137174

138175
Unpair the Light Example:
139176

140177
```
141178
pairing unpair <node-id>
142179
```
143180

144-
After the Light Example is successfully unpaired from Fabric-Source, it will
145-
also be removed from the Fabric-Sink.
146-
147181
### Pair Commercial Switch to Fabric-Source
148182

149183
Pair the switch using its payload number:
@@ -154,32 +188,36 @@ In Fabric-Source console:
154188
pairing code-wifi <node-id> <ssid> <passwd> <payload>
155189
```
156190

157-
After the switch is successfully paired in Fabric-Source, it will be synced to
158-
Fabric-Sink with a new assigned node ID.
191+
### Synchronize Switch to Ecosystem 1
192+
193+
After the switch is successfully paired in Ecosystem 2, we can start to
194+
synchronize it to Ecosystem 1 using the new assigned dynamic endpointid on
195+
Ecosystem 2..
196+
197+
```
198+
fabricsync sync-device <endpointid>
199+
```
159200

160201
Toggle the switch:
161202

162-
From Fabric-Source:
203+
From Ecosystem 1:
163204

164205
```
165206
onoff on <node-id> 1
166207
onoff off <node-id> 1
167208
```
168209

169-
From Fabric-Sink: (Use the node ID assigned)
210+
From Ecosystem 2: (Use the node ID assigned)
170211

171212
```
172213
onoff on <node-id> 1
173214
onoff off <node-id> 1
174215
```
175216

176-
### Remove Switch from Fabric-Source
217+
### Remove Switch from Ecosystem
177218

178219
Unpair the switch:
179220

180221
```
181222
pairing unpair <node-id>
182223
```
183-
184-
After the switch is successfully unpaired from Fabric-Source, it will also be
185-
removed from the Fabric-Sink.

0 commit comments

Comments
 (0)