Matter and light example: I cannot see any LED is glowing in ESP32C3

saikrishnaa
Posts: 3
Joined: Fri Mar 03, 2023 1:35 pm

Matter and light example: I cannot see any LED is glowing in ESP32C3

Postby saikrishnaa » Tue Mar 19, 2024 6:59 pm

Hi All,

I am having the ESP32-C3-DevKitC-02 board with and I am trying to execute light example from the Espressif SDK for matter.

I have followed all the steps given in the below links, But I am not able to do light operations. I am not able to see any light is ON and OFF in the physical esp32-C3 device.

https://docs.espressif.com/projects/esp ... oping.html

https://github.com/espressif/esp-matter ... /README.md

I have flashed the program in the board and also Commissioned the device. (I am using RPI-4 for my build and flash)
I have used below command to commission with my network credentials
  1. pairing ble-wifi 0x7283 <ssid> <passphrase> 20202021 3840
light example folder path in matter repository
https://github.com/espressif/esp-matter ... ples/light


Post Commissioning, when I am giving below commands, as per my understanding LED should On and Off (whichever command is given in chip-tool)
onoff on 0x7283 0x1 --> it should turn on onboard RGB LED in the esp32-C3 device (logs in device console after command)
  1. I (103561) chip[EM]: >>> [E:46215r S:40079 M:85608385] (S) Msg RX from 1:000000000001B669 [7598] --- Type 0001:08 (IM:InvokeCommandRequest)
  2. I (103571) esp_matter_command: Received command 0x00000001 for endpoint 0x0001's cluster 0x00000006
  3. I (103581) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x00000000 is 0 **********
  4. I (103591) chip[ZCL]: Toggle ep1 on/off from state 0 to 1
  5. I (103601) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x0000FFFC is 1 **********
  6. I (103611) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x00004001 is 0 **********
  7. I (103621) chip[ZCL]: On Command - OffWaitTime :  0
  8. I (103621) esp_matter_attribute: ********** W : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x00004002 is 0 **********
  9. I (103631) chip[ZCL]: On/Toggle Command - Stop Timer
  10. I (103651) esp_matter_attribute: ********** W : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x00004000 is 1 **********
  11. I (103661) esp_matter_attribute: ********** W : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x00000000 is 1 **********
  12. I (103671) app_driver: LED set power: 1
  13. I (103691) chip[EM]: <<< [E:46215r S:40079 M:63047818 (Ack:85608385)] (S) Msg TX to 1:000000000001B669 [7598] [UDP:[FE80::DEA6:32FF:FE14:B03C%st1]:46070] --- Type 0001:09 (IM:InvokeCommandResponse)
  14. I (103721) chip[EM]: >>> [E:46215r S:40079 M:85608386 (Ack:63047818)] (S) Msg RX from 1:000000000001B669 [7598] --- Type 0000:10 (SecureChannel:StandaloneAck)
onoff off 0x7283 0x1 --> it should turn off onboard RGB LED in the esp32-C3 device,(logs in device console after command)
  1. I (142471) chip[EM]: >>> [E:46216r S:40079 M:85608387] (S) Msg RX from 1:000000000001B669 [7598] --- Type 0001:08 (IM:InvokeCommandRequest)
  2. I (142481) esp_matter_command: Received command 0x00000000 for endpoint 0x0001's cluster 0x00000006
  3. I (142491) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x00000000 is 1 **********
  4. I (142501) chip[ZCL]: Toggle ep1 on/off from state 1 to 0
  5. I (142511) esp_matter_attribute: ********** W : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x00000000 is 0 **********
  6. I (142521) app_driver: LED set power: 0
  7. I (142531) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x0000FFFC is 1 **********
  8. I (142541) chip[ZCL]: Off completed. reset OnTime to  0
  9. I (142541) esp_matter_attribute: ********** W : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x00004001 is 0 **********
  10. I (142571) chip[EM]: <<< [E:46216r S:40079 M:63047819 (Ack:85608387)] (S) Msg TX to 1:000000000001B669 [7598] [UDP:[FE80::DEA6:32FF:FE14:B03C%st1]:46070] --- Type 0001:09 (IM:InvokeCommandResponse)
  11. I (142681) chip[EM]: >>> [E:46216r S:40079 M:85608388 (Ack:63047819)] (S) Msg RX from 1:000000000001B669 [7598] --- Type 0000:10 (SecureChannel:StandaloneAck)

> matter esp attribute get 0x1 0x6 0x0 <---- device console command and output log below
  1. I (337571) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x00000000 is 0 **********
  2. I (337581) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x00000000 is 0 **********


even I have tried "matter esp attribute set 0x1 0x6 0x0 1" in the device console still no change, LED did not turn on.

> matter esp attribute set 0x1 0x6 0x0 1 <---- device console command and output log below

  1. I (370261) esp_matter_attribute: ********** W : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x00000000 is 1 **********
  2. I (370261) app_driver: LED set power: 1
  3. Done
//chip-tool command for light OFF and their logs
  1. onoff on 0x7283 0x1
  2. [1710872339.810945][1103:1103] CHIP:TOO: Command: onoff on 0x7283 0x1
  3. [1710872339.812090][1103:1105] CHIP:TOO: Sending command to node 0x7283
  4. [1710872339.813002][1103:1105] CHIP:CSM: FindOrEstablishSession: PeerId = [1:0000000000007283]
  5. [1710872339.813063][1103:1105] CHIP:CSM: FindOrEstablishSession: No existing OperationalSessionSetup instance found
  6. [1710872339.813132][1103:1105] CHIP:DIS: Found an existing secure session to [1:0000000000007283]!
  7. [1710872339.813188][1103:1105] CHIP:DIS: OperationalSessionSetup[1:0000000000007283]: State change 1 --> 5
  8. [1710872339.813259][1103:1105] CHIP:TOO: Sending cluster (0x00000006) command (0x00000001) on endpoint 1
  9. [1710872339.813360][1103:1105] CHIP:DMG: ICR moving to [AddingComm]
  10. [1710872339.813441][1103:1105] CHIP:DMG: ICR moving to [AddedComma]
  11. [1710872339.813945][1103:1105] CHIP:EM: <<< [E:46219i S:37036 M:85608393] (S) Msg TX to 1:0000000000007283 [7598] [UDP:[fe80::deda:cff:fe81:5c5c%wlan0]:5540] --- Type 0001:08 (IM:InvokeCommandRequest)
  12. [1710872339.814322][1103:1105] CHIP:DMG: ICR moving to [CommandSen]
  13. [1710872339.988387][1103:1105] CHIP:EM: >>> [E:46219i S:37036 M:63047822 (Ack:85608393)] (S) Msg RX from 1:0000000000007283 [7598] --- Type 0001:09 (IM:InvokeCommandResponse)
  14. [1710872339.988477][1103:1105] CHIP:EM: Found matching exchange: 46219i, Delegate: 0xffffa0016898
  15. [1710872339.988553][1103:1105] CHIP:EM: Rxd Ack; Removing MessageCounter:85608393 from Retrans Table on exchange 46219i
  16. [1710872339.988626][1103:1105] CHIP:DMG: ICR moving to [ResponseRe]
  17. [1710872339.988719][1103:1105] CHIP:DMG: InvokeResponseMessage =
  18. [1710872339.988769][1103:1105] CHIP:DMG: {
  19. [1710872339.988817][1103:1105] CHIP:DMG:        suppressResponse = false,
  20. [1710872339.988868][1103:1105] CHIP:DMG:        InvokeResponseIBs =
  21. [1710872339.988933][1103:1105] CHIP:DMG:        [
  22. [1710872339.989012][1103:1105] CHIP:DMG:                InvokeResponseIB =
  23. [1710872339.989144][1103:1105] CHIP:DMG:                {
  24. [1710872339.989320][1103:1105] CHIP:DMG:                        CommandStatusIB =
  25. [1710872339.989531][1103:1105] CHIP:DMG:                        {
  26. [1710872339.989749][1103:1105] CHIP:DMG:                                CommandPathIB =
  27. [1710872339.989927][1103:1105] CHIP:DMG:                                {
  28. [1710872339.990247][1103:1105] CHIP:DMG:                                        EndpointId = 0x1,
  29. [1710872339.990435][1103:1105] CHIP:DMG:                                        ClusterId = 0x6,
  30. [1710872339.990602][1103:1105] CHIP:DMG:                                        CommandId = 0x1,
  31. [1710872339.990824][1103:1105] CHIP:DMG:                                },
  32. [1710872339.991014][1103:1105] CHIP:DMG:
  33. [1710872339.991078][1103:1105] CHIP:DMG:                                StatusIB =
  34. [1710872339.991239][1103:1105] CHIP:DMG:                                {
  35. [1710872339.991423][1103:1105] CHIP:DMG:                                        status = 0x00 (SUCCESS),
  36. [1710872339.991631][1103:1105] CHIP:DMG:                                },
  37. [1710872339.991715][1103:1105] CHIP:DMG:
  38. [1710872339.991786][1103:1105] CHIP:DMG:                        },
  39. [1710872339.991866][1103:1105] CHIP:DMG:
  40. [1710872339.991921][1103:1105] CHIP:DMG:                },
  41. [1710872339.991985][1103:1105] CHIP:DMG:
  42. [1710872339.992035][1103:1105] CHIP:DMG:        ],
  43. [1710872339.992099][1103:1105] CHIP:DMG:
  44. [1710872339.992195][1103:1105] CHIP:DMG:        InteractionModelRevision = 11
  45. [1710872339.992247][1103:1105] CHIP:DMG: },
  46. [1710872339.992387][1103:1105] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0001 Status=0x0
  47. [1710872339.992476][1103:1105] CHIP:DMG: ICR moving to [AwaitingDe]
  48. [1710872339.993204][1103:1105] CHIP:EM: <<< [E:46219i S:37036 M:85608394 (Ack:63047822)] (S) Msg TX to 1:0000000000007283 [7598] [UDP:[fe80::deda:cff:fe81:5c5c%wlan0]:5540] --- Type 0000:10 (SecureChannel:StandaloneAck)
  49. [1710872339.993458][1103:1105] CHIP:EM: Flushed pending ack for MessageCounter:63047822 on exchange 46219i
//chip-tool command for light OFF and their logs
  1. >>> onoff off 0x7283 0x1
  2. [1710872318.747353][1103:1103] CHIP:TOO: Command: onoff off 0x7283 0x1
  3. [1710872318.748461][1103:1105] CHIP:TOO: Sending command to node 0x7283
  4. [1710872318.749506][1103:1105] CHIP:CSM: FindOrEstablishSession: PeerId = [1:0000000000007283]
  5. [1710872318.749575][1103:1105] CHIP:CSM: FindOrEstablishSession: No existing OperationalSessionSetup instance found
  6. [1710872318.749655][1103:1105] CHIP:DIS: Found an existing secure session to [1:0000000000007283]!
  7. [1710872318.749719][1103:1105] CHIP:DIS: OperationalSessionSetup[1:0000000000007283]: State change 1 --> 5
  8. [1710872318.749800][1103:1105] CHIP:TOO: Sending cluster (0x00000006) command (0x00000000) on endpoint 1
  9. [1710872318.749913][1103:1105] CHIP:DMG: ICR moving to [AddingComm]
  10. [1710872318.750002][1103:1105] CHIP:DMG: ICR moving to [AddedComma]
  11. [1710872318.750560][1103:1105] CHIP:EM: <<< [E:46218i S:37036 M:85608391] (S) Msg TX to 1:0000000000007283 [7598] [UDP:[fe80::deda:cff:fe81:5c5c%wlan0]:5540] --- Type 0001:08 (IM:InvokeCommandRequest)
  12. [1710872318.751396][1103:1105] CHIP:DMG: ICR moving to [CommandSen]
  13. [1710872319.062522][1103:1105] CHIP:EM: >>> [E:46218i S:37036 M:63047821 (Ack:85608391)] (S) Msg RX from 1:0000000000007283 [7598] --- Type 0001:09 (IM:InvokeCommandResponse)
  14. [1710872319.062602][1103:1105] CHIP:EM: Found matching exchange: 46218i, Delegate: 0xffffa0016898
  15. [1710872319.062664][1103:1105] CHIP:EM: Rxd Ack; Removing MessageCounter:85608391 from Retrans Table on exchange 46218i
  16. [1710872319.062723][1103:1105] CHIP:DMG: ICR moving to [ResponseRe]
  17. [1710872319.062798][1103:1105] CHIP:DMG: InvokeResponseMessage =
  18. [1710872319.062837][1103:1105] CHIP:DMG: {
  19. [1710872319.062875][1103:1105] CHIP:DMG:        suppressResponse = false,
  20. [1710872319.062915][1103:1105] CHIP:DMG:        InvokeResponseIBs =
  21. [1710872319.062966][1103:1105] CHIP:DMG:        [
  22. [1710872319.063029][1103:1105] CHIP:DMG:                InvokeResponseIB =
  23. [1710872319.063171][1103:1105] CHIP:DMG:                {
  24. [1710872319.063232][1103:1105] CHIP:DMG:                        CommandStatusIB =
  25. [1710872319.063368][1103:1105] CHIP:DMG:                        {
  26. [1710872319.063477][1103:1105] CHIP:DMG:                                CommandPathIB =
  27. [1710872319.063560][1103:1105] CHIP:DMG:                                {
  28. [1710872319.063675][1103:1105] CHIP:DMG:                                        EndpointId = 0x1,
  29. [1710872319.063802][1103:1105] CHIP:DMG:                                        ClusterId = 0x6,
  30. [1710872319.063929][1103:1105] CHIP:DMG:                                        CommandId = 0x0,
  31. [1710872319.064110][1103:1105] CHIP:DMG:                                },
  32. [1710872319.064258][1103:1105] CHIP:DMG:
  33. [1710872319.064342][1103:1105] CHIP:DMG:                                StatusIB =
  34. [1710872319.064457][1103:1105] CHIP:DMG:                                {
  35. [1710872319.064554][1103:1105] CHIP:DMG:                                        status = 0x00 (SUCCESS),
  36. [1710872319.064617][1103:1105] CHIP:DMG:                                },
  37. [1710872319.064680][1103:1105] CHIP:DMG:
  38. [1710872319.064737][1103:1105] CHIP:DMG:                        },
  39. [1710872319.064800][1103:1105] CHIP:DMG:
  40. [1710872319.064848][1103:1105] CHIP:DMG:                },
  41. [1710872319.064900][1103:1105] CHIP:DMG:
  42. [1710872319.064936][1103:1105] CHIP:DMG:        ],
  43. [1710872319.064987][1103:1105] CHIP:DMG:
  44. [1710872319.065027][1103:1105] CHIP:DMG:        InteractionModelRevision = 11
  45. [1710872319.065065][1103:1105] CHIP:DMG: },
  46. [1710872319.065175][1103:1105] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0000 Status=0x0
  47. [1710872319.065302][1103:1105] CHIP:DMG: ICR moving to [AwaitingDe]
  48. [1710872319.065691][1103:1105] CHIP:EM: <<< [E:46218i S:37036 M:85608392 (Ack:63047821)] (S) Msg TX to 1:0000000000007283 [7598] [UDP:[fe80::deda:cff:fe81:5c5c%wlan0]:5540] --- Type 0000:10 (SecureChannel:StandaloneAck)
  49. [1710872319.065914][1103:1105] CHIP:EM: Flushed pending ack for MessageCounter:63047821 on exchange 46218i

Please suggest how to fix this problem and same thing I have tried in the ESP32-H2 also. not observed LED operation.

Do I need to consider external GPIO pins or do I need to change any settings or configuration.





Regards,
Sai Krishna

Who is online

Users browsing this forum: No registered users and 37 guests