| # Copyright (c) 2021 Project CHIP Authors |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default |
| |
| name: |
| 116.3.3. [TC-DRLK-3.3] Verification for the Door Lock Events [DUT - Client] |
| |
| PICS: |
| - DRLK.C |
| |
| config: |
| nodeId: 0x12344321 |
| cluster: "Basic" |
| endpoint: 0 |
| |
| tests: |
| - label: "Note" |
| verification: | |
| For DUT as client test cases, Chip-tool command used below are an example to verify the functionality. For certification test, we expect DUT should have a capability or way to run the equivalent command. |
| disabled: true |
| |
| - label: "Note" |
| verification: | |
| "NOTE: https://github.com/project-chip/connectedhomeip/tree/master/examples/lock-app/linux#readme |
| Events to be executed as following |
| 1. Compile app using below command in connectedhomeip folder |
| a. ./scripts/run_in_build_env.sh ./scripts/build/build_examples.py --target linux-arm64-all-clusters-no-ble-asan-clang build |
| 2. Build respective app (lock-app) |
| 3. Commission DUT to TH |
| 4. Open 2nd terminal of DUT and provide the below command to obtain PID of DUT |
| ps -aef|grep lock-app |
| 5. Follow the Verification step below to generate the event in 2nd terminal of DUT " |
| |
| |
| "Pre-Conditions |
| |
| Before sending the Events proceed following step: |
| |
| 1. Send Set User Command and Get User for setting User. |
| |
| 2. Send Set Credential Command and Get Credential Status for setting PIN code. |
| |
| After sending Events with all condition proceed following step |
| |
| 1. Send Clear Credential and Clear User Command. |
| |
| " |
| disabled: true |
| |
| - label: "TH will initiate DoorLockAlarm Event (LockJammed scenario)" |
| PICS: DRLK.C.E00 |
| verification: | |
| To trigger the event give the below command by opening an another terminal in DUT (Below is the example command developed in lock-app to generate the event, Vendor Dut should have capability to generate this event) |
| |
| |
| Product maker needs to provide instructions for how to trigger the command on the DUT. For comparison, the DUT behavior for this test step can be simulated using chip-tool (when DUT is a commissioner) and TH as lock-app. |
| |
| To generate the event give below command |
| echo "{"Cmd": "SendDoorLockAlarm", "Params": { "EndpointId": 1, "AlarmCode": 0 } }" > /tmp/chip_lock_app_fifo-<PID> (PID of lock app) |
| |
| ./chip-tool doorlock read-event door-lock-alarm 1 1 |
| |
| Verify "DUT receives the DoorLockAlarm event " on the TH(Lock-app) Log: |
| |
| [1660933624.278924][18319:18319] CHIP:DMG: ReadRequestMessage = |
| [1660933624.278964][18319:18319] CHIP:DMG: { |
| [1660933624.278987][18319:18319] CHIP:DMG: EventPathIBs = |
| [1660933624.279023][18319:18319] CHIP:DMG: [ |
| [1660933624.279116][18319:18319] CHIP:DMG: EventPath = |
| [1660933624.279155][18319:18319] CHIP:DMG: { |
| [1660933624.279192][18319:18319] CHIP:DMG: Endpoint = 0x1, |
| [1660933624.279232][18319:18319] CHIP:DMG: Cluster = 0x101, |
| [1660933624.279271][18319:18319] CHIP:DMG: Event = 0x0, |
| [1660933624.279300][18319:18319] CHIP:DMG: }, |
| [1660933624.279337][18319:18319] CHIP:DMG: |
| [1660933624.279360][18319:18319] CHIP:DMG: ], |
| [1660933624.279397][18319:18319] CHIP:DMG: |
| [1660933624.279422][18319:18319] CHIP:DMG: isFabricFiltered = true, |
| [1660933624.279455][18319:18319] CHIP:DMG: InteractionModelRevision = 1 |
| [1660933624.279478][18319:18319] CHIP:DMG: }, |
| disabled: true |
| |
| - label: "DUT sends the Unlock Door command to the TH with valid PINCode" |
| PICS: DRLK.C.C01.Tx |
| verification: | |
| ./chip-tool doorlock set-user 0 1 xxx 6452 1 0 0 1 1 --timedInteractionTimeoutMs 1000 |
| |
| Verify "DUT receives the set-user response " on the TH(Lock-app) Log: |
| |
| [1658399917.774631][2474:2474] CHIP:DMG: CommandFields = |
| [1658399917.774662][2474:2474] CHIP:DMG: { |
| [1658399917.774694][2474:2474] CHIP:DMG: 0x0 = 0, |
| [1658399917.774727][2474:2474] CHIP:DMG: 0x1 = 1, |
| [1658399917.774763][2474:2474] CHIP:DMG: 0x2 = "xxx", |
| [1658399917.774799][2474:2474] CHIP:DMG: 0x3 = 6452, |
| [1658399917.774835][2474:2474] CHIP:DMG: 0x4 = 1, |
| [1658399917.774872][2474:2474] CHIP:DMG: 0x5 = 0, |
| [1658399917.774907][2474:2474] CHIP:DMG: 0x6 = 0, |
| [1658399917.774940][2474:2474] CHIP:DMG: }, |
| [1658399917.774968][2474:2474] CHIP:DMG: }, |
| [1658399917.775002][2474:2474] CHIP:DMG: |
| [1658399917.775025][2474:2474] CHIP:DMG: ], |
| [1658399917.775058][2474:2474] CHIP:DMG: |
| [1658399917.775082][2474:2474] CHIP:DMG: InteractionModelRevision = 1 |
| [1658399917.775107][2474:2474] CHIP:DMG: }, |
| [1658399917.775179][2474:2474] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0101 e=1 p=a |
| [1658399917.775241][2474:2474] CHIP:DMG: AccessControl: allowed |
| [1658399917.775273][2474:2474] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0101 Command=0x0000_001A |
| [1658399917.775327][2474:2474] CHIP:ZCL: [SetUser] Incoming command [endpointId=1,userIndex=1] |
| |
| ./chip-tool doorlock set-credential 0 "{ "credentialType" : 1 , "credentialIndex" : 1 }" 123456 1 null null 1 1 --timedInteractionTimeoutMs 1000 |
| |
| Verify "DUT receives the set-credential response " on the TH(Lock-app) Log: |
| |
| [1660931208.583139][18319:18319] CHIP:DMG: InvokeRequestMessage = |
| [1660931208.583184][18319:18319] CHIP:DMG: { |
| [1660931208.583226][18319:18319] CHIP:DMG: suppressResponse = false, |
| [1660931208.583275][18319:18319] CHIP:DMG: timedRequest = true, |
| [1660931208.583319][18319:18319] CHIP:DMG: InvokeRequests = |
| [1660931208.583381][18319:18319] CHIP:DMG: [ |
| [1660931208.583426][18319:18319] CHIP:DMG: CommandDataIB = |
| [1660931208.583475][18319:18319] CHIP:DMG: { |
| [1660931208.583522][18319:18319] CHIP:DMG: CommandPathIB = |
| [1660931208.583579][18319:18319] CHIP:DMG: { |
| [1660931208.583636][18319:18319] CHIP:DMG: EndpointId = 0x1, |
| [1660931208.583698][18319:18319] CHIP:DMG: ClusterId = 0x101, |
| [1660931208.583757][18319:18319] CHIP:DMG: CommandId = 0x22, |
| [1660931208.583813][18319:18319] CHIP:DMG: }, |
| [1660931208.583871][18319:18319] CHIP:DMG: |
| [1660931208.583923][18319:18319] CHIP:DMG: CommandFields = |
| [1660931208.583979][18319:18319] CHIP:DMG: { |
| [1660931208.584037][18319:18319] CHIP:DMG: 0x0 = 0, |
| [1660931208.584100][18319:18319] CHIP:DMG: 0x1 = |
| [1660931208.584158][18319:18319] CHIP:DMG: { |
| [1660931208.584220][18319:18319] CHIP:DMG: 0x0 = 1, |
| [1660931208.584289][18319:18319] CHIP:DMG: 0x1 = 1, |
| [1660931208.584353][18319:18319] CHIP:DMG: }, |
| [1660931208.584413][18319:18319] CHIP:DMG: 0x2 = [ |
| [1660931208.584473][18319:18319] CHIP:DMG: 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, |
| [1660931208.584540][18319:18319] CHIP:DMG: ] (6 bytes) |
| [1660931208.584596][18319:18319] CHIP:DMG: 0x3 = 1, |
| [1660931208.584662][18319:18319] CHIP:DMG: 0x4 = NULL |
| [1660931208.584722][18319:18319] CHIP:DMG: 0x5 = NULL |
| [1660931208.584781][18319:18319] CHIP:DMG: }, |
| [1660931208.584834][18319:18319] CHIP:DMG: }, |
| [1660931208.584895][18319:18319] CHIP:DMG: |
| [1660931208.584938][18319:18319] CHIP:DMG: ], |
| [1660931208.584999][18319:18319] CHIP:DMG: |
| [1660931208.585043][18319:18319] CHIP:DMG: InteractionModelRevision = 1 |
| [1660931208.585086][18319:18319] CHIP:DMG: }, |
| |
| |
| |
| ./chip-tool doorlock unlock-door 1 1 --timedInteractionTimeoutMs 1000 --PinCode 123456 |
| |
| Verify "DUT receives the unlock-door response " on the TH(Lock-app) Log: |
| |
| [1658143429.670361][3057:3062] CHIP:DMG: }, |
| [1658143429.670411][3057:3062] CHIP:DMG: |
| [1658143429.670451][3057:3062] CHIP:DMG: StatusIB = |
| [1658143429.670498][3057:3062] CHIP:DMG: { |
| [1658143429.670548][3057:3062] CHIP:DMG: status = 0x00 (SUCCESS), |
| [1658143429.670593][3057:3062] CHIP:DMG: }, |
| [1658143429.670637][3057:3062] CHIP:DMG: |
| [1658143429.670681][3057:3062] CHIP:DMG: }, |
| [1658143429.670725][3057:3062] CHIP:DMG: |
| [1658143429.670759][3057:3062] CHIP:DMG: }, |
| [1658143429.670799][3057:3062] CHIP:DMG: |
| [1658143429.670829][3057:3062] CHIP:DMG: ], |
| [1658143429.670867][3057:3062] CHIP:DMG: |
| [1658143429.670896][3057:3062] CHIP:DMG: InteractionModelRevision = 1 |
| [1658143429.670926][3057:3062] CHIP:DMG: }, |
| |
| DUT/ChipTool log: |
| |
| [1658400115.693300][2474:2474] CHIP:DMG: CommandDataIB = |
| [1658400115.693328][2474:2474] CHIP:DMG: { |
| [1658400115.693353][2474:2474] CHIP:DMG: CommandPathIB = |
| [1658400115.693387][2474:2474] CHIP:DMG: { |
| [1658400115.693421][2474:2474] CHIP:DMG: EndpointId = 0x1, |
| [1658400115.693456][2474:2474] CHIP:DMG: ClusterId = 0x101, |
| [1658400115.693489][2474:2474] CHIP:DMG: CommandId = 0x1, |
| [1658400115.693519][2474:2474] CHIP:DMG: }, |
| [1658400115.693552][2474:2474] CHIP:DMG: |
| [1658400115.693579][2474:2474] CHIP:DMG: CommandFields = |
| [1658400115.693609][2474:2474] CHIP:DMG: { |
| [1658400115.693641][2474:2474] CHIP:DMG: 0x0 = [ |
| [1658400115.693675][2474:2474] CHIP:DMG: 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, |
| [1658400115.693709][2474:2474] CHIP:DMG: ] |
| [1658400115.693742][2474:2474] CHIP:DMG: }, |
| [1658400115.693771][2474:2474] CHIP:DMG: }, |
| [1658400115.693801][2474:2474] CHIP:DMG: |
| [1658400115.693825][2474:2474] CHIP:DMG: ], |
| [1658400115.693855][2474:2474] CHIP:DMG: |
| [1658400115.693879][2474:2474] CHIP:DMG: InteractionModelRevision = 1 |
| [1658400115.693902][2474:2474] CHIP:DMG: }, |
| [1658400115.693971][2474:2474] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0101 e=1 p=o |
| [1658400115.694008][2474:2474] CHIP:DMG: AccessControl: allowed |
| [1658400115.694035][2474:2474] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0101 Command=0x0000_0001 |
| [1658400115.694070][2474:2474] CHIP:ZCL: Received command: UnlockDoor |
| [1658400115.694114][2474:2474] CHIP:ZCL: Lock App: LockEndpoint::GetUser [endpoint=1,userIndex=1] |
| [1658400115.694139][2474:2474] CHIP:ZCL: Found occupied user [endpoint=1,adjustedIndex=0,name="xxx",credentialsCount=1,uniqueId=1934,type=0,credentialRule=0,createdBy=1,lastModifiedBy=1] |
| [1658400115.694212][2474:2474] CHIP:ZCL: Lock App: LockEndpoint::GetCredential [endpoint=1,credentialIndex=1,credentialType=1] |
| [1658400115.694240][2474:2474] CHIP:ZCL: Found occupied credential [endpoint=1,index=1,type=1,dataSize=6,createdBy=1,modifiedBy=1] |
| [1658400115.694266][2474:2474] CHIP:ZCL: Lock App: specified PIN code was found in the database, setting door lock state to "Unlocked" [endpointId=1] |
| disabled: true |
| |
| - label: "TH initiates DoorStateChange event with Doorstate set to DoorOpen" |
| PICS: DRLK.C.F05 && DRLK.C.E01 |
| verification: | |
| To trigger the event give below command in another terminal of DUT |
| echo "{"Cmd": "SetDoorState", "Params": { "EndpointId": 1, "DoorState": 1 } }" > /tmp/chip_lock_app_fifo-<PID> (PID of lock-app) |
| |
| ./chip-tool doorlock read-event door-state-change 1 1 |
| |
| Verify "DUT receives DoorStateChange Event" on the TH(Lock-app) Log: |
| |
| [1660933582.187791][18319:18319] CHIP:DMG: ReadRequestMessage = |
| [1660933582.187819][18319:18319] CHIP:DMG: { |
| [1660933582.187851][18319:18319] CHIP:DMG: EventPathIBs = |
| [1660933582.187877][18319:18319] CHIP:DMG: [ |
| [1660933582.187901][18319:18319] CHIP:DMG: EventPath = |
| [1660933582.187937][18319:18319] CHIP:DMG: { |
| [1660933582.187966][18319:18319] CHIP:DMG: Endpoint = 0x1, |
| [1660933582.188006][18319:18319] CHIP:DMG: Cluster = 0x101, |
| [1660933582.188035][18319:18319] CHIP:DMG: Event = 0x1, |
| [1660933582.188069][18319:18319] CHIP:DMG: }, |
| [1660933582.188100][18319:18319] CHIP:DMG: |
| [1660933582.188132][18319:18319] CHIP:DMG: ], |
| [1660933582.188159][18319:18319] CHIP:DMG: |
| [1660933582.188193][18319:18319] CHIP:DMG: isFabricFiltered = true, |
| [1660933582.188218][18319:18319] CHIP:DMG: InteractionModelRevision = 1 |
| [1660933582.188250][18319:18319] CHIP:DMG: }, |
| [1660933582.188328][18319:18319] CHIP:DMG: IM RH moving to [GeneratingReports] |
| disabled: true |
| |
| - label: "DUT sends the Lock Door command to the TH with valid PINCode" |
| PICS: DRLK.C.C00.Tx |
| verification: | |
| ./chip-tool doorlock lock-door 1 1 --timedInteractionTimeoutMs 1000 --PinCode 123456 |
| |
| Verify "DUT receives lock Door response" on the TH(Lock-app) Log: |
| |
| |
| [1658400315.379482][2474:2474] CHIP:DMG: CommandPathIB = |
| [1658400315.379524][2474:2474] CHIP:DMG: { |
| [1658400315.379559][2474:2474] CHIP:DMG: EndpointId = 0x1, |
| [1658400315.379608][2474:2474] CHIP:DMG: ClusterId = 0x101, |
| [1658400315.379650][2474:2474] CHIP:DMG: CommandId = 0x0, |
| [1658400315.379694][2474:2474] CHIP:DMG: }, |
| [1658400315.379734][2474:2474] CHIP:DMG: |
| [1658400315.379769][2474:2474] CHIP:DMG: CommandFields = |
| [1658400315.379807][2474:2474] CHIP:DMG: { |
| [1658400315.379845][2474:2474] CHIP:DMG: 0x0 = [ |
| [1658400315.379886][2474:2474] CHIP:DMG: 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, |
| [1658400315.379931][2474:2474] CHIP:DMG: ] |
| [1658400315.379976][2474:2474] CHIP:DMG: }, |
| [1658400315.380010][2474:2474] CHIP:DMG: }, |
| [1658400315.380049][2474:2474] CHIP:DMG: |
| [1658400315.380079][2474:2474] CHIP:DMG: ], |
| [1658400315.380116][2474:2474] CHIP:DMG: |
| [1658400315.380145][2474:2474] CHIP:DMG: InteractionModelRevision = 1 |
| [1658400315.380174][2474:2474] CHIP:DMG: }, |
| [1658400315.380251][2474:2474] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0101 e=1 p=o |
| [1658400315.380293][2474:2474] CHIP:DMG: AccessControl: allowed |
| [1658400315.380327][2474:2474] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0101 Command=0x0000_0000 |
| [1658400315.380369][2474:2474] CHIP:ZCL: Received command: LockDoor |
| [1658400315.380419][2474:2474] CHIP:ZCL: Lock App: LockEndpoint::GetUser [endpoint=1,userIndex=1] |
| [1658400315.380449][2474:2474] CHIP:ZCL: Found occupied user [endpoint=1,adjustedIndex=0,name="xxx",credentialsCount=1,uniqueId=1934,type=0,credentialRule=0,createdBy=1,lastModifiedBy=1] |
| [1658400315.380479][2474:2474] CHIP:ZCL: Lock App: LockEndpoint::GetCredential [endpoint=1,credentialIndex=1,credentialType=1] |
| [1658400315.380506][2474:2474] CHIP:ZCL: Found occupied credential [endpoint=1,index=1,type=1,dataSize=6,createdBy=1,modifiedBy=1] |
| [1658400315.380537][2474:2474] CHIP:ZCL: Lock App: specified PIN code was found in the database, setting door lock state to "Locked" [endpointId=1] |
| disabled: true |
| |
| - label: |
| "TH will initiate LockOperation event with LockOperationType to Lock" |
| PICS: DRLK.C.E02 |
| verification: | |
| ./chip-tool doorlock read-event lock-operation 1 1 |
| |
| |
| Verify "DUT receives LockOperation event response" on the TH(Lock-app) Log: |
| |
| |
| [1658400639.617399][3227:3227] CHIP:IM: Received Read request |
| [1658400639.617491][3227:3227] CHIP:DMG: ReadRequestMessage = |
| [1658400639.617535][3227:3227] CHIP:DMG: { |
| [1658400639.617561][3227:3227] CHIP:DMG: EventPathIBs = |
| [1658400639.617592][3227:3227] CHIP:DMG: [ |
| [1658400639.617632][3227:3227] CHIP:DMG: EventPath = |
| [1658400639.617669][3227:3227] CHIP:DMG: { |
| [1658400639.617716][3227:3227] CHIP:DMG: Endpoint = 0x1, |
| [1658400639.617765][3227:3227] CHIP:DMG: Cluster = 0x101, |
| [1658400639.617801][3227:3227] CHIP:DMG: Event = 0x2, |
| [1658400639.617843][3227:3227] CHIP:DMG: }, |
| [1658400639.617878][3227:3227] CHIP:DMG: |
| [1658400639.617916][3227:3227] CHIP:DMG: ], |
| [1658400639.617949][3227:3227] CHIP:DMG: |
| [1658400639.617988][3227:3227] CHIP:DMG: isFabricFiltered = true, |
| [1658400639.618016][3227:3227] CHIP:DMG: InteractionModelRevision = 1 |
| [1658400639.618055][3227:3227] CHIP:DMG: }, |
| [1658400639.618145][3227:3227] CHIP:DMG: IM RH moving to [GeneratingReports] |
| [1658400639.618271][3227:3227] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 |
| [1658400639.618520][3227:3227] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0101 e=1 p=v |
| [1658400639.618573][3227:3227] CHIP:DMG: AccessControl: allowed |
| [1658400639.618651][3227:3227] CHIP:DMG: Fetched 1 events |
| disabled: true |
| |
| - label: "DUT sends the Unlock Door command to the TH with Invalid PINCode" |
| PICS: DRLK.C.C01.Tx |
| verification: | |
| ./chip-tool doorlock unlock-door 1 1 --timedInteractionTimeoutMs 1000 --PinCode 12345678 |
| |
| Verify "DUT receives Unlock Door command response" on the TH(Lock-app) Log: |
| |
| |
| [1658400708.187116][3227:3227] CHIP:DMG: CommandPathIB = |
| [1658400708.187205][3227:3227] CHIP:DMG: { |
| [1658400708.187337][3227:3227] CHIP:DMG: EndpointId = 0x1, |
| [1658400708.187439][3227:3227] CHIP:DMG: ClusterId = 0x101, |
| [1658400708.187540][3227:3227] CHIP:DMG: CommandId = 0x1, |
| [1658400708.187637][3227:3227] CHIP:DMG: }, |
| [1658400708.187729][3227:3227] CHIP:DMG: |
| [1658400708.187806][3227:3227] CHIP:DMG: CommandFields = |
| [1658400708.187894][3227:3227] CHIP:DMG: { |
| [1658400708.187983][3227:3227] CHIP:DMG: 0x0 = [ |
| [1658400708.188083][3227:3227] CHIP:DMG: 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, |
| [1658400708.188205][3227:3227] CHIP:DMG: ] |
| [1658400708.188311][3227:3227] CHIP:DMG: }, |
| [1658400708.188400][3227:3227] CHIP:DMG: }, |
| [1658400708.188481][3227:3227] CHIP:DMG: |
| [1658400708.188544][3227:3227] CHIP:DMG: ], |
| [1658400708.188615][3227:3227] CHIP:DMG: |
| [1658400708.188672][3227:3227] CHIP:DMG: InteractionModelRevision = 1 |
| [1658400708.188743][3227:3227] CHIP:DMG: }, |
| [1658400708.188836][3227:3227] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0101 e=1 p=o |
| [1658400708.188891][3227:3227] CHIP:DMG: AccessControl: allowed |
| disabled: true |
| |
| - label: |
| "TH will initiate LockOperationError event by causing Lock error using |
| invalid PIN" |
| PICS: DRLK.C.E03 |
| verification: | |
| ./chip-tool doorlock read-event lock-operation-error 1 1 |
| |
| Verify "DUT receives LockOperationError event response" on the TH(Lock-app) Log: |
| |
| |
| [1658400788.866836][3227:3227] CHIP:IM: Received Read request |
| [1658400788.866927][3227:3227] CHIP:DMG: ReadRequestMessage = |
| [1658400788.866961][3227:3227] CHIP:DMG: { |
| [1658400788.867001][3227:3227] CHIP:DMG: EventPathIBs = |
| [1658400788.867033][3227:3227] CHIP:DMG: [ |
| [1658400788.867059][3227:3227] CHIP:DMG: EventPath = |
| [1658400788.867099][3227:3227] CHIP:DMG: { |
| [1658400788.867130][3227:3227] CHIP:DMG: Endpoint = 0x1, |
| [1658400788.867171][3227:3227] CHIP:DMG: Cluster = 0x101, |
| [1658400788.867205][3227:3227] CHIP:DMG: Event = 0x3, |
| [1658400788.867271][3227:3227] CHIP:DMG: }, |
| [1658400788.867304][3227:3227] CHIP:DMG: |
| [1658400788.867330][3227:3227] CHIP:DMG: ], |
| [1658400788.867359][3227:3227] CHIP:DMG: |
| [1658400788.867385][3227:3227] CHIP:DMG: isFabricFiltered = true, |
| [1658400788.867414][3227:3227] CHIP:DMG: InteractionModelRevision = 1 |
| [1658400788.867439][3227:3227] CHIP:DMG: }, |
| [1658400788.867515][3227:3227] CHIP:DMG: IM RH moving to [GeneratingReports] |
| [1658400788.867623][3227:3227] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 |
| [1658400788.867883][3227:3227] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0101 e=1 p=v |
| [1658400788.867931][3227:3227] CHIP:DMG: AccessControl: allowed |
| [1658400788.868004][3227:3227] CHIP:DMG: Fetched 1 events |
| disabled: true |
| |
| - label: "DUT sends Set User command to TH" |
| PICS: DRLK.C.F08 && DRLK.C.C1a.Tx |
| verification: | |
| ./chip-tool doorlock set-user 0 3 xxx 6452 1 0 0 1 1 --timedInteractionTimeoutMs 1000 |
| |
| Verify "DUT receives Set User command response" on the TH(Lock-app) Log: |
| |
| |
| [1658400855.689218][3227:3227] CHIP:DMG: CommandPathIB = |
| [1658400855.689259][3227:3227] CHIP:DMG: { |
| [1658400855.689302][3227:3227] CHIP:DMG: EndpointId = 0x1, |
| [1658400855.689347][3227:3227] CHIP:DMG: ClusterId = 0x101, |
| [1658400855.689390][3227:3227] CHIP:DMG: CommandId = 0x1a, |
| [1658400855.689435][3227:3227] CHIP:DMG: }, |
| [1658400855.689479][3227:3227] CHIP:DMG: |
| [1658400855.689514][3227:3227] CHIP:DMG: CommandFields = |
| [1658400855.689554][3227:3227] CHIP:DMG: { |
| [1658400855.689597][3227:3227] CHIP:DMG: 0x0 = 0, |
| [1658400855.689640][3227:3227] CHIP:DMG: 0x1 = 3, |
| [1658400855.689686][3227:3227] CHIP:DMG: 0x2 = "xxx", |
| [1658400855.689734][3227:3227] CHIP:DMG: 0x3 = 6452, |
| [1658400855.689781][3227:3227] CHIP:DMG: 0x4 = 1, |
| [1658400855.689829][3227:3227] CHIP:DMG: 0x5 = 0, |
| [1658400855.689872][3227:3227] CHIP:DMG: 0x6 = 0, |
| [1658400855.689915][3227:3227] CHIP:DMG: }, |
| [1658400855.689954][3227:3227] CHIP:DMG: }, |
| [1658400855.689996][3227:3227] CHIP:DMG: |
| [1658400855.690027][3227:3227] CHIP:DMG: ], |
| [1658400855.690071][3227:3227] CHIP:DMG: |
| [1658400855.690102][3227:3227] CHIP:DMG: InteractionModelRevision = 1 |
| [1658400855.690133][3227:3227] CHIP:DMG: }, |
| [1658400855.690221][3227:3227] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0101 e=1 p=a |
| [1658400855.690267][3227:3227] CHIP:DMG: AccessControl: allowed |
| [1658400855.690302][3227:3227] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0101 Command=0x0000_001A |
| [1658400855.690367][3227:3227] CHIP:ZCL: [SetUser] Incoming command [endpointId=1,userIndex=3] |
| [1658400855.690424][3227:3227] CHIP:ZCL: Lock App: LockEndpoint::GetUser [endpoint=1,userIndex=3] |
| [1658400855.690455][3227:3227] CHIP:ZCL: Found unoccupied user [endpoint=1,adjustedIndex=2] |
| [1658400855.690485][3227:3227] CHIP:ZCL: Lock App: LockEndpoint::SetUser [endpoint=1,userIndex=3,creator=1,modifier=1,userName="xxx",uniqueId=1934,userStatus=1,userType=0,credentialRule=0,credentials=(nil),totalCredentials=0] |
| [1658400855.690519][3227:3227] CHIP:ZCL: Successfully set the user [mEndpointId=1,index=3,adjustedIndex=2] |
| [1658400855.690547][3227:3227] CHIP:ZCL: [createUser] User created [endpointId=1,creatorFabricId=1,userIndex=3,userName="xxx",userUniqueId=0x1934,userStatus=1,userType=0,credentialRule=0,totalCredentials=0] |
| disabled: true |
| |
| - label: |
| "TH initiates LockUserChange event by adding the UserIndex using Set |
| User command" |
| PICS: DRLK.C.E04 |
| verification: | |
| ./chip-tool doorlock read-event lock-user-change 1 1 |
| |
| Verify "DUT receives read-event lock-user-change response" on the TH(Lock-app) Log: |
| |
| [1658400921.173789][3227:3227] CHIP:IM: Received Read request |
| [1658400921.173921][3227:3227] CHIP:DMG: ReadRequestMessage = |
| [1658400921.173978][3227:3227] CHIP:DMG: { |
| [1658400921.174015][3227:3227] CHIP:DMG: EventPathIBs = |
| [1658400921.174078][3227:3227] CHIP:DMG: [ |
| [1658400921.174110][3227:3227] CHIP:DMG: EventPath = |
| [1658400921.174164][3227:3227] CHIP:DMG: { |
| [1658400921.174214][3227:3227] CHIP:DMG: Endpoint = 0x1, |
| [1658400921.174257][3227:3227] CHIP:DMG: Cluster = 0x101, |
| [1658400921.174308][3227:3227] CHIP:DMG: Event = 0x4, |
| [1658400921.174351][3227:3227] CHIP:DMG: }, |
| [1658400921.174402][3227:3227] CHIP:DMG: |
| [1658400921.174436][3227:3227] CHIP:DMG: ], |
| [1658400921.174486][3227:3227] CHIP:DMG: |
| [1658400921.174519][3227:3227] CHIP:DMG: isFabricFiltered = true, |
| [1658400921.174565][3227:3227] CHIP:DMG: InteractionModelRevision = 1 |
| [1658400921.174596][3227:3227] CHIP:DMG: }, |
| [1658400921.174712][3227:3227] CHIP:DMG: IM RH moving to [GeneratingReports] |
| [1658400921.174844][3227:3227] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 |
| [1658400921.175067][3227:3227] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0101 e=1 p=v |
| [1658400921.175116][3227:3227] CHIP:DMG: AccessControl: allowed |
| [1658400921.175254][3227:3227] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0101 e=1 p=v |
| [1658400921.175305][3227:3227] CHIP:DMG: AccessControl: allowed |
| [1658400921.175494][3227:3227] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0101 e=1 p=v |
| [1658400921.175531][3227:3227] CHIP:DMG: AccessControl: allowed |
| [1658400921.175603][3227:3227] CHIP:DMG: Fetched 3 events |
| disabled: true |
| |
| - label: "" |
| verification: | |
| ./chip-tool doorlock clear-credential "{ "credentialType" : 1 , "credentialIndex" : 1 }" 1 1 --timedInteractionTimeoutMs 1000 |
| |
| Verify " DUT sends success response" on the TH(Lock-app) Log: |
| |
| [1657115878.582559][8804:8804] CHIP:DMG: InvokeRequestMessage = |
| [1657115878.582642][8804:8804] CHIP:DMG: { |
| [1657115878.582698][8804:8804] CHIP:DMG: suppressResponse = false, |
| [1657115878.582787][8804:8804] CHIP:DMG: timedRequest = true, |
| [1657115878.582848][8804:8804] CHIP:DMG: InvokeRequests = |
| [1657115878.582948][8804:8804] CHIP:DMG: [ |
| [1657115878.583009][8804:8804] CHIP:DMG: CommandDataIB = |
| [1657115878.583098][8804:8804] CHIP:DMG: { |
| [1657115878.583161][8804:8804] CHIP:DMG: CommandPathIB = |
| [1657115878.583265][8804:8804] CHIP:DMG: { |
| [1657115878.583366][8804:8804] CHIP:DMG: EndpointId = 0x1, |
| [1657115878.583607][8804:8804] CHIP:DMG: ClusterId = 0x101, |
| [1657115878.583724][8804:8804] CHIP:DMG: CommandId = 0x26, |
| [1657115878.583802][8804:8804] CHIP:DMG: }, |
| [1657115878.583906][8804:8804] CHIP:DMG: |
| [1657115878.583972][8804:8804] CHIP:DMG: CommandFields = |
| [1657115878.584068][8804:8804] CHIP:DMG: { |
| [1657115878.584155][8804:8804] CHIP:DMG: 0x0 = |
| [1657115878.584234][8804:8804] CHIP:DMG: { |
| [1657115878.584335][8804:8804] CHIP:DMG: 0x0 = 1, |
| [1657115878.584442][8804:8804] CHIP:DMG: 0x1 = 1, |
| [1657115878.584527][8804:8804] CHIP:DMG: }, |
| [1657115878.584624][8804:8804] CHIP:DMG: }, |
| [1657115878.584695][8804:8804] CHIP:DMG: }, |
| [1657115878.584795][8804:8804] CHIP:DMG: |
| [1657115878.584890][8804:8804] CHIP:DMG: ], |
| [1657115878.584994][8804:8804] CHIP:DMG: |
| [1657115878.585054][8804:8804] CHIP:DMG: InteractionModelRevision = 1 |
| [1657115878.585131][8804:8804] CHIP:DMG: }, |
| [1657115878.585305][8804:8804] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0101 e=1 p=a |
| [1657115878.585416][8804:8804] CHIP:DMG: AccessControl: allowed |
| |
| ./chip-tool doorlock clear-user 1 1 1 --timedInteractionTimeoutMs 1000 |
| |
| Verify " DUT sends success response" on the TH(Lock-app) Log: |
| |
| [1658399465.849095][2474:2474] CHIP:DMG: CommandPathIB = |
| [1658399465.849133][2474:2474] CHIP:DMG: { |
| [1658399465.849169][2474:2474] CHIP:DMG: EndpointId = 0x1, |
| [1658399465.849208][2474:2474] CHIP:DMG: ClusterId = 0x101, |
| [1658399465.849245][2474:2474] CHIP:DMG: CommandId = 0x1d, |
| [1658399465.849279][2474:2474] CHIP:DMG: }, |
| [1658399465.849316][2474:2474] CHIP:DMG: |
| [1658399465.849348][2474:2474] CHIP:DMG: CommandFields = |
| [1658399465.849386][2474:2474] CHIP:DMG: { |
| [1658399465.849422][2474:2474] CHIP:DMG: 0x0 = 2, |
| [1658399465.849459][2474:2474] CHIP:DMG: }, |
| [1658399465.849491][2474:2474] CHIP:DMG: }, |
| [1658399465.849528][2474:2474] CHIP:DMG: |
| [1658399465.849555][2474:2474] CHIP:DMG: ], |
| [1658399465.849589][2474:2474] CHIP:DMG: |
| [1658399465.849616][2474:2474] CHIP:DMG: InteractionModelRevision = 1 |
| [1658399465.849643][2474:2474] CHIP:DMG: }, |
| [1658399465.849717][2474:2474] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0101 e=1 p=a |
| [1658399465.849757][2474:2474] CHIP:DMG: AccessControl: allowed |
| disabled: true |