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

Verify the test device on sample app #83

Closed
TadashiSatoo opened this issue Feb 16, 2023 · 5 comments
Closed

Verify the test device on sample app #83

TadashiSatoo opened this issue Feb 16, 2023 · 5 comments

Comments

@TadashiSatoo
Copy link

I installed GHSAFM-1.3.0default.
I try commissioning to nRF52840 DK bord.(Nordic) Device type is Lock.
Result is commissioning error on following.

E/SetupDeviceViewModel: Commissioning failed with state Attestation failure. [CONTEXT service_id=336 ]

JpHistory

What do modify on sample app code for success commissioning.
Google Home App is successful on DK bord.

I attached commissioning log.
commissioning.log

Thank you for your support.

@pierredelisle
Copy link
Contributor

I looked at the log file and do not see any logs related to GHSAFM. Are these logs for GHA instead?
At any rate, what certificate is used on the device? Attestation failed so there is an issue with the certificate.

2023-02-16 14:56:22.489 13598-13598/? E/SetupDeviceViewModel: Commissioning failed with state Attestation failure. [CONTEXT service_id=336 ]\
    m.eme: Device did not pass attestation (error(s)=[10, 5])\
        at m.enh.g(:com.google.android.gms.optional_home@230413065@23.04.13 (100400-0):36)\
        at m.enb.b(:com.google.android.gms.optional_home@230413065@23.04.13 (100400-0):0)\
        at m.nne.f(:com.google.android.gms.optional_home@230413065@23.04.13 (100400-0):4)\
        at m.nuo.run(:com.google.android.gms.optional_home@230413065@23.04.13 (100400-0):8)\
        at android.os.Handler.handleCallback(Handler.java:942)\
        at android.os.Handler.dispatchMessage(Handler.java:99)\
        at android.os.Looper.loopOnce(Looper.java:201)\
        at android.os.Looper.loop(Looper.java:288)\
        at android.app.ActivityThread.main(ActivityThread.java:7872)\
        at java.lang.reflect.Method.invoke(Native Method)\
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)\
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)\
2023-02-16 14:56:22.490 13598-13598/? E/SetupDeviceChimeraActiv: Showing error status. [CONTEXT service_id=336 ]\
    m.flw: Device did not pass attestation (error(s)=[10, 5])\
        at m.fta.a(:com.google.android.gms.optional_home@230413065@23.04.13 (100400-0):12)\
        at m.obf.a(:com.google.android.gms.optional_home@230413065@23.04.13 (100400-0):0)\
        at m.obe.a(:com.google.android.gms.optional_home@230413065@23.04.13 (100400-0):7)\
        at m.edo.b(:com.google.android.gms.optional_home@230413065@23.04.13 (100400-0):87)\
        at m.nne.f(:com.google.android.gms.optional_home@230413065@23.04.13 (100400-0):4)\
        at m.nuo.run(:com.google.android.gms.optional_home@230413065@23.04.13 (100400-0):7)\
        at android.os.Handler.handleCallback(Handler.java:942)\
        at android.os.Handler.dispatchMessage(Handler.java:99)\
        at android.os.Looper.loopOnce(Looper.java:201)\
        at android.os.Looper.loop(Looper.java:288)\
        at android.app.ActivityThread.main(ActivityThread.java:7872)\
        at java.lang.reflect.Method.invoke(Native Method)\
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)\
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)\
     Caused by: m.eme: Device did not pass attestation (error(s)=[10, 5])\
        at m.enh.g(:com.google.android.gms.optional_home@230413065@23.04.13 (100400-0):36)\
        at m.enb.b(:com.google.android.gms.optional_home@230413065@23.04.13 (100400-0):0)\
        at m.nne.f(:com.google.android.gms.optional_home@230413065@23.04.13 (100400-0):4)\
        at m.nuo.run(:com.google.android.gms.optional_home@230413065@23.04.13 (100400-0):8)\
        at android.os.Handler.handleCallback(Handler.java:942)\'a0\
        at android.os.Handler.dispatchMessage(Handler.java:99)\'a0\
        at android.os.Looper.loopOnce(Looper.java:201)\'a0\
        at android.os.Looper.loop(Looper.java:288)\'a0\
        at android.app.ActivityThread.main(ActivityThread.java:7872)\'a0\
        at java.lang.reflect.Method.invoke(Native Method)\'a0\
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)\'a0\
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)\'a0\

@TadashiSatoo
Copy link
Author

Thank you for reply.
Sorry,log was not enough.Re attached log,but result is same.
commissioning.log

I used not certification device.
Does sample app succeed only on certification devices?

I try GHA,it is successful on not certification device.
What changes should be made to the sample app for same as result on GHA?

@pierredelisle
Copy link
Contributor

If the device is not a "test device", then attestation will fail.
The Matter SDK now makes it possible to bypass attestation verification. I'll work on a PR to support bypassing attestation verification.

@pierredelisle
Copy link
Contributor

PR #92 has been merged and should fix this issue.

@TadashiSatoo
Copy link
Author

@pierredelisle
This problem is not fixed.
I commented following.
#92 (comment)

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