{"id":19525525,"url":"https://github.com/onekeyhq/bluetooth-firmware-pro","last_synced_at":"2026-01-29T09:28:57.419Z","repository":{"id":252022568,"uuid":"731576090","full_name":"OneKeyHQ/bluetooth-firmware-pro","owner":"OneKeyHQ","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-29T06:40:29.000Z","size":62690,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-08-29T10:32:35.947Z","etag":null,"topics":["embedded-software"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OneKeyHQ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-12-14T11:44:53.000Z","updated_at":"2025-08-29T06:40:33.000Z","dependencies_parsed_at":"2025-04-16T04:49:22.240Z","dependency_job_id":"000f79f2-0dc3-4112-8d46-9ea83a2e0151","html_url":"https://github.com/OneKeyHQ/bluetooth-firmware-pro","commit_stats":null,"previous_names":["onekeyhq/bluetooth-firmware-pro"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/OneKeyHQ/bluetooth-firmware-pro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneKeyHQ%2Fbluetooth-firmware-pro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneKeyHQ%2Fbluetooth-firmware-pro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneKeyHQ%2Fbluetooth-firmware-pro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneKeyHQ%2Fbluetooth-firmware-pro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OneKeyHQ","download_url":"https://codeload.github.com/OneKeyHQ/bluetooth-firmware-pro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneKeyHQ%2Fbluetooth-firmware-pro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28873981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T07:35:32.468Z","status":"ssl_error","status_checked_at":"2026-01-29T07:33:31.463Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["embedded-software"],"created_at":"2024-11-11T01:05:20.157Z","updated_at":"2026-01-29T09:28:57.386Z","avatar_url":"https://github.com/OneKeyHQ.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OneKey Pro Bluetooth Firmware\n\nThis repo contains bluetooth firmware for OneKey Pro\n\nThe firmware is based on NRF5 SDK 16.0.0, and build with CMake\n\n## How to build\n\n```shell\n# make sure you have cmake, Python 3, and aarm-none-eabi toolchain available in PATH\n\n# export your OWN key for firmware signing\nexport BT_SIG_PK=$(cat \u003c\u003cEOF\n-----BEGIN EC PRIVATE KEY-----\nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n-----END EC PRIVATE KEY-----\nEOF\n)\n\n# export toolchain prefix\nexport TOOL_CHAIN_PREFIX=\"arm-none-eabi\"\n\n# call build script\n./build.sh\n```\n\n## CMake Build Targets\n\n```shell\n# ota image\nOnekeyProBTFW_OTA_BIN\n\n# full HEX image\nOnekeyProBTFW_FACTORY_HEX\n\n# flash full HEX image with jlink\nOnekeyProBTFW_FLASH_FACTORY\n```\n\n## How to verify firmware hash\n\nInstall Python 3.x\n\nDownload latest `ota.bin`, open a terminal in the same folder, invoke python, then run following code\n\n```python\nimport struct, hashlib\n\nwith open(\"ota.bin\", mode=\"br\") as f:\n    f.seek(0x0C)\n    codelen = struct.unpack(\"i\", f.read(4))[0] - 512\n    f.seek(0x600)\n    print(\"\".join(format(x, \"02x\") for x in hashlib.sha256(f.read(codelen)).digest()))\n```\n\nSingle line version\n\n```python\nexec(\"\"\"\\nimport struct, hashlib\\nwith open(\"ota.bin\", mode=\"br\") as f:\\n    f.seek(0x0C)\\n    codelen = struct.unpack(\"i\", f.read(4))[0] - 512\\n    f.seek(0x600)\\n    print(\"\".join(format(x, \"02x\") for x in hashlib.sha256(f.read(codelen)).digest()))\\n\"\"\")\n```\n\n## License\n\nPlease check License.md for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonekeyhq%2Fbluetooth-firmware-pro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonekeyhq%2Fbluetooth-firmware-pro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonekeyhq%2Fbluetooth-firmware-pro/lists"}