Skip to content

Commit

Permalink
Update door lock with latest spec changes (#18280)
Browse files Browse the repository at this point in the history
* Update the door lock cluster XML definition with the latest spec changes

* Enable new attribute for the door lock cluster and update automated test

* Assign fabric index for credentials in the Door Lock

* Use attribute value instead of hard-coded one to verify the number of credentials per user
- Also allowed the door lock user to have multiple credentials of the same type

* Fix EFR32 door lock example

* Update auto-generated files
  • Loading branch information
Morozov-5F authored May 13, 2022
1 parent 4092033 commit 37fb44a
Show file tree
Hide file tree
Showing 52 changed files with 4,660 additions and 758 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,7 @@ server cluster DoorLock = 257 {
kDuplicate = 2;
kOccupied = 3;
kInvalidField = 133;
kResourceExhausted = 137;
kNotFound = 139;
}

Expand Down Expand Up @@ -1179,6 +1180,7 @@ server cluster DoorLock = 257 {
readonly attribute int8u maxRFIDCodeLength = 25;
readonly attribute int8u minRFIDCodeLength = 26;
readonly attribute DlCredentialRuleMask credentialRulesSupport = 27;
readonly attribute int8u numberOfCredentialsSupportedPerUser = 28;
attribute access(write: manage) char_string<3> language = 33;
attribute access(write: manage) int32u autoRelockTime = 35;
attribute access(write: manage) int8u soundVolume = 36;
Expand Down Expand Up @@ -1296,7 +1298,9 @@ server cluster DoorLock = 257 {
response struct GetCredentialStatusResponse = 37 {
boolean credentialExists = 0;
nullable INT16U userIndex = 1;
nullable INT16U nextCredentialIndex = 2;
nullable fabric_idx creatorFabricIndex = 2;
nullable fabric_idx lastModifiedFabricIndex = 3;
nullable INT16U nextCredentialIndex = 4;
}

timed command LockDoor(LockDoorRequest): DefaultSuccess = 0;
Expand Down Expand Up @@ -4199,6 +4203,7 @@ endpoint 1 {
ram attribute maxRFIDCodeLength default = 20;
ram attribute minRFIDCodeLength default = 10;
ram attribute credentialRulesSupport default = 1;
ram attribute numberOfCredentialsSupportedPerUser default = 5;
ram attribute language default = "en";
ram attribute autoRelockTime default = 60;
ram attribute soundVolume;
Expand Down
Loading

0 comments on commit 37fb44a

Please sign in to comment.