Failed to commission the Matter device using official credentials.

I have already written the factory data to the device, and commissioning via Apple TV is successful.

It also works when using the --bypass-attestation-verifier 1 parameter on a Raspberry Pi.

However, it fails when using the --paa-trust-store-path /home/ubuntu/FH parameter. Below is the log from my device.

PAA.zip

Parents Reply Children
  • Hi 

    Yes, your assumption is correct. I did not write the CD into the device.

    However, I discovered another issue: when I generate the factory data using "generate_nrfconnect_chip_factory_data.py", the resulting QR code(build.txt) is different from the UART log.

    Only when I configure it through prj.conf(CONFIG_CHIP_DEVICE_VENDOR_ID,CONFIG_CHIP_DEVICE_PRODUCT_ID,CONFIG_CHIP_DEVICE_DISCRIMINATOR,CONFIG_CHIP_DEVICE_SPAKE2_PASSCODE) does the UART log match the build.txt.

  • Hello,

    Great, then we're progressing a bit.

    W.r.t the second issue you see:

    SunHuang said:

    owever, I discovered another issue: when I generate the factory data using "generate_nrfconnect_chip_factory_data.py", the resulting QR code(build.txt) is different from the UART log.

    Only when I configure it through prj.conf(CONFIG_CHIP_DEVICE_VENDOR_ID,CONFIG_CHIP_DEVICE_PRODUCT_ID,CONFIG_CHIP_DEVICE_DISCRIMINATOR,CONFIG_CHIP_DEVICE_SPAKE2_PASSCODE) does the UART log match the build.txt.

    A colleague of mine had some thoughts w.r.t this and were able to reproduce the issue and find a solution that worked for them to generate matching QR codes.

    If you dont have --include_passcode when generating the factory data, then the passcode won't be written to the device. Meaning that you either have to ommitt --passcode in the factory data (it is optional and you can use spake2_verifier instead), or you will have to build with --include_passcode instead. The latter should generate a qr code that matches the uart as well.

    If that does not work, then you can also use 

    ./chip-tool payload generate-qrcode [--existing-payload] [--discriminator] [--setup-pin-code] [--version] [--vendor-id] [--product-id] [--commissioning-mode] [--allow-invalid-payload] [--rendezvous] [--tlvBytes], for instance as 

    ./chip-tool payload generate-qrcode --discriminator 1234 --setup-pin-code 13243546 --vendor-id 0x123 --product-id 0x123

    and then attach the resulting QR code URL at the end of this url https://project-chip.github.io/connectedhomeip/qrcode.html?data=, which will result in https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT:GWQS0POG02A48B1OA00.

    The last suggestion requires some manual work, so I hope the first suggestion with --include_passcode works for you.

    Kind regards,
    Andreas

Related