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

How to create a new project for esp matter device #1186

Closed
GayathriHommi opened this issue Dec 3, 2024 · 7 comments
Closed

How to create a new project for esp matter device #1186

GayathriHommi opened this issue Dec 3, 2024 · 7 comments

Comments

@GayathriHommi
Copy link

Describe the question/query that you have
I want to use esp32h2, a temperature/humidity sensor and apple homepod as the border router. I created a sample project in ESP-IDF for I2C and added code for getting the temp/humidity values but now I want to integrate matter and I can't understand which platform should I use to develop matter project? Also how to generate QR code for a matter project. Can we generated the code by ourselves or should we get support from CSA or espressif?

@github-actions github-actions bot changed the title How to create a new esp matter device How to create a new esp matter device (CON-1449) Dec 3, 2024
@GayathriHommi GayathriHommi changed the title How to create a new esp matter device (CON-1449) How to create a new project for esp matter device Dec 3, 2024
@dhrishi
Copy link
Collaborator

dhrishi commented Dec 3, 2024

@GayathriHommi You can refer the sensors example that creates a temperature and a humidity sensor on two separate endpoints. Then just integrate the dirver related changes as per your hardware and you should be good to go.

For development, test data is used in the examples for the QR code along with test certs (Device Attestation Certificate). You can see/scan the QR code from here.

For production, please check the Production Considerations section.

@GayathriHommi
Copy link
Author

GayathriHommi commented Dec 3, 2024

@dhrishi, I have disabled WiFi chip station, build and flashed the sensor firmware into esp32h2.
image
I scanned
image
this QR code but connection is getting failed.
I'm scanning the code in ipad and I'm usiing homepod as border router. (I previously tested "Light code" with this setup and QR code. It worked fine)

@shubhamdp
Copy link
Contributor

Can you please try with attached sdkconfig.defaults.esp32h2.txt, please rename this to sdkconfig.defaults.esp32h2 and place it in /path/to/esp-matter/examples/sensors directory, and build the app

idf.py set-target esp32h2 build

I tested this with esp-thread-border-router and an H2 devkit and commissioning works.

@GayathriHommi
Copy link
Author

Thank you for the support, It is connecting now

@shubhamdp
Copy link
Contributor

@GayathriHommi we have added the above sdkconfig.defaults.h2 to the sensor app in 70eb531.

Please pull the latest changes and you won't need to maintain the separate copy.

@GayathriHommi
Copy link
Author

@shubhamdp Can I open this esp-matter/sensor code in ESP IDF? Previously I'm using visual Studio and I can't enter to debug mode (while building errors are prompted). I can only modify, build and flash in the vs terminal.

@shubhamdp
Copy link
Contributor

@GayathriHommi please check vscode-esp-idf-extension, it supports setting up esp-matter.

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

3 participants