-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfixing for esp32; bugfixing for Alexa scanning during commissioning
- Loading branch information
Showing
7 changed files
with
279 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# Examples for Espressif MCUs | ||
|
||
The examples are tested and _should_ work on the rPI Pico W, esp32, esp32s3, esp32c3 and esp32c6 | ||
|
||
With that said, it is still early days for both `rs-matter` and `trouble` | ||
(the bare-metal BLE stack in use) so you might face issues during initial commissioning. | ||
|
||
Please [report]() those! | ||
|
||
## Matter Controller | ||
|
||
You need one of: | ||
* Google: | ||
* Google Home/Nest or other Google Matter Controller | ||
* The Google Home app on your phone | ||
* Alexa | ||
* Alexa Echo Hub, Echo Dot or other Amazon Matter Controller | ||
* The Alexa app on your phone | ||
* Apple | ||
* Apple TV or other Apple Matter Controller | ||
* An iPhone with the Apple HomeKit app | ||
|
||
Once you build and flash the firmware, follow the instructions in the phone app. | ||
|
||
To start the commissioning process, all apps will ask you to take a screenshot of the QR code which is printed by the firmware when it starts. | ||
Once you do that, you should see a bunch of logs for the commissioning process. | ||
|
||
NOTE: Since the firmware is not certified, the app will warn you about that. Disregard and let it proceed anyway. | ||
|
||
Upon successful commissioning, you should end up with a Light device which you can turn on/off, and which will also turn on/off by itself every 5 secs. | ||
|
||
## How to build and flash | ||
|
||
### rPI Pico W | ||
|
||
(Support for the stock rPI via the W5500 ethernet adapter coming later.) | ||
|
||
```sh | ||
cd rp | ||
cargo +nightly build | ||
|
||
probe-rs run --chip rp2040 target/thumbv6m-none-eabi/debug/light | ||
``` | ||
|
||
### Espressif MCUs | ||
|
||
#### esp32 | ||
|
||
```sh | ||
cargo install espup | ||
espup update | ||
|
||
cd esp | ||
cargo +esp build --target xtensa-esp32-none-elf --no-default-features --features esp32 | ||
|
||
espflash flash target/xtensa-esp32-none-elf/debug/light --baud 1500000 | ||
espflash monitor --elf target/xtensa-esp32-none-elf/debug/light | ||
``` | ||
|
||
#### esp32s3 | ||
|
||
```sh | ||
cargo install espup | ||
espup update | ||
|
||
cd esp | ||
cargo +esp build --target xtensa-esp32s3-none-elf --no-default-features --features esp32s3 | ||
|
||
espflash flash target/xtensa-esp32s3-none-elf/debug/light --baud 1500000 | ||
espflash monitor --elf target/xtensa-esp32s3-none-elf/debug/light | ||
``` | ||
|
||
#### esp32c3 | ||
|
||
```sh | ||
cd esp | ||
cargo +nightly build --target riscv32imc-unknown-none-elf --no-default-features --features esp32c3 | ||
|
||
espflash flash target/riscv32imc-unknown-none-elf/debug/light --baud 1500000 | ||
espflash monitor --elf target/riscv32imc-unknown-none-elf/debug/light | ||
``` | ||
|
||
#### esp32c6 | ||
|
||
```sh | ||
cd esp | ||
cargo +nightly build --target riscv32imac-unknown-none-elf --no-default-features --features esp32c6 | ||
|
||
espflash flash target/riscv32imac-unknown-none-elf/debug/light --baud 1500000 | ||
espflash monitor --elf target/riscv32imac-unknown-none-elf/debug/light | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.