-
Notifications
You must be signed in to change notification settings - Fork 165
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
Menuconfig configuration for only on network pairing (CON-732) #605
Comments
For on network pairing your device needs to be on the wifi network. For that you can either use the cli on the device with command Once your device is connected to wifi you can use the on network pairing. |
A bit of explanation. I have an existing code base. The firmware already connects to wifi and I want to let a user connect my device using matter to home automation devices. I don't want to edit the current functionality since there are thousands of devices in the market and the code for wifi handling has been working fine for a few years. |
Thanks for the more explanation. Well in that case, here's the similar issue: #551. If you do not want to use the BLE for commissioning then you can disable For, wifi, call to |
I had to change some things in CHIP API since I work with esp-matter 1.0 but I managed to run something. Now I'm not sure if it works. I found somewhere that the logs can be ignored. Is this expected behaviour? I (9204) chip[DMG]: AccessControlCluster: initializing |
I managed to commission a new device, but I got an error from google home that the device was not certified. I guess it is expected and I need to use a chip tool to communicate with it. |
@damian-kurek-wizzdev Yes, it is expected. You need to add a Matter integration in the Google developer console account. See this for details: https://developers.home.google.com/matter/get-started |
@damian-kurek-wizzdev project-chip/connectedhomeip#29017 might help in your case. |
@shubhamdp I did something similar and managed to make it work (I guess). I will post a patch for connecthomeip when I'm sure that it works (patch for release 1.0). I think your changes will allow the same functionality. My only concern is that if a user configured matter to use WiFi AP via menuconfig and then created WiFi AP with a different ssid it won't work for him. I guess some additional checks would be required to check if the WiFi AP name on esp32 is the same as the name and password as one configured in menuconfig. Not sure if it explains my concerns. |
@dhrishi Thanks that helped a lot.
|
I can commission the device and everything works fine, but after I reboot, the device goes offline at Google Home and never returns. I can see that the matter server starts on esp32. Any idea @shubhamdp? |
Can you share the logs? |
@shubhamdp Hi. when will the connectedhomeip of esp-matter sdk be updated to project-chip/connectedhomeip#29017? |
Ignore error messages in comms and MatterThermostatDriver I added them for debuging. I set some values for matter server from esp. |
Release 1.0 patch I used to make it work |
We are in the process of updating the submodule, will be out soon. |
From log file, I see the device is already connected to wifi and advertising as commissionable device.
And with that you should be able to commission the device. If you are having problem with commissioning, try to check if your device is advertising on mdns using What you said earlier was, you are able to commission the device but unable control after reboot. I did not find any such case in the logs. But, in the patch, you have also commented the below lines which registers the event handler. Matter SDK has the state machine for managing WiFi, and some actions related to mdns does takes places in that event handler which is required. Try uncommenting them?
|
You are right uncommenting the IP/wifi handlers seems to fix it. I will fix the patch and post it again. |
Can this plan pass CSA testing and can this product be launched? (Users must use my app+blufi for network configuration before they can use Google home, Alexa, or Apple home for network pairing) |
Everything works fine and I can control my device using matter. Thanks for help @shubhamdp @dhrishi |
Describe the question/query that you have
I want to configure my existing project with matter to use only On-network pairing. I looked into [documentation] (https://docs.espressif.com/projects/esp-matter/en/latest/esp32/developing.html) and examples. I could not find any info on how to do it.
All my tries with disabling stuff in "CHIP device Layer" ended up in compilation errors
Could someone provide me with some links to examples or documentation that can help me with menuconfig configuration?
The text was updated successfully, but these errors were encountered: