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
In the door lock spec, credential indices are scoped to a particular credential type. So (RFID, index 1) and (PIN, index 1) are two different credential slots.
In the Linux lock app there is a single mLockCredentials array (verified by testing and code inspection). In the EFR32 and P6 and CYW30739 lock apps code inspection suggests the same thing is happening.
Concretely, if I run the following against the linux lock-app:
In step 2 I get a FAILURE response instead of the expected success response saying there is no such credential.
In step 3 I get an OCCUPIED status response instead of the credential being added, as it should be.
Proposed Solution
The credential indices need to be scoped to the credential type. A flat store can still be used, if the scoping is implemented in some way on top of it, or per-type stores.
The text was updated successfully, but these errors were encountered:
Problem
In the door lock spec, credential indices are scoped to a particular credential type. So (RFID, index 1) and (PIN, index 1) are two different credential slots.
In the Linux lock app there is a single
mLockCredentials
array (verified by testing and code inspection). In the EFR32 and P6 and CYW30739 lock apps code inspection suggests the same thing is happening.Concretely, if I run the following against the linux lock-app:
chip-tool doorlock set-credential 0 '{ "credentialType": 1, "credentialIndex": 1 }' "123456" null null null 17 1 --timedInteractionTimeoutMs 1000
chip-tool doorlock get-credential-status '{ "credentialType": 2, "credentialIndex": 1 }' 17 1
chip-tool doorlock set-credential 0 '{ "credentialType": 2, "credentialIndex": 1 }' "1234567890" null null null 17 1 --timedInteractionTimeoutMs 1000
Then:
FAILURE
response instead of the expected success response saying there is no such credential.OCCUPIED
status response instead of the credential being added, as it should be.Proposed Solution
The credential indices need to be scoped to the credential type. A flat store can still be used, if the scoping is implemented in some way on top of it, or per-type stores.
The text was updated successfully, but these errors were encountered: