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

[ESP32] On-network commissioning does not work #15952

Closed
jadhavrohit924 opened this issue Mar 8, 2022 · 9 comments
Closed

[ESP32] On-network commissioning does not work #15952

jadhavrohit924 opened this issue Mar 8, 2022 · 9 comments

Comments

@jadhavrohit924
Copy link
Contributor

jadhavrohit924 commented Mar 8, 2022

Problem

  • After boot device is not connecting to provided AP.
    Through menuconfig
  • Changed Rendezvous mode to On-Network ( Demo --> Rendezvous Mode ).
  • Set ssid and password ( Example Connection Configuration ).
  • Also tried with full IP-based commissioning ( Component config --> CHIP Device Layer --> Commissioning options --> )

On commit 1f458a5

Proposed Solution

After boot device should connet to AP

@dhrishi
Copy link
Contributor

dhrishi commented Mar 8, 2022

@cecille Can you please check if we are missing something here?

@jadhavrohit924
Copy link
Contributor Author

Setting ssid and pass through ( Component config --> CHIP Device Layer --> WiFi Station Options ) is working.
And no need of full IP-based commissioning.

@dhrishi
Copy link
Contributor

dhrishi commented Mar 8, 2022

Thanks @jadhavrohit924 . @cecille @wqx6 Please confirm what should be used here?

@cecille
Copy link
Contributor

cecille commented Mar 8, 2022

I'm not sure what you're trying to do. If you're using on-network commissioning, the device should already be connected to the network before commissioning is attempted.

@dhrishi
Copy link
Contributor

dhrishi commented Mar 8, 2022

@cecille That is right. The question really is about configuration of SSID and passphrase through menuconfig. And there seem to be 2 choices:

i. idf.py menuconfig -> Example Connection Configuration (with this on-network commissioning does not work)

ii. idf.py menuconfig -> Component config --> CHIP Device Layer --> WiFi Station Options (with this on-network commissioning works)

If i. above is to be used then commissioning should be fixed and ii. removed

If ii. above is to be used then the fix is not required and i. should be removed

@cecille
Copy link
Contributor

cecille commented Mar 9, 2022

I've always used ii and it seems to work.

I also don't know what i was intended for. I think we need espressif folks to chime in on that one. I'm not sure who though, because I don't think that original option is from us. It's not in the chip Kconfig.

@chshu
Copy link
Contributor

chshu commented Mar 9, 2022

@dhrishi @cecille The i is the common Wi-Fi configuration used for all ESP examples, but it was not linked to Matter application properly. #15955 is fixing this issue.
The ii works well for on-network commissioning, since it's part of matter configuration.

Ideally, we should unify the two options. Let's just remove i from all Matter examples (instead of fixing it). @wqx6

@dhrishi
Copy link
Contributor

dhrishi commented Mar 9, 2022

@cecille I thought it was added by some Matter folks related to on-network commissioning and hence pulled you in. Sorry for the confusion :-)

Thanks a lot @chshu for the clarification.

@dhrishi
Copy link
Contributor

dhrishi commented Mar 11, 2022

#15955 is merged. Closing this

@dhrishi dhrishi closed this as completed Mar 11, 2022
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

4 participants