@@ -16,7 +16,6 @@ details.
16
16
- [ Building] ( #building )
17
17
- [ Commandline arguments] ( #commandline-arguments )
18
18
- [ Running the Complete Example on Raspberry Pi 4] ( #running-the-complete-example-on-raspberry-pi-4 )
19
- - [ Running RPC Console] ( #running-rpc-console )
20
19
- [ Device Tracing] ( #device-tracing )
21
20
- [ Python Test Cases] ( #python-test-cases )
22
21
- [ Running the test cases:] ( #running-the-test-cases )
@@ -74,6 +73,19 @@ details.
74
73
` hciconfig ` command, for example, ` --ble-device 1 ` means using ` hci1 `
75
74
interface. Default: ` 0 ` .
76
75
76
+ - ` --application <evse | water-heater> `
77
+
78
+ Emulate either an EVSE or Water Heater example.
79
+
80
+ - ` --featureSet <feature map for Device Energy Management e.g. 0x7a> `
81
+
82
+ Sets the run-time FeatureMap value for the Device Energy Management cluster.
83
+ This allows the DEM cluster to support ` PFR ` or ` SFR ` so that the full range
84
+ of TC_DEM_2.x test cases can be exercised with this application.
85
+
86
+ See the test-runner headers in the respective test script in
87
+ src/python_testing/TC_DEM_2.x.py which have recommended values to use.
88
+
77
89
## Running the Complete Example on Raspberry Pi 4
78
90
79
91
> If you want to test Echo protocol, please enable Echo handler
@@ -124,20 +136,6 @@ details.
124
136
- Test the device using ChipDeviceController on your laptop /
125
137
workstation etc.
126
138
127
- ## Running RPC Console
128
-
129
- - As part of building the example with RPCs enabled the chip_rpc python
130
- interactive console is installed into your venv. The python wheel files are
131
- also created in the output folder: out/debug/chip_rpc_console_wheels. To
132
- install the wheel files without rebuilding:
133
- ` pip3 install out/debug/chip_rpc_console_wheels/*.whl `
134
-
135
- - To use the chip-rpc console after it has been installed run:
136
- ` chip-console -s localhost:33000 -o /<YourFolder>/pw_log.out `
137
-
138
- - Then you can Get and Set the Energy Management using the RPCs:
139
- ` rpcs.chip.rpc.EnergyManagement.Get() `
140
-
141
139
## Device Tracing
142
140
143
141
Device tracing is available to analyze the device performance. To turn on
@@ -185,7 +183,7 @@ app you need to add `chip_enable_energy_evse_trigger=true` to the gn args.
185
183
Once the application is built you also need to tell it at runtime what the
186
184
chosen enable key is using the ` --enable-key ` command line option.
187
185
188
- $ ./chip-energy-management-app --enable-key 000102030405060708090a0b0c0d0e0f
186
+ $ ./chip-energy-management-app --enable-key 000102030405060708090a0b0c0d0e0f --application evse
189
187
190
188
### Running the test cases:
191
189
@@ -194,7 +192,7 @@ From the top-level of the connectedhomeip repo type:
194
192
Start the chip-energy-management-app:
195
193
196
194
``` bash
197
- rm -f evse.bin; out/debug/chip-energy-management-app --enable-key 000102030405060708090a0b0c0d0e0f --KVS evse.bin --featureSet $featureSet
195
+ rm -f evse.bin; out/debug/chip-energy-management-app --enable-key 000102030405060708090a0b0c0d0e0f --KVS evse.bin --featureSet $featureSet --application evse
198
196
```
199
197
200
198
where the \$ featureSet depends on the test being run:
@@ -262,7 +260,7 @@ data (e.g. fabric info).
262
260
- Step 1: Launch the example app
263
261
264
262
``` bash
265
- $ ./chip-energy-management-app --enable-key 000102030405060708090a0b0c0d0e0f
263
+ $ ./chip-energy-management-app --enable-key 000102030405060708090a0b0c0d0e0f --application evse
266
264
```
267
265
268
266
- Step 2: Launch CHIP-REPL
0 commit comments