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

Cannot use sample app to install matter device running on ESP32 #54

Closed
matdev opened this issue Dec 13, 2022 · 6 comments
Closed

Cannot use sample app to install matter device running on ESP32 #54

matdev opened this issue Dec 13, 2022 · 6 comments

Comments

@matdev
Copy link

matdev commented Dec 13, 2022

I've two Matter wifi devices running on ESP32 devkits (C3 and S3) and a Google Nest.

I can install and control both of them nicely using Google Home app.

But I cannot install them using the default sample app for matter, neither using the targetcommissioner variant.

Can you please let me know what to do ?
Where should I put a breakpoint to check whether the device is scanned by the app ?

@matdev matdev changed the title Cannot use sample to install matter device running on ESP32 Cannot use sample app to install matter device running on ESP32 Dec 13, 2022
@pierredelisle
Copy link
Contributor

Best would be to start from scratch and provide logs to figure out what is going on.

  • Reset the device under test (so it goes back to a commissionable state)
  • Reset the sample app
    • App Info > Storage & cache > Clear storage
  • Clear the logs of the phone
    • adb logcat -c
  • Start capturing the logs of the phone
    • adb logcat > logs.txt

On your phone, start the sample app and click on "+" to commission the device.

Once processing is complete (e.g. it fails commissioning), kill the "adb logcat" command above, and attach the logs file to this issue.

@matdev
Copy link
Author

matdev commented Dec 15, 2022

Actually after a proper reset I was able to commission the device and control it from the sample app !
It took about 1 minute to complete, is it normal ?

Also, is it possible to install a device that's already commissioned with Google Home app ?
or can we query Google Nest for already commissioned Matter devices and install them in sample app ?

@pierredelisle
Copy link
Contributor

It took about 1 minute to complete, is it normal ?

Yes, it should eventually be faster than that, but for now this could be expected.

Also, is it possible to install a device that's already commissioned with Google Home app ?

Yes. For that you have to use the "multi-admin" feature.

Settings > Google > Devices & sharing > Matter devices
Tap on the device
Tap on "Linked Matter apps & services"
Tap on "Link apps & services"
Tap on the sample app (GHSAFM) to trigger multi-admin to the sample app

@pierredelisle
Copy link
Contributor

Looks like this is being blocked by #60, which is being investigated.

@matdev
Copy link
Author

matdev commented Dec 20, 2022

Thanks for these infos Pierre.
I got the multi-admin feature working with default sample app after sharing the device with the GHSAFM-TC app.
Unable to do the initial commissioning with GHA so far.

@pierredelisle
Copy link
Contributor

I believe this is related to #61 which has been fixed.

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