From d98faca45e3e8edb6c88ff8a868a5c7f64a64a04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Thu, 8 Aug 2024 08:19:34 +0200 Subject: [PATCH 1/5] Matter Linux Dishwasher Example --- examples/dishwasher-app/linux/README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/examples/dishwasher-app/linux/README.md b/examples/dishwasher-app/linux/README.md index 2d3b461386395d..0c540f41fa172f 100644 --- a/examples/dishwasher-app/linux/README.md +++ b/examples/dishwasher-app/linux/README.md @@ -1,7 +1,7 @@ -# Matter Linux Lighting Example +# Matter Linux Dishwasher Example An example showing the use of Matter on the Linux. The document will describe -how to build and run Matter Linux Lighting Example on Raspberry Pi. This doc is +how to build and run Matter Linux Dishwasher Example on Raspberry Pi. This doc is tested on **Ubuntu for Raspberry Pi Server 20.04 LTS (aarch64)** and **Ubuntu for Raspberry Pi Desktop 20.10 (aarch64)** @@ -12,7 +12,7 @@ details.
-- [Matter Linux Lighting Example](#matter-linux-lighting-example) +- [Matter Linux Dishwasher Example](#matter-linux-dishwasher-example) - [Building](#building) - [Commandline Arguments](#commandline-arguments) - [Running the Complete Example on Raspberry Pi 4](#running-the-complete-example-on-raspberry-pi-4) @@ -29,7 +29,7 @@ details. - Build the example application: - $ cd ~/connectedhomeip/examples/lighting-app/linux + $ cd ~/connectedhomeip/examples/dishwasher-app/linux $ git submodule update --init $ source third_party/connectedhomeip/scripts/activate.sh $ gn gen out/debug @@ -37,12 +37,12 @@ details. - To delete generated executable, libraries and object files use: - $ cd ~/connectedhomeip/examples/lighting-app/linux + $ cd ~/connectedhomeip/examples/dishwasher-app/linux $ rm -rf out/ - Build the example with pigweed RPC - $ cd ~/connectedhomeip/examples/lighting-app/linux + $ cd ~/connectedhomeip/examples/dishwasher-app/linux $ git submodule update --init $ source third_party/connectedhomeip/scripts/activate.sh $ gn gen out/debug --args='import("//with_pw_rpc.gni")' @@ -107,12 +107,12 @@ details. RX bytes:8609495 acl:14 sco:0 events:217484 errors:0 TX bytes:92185 acl:20 sco:0 commands:5259 errors:0 - - Run Linux Lighting Example App + - Run Linux Dishwasher Example App - $ cd ~/connectedhomeip/examples/lighting-app/linux - $ sudo out/debug/chip-lighting-app --ble-device [bluetooth device number] + $ cd ~/connectedhomeip/examples/dishwasher-app/linux + $ sudo out/debug/chip-dishwasher-app --ble-device [bluetooth device number] # In this example, the device we want to use is hci1 - $ sudo out/debug/chip-lighting-app --ble-device 1 + $ sudo out/debug/chip-dishwasher-app --ble-device 1 - Test the device using ChipDeviceController on your laptop / workstation etc. @@ -129,9 +129,9 @@ details. `chip-console -s localhost:33000 -o //pw_log.out` - Then you can Get and Set the light using the RPCs: - `rpcs.chip.rpc.Lighting.Get()` + `rpcs.chip.rpc.Dishwasher.Get()` - `rpcs.chip.rpc.Lighting.Set(on=True, level=128, color=protos.chip.rpc.LightingColor(hue=5, saturation=5))` + `rpcs.chip.rpc.Dishwasher.Set(on=True, level=128, color=protos.chip.rpc.DishwasherColor(hue=5, saturation=5))` ## Device Tracing From 180ba1b68c7e3c399680be98645dcfd8f5fe94a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Thu, 8 Aug 2024 08:41:03 +0200 Subject: [PATCH 2/5] Update README.md Control the operational mode --- examples/dishwasher-app/linux/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/examples/dishwasher-app/linux/README.md b/examples/dishwasher-app/linux/README.md index 0c540f41fa172f..de71026afa6fb9 100644 --- a/examples/dishwasher-app/linux/README.md +++ b/examples/dishwasher-app/linux/README.md @@ -117,6 +117,20 @@ details. - Test the device using ChipDeviceController on your laptop / workstation etc. + +## Control + +Control the operational mode: + + $ chip-tool operationalstate start + $ chip-tool operationalstate stop + $ chip-tool operationalstate pause + + $ chip-tool operationalstate start 1 1 + $ chip-tool operationalstate stop 1 1 + $ chip-tool operationalstate pause 1 1 + + ## Running RPC Console - As part of building the example with RPCs enabled the chip_rpc python From 772b442d86e35732053a3e8e7572e6142c91ffcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Thu, 8 Aug 2024 08:45:54 +0200 Subject: [PATCH 3/5] Update README.md --- examples/dishwasher-app/linux/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/dishwasher-app/linux/README.md b/examples/dishwasher-app/linux/README.md index de71026afa6fb9..3dc941104230d3 100644 --- a/examples/dishwasher-app/linux/README.md +++ b/examples/dishwasher-app/linux/README.md @@ -121,7 +121,8 @@ details. ## Control Control the operational mode: - + +``` $ chip-tool operationalstate start $ chip-tool operationalstate stop $ chip-tool operationalstate pause @@ -129,7 +130,7 @@ Control the operational mode: $ chip-tool operationalstate start 1 1 $ chip-tool operationalstate stop 1 1 $ chip-tool operationalstate pause 1 1 - +``` ## Running RPC Console From c5e885ae10a23b7b8df695f1695bf572127cd147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Thu, 8 Aug 2024 08:51:14 +0200 Subject: [PATCH 4/5] [PATCH] Restyled by prettier-markdown --- examples/dishwasher-app/linux/README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/dishwasher-app/linux/README.md b/examples/dishwasher-app/linux/README.md index 3dc941104230d3..4747e394644960 100644 --- a/examples/dishwasher-app/linux/README.md +++ b/examples/dishwasher-app/linux/README.md @@ -1,8 +1,8 @@ # Matter Linux Dishwasher Example An example showing the use of Matter on the Linux. The document will describe -how to build and run Matter Linux Dishwasher Example on Raspberry Pi. This doc is -tested on **Ubuntu for Raspberry Pi Server 20.04 LTS (aarch64)** and **Ubuntu +how to build and run Matter Linux Dishwasher Example on Raspberry Pi. This doc +is tested on **Ubuntu for Raspberry Pi Server 20.04 LTS (aarch64)** and **Ubuntu for Raspberry Pi Desktop 20.10 (aarch64)** To cross-compile this example on x64 host and run on **NXP i.MX 8M Mini** @@ -117,7 +117,6 @@ details. - Test the device using ChipDeviceController on your laptop / workstation etc. - ## Control Control the operational mode: @@ -130,7 +129,7 @@ Control the operational mode: $ chip-tool operationalstate start 1 1 $ chip-tool operationalstate stop 1 1 $ chip-tool operationalstate pause 1 1 -``` +``` ## Running RPC Console From a2f2c367bf7b2ec847de8f193a05ba32849e5fa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Thu, 8 Aug 2024 08:54:35 +0200 Subject: [PATCH 5/5] [PATCH] Restyled by prettier-markdown --- examples/dishwasher-app/linux/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/dishwasher-app/linux/README.md b/examples/dishwasher-app/linux/README.md index 4747e394644960..6b849617099b9c 100644 --- a/examples/dishwasher-app/linux/README.md +++ b/examples/dishwasher-app/linux/README.md @@ -125,7 +125,7 @@ Control the operational mode: $ chip-tool operationalstate start $ chip-tool operationalstate stop $ chip-tool operationalstate pause - + $ chip-tool operationalstate start 1 1 $ chip-tool operationalstate stop 1 1 $ chip-tool operationalstate pause 1 1