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

Generated QR-code does not contain VendorId, ProductId? #1096

Open
olavt opened this issue Mar 3, 2025 · 0 comments
Open

Generated QR-code does not contain VendorId, ProductId? #1096

olavt opened this issue Mar 3, 2025 · 0 comments

Comments

@olavt
Copy link

olavt commented Mar 3, 2025

I'm not sure if this is causing any practical issues / problems, but I notice that the generated QR-code from using the "open_commissioning_window" command to the Python Matter Server is a bit different from the QR-code generated by the equivalent chip-tool command. I find it a bit strange, since it looks like the parameters sendt to the SDK looks identical.

When I send the "open_commissioning_window" specifying just the node_id as an argument, I get a QR-code like this:

MT:00000CQM007KJZ6LN10

If I parse it using the chip-tool command:

./chip-tool payload parse-setup-payload MT:00000CQM007KJZ6LN10, I get:

[1741031765.774] [12542:12542] [DL] ChipLinuxStorage::Init: Using KVS config file: /tmp/chip_tool_kvs
[1741031765.774] [12542:12542] [SPL] Parsing base38Representation: MT:00000CQM007KJZ6LN10
[1741031765.775] [12542:12542] [SPL] Version: 0
[1741031765.775] [12542:12542] [SPL] VendorID: 0
[1741031765.775] [12542:12542] [SPL] ProductID: 0
[1741031765.775] [12542:12542] [SPL] Custom flow: 0 (STANDARD)
[1741031765.775] [12542:12542] [SPL] Discovery Bitmask: 0x04 (On IP network)
[1741031765.775] [12542:12542] [SPL] Long discriminator: 1176 (0x498)
[1741031765.775] [12542:12542] [SPL] Passcode: 76672593

Here both VendorID and ProductID are zero.

Using the chip-tool command to open a commissioning window like this:

./chip-tool pairing open-commissioning-window 1 1 600 1000 3840

results in a QR-code like this:

MT:6FCJ1AFN00ETFH1TR10

If I parse it using the chip-tool command:

./chip-tool payload parse-setup-payload MT:00000CQM007KJZ6LN10, I get:

[1741032369.114] [12551:12551] [DL] ChipLinuxStorage::Init: Using KVS config file: /tmp/chip_tool_kvs
[1741032369.114] [12551:12551] [SPL] Parsing base38Representation: MT:6FCJ1AFN00ETFH1TR10
[1741032369.114] [12551:12551] [SPL] Version: 0
[1741032369.114] [12551:12551] [SPL] VendorID: 65521
[1741032369.114] [12551:12551] [SPL] ProductID: 32773
[1741032369.114] [12551:12551] [SPL] Custom flow: 0 (STANDARD)
[1741032369.114] [12551:12551] [SPL] Discovery Bitmask: 0x04 (On IP network)
[1741032369.114] [12551:12551] [SPL] Long discriminator: 3840 (0xf00)
[1741032369.114] [12551:12551] [SPL] Passcode: 81893170

Here the values for VendorID and ProductID are correct.

Why the difference?

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

1 participant