Pull docker image:
$ docker pull connectedhomeip/chip-build-ameba:latest
Run docker container:
$ docker run -it -v ${CHIP_DIR}:/root/chip connectedhomeip/chip-build-ameba:latest
Setup build environment:
$ source ./scripts/bootstrap.sh
To build the demo application:
$ ./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 bootloader image files are stored in out/ameba-amebad-pigweed/asdk/bootloader
folder.
After building the application, Ameba Image Tool is used to flash it to Ameba board.
Connect a USB-TTL Adapter as shown below
Ameba USB-TTL A19 TX A18 RX GND GND
Build the chip-rpc console
Reset Ameba board, 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
To send an Echo RPC message, type the following command, where the actual message is the text in quotation marks after the msg=
phrase:
rpcs.pw.rpc.EchoService.Echo(msg="hi")