|
1 |
| -# CHIP EFR32 OTA Requestor Example |
| 1 | +For the description of Software Update process with EFR32 example applications |
| 2 | +see |
| 3 | +[EFR32 OTA Software Update](../../../docs/guides/silabs_efr32_software_update.md) |
2 | 4 |
|
3 |
| -An example showing the use of the Matter OTA Requestor functionality on the |
4 |
| -Silicon Labs EFR32 MG12. |
5 |
| - |
6 |
| -<a name="intro"></a> |
7 |
| - |
8 |
| -## Introduction |
9 |
| - |
10 |
| -The EFR32 OTA Requestor example provides a baseline demonstration the Matter OTA |
11 |
| -Requestor functionality built with the Silicon Labs gecko SDK. It can be |
12 |
| -controlled by a Chip controller over OpenThread network. |
13 |
| - |
14 |
| -<a name="building"></a> |
15 |
| - |
16 |
| -## Building |
17 |
| - |
18 |
| -For initial setup steps please see the CHIP EFR32 Lighting Example README at |
19 |
| -examples/lighting-app/efr32/README.md |
20 |
| - |
21 |
| -- Supported hardware: |
22 |
| - |
23 |
| - MG12 boards: |
24 |
| - |
25 |
| - - BRD4161A / SLWSTK6000B / Wireless Starter Kit / 2.4GHz@19dBm |
26 |
| - - BRD4164A / SLWSTK6000B / Wireless Starter Kit / 2.4GHz@19dBm |
27 |
| - - BRD4166A / SLTB004A / Thunderboard Sense 2 / 2.4GHz@10dBm |
28 |
| - - BRD4170A / SLWSTK6000B / Multiband Wireless Starter Kit / 2.4GHz@19dBm, |
29 |
| - 915MHz@19dBm |
30 |
| - - BRD4304A / SLWSTK6000B / MGM12P Module / 2.4GHz@19dBm |
31 |
| - |
32 |
| - MG21 boards: Currently not supported due to RAM limitation. |
33 |
| - |
34 |
| - - BRD4180A / SLWSTK6006A / Wireless Starter Kit / 2.4GHz@20dBm |
35 |
| - |
36 |
| - MG24 boards : |
37 |
| - |
38 |
| - - BRD4186A / SLWSTK6006A / Wireless Starter Kit / 2.4GHz@10dBm |
39 |
| - - BRD4187A / SLWSTK6006A / Wireless Starter Kit / 2.4GHz@20dBm |
40 |
| - |
41 |
| -* Build the example application: |
42 |
| - |
43 |
| - cd ~/connectedhomeip |
44 |
| - ./scripts/examples/gn_efr32_example.sh ./examples/ota-requestor-app/efr32/ ./out/ota-requestor-app BRD4161A |
45 |
| - |
46 |
| -- To delete generated executable, libraries and object files use: |
47 |
| - |
48 |
| - $ cd ~/connectedhomeip |
49 |
| - $ rm -rf ./out/ |
50 |
| - |
51 |
| -<a name="Flashing the Application"></a> |
52 |
| - |
53 |
| -## Flashing the Application |
54 |
| - |
55 |
| -- On the command line: |
56 |
| - |
57 |
| - $ cd ~/connectedhomeip/out/ota-requestor-app/BRD4161A |
58 |
| - $ python3 chip-efr32-ota-requestor-example.flash.py |
59 |
| - |
60 |
| -- Or with the Ozone debugger, just load the .out file. |
61 |
| - |
62 |
| -<a name="view-logging"></a> |
63 |
| - |
64 |
| -## Viewing Logging Output |
65 |
| - |
66 |
| -See `examples/lighting-app/efr32/README.md` |
67 |
| - |
68 |
| -<a name="Running the OTA Download scenario"></a> |
69 |
| - |
70 |
| -## Running the OTA Download scenario |
71 |
| - |
72 |
| -- Bring up the OpenThread Border Router as discussed in |
73 |
| - examples/lighting-app/efr32/README.md and get its operational dataset. |
74 |
| - |
75 |
| -- On a Linux or Darwin platform build the chip-tool and the ota-provider-app |
76 |
| - as follows: |
77 |
| - |
78 |
| - scripts/examples/gn_build_example.sh examples/chip-tool out/ |
79 |
| - scripts/examples/gn_build_example.sh examples/ota-provider-app/linux out/debug chip_config_network_layer_ble=false |
80 |
| - |
81 |
| -- Build or download the Gecko Bootloader binary. Bootloader should be built |
82 |
| - with the Gecko SDK version 3.2.1 or earlier, type "external SPI" configured |
83 |
| - with a single slot of at least 1000 KB. Pre-built binaries should be |
84 |
| - available in |
85 |
| - |
86 |
| - third_party/efr32_sdk/repo/platform/bootloader/sample-apps/bootloader-storage-spiflash-single |
87 |
| - |
88 |
| -- Using the commander tool upload the bootloader to the device running the |
89 |
| - requestor application. |
90 |
| - |
91 |
| -- Create a bootable image file: |
92 |
| - |
93 |
| - commander gbl create chip-efr32-ota-requestor-example.gbl --app chip-efr32-ota-requestor-example.s37 |
94 |
| - |
95 |
| -- In a terminal start the provider app passing to it the path to the bootable |
96 |
| - image file created in the previous step: |
97 |
| - |
98 |
| - rm -r /tmp/chip_* |
99 |
| - ./out/debug/chip-ota-provider-app -f chip-efr32-ota-requestor-example.gbl |
100 |
| - |
101 |
| -- In a separate terminal run the chip-tool commands to provision the Provider: |
102 |
| - |
103 |
| - ./out/chip-tool pairing onnetwork 1 20202021 |
104 |
| - ./out/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 |
105 |
| - |
106 |
| -- If the Requestor had been previously commissioned hold Button 0 for six |
107 |
| - seconds to factory-reset the device. |
108 |
| - |
109 |
| -- In the chip-tool terminal enter: |
110 |
| - |
111 |
| - ./out/chip-tool pairing ble-thread 2 hex:<operationalDataset> 20202021 3840 |
112 |
| - |
113 |
| -where operationalDataset is obtained from the OpenThread Border Router. |
114 |
| - |
115 |
| -- Once the commissioning process completes enter: |
116 |
| - |
117 |
| - ./out/chip-tool otasoftwareupdaterequestor announce-ota-provider 1 0 0 0 2 0 |
118 |
| - |
119 |
| -- The Requestor will connect to the Provider and start the image download. |
120 |
| - Once the image is downloaded the Requestor will reboot into the downloaded |
121 |
| - image. |
| 5 | +The EFR32 ota-requestor-app example app has been deprecated. The OTA Software |
| 6 | +Update functionality can be used in any EFR32 example application. |
0 commit comments