The CHIP demo application is supported on Ameba RTL8722DM Board.
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-lighting build
The output image files are stored in out/ameba-amebad-lighting/asdk/image
folder.
The bootloader image files are stored in out/ameba-amebad-lighting/asdk/bootloader
folder.
After building the application, Ameba Image Tool is used to flash it to Ameba board.
There are two commissioning modes supported by Ameba platform:
ATW0, ATW1, ATWC
commandsAfter successful commissioning, use the OnOff cluster command to control the OnOff attribute. This allows you to toggle a parameter implemented by the device to be On or Off.
Via Chip-Tool
$ ./chip-tool onoff on ${NODE_ID_TO_ASSIGN} 1 $ ./chip-tool onoff off ${NODE_ID_TO_ASSIGN} 1