This commit is contained in:
Scott Shawcroft 2024-10-01 15:16:16 -07:00
parent 496efa5fe7
commit 457a5a8c7b
No known key found for this signature in database

View file

@ -15,18 +15,6 @@ CircuitMatter is currently developed in CPython 3.12, the de facto implementatio
After cloning the repo, pip install `ecdsa` and `cryptography`.
### Generate a certificate declaration
Each Matter device has its own certificate to capture whether a device has been certified. (CircuitMatter declares itself as an uncertified test/development/hobby device.) This is referred to the Certificate Declaration (CD). CircuitMatter can generate a CD for you and the remaining certificates are loaded from the projectchip repositorry. The certificate generated by CircuitMatter is signed by a test private key.
To generate a CD run:
```shell
python -m circuitmatter.certificates
```
This will write the `certificate_deeclaration.der` file.
### Running a CircuitMatter replay
CircuitMatter can capture and replay UDP packets and random numbers to ease development. You can test the start of the CircuitMatter process by using the replay file from the repo:
@ -80,3 +68,15 @@ chip-tool pairing onnetwork 1 67202583
This will look up commissionable devices on the network via MDNS and then start that process. `67202583` is the manual pairing code that matches the device state in `test_data/device_state.json`.
Logs can be added into the chip sources to understand what is happening on the commissioner side. To rebuild, I've had to run `bash install.sh` again.
###Generate a certificate declaration
Each Matter device has its own certificate to capture whether a device has been certified. (CircuitMatter declares itself as an uncertified test/development/hobby device.) This is referred to the Certificate Declaration (CD). CircuitMatter can generate a CD for you and the remaining certificates are loaded from the projectchip repositorry. The certificate generated by CircuitMatter is signed by a test private key.
To generate a CD run:
```shell
python -m circuitmatter.certificates
```
This will write the `certificate_declaration.der` file. (`test_data/certificate_declaration.der` is checked into the repo too and used by default.)