Skip to content

Commit ebe8250

Browse files
restyled-commitsying-css
authored andcommitted
Restyled by prettier-markdown
1 parent e4abf24 commit ebe8250

File tree

1 file changed

+60
-43
lines changed

1 file changed

+60
-43
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,88 @@
11
# Matter Software Update with Infineon PSoC6 and OPTIGA™ Trust M example applications
22

3-
The Over The Air (OTA) Software Update functionality can be added to any of the Infineon PSoC6 example applications by passing the
3+
The Over The Air (OTA) Software Update functionality can be added to any of the
4+
Infineon PSoC6 example applications by passing the
45
`chip_enable_ota_requestor=true` option to the build script.
56

67
## Running the OTA Download scenario
78

8-
- An OTA Provider is a node that can respond to the OTA Requestors' queries about available software updates and share the update packages with them. An OTA Requestor is any node that needs to be updated and can communicate with the OTA Provider to fetch applicable software updates. In the procedure described below, the OTA Provider will be a Linux application and the example running on the Infineon PSoC6 board will work as the OTA Requestor.
9-
10-
- On a Linux or Darwin platform build the chip-tool and the ota-provider-app as follows:
11-
12-
This step can be ignored if Test Harness(Raspberry Pi) is used as OTA Provider.
13-
9+
- An OTA Provider is a node that can respond to the OTA Requestors' queries
10+
about available software updates and share the update packages with them. An
11+
OTA Requestor is any node that needs to be updated and can communicate with
12+
the OTA Provider to fetch applicable software updates. In the procedure
13+
described below, the OTA Provider will be a Linux application and the
14+
example running on the Infineon PSoC6 board will work as the OTA Requestor.
15+
16+
- On a Linux or Darwin platform build the chip-tool and the ota-provider-app
17+
as follows:
18+
19+
This step can be ignored if Test Harness(Raspberry Pi) is used as OTA
20+
Provider.
21+
1422
```
1523
scripts/examples/gn_build_example.sh examples/chip-tool out/
1624
scripts/examples/gn_build_example.sh examples/ota-provider-app/linux out/debug chip_config_network_layer_ble=false
1725
```
18-
19-
- Build the PSoC6 OTA Requestor application with OPTIGA™ Trust M from the connectedhomeip root dir:
2026

21-
```
22-
$ scripts/build/build_examples.py --enable-flashbundle --target infineon-psoc6-lock-trustm-ota build
23-
$ third_party/infineon/psoc6/psoc6_sdk/ota/ota_base_build.sh out/infineon-psoc6-lock-trustm-ota chip-psoc6-lock-example
24-
```
27+
- Build the PSoC6 OTA Requestor application with OPTIGA™ Trust M from the
28+
connectedhomeip root dir:
29+
30+
```
31+
$ scripts/build/build_examples.py --enable-flashbundle --target infineon-psoc6-lock-trustm-ota build
32+
$ third_party/infineon/psoc6/psoc6_sdk/ota/ota_base_build.sh out/infineon-psoc6-lock-trustm-ota chip-psoc6-lock-example
33+
```
2534

26-
Note: In order for the Provider to successfully serve the image to a device during the OTA Software Update process the softwareVersion parameter in the Provider config file must be greater than the CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION parameter set in the application's CHIPProjectConfig.h file.
35+
Note: In order for the Provider to successfully serve the image to a device
36+
during the OTA Software Update process the softwareVersion parameter in the
37+
Provider config file must be greater than the
38+
CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION parameter set in the
39+
application's CHIPProjectConfig.h file.
2740

28-
* Build the PSoC6 OTA Update application with OPTIGA™ Trust M from the connectedhomeip root dir and create OTA file
41+
* Build the PSoC6 OTA Update application with OPTIGA™ Trust M from the
42+
connectedhomeip root dir and create OTA file
2943

30-
```
31-
$ scripts/build/build_examples.py --enable-flashbundle --no-log-timestamps --target infineon-psoc6-lock-trustm-ota-updateimage build
32-
$ third_party/infineon/psoc6/psoc6_sdk/ota/ota_update_build.sh out/infineon-psoc6-lock-trustm-ota-updateimage chip-psoc6-lock-example
33-
```
44+
```
45+
$ scripts/build/build_examples.py --enable-flashbundle --no-log-timestamps --target infineon-psoc6-lock-trustm-ota-updateimage build
46+
$ third_party/infineon/psoc6/psoc6_sdk/ota/ota_update_build.sh out/infineon-psoc6-lock-trustm-ota-updateimage chip-psoc6-lock-example
47+
```
3448

35-
* Additionally a pre-compiled bootloader must be flashed to the board using [Cypress Programmer](https://softwaretools.infineon.com/tools/com.ifx.tb.tool.cypressprogrammer).
49+
* Additionally a pre-compiled bootloader must be flashed to the board using
50+
[Cypress Programmer](https://softwaretools.infineon.com/tools/com.ifx.tb.tool.cypressprogrammer).
3651
This image can be found at:
3752

38-
$ ./third_party/infineon/psoc6/psoc6_sdk/ota/matter-psoc6-mcuboot-bootloader.hex
53+
$ ./third_party/infineon/psoc6/psoc6_sdk/ota/matter-psoc6-mcuboot-bootloader.hex
3954

40-
* In a terminal start the Provider app passing to it the path to the Matter
55+
* In a terminal start the Provider app passing to it the path to the Matter
4156
OTA file created in the previous step:(output of ota_update_build step)
4257

43-
```
44-
rm -r /tmp/chip_*
45-
./chip-ota-provider-app --discriminator 3840 --passcode 20202021 -f ../chip-psoc6-lock-example.ota
46-
```
58+
```
59+
rm -r /tmp/chip_*
60+
./chip-ota-provider-app --discriminator 3840 --passcode 20202021 -f ../chip-psoc6-lock-example.ota
61+
```
4762

48-
* In a separate terminal run the chip-tool commands to provision the Provider:
49-
50-
```
51-
./chip-tool pairing onnetwork-long 1 20202021 3840
52-
./chip-tool accesscontrol write acl '[{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [112233], "targets": null}, {"fabricIndex": 1, "privilege": 3, "authMode": 2, "subjects": null, "targets": null}]' 1 0
53-
```
54-
55-
Note: If the application device had been previously commissioned press USER Button2 to factory-reset the device.
56-
57-
* In the chip-tool terminal enter:
63+
* In a separate terminal run the chip-tool commands to provision the Provider:
5864

5965
```
60-
./chip-tool pairing ble-wifi 2 <WIFI_SSID> <WIFI_PASSWORD> 20202021 3840
66+
./chip-tool pairing onnetwork-long 1 20202021 3840
67+
./chip-tool accesscontrol write acl '[{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [112233], "targets": null}, {"fabricIndex": 1, "privilege": 3, "authMode": 2, "subjects": null, "targets": null}]' 1 0
6168
```
6269

63-
* Once the commissioning process completes enter:
70+
Note: If the application device had been previously commissioned press USER
71+
Button2 to factory-reset the device.
6472

65-
```
66-
./chip-tool otasoftwareupdaterequestor announce-ota-provider 1 0 0 0 2 0
67-
```
73+
* In the chip-tool terminal enter:
74+
75+
```
76+
./chip-tool pairing ble-wifi 2 <WIFI_SSID> <WIFI_PASSWORD> 20202021 3840
77+
```
78+
79+
* Once the commissioning process completes enter:
6880

69-
* The application device will connect to the Provider and start the image download. Status of the transfer can be monitored in the OTA Provider
70-
terminal. Once the image is downloaded the device will reboot into the downloaded image.
81+
```
82+
./chip-tool otasoftwareupdaterequestor announce-ota-provider 1 0 0 0 2 0
83+
```
7184

85+
* The application device will connect to the Provider and start the image
86+
download. Status of the transfer can be monitored in the OTA Provider
87+
terminal. Once the image is downloaded the device will reboot into the
88+
downloaded image.

0 commit comments

Comments
 (0)