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

Fix incorrect feature check to align with spec #22435

Merged
merged 1 commit into from Sep 7, 2022
Merged

Fix incorrect feature check to align with spec #22435

merged 1 commit into from Sep 7, 2022

Conversation

yufengwangca
Copy link
Contributor

@yufengwangca yufengwangca commented Sep 6, 2022

Problem

What is being fixed? Examples:

  • Current implementation of UpOrOpen and DownOrClose is not aligned with spec, according to spec:

  • Upon receipt of UpOrOpen command, if Position Aware feature is supported:
    TargetPositionLiftPercent100ths attribute SHALL be set to 0.00%.
    TargetPositionTiltPercent100ths attribute SHALL be set to 0.00%.

  • Upon receipt of DownOrClose command, if Position Aware feature is supported:
    TargetPositionLiftPercent100ths attribute SHALL be set to 100.00%.
    TargetPositionTiltPercent100ths attribute SHALL be set to 100.00%.

https://github.com/CHIP-Specifications/connectedhomeip-spec/blob/master/src/app_clusters/WindowCovering.adoc#features

Change overview

Fix incorrect feature check to align with spec

Testing

How was this tested? (at least one bullet point required)

  • confirm the UpOrOpen and DownOrClose commands can be executed successfully.
yufengwang@yufengwang:~/connectedhomeip/out/debug/standalone$ ./chip-tool windowcovering down-or-close 12344321 1
....
[1662502041.986683][2058737:2058742] CHIP:EM: Removed CHIP MessageCounter:2650576 from RetransTable on exchange 64514i
[1662502041.986702][2058737:2058742] CHIP:DMG: ICR moving to [ResponseRe]
[1662502041.986732][2058737:2058742] CHIP:DMG: InvokeResponseMessage =
[1662502041.986746][2058737:2058742] CHIP:DMG: {
[1662502041.986759][2058737:2058742] CHIP:DMG: 	suppressResponse = false, 
[1662502041.986772][2058737:2058742] CHIP:DMG: 	InvokeResponseIBs =
[1662502041.986791][2058737:2058742] CHIP:DMG: 	[
[1662502041.986803][2058737:2058742] CHIP:DMG: 		InvokeResponseIB =
[1662502041.986821][2058737:2058742] CHIP:DMG: 		{
[1662502041.986834][2058737:2058742] CHIP:DMG: 			CommandStatusIB =
[1662502041.986848][2058737:2058742] CHIP:DMG: 			{
[1662502041.986861][2058737:2058742] CHIP:DMG: 				CommandPathIB =
[1662502041.986876][2058737:2058742] CHIP:DMG: 				{
[1662502041.986890][2058737:2058742] CHIP:DMG: 					EndpointId = 0x1,
[1662502041.986905][2058737:2058742] CHIP:DMG: 					ClusterId = 0x102,
[1662502041.986919][2058737:2058742] CHIP:DMG: 					CommandId = 0x1,
[1662502041.986932][2058737:2058742] CHIP:DMG: 				},
[1662502041.986951][2058737:2058742] CHIP:DMG: 				
[1662502041.986964][2058737:2058742] CHIP:DMG: 				StatusIB =
[1662502041.986979][2058737:2058742] CHIP:DMG: 				{
[1662502041.986993][2058737:2058742] CHIP:DMG: 					status = 0x00 (SUCCESS),
[1662502041.987007][2058737:2058742] CHIP:DMG: 				},
[1662502041.987021][2058737:2058742] CHIP:DMG: 				
[1662502041.987033][2058737:2058742] CHIP:DMG: 			},
[1662502041.987050][2058737:2058742] CHIP:DMG: 			
[1662502041.987062][2058737:2058742] CHIP:DMG: 		},
[1662502041.987080][2058737:2058742] CHIP:DMG: 		
[1662502041.987091][2058737:2058742] CHIP:DMG: 	],
[1662502041.987109][2058737:2058742] CHIP:DMG: 	
[1662502041.987121][2058737:2058742] CHIP:DMG: 	InteractionModelRevision = 1
[1662502041.987132][2058737:2058742] CHIP:DMG: },
[1662502041.987176][2058737:2058742] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0102 Command=0x0000_0001 Status=0x0

@github-actions
Copy link

github-actions bot commented Sep 6, 2022

PR #22435: Size comparison from 001e7bf to ed8697c

Increases (8 builds for bl602, efr32, esp32, k32w, psoc6, qpg, telink)
platform target config section 001e7bf ed8697c change % change
bl602 lighting-app bl602 .text 1065682 1065686 4 0.0
bl602+rpc (read/write) 1455450 1455458 8 0.0
.text 1097030 1097034 4 0.0
efr32 lighting-app BRD4161A+rpc (read/write) 972172 972188 16 0.0
.text 819056 819072 16 0.0
esp32 all-clusters-app m5stack (read/write) 490772 490780 8 0.0
.flash.rodata 247312 247320 8 0.0
k32w lock k32w0+release (read/write) 705200 705216 16 0.0
.text 629236 629252 16 0.0
psoc6 lock cy8ckit_062s2_43012 .debug_info 22294081 22294082 1 0.0
qpg lighting-app qpg6105+debug (read/write) 1129156 1129164 8 0.0
.text 576252 576260 8 0.0
telink light-switch-app tlsr9518adk80d (read/write) 809088 809096 8 0.0
text 571516 571518 2 0.0
Decreases (3 builds for psoc6)
platform target config section 001e7bf ed8697c change % change
psoc6 all-clusters cy8ckit_062s2_43012 .debug_info 26715431 26715430 -1 -0.0
all-clusters-minimal cy8ckit_062s2_43012 .debug_info 26452053 26452052 -1 -0.0
light cy8ckit_062s2_43012 .debug_info 21914335 21914334 -1 -0.0
Full report (34 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section 001e7bf ed8697c change % change
bl602 lighting-app bl602 (read/write) 1410254 1410254 0 0.0
.bss 121585 121585 0 0.0
.data 9816 9816 0 0.0
.text 1065682 1065686 4 0.0
bl602+rpc (read/write) 1455450 1455458 8 0.0
.bss 129017 129017 0 0.0
.data 10200 10200 0 0.0
.text 1097030 1097034 4 0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 675359 675359 0 0.0
(read/write) 176048 176048 0 0.0
.bss 74300 74300 0 0.0
.data 3380 3380 0 0.0
.rodata 89215 89215 0 0.0
.text 585832 585832 0 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 640071 640071 0 0.0
(read/write) 157868 157868 0 0.0
.bss 73572 73572 0 0.0
.data 3380 3380 0 0.0
.rodata 78367 78367 0 0.0
.text 561384 561384 0 0.0
lock-ftd LP_CC2652R7 (read only) 676419 676419 0 0.0
(read/write) 165300 165300 0 0.0
.bss 71500 71500 0 0.0
.data 3304 3304 0 0.0
.rodata 77067 77067 0 0.0
.text 598872 598872 0 0.0
lock-mtd LP_CC2652R7 (read only) 659379 659379 0 0.0
(read/write) 178028 178028 0 0.0
.bss 67188 67188 0 0.0
.data 3304 3304 0 0.0
.rodata 102323 102323 0 0.0
.text 556576 556576 0 0.0
pump-app LP_CC2652R7 (read only) 685247 685247 0 0.0
(read/write) 157176 157176 0 0.0
.bss 71436 71436 0 0.0
.data 3296 3296 0 0.0
.rodata 90079 90079 0 0.0
.text 594684 594684 0 0.0
pump-controller-app LP_CC2652R7 (read only) 669731 669731 0 0.0
(read/write) 172804 172804 0 0.0
.bss 71548 71548 0 0.0
.data 3292 3292 0 0.0
.rodata 85627 85627 0 0.0
.text 583624 583624 0 0.0
shell LP_CC2652R7 (read only) 666010 666010 0 0.0
(read/write) 180916 180916 0 0.0
.bss 76620 76620 0 0.0
.data 3376 3376 0 0.0
.rodata 85770 85770 0 0.0
.text 579924 579924 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 586882 586882 0 0.0
.app_xip_area 463540 463540 0 0.0
.bss 65776 65776 0 0.0
.data 744 744 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 592634 592634 0 0.0
.app_xip_area 464508 464508 0 0.0
.bss 70560 70560 0 0.0
.data 748 748 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 599810 599810 0 0.0
.app_xip_area 477188 477188 0 0.0
.bss 65088 65088 0 0.0
.data 716 716 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read/write) 1108544 1108544 0 0.0
.bss 136332 136332 0 0.0
.data 2072 2072 0 0.0
.text 970120 970120 0 0.0
BRD4161A+rpc (read/write) 972172 972188 16 0.0
.bss 150844 150844 0 0.0
.data 2252 2252 0 0.0
.text 819056 819072 16 0.0
BRD4161A+rs911x (read/write) 1002048 1002048 0 0.0
.bss 169168 169168 0 0.0
.data 2064 2064 0 0.0
.text 830796 830796 0 0.0
lock-app BRD4161A+wf200 (read/write) 1150116 1150116 0 0.0
.bss 152248 152248 0 0.0
.data 2072 2072 0 0.0
.text 995776 995776 0 0.0
window-app BRD4161A (read/write) 1099784 1099784 0 0.0
.bss 137772 137772 0 0.0
.data 2096 2096 0 0.0
.text 959896 959896 0 0.0
esp32 all-clusters-app c3devkit (read only) 1033856 1033856 0 0.0
(read/write) 1493494 1493494 0 0.0
.dram0.bss 71120 71120 0 0.0
.dram0.data 13696 13696 0 0.0
.flash.rodata 218008 218008 0 0.0
.flash.text 1033856 1033856 0 0.0
.iram0.text 65204 65204 0 0.0
m5stack (read only) 1086195 1086195 0 0.0
(read/write) 490772 490780 8 0.0
.dram0.bss 76640 76640 0 0.0
.dram0.data 34152 34152 0 0.0
.flash.rodata 247312 247320 8 0.0
.flash.text 1080811 1080811 0 0.0
.iram0.text 123939 123939 0 0.0
k32w light k32w0+release (read/write) 648204 648204 0 0.0
.bss 70712 70712 0 0.0
.data 2068 2068 0 0.0
.text 572696 572696 0 0.0
lock k32w0+release (read/write) 705200 705216 16 0.0
.bss 71160 71160 0 0.0
.data 2076 2076 0 0.0
.text 629236 629252 16 0.0
linux chip-tool-ipv6only arm64 (read only) 10320484 10320484 0 0.0
(read/write) 705185 705185 0 0.0
.bss 33313 33313 0 0.0
.data 3280 3280 0 0.0
.data.rel.ro 649784 649784 0 0.0
.dynamic 560 560 0 0.0
.got 13840 13840 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 499252 499252 0 0.0
.text 8168820 8168820 0 0.0
thermostat-no-ble arm64 (read only) 2364132 2364132 0 0.0
(read/write) 141857 141857 0 0.0
.bss 55233 55233 0 0.0
.data 1680 1680 0 0.0
.data.rel.ro 76112 76112 0 0.0
.dynamic 560 560 0 0.0
.got 5056 5056 0 0.0
.init 24 24 0 0.0
.init_array 416 416 0 0.0
.rodata 141324 141324 0 0.0
.text 1984768 1984768 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2455032 2455032 0 0.0
.bss 215044 215044 0 0.0
.data 5872 5872 0 0.0
.text 1417676 1417676 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1181199 1181199 0 0.0
bss 143641 143641 0 0.0
rodata 143552 143552 0 0.0
text 815072 815072 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1160395 1160395 0 0.0
bss 142868 142868 0 0.0
rodata 135140 135140 0 0.0
text 803464 803464 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 841960 841960 0 0.0
(read/write) 1742548 1742548 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 188720 188720 0 0.0
.comment 204 204 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2664 2664 0 0.0
.debug_abbrev 1221471 1221471 0 0.0
.debug_aranges 111728 111728 0 0.0
.debug_frame 372964 372964 0 0.0
.debug_info 26715431 26715430 -1 -0.0
.debug_line 3657437 3657437 0 0.0
.debug_loc 3573305 3573305 0 0.0
.debug_ranges 338440 338440 0 0.0
.debug_str 3427396 3427396 0 0.0
.heap 841960 841960 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 570587 570587 0 0.0
.symtab 421456 421456 0 0.0
.text 1542776 1542776 0 0.0
.zero.table 8 8 0 0.0
text 0 0 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 842696 842696 0 0.0
(read/write) 1685748 1685748 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 187984 187984 0 0.0
.comment 204 204 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2664 2664 0 0.0
.debug_abbrev 1213310 1213310 0 0.0
.debug_aranges 111200 111200 0 0.0
.debug_frame 376044 376044 0 0.0
.debug_info 26452053 26452052 -1 -0.0
.debug_line 3677953 3677953 0 0.0
.debug_loc 3560942 3560942 0 0.0
.debug_ranges 337056 337056 0 0.0
.debug_str 3416401 3416401 0 0.0
.heap 842696 842696 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 535061 535061 0 0.0
.symtab 408048 408048 0 0.0
.text 1486712 1486712 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
light cy8ckit_062s2_43012 (read only) 850928 850928 0 0.0
(read/write) 1603020 1603020 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 179960 179960 0 0.0
.comment 204 204 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2456 2456 0 0.0
.debug_abbrev 1048129 1048129 0 0.0
.debug_aranges 103376 103376 0 0.0
.debug_frame 346312 346312 0 0.0
.debug_info 21914335 21914334 -1 -0.0
.debug_line 3248418 3248418 0 0.0
.debug_loc 3259284 3259284 0 0.0
.debug_ranges 302528 302528 0 0.0
.debug_str 3221667 3221667 0 0.0
.heap 850928 850928 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 468360 468360 0 0.0
.symtab 375136 375136 0 0.0
.text 1412216 1412216 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 845896 845896 0 0.0
(read/write) 1640708 1640708 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 184976 184976 0 0.0
.comment 204 204 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2472 2472 0 0.0
.debug_abbrev 1055564 1055564 0 0.0
.debug_aranges 104048 104048 0 0.0
.debug_frame 349140 349140 0 0.0
.debug_info 22294081 22294082 1 0.0
.debug_line 3257239 3257239 0 0.0
.debug_loc 3299137 3299137 0 0.0
.debug_ranges 305872 305872 0 0.0
.debug_str 3249088 3249088 0 0.0
.heap 845896 845896 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 474563 474563 0 0.0
.symtab 378320 378320 0 0.0
.text 1444872 1444872 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1129156 1129164 8 0.0
.bss 106112 106112 0 0.0
.data 1028 1028 0 0.0
.text 576252 576260 8 0.0
lock-app qpg6105+debug (read/write) 1100176 1100176 0 0.0
.bss 102344 102344 0 0.0
.data 1032 1032 0 0.0
.text 547276 547276 0 0.0
telink light-switch-app tlsr9518adk80d (read/write) 809088 809096 8 0.0
bss 71344 71344 0 0.0
noinit 43488 43488 0 0.0
text 571516 571518 2 0.0
lighting-app tlsr9518adk80d (read/write) 831004 831004 0 0.0
bss 72200 72200 0 0.0
noinit 43488 43488 0 0.0
text 589640 589640 0 0.0

@andy31415
Copy link
Contributor

Accepted for v1: bug fix for testing

@franck-apple franck-apple merged commit 6626d50 into project-chip:master Sep 7, 2022
@bzbarsky-apple
Copy link
Contributor

@jmeg-sfy could you check this over, please?

Copy link
Contributor

@jmeg-sfy jmeg-sfy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

isiu-apple pushed a commit to isiu-apple/connectedhomeip that referenced this pull request Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants