Try to implement LED Blinky on Matter Template Example code.

I want to modify the example code which is provided by Matter SDK and there are several examples are there are Light bulb example code, Light Switch example code and Template code as well. Now I just right now simply wants to understand the code and modify it.


But it very complex to understand the code so can you please provide or explain the basic flow of Template like how it works. 

And also, I want to modify that code want to do some practical's like blink an LED but i did not know exactly where in that code I have to Change.

Please your help will be appreciated. 

  • Hi,

    I will assist you with that issue in your other ticket so we can keep this ticket focused on the Matter temperature sensor.

    Best regards,
    Marte

  • Hey  ,

    As you guide me in above all steps like to read Thingy Example code and then follow the steps of (Adding clusters to Matter application — nRF Connect SDK 2.4.0 documentation (nordicsemi.com).

    I followed all the steps as you told me but I got stuck at one place.

    Now when I pass the command to the Chip-Tool and below I pasted the commands which I write in Chip-Tool.

    sudo ./chip-tool-debug onoff off 12 1

    [1687858995.056301][152450:152452] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0402 Attribute 0x0000_0000 DataVersion: 721261378
    [1687858995.057259][152450:152452] CHIP:TOO:   MeasuredValue: 100
    [1687858995.057348][152450:152452] CHIP:EM: <<< [E:5165i S:18343 M:91035238 (Ack:198369677)] (S) Msg TX to 1:000000000000000F [80A3] --- Type 0000:10 (SecureChannel:StandaloneAck)
    [1687858995.057370][152450:152452] CHIP:IN: (S) Sending msg 91035238 on secure session with LSID: 18343
    [1687858995.057423][152450:152452] CHIP:EM: Flushed pending ack for MessageCounter:198369677 on exchange 5165i
    [1687858995.057470][152450:152450] CHIP:CTL: Shutting down the commissioner
    [1687858995.057476][152450:152450] CHIP:CTL: Stopping commissioning discovery over DNS-SD
    [1687858995.057481][152450:152450] CHIP:CTL: Shutting down the controller
    [1687858995.057485][152450:152450] CHIP:IN: Expiring all sessions for fabric 0x1!!
    [1687858995.057488][152450:152450] CHIP:IN: SecureSession[0x7f1598009920]: MarkForEviction Type:2 LSID:18343
    [1687858995.057491][152450:152450] CHIP:SC: SecureSession[0x7f1598009920]: Moving from state 'kActive' --> 'kPendingEviction'
    [1687858995.057495][152450:152450] CHIP:IN: SecureSession[0x7f1598009920]: Released - Type:2 LSID:18343
    [1687858995.057500][152450:152450] CHIP:FP: Forgetting fabric 0x1
    [1687858995.057506][152450:152450] CHIP:TS: Pending Last Known Good Time: 2023-06-01T07:38:45
    [1687858995.057547][152450:152450] CHIP:TS: Previous Last Known Good Time: 2023-06-01T07:38:45
    [1687858995.057550][152450:152450] CHIP:TS: Reverted Last Known Good Time to previous value
    [1687858995.057557][152450:152450] CHIP:CTL: Shutting down the commissioner
    [1687858995.057559][152450:152450] CHIP:CTL: Stopping commissioning discovery over DNS-SD
    [1687858995.057561][152450:152450] CHIP:CTL: Shutting down the controller
    [1687858995.057562][152450:152450] CHIP:CTL: Shutting down the System State, this will teardown the CHIP Stack
    [1687858995.057852][152450:152450] CHIP:DMG: All ReadHandler-s are clean, clear GlobalDirtySet
    [1687858995.057867][152450:152450] CHIP:BLE: BleConnectionDelegate::CancelConnection is not implemented.
    [1687858995.057875][152450:152450] CHIP:FP: Shutting down FabricTable
    [1687858995.057878][152450:152450] CHIP:TS: Pending Last Known Good Time: 2023-06-01T07:38:45
    [1687858995.057901][152450:152450] CHIP:TS: Previous Last Known Good Time: 2023-06-01T07:38:45
    [1687858995.057903][152450:152450] CHIP:TS: Reverted Last Known Good Time to previous value
    [1687858995.057961][152450:152450] CHIP:DL: writing settings to file (/tmp/chip_counters.ini-3n2Cs2)
    [1687858995.058074][152450:152450] CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini)
    [1687858995.058084][152450:152450] CHIP:DL: NVS set: chip-counters/total-operational-hours = 0 (0x0)
    [1687858995.058087][152450:152450] CHIP:DL: Inet Layer shutdown
    [1687858995.058090][152450:152450] CHIP:DL: BLE shutdown
    [1687858995.058094][152450:152450] CHIP:DL: System Layer shutdown

    sudo ./chip-tool-debug identify identify 10 12 1

    And After this commands I got an Error that:

    I: 34957 [SC]Received Sigma3 msg
    E: 34966 [SC]The device does not support GetClock_RealTimeMS() API: 3.  Falling back to Last Known Good UTC Time
    E: 35163 [DL]Long dispatch time: 187 ms, for event type 2
    I: 35263 [EM]<<< [E:4417r S:0 M:58029193 (Ack:51879023)] (U) Msg TX to 0:0000000000000000 [0000] --- Type 0000:40 (SecureChannel:StatusReport)
    I: 35276 [IN](U) Sending msg 58029193 to IP address 'UDP:[fd5a:d4ce:1ab2:5fa8:e99b:db8:b197:cff9]:56825'
    I: 35287 [SC]SecureSession[0x200034f8]: Moving from state 'kEstablishing' --> 'kActive'
    D: 35295 [IN]SecureSession[0x200034f8]: Activated - Type:2 LSID:25501

    So can you little bit guide me for solving this and also I want to know that what is next step for printing Temperature value from DHT11 Sensor.

  • Hi,

    I have been out of the office. Have you been able to fix the issue and get the temperature value from the sensor?

    Best regards,
    Marte

Related