examples/air-purifier-app/ameba/README.md
This example demonstrates the Matter air purifier application on Ameba platform.
The CHIP demo application is supported on Ameba RTL8722DM Board.
git clone https://github.com/ambiot/ambd_matter.git
$ cd connectedhomeip
$ source scripts/bootstrap.sh
$ cd ambd_matter/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/
$ make all
$ cd ambd_matter/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/
$ make -C asdk air_purifier
From the same directory:
$ make all
$ cd ambd_matter/tools/AmebaD/Image_Tool_Linux
$ sudo ./AmebaD_ImageTool -combine \
../../../project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk/image/km0_boot_all.bin 0x0000 \
../../../project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/image/km4_boot_all.bin 0x4000 \
../../../project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/image/km0_km4_image2.bin 0x6000
ambd_matter/tools/AmebaD/mpp.ini file with the correct port
setting (the rest of the settings should be correct)$ cd ambd_matter/tools/AmebaD/Image_Tool_Linux
$ ./AmebaD_ImageTool -download
There are two commissioning modes supported by Ameba platform:
ATW0, ATW1, ATWC commandsAfter successful commissioning, the air purifier clusters can be read and controlled using Chip-Tool.
The Air Purifier is a composed device. The example has endpoints configured as follows:
Example commands using the chip tool:
$ ./chip-tool fancontrol write speed-setting 10 ${NODE_ID_TO_ASSIGN} 1
$ ./chip-tool formaldehydeconcentrationmeasurement read level-value ${NODE_ID_TO_ASSIGN} 2
$ ./chip-tool temperaturemeasurement read measured-value ${NODE_ID_TO_ASSIGN} 3
$ ./chip-tool relativehumiditymeasurement read measured-value ${NODE_ID_TO_ASSIGN} 4