Comments (11)
@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.
@isj4 can you try with the very latest? please
from zap.
this one https://github.com/project-chip/zap/releases/tag/v2023.12.06-nightly
from zap.
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.
@isj4 yeah, you need to select a gen-templates file
good point, whatever is happening, it should tell you
from zap.
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.
look up "gen-templates.json" in the SDK
from zap.
Any luck with this issue? I am having the same problem
from zap.
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.
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.
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)
- Incorrect warnings about missing clusters for Air Quality? HOT 2
- Rewrite tests using await/async instead of the old .then() patterns
- Features cannot have cluster codes in just like bitmap feature HOT 1
- Open, edit and save a zap file outside the Simplicity Studio environment HOT 1
- types.isFloat is broken HOT 2
- ZAP needs to track endpoint composition types HOT 2
- Default value handling broken for nullable strings and other situations HOT 4
- profile id is in the endpoint card for Matter HOT 3
- zcl_enums and zcl_bitmaps handle built-in types inconsistently
- ZAP GUI - loading large data HOT 4
- missing <description> in cluster's <event> element causes confusing error
- Features page
- Switching to endpoint configuration from the options, extensions and notifications page. HOT 3
- Custom Cluster Remains in Generated Files After Custom XML Removal
- Opening Matter file shows ZapConfig page
- Custom XML bug in the following use case - Add custom xml, make changes, delete, add again (both in ZigBee and Matter) HOT 1
- All codepaths from collectAttributes should make sure they terminate things in a comma.
- List type attributes should be forced external
- Row number discrepancy in attributes of Matter Clusters
- UI shows duplicate Session Notifications (at times)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zap.