Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title: Which Matter examples can be flashed on ESP32 and controlled via chip-repl? (CON-1591) #1322

Open
ghaliaLajmi opened this issue Mar 10, 2025 · 1 comment

Comments

@ghaliaLajmi
Copy link

ghaliaLajmi commented Mar 10, 2025

Hi,

I have successfully flashed the light example from esp-matter/examples/light onto my ESP32-C3, and I was able to control it using chip-repl commands. It worked perfectly.

However, when I tried flashing the door lock example on an ESP32-S3, I encountered errors when attempting to control it via chip-repl. Interestingly, the virtual device for the door lock works fine with chip-repl, but the real device does not.

My ESP32-S3 and laptop are connected to the same Wi-Fi network.

My Questions:
Which Matter examples can be flashed onto an ESP32 and controlled via chip-repl?
Do I need a real Matter-certified product for testing, or can I use the ESP32 as a Matter device?
The examples from connectedhomeip work only virtually or not? . In esp-matter, what are the other examples that works with the chip-repl ?

Image

@github-actions github-actions bot changed the title Title: Which Matter examples can be flashed on ESP32 and controlled via chip-repl? Title: Which Matter examples can be flashed on ESP32 and controlled via chip-repl? (CON-1591) Mar 10, 2025
@Jerry-ESP
Copy link
Contributor

Jerry-ESP commented Mar 11, 2025

Hi,

I have successfully flashed the light example from esp-matter/examples/light onto my ESP32-C3, and I was able to control it using chip-repl commands. It worked perfectly.

However, when I tried flashing the door lock example on an ESP32-S3, I encountered errors when attempting to control it via chip-repl. Interestingly, the virtual device for the door lock works fine with chip-repl, but the real device does not.

My ESP32-S3 and laptop are connected to the same Wi-Fi network.

My Questions: Which Matter examples can be flashed onto an ESP32 and controlled via chip-repl?

Reply: Almost every example can work on esp32, you just need to set esp32 target berfore build the example:

idf.py set-target esp32
idf.py build

Do I need a real Matter-certified product for testing, or can I use the ESP32 as a Matter device?

Reply: Only for testing , you don't need a real matter certified product.

The examples from connectedhomeip work only virtually or not?

Reply: No, it can work on esp32 series DevKit boards.

In esp-matter, what are the other examples that works with the chip-repl ?

Reply: From your log, if you want to control the doorlock, you need to add the Credentials in the command. Just as below:

Pairing with chip-tool:

chip-tool pairing ble-thread 1 hex:<operationalDataset> 20202021 3840

Set a user:

./out/chip-tool doorlock set-user OperationType UserIndex UserName UserUniqueId UserStatus UserType CredentialRule node-id/group-id
./out/chip-tool doorlock set-user 0 1 "mike" 5 1 0 0 1 1 --timedInteractionTimeoutMs 1000

Set a credential:

./out/chip-tool doorlock set-credential OperationType Credential CredentialData UserIndex UserStatus UserType node-id/group-id
./out/chip-tool doorlock set-credential 0 '{ "credentialType": 1, "credentialIndex": 1 }' "123456" 1 null null 1 1 --timedInteractionTimeoutMs 1000

Changing a credential:

./out/chip-tool doorlock set-credential OperationType Credential CredentialData UserIndex UserStatus UserType node-id/group-id
./out/chip-tool doorlock set-credential 2 '{ "credentialType": 1, "credentialIndex": 1 }' "123457" 1 null null 1 1 --timedInteractionTimeoutMs 1000

Get a user:

./out/chip-tool doorlock get-user UserIndex node-id/group-id
./out/chip-tool doorlock get-user 1 1 1

Unlock door:

./out/chip-tool doorlock unlock-door node-id/group-id
./out/chip-tool doorlock unlock-door 1 1 --timedInteractionTimeoutMs 1000

Lock door:

./out/chip-tool doorlock lock-door node-id/group-id
./out/chip-tool doorlock lock-door 1 1 --timedInteractionTimeoutMs 1000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants