how to add new endpoint with zap?

Hi:

If i want add a new endpoint in my samples proj,wha should i do?

Only use the zap tool open the path:samples/src/.zap file.and then add a new endpoint,

But it seem need  generate a new cluster file by ZCL tool?

Are there any references for this?

BTW,i think i should tell u something about mine  ncs envirnment.

ncs:V2.3.0

samples:ncs\v2.3.0\nrf\samples\matter\template

What i want to do is that add a new endpoint named endpoint 1 and then use it to as a measure temperature tool.

Parents
  •  - What you've asked is pretty straight forward I hope. If I understand it right, you've having trouble in generating the zap file?

  • If I understand it right, you've having trouble in generating the zap file?

    Hi askabu~

    Yes,i run the generate.py and it occurred an error.

    chuckrui@chuck MINGW64 /e/ncs/v2.3.0/modules/lib/matter ((v2.3.0))
    $ python ./scripts/tools/zap/generate.py /e/my_prj/v2.3.0/sensor_matter/src/template.zap
    Searching for zcl file from E:/my_prj/v2.3.0/sensor_matter/src/template.zap
    Error: E:\Nordic\NCS\SDK\tag\v2.3.0\modules\lib\matter\src\app\zap-templates\zcl\zcl.json does not exists or is not a file.

    But i accorded this case  Matter template sample - fails to build after touching with ZAP tool ,modified the path:

    E:\my_prj\v2.3.0\sensor_matter\src\template.zap file.

    And then i modified the line 20 and line 29.

    #line 21
    "path": "..\\..\\..\\..\\Nordic\\NCS\\SDK\\tag\\v2.3.0\\modules\\lib\\matter\\src\\app\\zap-templates\\zcl\\zcl.json",
    >>>>>>>
    "path": "E:\\ncs\\v2.3.0\\modules\\lib\\matter\\src\\app\\zap-templates\\zcl\\zcl.json",
    
    #line 29
    "path": "..\\..\\..\\..\\Nordic\\NCS\\SDK\\tag\\v2.3.0\\modules\\lib\\matter\\src\\app\\zap-templates\\app-templates.json",
    >>>>>>>
    "path": "E:\\ncs\\v2.3.0\\modules\\lib\\matter\\src\\app\\zap-templates\\app-templates.json",

    I found generate.py seems to work.

    But the last line show an error show that:

    "The specified file cannot be found by system"

    Can you tell me that this makes me successful?

    Best regards,

    chuck

Reply
  • If I understand it right, you've having trouble in generating the zap file?

    Hi askabu~

    Yes,i run the generate.py and it occurred an error.

    chuckrui@chuck MINGW64 /e/ncs/v2.3.0/modules/lib/matter ((v2.3.0))
    $ python ./scripts/tools/zap/generate.py /e/my_prj/v2.3.0/sensor_matter/src/template.zap
    Searching for zcl file from E:/my_prj/v2.3.0/sensor_matter/src/template.zap
    Error: E:\Nordic\NCS\SDK\tag\v2.3.0\modules\lib\matter\src\app\zap-templates\zcl\zcl.json does not exists or is not a file.

    But i accorded this case  Matter template sample - fails to build after touching with ZAP tool ,modified the path:

    E:\my_prj\v2.3.0\sensor_matter\src\template.zap file.

    And then i modified the line 20 and line 29.

    #line 21
    "path": "..\\..\\..\\..\\Nordic\\NCS\\SDK\\tag\\v2.3.0\\modules\\lib\\matter\\src\\app\\zap-templates\\zcl\\zcl.json",
    >>>>>>>
    "path": "E:\\ncs\\v2.3.0\\modules\\lib\\matter\\src\\app\\zap-templates\\zcl\\zcl.json",
    
    #line 29
    "path": "..\\..\\..\\..\\Nordic\\NCS\\SDK\\tag\\v2.3.0\\modules\\lib\\matter\\src\\app\\zap-templates\\app-templates.json",
    >>>>>>>
    "path": "E:\\ncs\\v2.3.0\\modules\\lib\\matter\\src\\app\\zap-templates\\app-templates.json",

    I found generate.py seems to work.

    But the last line show an error show that:

    "The specified file cannot be found by system"

    Can you tell me that this makes me successful?

    Best regards,

    chuck

Children
Related