Skip to content

Commit

Permalink
Restyled
Browse files Browse the repository at this point in the history
  • Loading branch information
pankore committed Dec 20, 2021
1 parent df3884d commit e415490
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
30 changes: 17 additions & 13 deletions examples/all-clusters-app/ameba/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,24 +117,28 @@ to be On or Off.

## Running RPC Console

- Connect a USB-TTL Adapter as shown below
- Connect a USB-TTL Adapter as shown below

Ameba USB-TTL
A19 TX
A18 RX
GND GND
Ameba USB-TTL
A19 TX
A18 RX
GND GND

- Build the [chip-rpc console](https://github.com/project-chip/connectedhomeip/tree/master/examples/common/pigweed/rpc_console)
- Build the
[chip-rpc console](https://github.com/project-chip/connectedhomeip/tree/master/examples/common/pigweed/rpc_console)

- As part of building the example with RPCs enabled the chip_rpc python interactive console is installed into your venv. The python wheel files are also created in the output folder: out/debug/chip_rpc_console_wheels. To install the wheel files without rebuilding:
- As part of building the example with RPCs enabled the chip_rpc python
interactive console is installed into your venv. The python wheel files are
also created in the output folder: out/debug/chip_rpc_console_wheels. To
install the wheel files without rebuilding:

$ pip3 install out/debug/chip_rpc_console_wheels/*.whl
$ pip3 install out/debug/chip_rpc_console_wheels/*.whl

- Launch the chip-rpc console after inputting `ATS$` command
- Launch the chip-rpc console after inputting `ATS$` command

$ python3 -m chip_rpc.console --device /dev/tty<port connected to USB-TTL adapter> -b 115200
$ python3 -m chip_rpc.console --device /dev/tty<port connected to USB-TTL adapter> -b 115200

- Get and Set lighting directly using the RPC console
- Get and Set lighting directly using the RPC console

rpcs.chip.rpc.Lighting.Get()
rpcs.chip.rpc.Lighting.Set(on=True, level=128, color=protos.chip.rpc.LightingColor(hue=5, saturation=5))
rpcs.chip.rpc.Lighting.Get()
rpcs.chip.rpc.Lighting.Set(on=True, level=128, color=protos.chip.rpc.LightingColor(hue=5, saturation=5))
10 changes: 6 additions & 4 deletions examples/pigweed-app/ameba/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ following features are available:

$ ./scripts/build/build_examples.py --target ameba-amebad-pigweed build

The output image files are stored in
`out/ameba-amebad-pigweed/asdk/image` folder.
The output image files are stored in `out/ameba-amebad-pigweed/asdk/image`
folder.

The bootloader image files are stored in
`out/ameba-amebad-pigweed/asdk/bootloader` folder.
Expand All @@ -69,9 +69,11 @@ Connect a USB-TTL Adapter as shown below
A18 RX
GND GND

Build the [chip-rpc console](https://github.com/project-chip/connectedhomeip/tree/master/examples/common/pigweed/rpc_console)
Build the
[chip-rpc console](https://github.com/project-chip/connectedhomeip/tree/master/examples/common/pigweed/rpc_console)

Input `ATS$` command, then launch the chip-rpc console, where the Echo RPC commands can be invoked
Input `ATS$` command, then launch the chip-rpc console, where the Echo RPC
commands can be invoked

python -m pw_hdlc.rpc_console --device /dev/tty<USB-TTL port> -b 115200

Expand Down

0 comments on commit e415490

Please sign in to comment.