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

[SQA]-THREAD User Label cluster fails to write the LabelList attribute values. #17604

Closed
Survensa opened this issue Apr 21, 2022 · 7 comments
Closed
Assignees
Labels
cert blocker cert spec Mismatch between spec and implementation V1.0

Comments

@Survensa
Copy link

Survensa commented Apr 21, 2022

Problem :
As per the Spec, Label list attribute of User Label Cluster is Writable attribute, But While passing the Write command to the Label list attribute it fails.

Expected behavior: status = 0x00 (SUCCESS)

Actual behavior: status = 0x01 (FAILURE)

Steps to reproduce: ./chip-tool userlabel write label-list '[{"label":"bedroom", "value":"bedroom1"}, {"label":"orientation", "value":"east"}, {"label":"floor", "value":"3"}, {"label":"direction", "value":"down"}]' 33 0

Platform: Thread

CommitID used: 20e1a4a

Reference:

Screenshot from 2022-04-21 19-05-35

Logs :

[1650547526.999338][30580:30585] CHIP:DMG: WriteClient moving to [ResponseRe]
[1650547526.999476][30580:30585] CHIP:DMG: WriteResponseMessage =
[1650547526.999538][30580:30585] CHIP:DMG: {
[1650547526.999592][30580:30585] CHIP:DMG: AttributeStatusIBs =
[1650547526.999760][30580:30585] CHIP:DMG: [
[1650547526.999825][30580:30585] CHIP:DMG: AttributeStatusIB =
[1650547526.999905][30580:30585] CHIP:DMG: {
[1650547526.999969][30580:30585] CHIP:DMG: AttributePathIB =
[1650547527.000039][30580:30585] CHIP:DMG: {
[1650547527.000115][30580:30585] CHIP:DMG: Endpoint = 0x0,
[1650547527.000197][30580:30585] CHIP:DMG: Cluster = 0x41,
[1650547527.000286][30580:30585] CHIP:DMG: Attribute = 0x0000_0000,
[1650547527.000362][30580:30585] CHIP:DMG: }
[1650547527.000450][30580:30585] CHIP:DMG:
[1650547527.000517][30580:30585] CHIP:DMG: StatusIB =
[1650547527.000580][30580:30585] CHIP:DMG: {
[1650547527.000654][30580:30585] CHIP:DMG: status = 0x01 (FAILURE),
[1650547527.000738][30580:30585] CHIP:DMG: },
[1650547527.000815][30580:30585] CHIP:DMG:
[1650547527.000881][30580:30585] CHIP:DMG: },
[1650547527.000972][30580:30585] CHIP:DMG:
[1650547527.001032][30580:30585] CHIP:DMG: AttributeStatusIB =
[1650547527.001104][30580:30585] CHIP:DMG: {
[1650547527.001167][30580:30585] CHIP:DMG: AttributePathIB =
[1650547527.001244][30580:30585] CHIP:DMG: {
[1650547527.001316][30580:30585] CHIP:DMG: Endpoint = 0x0,
[1650547527.001398][30580:30585] CHIP:DMG: Cluster = 0x41,
[1650547527.001494][30580:30585] CHIP:DMG: Attribute = 0x0000_0000,
[1650547527.001575][30580:30585] CHIP:DMG: ListIndex = Null,
[1650547527.001651][30580:30585] CHIP:DMG: }
[1650547527.001736][30580:30585] CHIP:DMG:
[1650547527.001810][30580:30585] CHIP:DMG: StatusIB =
[1650547527.001884][30580:30585] CHIP:DMG: {
[1650547527.001958][30580:30585] CHIP:DMG: status = 0x01 (FAILURE),
[1650547527.002036][30580:30585] CHIP:DMG: },
[1650547527.002110][30580:30585] CHIP:DMG:
[1650547527.002178][30580:30585] CHIP:DMG: },
[1650547527.002267][30580:30585] CHIP:DMG:
[1650547527.002328][30580:30585] CHIP:DMG: AttributeStatusIB =
[1650547527.002398][30580:30585] CHIP:DMG: {
[1650547527.002473][30580:30585] CHIP:DMG: AttributePathIB =
[1650547527.002554][30580:30585] CHIP:DMG: {
[1650547527.002632][30580:30585] CHIP:DMG: Endpoint = 0x0,
[1650547527.002719][30580:30585] CHIP:DMG: Cluster = 0x41,
[1650547527.002805][30580:30585] CHIP:DMG: Attribute = 0x0000_0000,
[1650547527.002883][30580:30585] CHIP:DMG: ListIndex = Null,
[1650547527.002962][30580:30585] CHIP:DMG: }
[1650547527.003047][30580:30585] CHIP:DMG:
[1650547527.003119][30580:30585] CHIP:DMG: StatusIB =
[1650547527.003192][30580:30585] CHIP:DMG: {
[1650547527.003268][30580:30585] CHIP:DMG: status = 0x01 (FAILURE),
[1650547527.003344][30580:30585] CHIP:DMG: },
[1650547527.003425][30580:30585] CHIP:DMG:
[1650547527.003492][30580:30585] CHIP:DMG: },
[1650547527.003573][30580:30585] CHIP:DMG:
[1650547527.003766][30580:30585] CHIP:DMG: AttributeStatusIB =
[1650547527.003841][30580:30585] CHIP:DMG: {
[1650547527.003904][30580:30585] CHIP:DMG: AttributePathIB =
[1650547527.003979][30580:30585] CHIP:DMG: {
[1650547527.004059][30580:30585] CHIP:DMG: Endpoint = 0x0,
[1650547527.004138][30580:30585] CHIP:DMG: Cluster = 0x41,
[1650547527.004225][30580:30585] CHIP:DMG: Attribute = 0x0000_0000,
[1650547527.004314][30580:30585] CHIP:DMG: ListIndex = Null,
[1650547527.004396][30580:30585] CHIP:DMG: }
[1650547527.004482][30580:30585] CHIP:DMG:
[1650547527.004562][30580:30585] CHIP:DMG: StatusIB =
[1650547527.004638][30580:30585] CHIP:DMG: {
[1650547527.004714][30580:30585] CHIP:DMG: status = 0x01 (FAILURE),
[1650547527.004783][30580:30585] CHIP:DMG: },
[1650547527.004857][30580:30585] CHIP:DMG:
[1650547527.004924][30580:30585] CHIP:DMG: },
[1650547527.005016][30580:30585] CHIP:DMG:
[1650547527.005077][30580:30585] CHIP:DMG: AttributeStatusIB =
[1650547527.005141][30580:30585] CHIP:DMG: {
[1650547527.005210][30580:30585] CHIP:DMG: AttributePathIB =
[1650547527.005286][30580:30585] CHIP:DMG: {
[1650547527.005363][30580:30585] CHIP:DMG: Endpoint = 0x0,
[1650547527.005444][30580:30585] CHIP:DMG: Cluster = 0x41,
[1650547527.005527][30580:30585] CHIP:DMG: Attribute = 0x0000_0000,
[1650547527.005606][30580:30585] CHIP:DMG: ListIndex = Null,
[1650547527.005675][30580:30585] CHIP:DMG: }
[1650547527.005757][30580:30585] CHIP:DMG:
[1650547527.005839][30580:30585] CHIP:DMG: StatusIB =
[1650547527.005921][30580:30585] CHIP:DMG: {
[1650547527.005996][30580:30585] CHIP:DMG: status = 0x01 (FAILURE),
[1650547527.006175][30580:30585] CHIP:DMG: },
[1650547527.006256][30580:30585] CHIP:DMG:
[1650547527.006323][30580:30585] CHIP:DMG: },
[1650547527.006404][30580:30585] CHIP:DMG:
[1650547527.006463][30580:30585] CHIP:DMG: ],
[1650547527.006571][30580:30585] CHIP:DMG:
[1650547527.006631][30580:30585] CHIP:DMG: InteractionModelRevision = 1
[1650547527.006689][30580:30585] CHIP:DMG: }
[1650547527.006824][30580:30585] CHIP:TOO: Response Failure: IM Error 0x00000501: General error: 0x01 (FAILURE)
[1650547527.006964][30580:30585] CHIP:TOO: Response Failure: IM Error 0x00000501: General error: 0x01 (FAILURE)
[1650547527.007101][30580:30585] CHIP:TOO: Response Failure: IM Error 0x00000501: General error: 0x01 (FAILURE)
[1650547527.007238][30580:30585] CHIP:TOO: Response Failure: IM Error 0x00000501: General error: 0x01 (FAILURE)
[1650547527.007372][30580:30585] CHIP:TOO: Response Failure: IM Error 0x00000501: General error: 0x01 (FAILURE)
[1650547527.007491][30580:30585] CHIP:DMG: WriteClient moving to [AwaitingDe]

@erjiaqing erjiaqing self-assigned this May 10, 2022
@haigithub
Copy link

During the TE9, I encountered the same problem.

te9 test cases:

  • TC-LC-2.3
  • TC-LC-2.4
  • TC-LC-2.5

Logs:
TC-LC-2.3.txt
TC-LC-2.4.txt
TC-LC-2.5.txt

@erjiaqing
Copy link
Contributor

After checking the code, the UserLabel cluster requires DeviceInfoProvider to be implemented, however, only Linux and Darwin currently supports this.

Seems this is a platform specific issue.

@franck-apple franck-apple added V1.0 spec Mismatch between spec and implementation cert labels May 12, 2022
@andy31415
Copy link
Contributor

@Survensa - please provide more platform info - this seems to be platform specific (like efr/nrf/qpg/....) so need more detail than 'thread'.

@cjandhyala
Copy link
Contributor

@andy31415 this is run on nordic platform

@LuDuda
Copy link
Contributor

LuDuda commented May 24, 2022

@cjandhyala seems that @andy31415 is working on the generic solution for all platforms here.

Btw. As far as i understand UserLabel and FixedLabel clusters are not mandatory. They are required only if specific device has two or more endpoints with the same Device Type. Why this is then the certification blocker?

@cjandhyala
Copy link
Contributor

@LuDuda per device library spec, arent these mandatory for all matter devices.
Screen Shot 2022-05-25 at 9 42 33 AM

@andy31415
Copy link
Contributor

Marking as fixed as NRF user-label write was added, at least to the light app.

I will look into adding it for other apps separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cert blocker cert spec Mismatch between spec and implementation V1.0
Projects
None yet
Development

No branches or pull requests

7 participants