{"id":40344372,"url":"https://github.com/dyrkin/znp-go","last_synced_at":"2026-01-20T09:06:50.223Z","repository":{"id":48130775,"uuid":"164210783","full_name":"dyrkin/znp-go","owner":"dyrkin","description":"ZigBee Network Processor (ZNP) Interface","archived":false,"fork":false,"pushed_at":"2023-02-25T00:36:38.000Z","size":2743,"stargazers_count":14,"open_issues_count":4,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-06-19T00:17:40.283Z","etag":null,"topics":["cc2531","go","zigbee","zigbee-network-processor","znp","znpi"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dyrkin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-05T11:58:08.000Z","updated_at":"2024-04-06T20:40:13.000Z","dependencies_parsed_at":"2024-06-19T00:15:23.821Z","dependency_job_id":null,"html_url":"https://github.com/dyrkin/znp-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dyrkin/znp-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyrkin%2Fznp-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyrkin%2Fznp-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyrkin%2Fznp-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyrkin%2Fznp-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dyrkin","download_url":"https://codeload.github.com/dyrkin/znp-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyrkin%2Fznp-go/sbom","scorecard":{"id":362495,"data":{"date":"2025-08-11","repo":{"name":"github.com/dyrkin/znp-go","commit":"69131cf3194a3ac19546ea6c3365d023d317616c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T11:09:01.365Z","repository_id":48130775,"created_at":"2025-08-18T11:09:01.366Z","updated_at":"2025-08-18T11:09:01.366Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28599868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T08:51:33.170Z","status":"ssl_error","status_checked_at":"2026-01-20T08:51:10.855Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cc2531","go","zigbee","zigbee-network-processor","znp","znpi"],"created_at":"2026-01-20T09:06:50.162Z","updated_at":"2026-01-20T09:06:50.215Z","avatar_url":"https://github.com/dyrkin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ZigBee Network Processor (ZNP) Interface\n\n[![Build Status](https://cloud.drone.io/api/badges/dyrkin/znp-go/status.svg??branch=master)](https://cloud.drone.io/dyrkin/znp-go)\n\n## Overview\n\nZNP is used for communication between the host and a ZigBee device through a serial port. You can issue Monitor and Test (MT) commands to the\nZigBee target from your application.\n\nI tested it with cc253**1**, but it might work with cc253**X**  \n\n## Example\n\nTo use it you need to provide a reference to an unp instance:\n\n```go\nimport (\n\t\"go.bug.st/serial.v1\"\n\t\"github.com/davecgh/go-spew/spew\"\n\t\"github.com/dyrkin/unp-go\"\n\t\"github.com/dyrkin/znp-go\"\n)\n\nfunc main() {\n\tmode := \u0026serial.Mode{\n\t\tBaudRate: 115200,\n\t}\n\n\tport, err := serial.Open(\"/dev/tty.usbmodem14101\", mode)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tport.SetRTS(true)\n\n\tu := unp.New(1, port)\n\tz := znp.New(u)\n\tz.Start()\n}\n```\n\nThen you be able to run commands:\n\n```go\nres, err := z.SysSetExtAddr(\"0x00124b00019c2ee9\")\nif err != nil {\n\tlog.Fatal(err)\n}\n\t\nres, err = z.SapiZbPermitJoiningRequest(\"0xFF00\", 200)\nif err != nil {\n\tlog.Fatal(err)\n}\n```\n\nTo receive async commands and errors, use `AsyncInbound()` and `Errors()` channels:\n\n```go\ngo func() {\n    for {\n        select {\n        case err := \u003c-z.Errors():\n            fmt.Printf(\"Error received: %s\\n\", err)\n        case async := \u003c-z.AsyncInbound():\n            fmt.Printf(\"Async received: %s\\n\", spew.Sdump(async))\n        }\n    }\n}()\n```\n\nTo log all ingoing and outgoing unp frames, use `InFramesLog()` and `OutFramesLog()` channels:\n\n```go\ngo func() {\n    for {\n        select {\n        case frame := \u003c-z.OutFramesLog():\n            fmt.Printf(\"Frame sent: %s\\n\", spew.Sdump(frame))\n        case frame := \u003c-z.InFramesLog():\n            fmt.Printf(\"Frame received: %s\\n\", spew.Sdump(frame))\n        }\n    }\n}()\n```\n\nSee more [examples](example/example.go)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyrkin%2Fznp-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyrkin%2Fznp-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyrkin%2Fznp-go/lists"}