Giter Club home page Giter Club logo

Comments (11)

brdandu avatar brdandu commented on August 17, 2024 1

@isj4 @SimpliPHYd seems like you have figured this out. @SimpliPHYd you are correct you need to pass the --gen and --zcl targets to zap in order to pick the correct meta data from your SDK. ZAP documentation related to this can be found in https://github.com/project-chip/zap -> Usage Documentation -> ZAP User's Guide -> Launching ZAP for Matter or Zigbee Applications or Generating Code for Matter, Zigbee or a Custom SDK

from zap.

paulr34 avatar paulr34 commented on August 17, 2024

@isj4 can you try with the very latest? please

from zap.

paulr34 avatar paulr34 commented on August 17, 2024

this one https://github.com/project-chip/zap/releases/tag/v2023.12.06-nightly

from zap.

isj4 avatar isj4 commented on August 17, 2024

I tested that version now.
Downloaded ZIP file and unpacked on Ubuntu 20.04.6 LTS in a VM.

I started "zap" directly on the command line, created a minimal zigbee project "Zigbee HA gateway...", saved, and then pushed [generate]. Result:

A popup-notification appears with:

zap
"" is ready

But a file location picker window popped up in the background.

No location/directory seems selectable in that picker, except the "recent/home/desktop/documents/downloads/..." shortcuts.
I selected "Downloads" and pressed the green [Generate button]. Window closes. A sort-of progress-bar line flashes in the main window, and nothing has been generated. No warnings, no errors.

I'm wondering if Zap relies on some shared library but doesn't detect its non-presence and simply fails silently.

from zap.

paulr34 avatar paulr34 commented on August 17, 2024

@isj4 yeah, you need to select a gen-templates file

good point, whatever is happening, it should tell you

from zap.

isj4 avatar isj4 commented on August 17, 2024

Which "gen-templates" do you refer to? The .slcp files or something similar? It is not obvious to me what it might be.

from zap.

paulr34 avatar paulr34 commented on August 17, 2024

look up "gen-templates.json" in the SDK

from zap.

SimpliPHYd avatar SimpliPHYd commented on August 17, 2024

Any luck with this issue? I am having the same problem

from zap.

isj4 avatar isj4 commented on August 17, 2024

I haven't had time to try yet. I did locate the mentioned file in the Gecko SDK: ./protocol/zigbee/app/framework/gen-template/gen-templates.json

from zap.

SimpliPHYd avatar SimpliPHYd commented on August 17, 2024

Ok I got it working!
run the zap tool with the following arguments:
./zap --logToStdout --gen <path_to_template>/gen-templates.json --zcl <path_to_zcl.json>/zcl.json

You should also be able to generate the files without specifying the zcl.json file and using the default one:
./zap --logToStdout --gen <path_to_template>/gen-templates.json

I'm not sure if this is documented anywhere but I could not find any documentation on how to run zap.
I had to look at the scripts from connectedhomeip repo that are using zap.

If anyone knows where this is documented, could you point me in the right direction.
Thanks!

from zap.

brdandu avatar brdandu commented on August 17, 2024

If you see [Error: SQLITE_ERROR: no such table: SETTING] { errno: 1, code: 'SQLITE_ERROR' } error it is likely that your database got corrupted at some point and deleting your .zap repo from your root directory gets you around this issue.

Closing this issue hoping that this answers all your questions. Please feel free to re-open if there is anything left over with respect to this issue.

from zap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.