espressif / esp-matter

Espressif's SDK for Matter
Apache License 2.0
649 stars 153 forks source link

Why isn't there a unique pairing code and QR code for my device for commissioning (CON-1316) #1065

Closed pavel808 closed 5 days ago

pavel808 commented 3 weeks ago

Hi. I am working with the ESP32-C6 SOC. Initially I had a DevKitM-1. When commissioning via Matter / Thread, I use the same manual pairing code 34970112332 or QR code MT:Y.K9042C00KA0648G00 , which seems to work for on-boarding any device regardless.

I am now using a Seeed Studio XIAO ESP32C6 board : https://www.seeedstudio.com/Seeed-Studio-XIAO-ESP32C6-p-5884.html?srsltid=AfmBOorS5QEleHkbHI_z4ykdyN3D3ocP4Gp_UKGat5OMCPj75x7cxmD1

The same manual pairing code 34970112332 works with any of these devices.

I am a bit confused here. I thought that each Matter device comes with it its own unique codes for pairing / commissioning, based on vendor and product IDs ?

How can I ensure that each of my devices gets a unique pairing and QR code? Thanks in advance?

dhrishi commented 3 weeks ago

@pavel808 The default examples come with the same QR code as they are for development only. For production usecases, you are supposed to generate them using the esp-matter-mfg-tool and then flash the partition on the device. Please see the information here. Using this, you will be able to have a unique QR code for each device.

In general, you can also check the Production Considerations section

dhrishi commented 5 days ago

Closing as the question is answered