blob: d3b65e48c5243568fc95e8cf940baadbdcd606dc [file] [log] [blame]
# 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: 3.2.2. [TC-DGSW-2.2] Event Functionality [{DUT_Sever}]
PICS:
- DGSW.S.E
- DGSW.S
config:
nodeId: 0x12344321
cluster: "Basic"
endpoint: 0
tests:
- label: "Commission DUT to TH"
verification: |
disabled: true
- label:
"DUT sends an event report to TH. TH reads a list of SoftwareFault
struct from DUT."
PICS: DGSW.S.E00
verification: |
Provision DUT and TH.
On Raspi platform To trigger the event give the below command by opening an another terminal in DUT (Below is the example command developed in all-clusters-app to generate the event, Vendor Dut should have capability to generate this event)
echo '{"Name":"SoftwareFault"}' > /tmp/chip_all_clusters_fifo-<PID> (PID of all-clusters-app by using command provided in note above)
On TH Send the below command
2. ./chip-tool softwarediagnostics read-event software-fault 1 0
Verify SoftwareFault Struct is listed that is Softwarefault, ID, Name, Fault recording should be present in struct and Priority should be Info in TH(chip-tool) Log
[1655375196.291424][35133:35138] CHIP:DMG: SuppressResponse = true,
[1655375196.291478][35133:35138] CHIP:DMG: InteractionModelRevision = 1
[1655375196.291527][35133:35138] CHIP:DMG: }
[1655375196.291829][35133:35138] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0034 Event 0x0000_0000
[1655375196.291882][35133:35138] CHIP:TOO: Event number: 6
[1655375196.291931][35133:35138] CHIP:TOO: Priority: Info
[1655375196.291978][35133:35138] CHIP:TOO: Timestamp: 6164894
[1655375196.292119][35133:35138] CHIP:TOO: SoftwareFault: {
[1655375196.292173][35133:35138] CHIP:TOO: SoftwareFault: {
[1655375196.292235][35133:35138] CHIP:TOO: Id: 2677
[1655375196.292287][35133:35138] CHIP:TOO: Name: 2677
[1655375196.292341][35133:35138] CHIP:TOO: FaultRecording: 546875204A756E2031362031303A32363A313420323032320A
[1655375196.292391][35133:35138] CHIP:TOO: }
[1655375196.292438][35133:35138] CHIP:TOO: }
disabled: true