You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When only a manual pairing code is available, only the short discriminator (upper 4 bits of 12-bit discriminator) are available for discovery.
None of the Python API for commissioning over BLE support a version where the short discriminator is given.
Suggest:
Adapting the ConnectBLE to have some way of expression short discriminator (e.g. by setting high bit of discriminator)
Adapting CommissionThread/CommissionWifi to have shortDiscriminator keyword argument defaulting to None that causes disregarding the long discriminator argument, and uses short discriminator instead.
The text was updated successfully, but these errors were encountered:
- Plumbing was missing to pass down the short discriminator
- Passing `--manual-code 1234-567-8901` which only has short
discriminator, would always fail to find device over BLE
Fixesproject-chip#26907
This PR:
- Adds plumbing to detect short discriminator in Python controller
- Improves code-based setup in CHIPDeviceController to honor the
SetupDiscriminator value, including whether short/long.
Testing done:
- Ran `python3 src/python_testing/TC_SC_3_6.py --commissioning-method ble-wifi --wifi-ssid MySsid --wifi-passphrase Secret123 --manual-code 2168-374-4904 --storage-path kvs1`
- Before fix, discriminator always mismatched.
- After fix, commissioning succeeds.
- Unit tests and other integration tests still pass
When only a manual pairing code is available, only the short discriminator (upper 4 bits of 12-bit discriminator) are available for discovery.
None of the Python API for commissioning over BLE support a version where the short discriminator is given.
Suggest:
shortDiscriminator
keyword argument defaulting to None that causes disregarding the longdiscriminator
argument, and uses short discriminator instead.The text was updated successfully, but these errors were encountered: