From 5c57973f406ce001a2e2c9f2b9486773449e3ae8 Mon Sep 17 00:00:00 2001 From: Carol Yang Date: Fri, 11 Feb 2022 06:19:58 -0800 Subject: [PATCH] [OTA] Update README for OTA Requestor application (#15064) --- .github/.wordlist.txt | 3 + examples/ota-requestor-app/linux/README.md | 161 ++++++++++++--------- examples/ota-requestor-app/linux/main.cpp | 43 +----- 3 files changed, 103 insertions(+), 104 deletions(-) diff --git a/.github/.wordlist.txt b/.github/.wordlist.txt index a8451a47a81dfa..9ac4419af442c9 100644 --- a/.github/.wordlist.txt +++ b/.github/.wordlist.txt @@ -282,6 +282,7 @@ DEDEDEDE deepnote DelayedActionTime delayedActionTimeSec +delayQuery demangle deployable depottools @@ -828,6 +829,7 @@ protobuf protos Prover providerNodeId +providerFabricIndex PRs PSCAN PSK @@ -889,6 +891,7 @@ req Requestor Requestor's Requestors +RequestorCanConsent responder retargeting reusability diff --git a/examples/ota-requestor-app/linux/README.md b/examples/ota-requestor-app/linux/README.md index a00a608dda2ca9..0f68237ea81223 100644 --- a/examples/ota-requestor-app/linux/README.md +++ b/examples/ota-requestor-app/linux/README.md @@ -1,108 +1,135 @@ # ota-requestor-app (Linux) This is a reference application that is both a server for the OTA Requestor -Cluster, as well as a client of the OTA Provider Cluster. It should initiate a -Software Update with a given OTA Provider node, and download a file. +Cluster, as well as a client of the OTA Provider Cluster. It can initiate a +software update with a given OTA Provider node, and download a file. + +## Building + +Suggest doing the following: + +``` +scripts/examples/gn_build_example.sh examples/ota-requestor-app/linux out/debug chip_config_network_layer_ble=false +``` ## Usage -In order to use this reference application to connect to a device running OTA -Provider server and download a software image, these commands should be called -in the following order: +In addition to the general options available to all Linux applications, the +following command line options are available for the OTA Requestor application. + +| Directory | Description | +| --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| -n/--providerNodeId | Node ID of the OTA Provider to connect to (hex format)
This assumes that you've already commissioned the OTA Provider node with chip-tool | +| -f/--providerFabricIndex | Fabric index of the OTA Provider to connect to. If none is specified, default value is 1.
This assumes that you've already commissioned the OTA Provider node with chip-tool | +| -q/--delayQuery