Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-sve][TC-DRLK-2.5][TC-DRLK-2.7] Set-week-day-schedule and clear-week-day-schedule command returns NOT_FOUND #19919

Closed
mamayorg opened this issue Jun 23, 2022 · 5 comments
Assignees

Comments

@mamayorg
Copy link

mamayorg commented Jun 23, 2022

Problem
when using set-week-day-schedule or clear-week-day-schedule commands, the return response is NOT_FOUND.

Commands
Commands used:
./chip-tool doorlock read number-of-week-day-schedules-supported-per-user 1 1
./chip-tool doorlock read number-of-total-users-supported 1 1
./chip-tool doorlock set-week-day-schedule 1 1 2 15 45 16 55 1 1 (NOT_FOUND)
./chip-tool doorlock get-week-day-schedule 1 1 1 1
./chip-tool doorlock set-week-day-schedule 0 1 7 15 45 16 55 1 1
./chip-tool doorlock get-week-day-schedule 0 1 1 1
./chip-tool doorlock clear-week-day-schedule 1 1 1 1 (NOT_FOUND)

  • expected behavior: response SUCCESS.
  • actual behavior: returns response NOT_FOUND. get-week-day-schedule missing startHour, endHour, startMinute, endMinute as well as dayMask

Commit
commit id: 1e3f120
Platform: EFR32
Network: Thread

TC_DRLK_2.5_.txt
TC_DRLK_2.5_step#7.txt
TC_DRLK_2.5_step#3.txt

Reference
#19622

@bzbarsky-apple
Copy link
Contributor

@mamayorg How exactly is this different from #19622, which is referenced above and seems like exactly the same issue?

@Survensa
Copy link

Survensa commented Jun 29, 2022

@mamayorg & @bzbarsky-apple

I am not reproducing this issue.

  • Commit used : 81c7f2a
  • Chip-tool : RPI
  • DUT : Door lock app
  • Network : IP (ethernet)

Steps I followed for TC-DRLK-2.5 :

Step 1 : As per pre-condition created new user
./chip-tool doorlock set-user 0 1 xxx 6452 1 0 0 1 1 --timedInteractionTimeoutMs 1000

[1656501301.674438][26350:26355] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0101 Command=0x0000_001A Status=0x0

Step 2 : ./chip-tool doorlock read number-of-week-day-schedules-supported-per-user 1 1

[1656501436.394716][26366:26371] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0101 Attribute 0x0000_0014 DataVersion: 3514039033
[1656501436.394837][26366:26371] CHIP:TOO: NumberOfWeekDaySchedulesSupportedPerUser: 10

Step 3 : ./chip-tool doorlock read number-of-total-users-supported 1 1

[1656501476.501232][26373:26378] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0101 Attribute 0x0000_0011 DataVersion: 3514039033
[1656501476.501461][26373:26378] CHIP:TOO: NumberOfTotalUsersSupported: 10

Step 4 : ./chip-tool doorlock set-week-day-schedule 1 1 2 15 45 16 55 1 1

[1656501520.689931][26381:26386] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0101 Command=0x0000_000B Status=0x0

Step 5 : ./chip-tool doorlock get-week-day-schedule 1 1 1 1

[1656501601.516982][26390:26395] CHIP:DMG: Received Command Response Data, Endpoint=1 Cluster=0x0000_0101 Command=0x0000_000C
[1656501601.517034][26390:26395] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0101 Command 0x0000_000C
[1656501601.517108][26390:26395] CHIP:TOO: GetWeekDayScheduleResponse: {
[1656501601.517149][26390:26395] CHIP:TOO: weekDayIndex: 1
[1656501601.517173][26390:26395] CHIP:TOO: userIndex: 1
[1656501601.517197][26390:26395] CHIP:TOO: status: 0
[1656501601.517234][26390:26395] CHIP:TOO: daysMask: 2
[1656501601.517260][26390:26395] CHIP:TOO: startHour: 15
[1656501601.517360][26390:26395] CHIP:TOO: startMinute: 45
[1656501601.517426][26390:26395] CHIP:TOO: endHour: 16
[1656501601.517450][26390:26395] CHIP:TOO: endMinute: 55
[1656501601.517472][26390:26395] CHIP:TOO: }

FULL EXECUTION log of test case TC-DRLK-2.7 :
TC-DRLK-2.7 LOG

@woody-apple
Copy link
Contributor

Cert Blocker Review: @Morozov-5F Are you able to take look at this lock issue? Can you confirm this is a distinct issue?

@bzbarsky-apple
Copy link
Contributor

Step 1 : As per pre-condition created new user

Yes, that's the difference: the steps listed in this issue at start do not do that. And if you don't do that, then the SDK behavior does not follow the spec.

@bzbarsky-apple
Copy link
Contributor

Duplicate of #19622

@bzbarsky-apple bzbarsky-apple marked this as a duplicate of #19622 Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants