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

[BUG] [TC-CC-6.5] start-up-color-temperature-mireds gets reseted when DUT is Powered OFF and ON #26793

Closed
Survensa opened this issue May 24, 2023 · 1 comment · Fixed by #26808
Assignees

Comments

@Survensa
Copy link

Survensa commented May 24, 2023

Summary

TC-CC-6.5 test case verifies Color Temperature StartUpColorTemperatureMireds functionality of the Color Control cluster server. Here the DUT StartUpColorTemperatureMireds gets reseted to initial value ( 0 )while DUT is turned OFF and ON after setting StartUpColorTemperatureMireds to 32639 .

Reproduction steps

As this test case needs ON/OFF the DUT while using in RPI sample app is discovered using the command ./chip-all-clusters-app --KVS ./mytest.txt

  1. Turing on the DUT : ./chip-tool onoff on 1 1
[1684868736452] [29329:336660] [DMG]                            Endpoint = 0x1,
[1684868736452] [29329:336660] [DMG]                            Cluster = 0x300,
[1684868736452] [29329:336660] [DMG]                            Attribute = 0x0000_000F,
[1684868736452] [29329:336660] [DMG]                    }
[1684868736452] [29329:336660] [DMG] 
[1684868736452] [29329:336660] [DMG]                    StatusIB =
[1684868736452] [29329:336660] [DMG]                    {
[1684868736452] [29329:336660] [DMG]                            status = 0x00 (SUCCESS),
[1684868736452] [29329:336660] [DMG]                    },
  1. Checking current ColorTemperatureMireds : ./chip-tool colorcontrol read color-temperature-mireds 1 1
[1666938306.956620][47956:47961] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0007 DataVersion: 3111607752
[1666938306.956632][47956:47961] CHIP:TOO:   ColorTemperatureMireds: 0
  1. Checking StartUpColorTemperatureMireds : ./chip-tool colorcontrol read start-up-color-temperature-mireds 1 1
[1684869106332] [29709:341829] [TOO] Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_4010 DataVersion: 1932757312
[1684869106332] [29709:341829] [TOO]   StartUpColorTemperatureMireds: 0
  1. Setting new StartUpColorTemperatureMireds : ./chip-tool colorcontrol write start-up-color-temperature-mireds 32639 1 1
[1684869285516] [29746:343264] [DMG]                            Endpoint = 0x1,
[1684869285516] [29746:343264] [DMG]                            Cluster = 0x300,
[1684869285516] [29746:343264] [DMG]                            Attribute = 0x0000_4010,
[1684869285516] [29746:343264] [DMG]                    }
[1684869285516] [29746:343264] [DMG] 
[1684869285516] [29746:343264] [DMG]                    StatusIB =
[1684869285516] [29746:343264] [DMG]                    {
[1684869285516] [29746:343264] [DMG]                            status = 0x00 (SUCCESS),
[1684869285516] [29746:343264] [DMG]                    },
  1. Powered OFF and Turned on DUT : In RPI just killed sample and re-discovered
  2. Now checked the StartUpColorTemperatureMireds : ./chip-tool colorcontrol read start-up-color-temperature-mireds 1 1
    Actual outcome :
[1684869324088] [29755:343609] [TOO] Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_4010 DataVersion: 1932757313
[1684869324088] [29755:343609] [TOO]   StartUpColorTemperatureMireds: 0

Expected outcome :

[1684869324088] [29755:343609] [TOO] Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_4010 DataVersion: 1932757313
[1684869324088] [29755:343609] [TOO]   StartUpColorTemperatureMireds: 32639
  1. Checked for ColorTemperatureMireds : ./chip-tool colorcontrol read color-temperature-mireds 1 1
    Actual outcome :
[1666938306.956620][47956:47961] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0007 DataVersion: 3111607752
[1666938306.956632][47956:47961] CHIP:TOO:   ColorTemperatureMireds: 0

Expected outcome :

[1666938306.956620][47956:47961] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0007 DataVersion: 3111607752
[1666938306.956632][47956:47961] CHIP:TOO:   ColorTemperatureMireds: 32639

Log For reference : TC-CC-6.5.txt

Bug prevalence

Whenever I do this

GitHub hash of the SDK that was being used

bfa0580

Platform

raspi

Platform Version(s)

RPI-4, 8GB-RAM variant

@bzbarsky-apple
Copy link
Contributor

Nice catch, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants