tuya/tuyaopen-ide-manifests/ble
Claude Code and agent skill by tuya/tuyaopen-ide-manifests
- community
Checking that the SKILL.md file is still in the repository.
TuyaOS Bluetooth LE via tal_bluetooth: peripheral advertising, central scan, and Tuya BLE remote service hooks. BLE、蓝牙、广播、扫描、从机、主机、tal_ble、蓝牙遥控器。
Install
npx vskill@latest install tuya/tuyaopen-ide-manifests/bleSKILL.md
TuyaOS BLE (tal_bluetooth / tal_ble_*)
Demos: software/TuyaOS/apps/tuyaos_demo_examples/src/examples/os_ble/
| Role | File | Entry | |
|---|---|---|---|
| Peripheral (advertise + accept connect) | example_os_ble_peripheral.c | example_ble_peripheral | |
| Central (scan) | example_os_ble_central.c | example_ble_central |
Product BLE remote (framework-level, after device online):
…/service_ble_remote/ — tuya_ble_reg_app_scan_adv_cb, bind window APIs. Requires product/device init order described in that README (remote hooks before / with example_soc_init).
Confirm first
- Role: peripheral (被连) / central (扫描|主) / Tuya BLE remote?
- Adv payload / device name if peripheral.
- Scan filters / timeout if central.
- Whether the product already owns BLE (TuyaOS link-layer for pairing). Avoid dual stack init.
Core APIs
| Function | Role | |
|---|---|---|
tal_ble_bt_init(role, event_cb) | TAL_BLE_ROLE_PERIPERAL or TAL_BLE_ROLE_CENTRAL + callback | |
tal_ble_advertising_data_set(&adv, &rsp) | set ADV + scan response | |
tal_ble_advertising_start(param) | start ADV (TUYAOS_BLE_DEFAULT_ADV_PARAM in demo) | |
tal_ble_scan_start(&scan_cfg) / tal_ble_scan_stop | central scan | |
tal_ble_server_common_read_update | peripheral read-char update after connect | |
| Event types | TAL_BLE_STACK_INIT, TAL_BLE_EVT_PERIPHERAL_CONNECT, TAL_BLE_EVT_DISCONNECT, TAL_BLE_EVT_ADV_REPORT, TAL_BLE_EVT_WRITE_REQ, … |
Headers: tal_bluetooth.h (and related). Log with tal_log.h.
Peripheral pattern (from demo)
Copy adv / scan_rsp byte layouts from the demo or product protocol docs — do not invent Tuya frame control fields unless the user provides a format.
Central / scan pattern
Handle TAL_BLE_EVT_ADV_REPORT in the callback; call tal_ble_scan_stop() when done.
BLE remote (service layer)
If the user wants 涂鸦蓝牙遥控器 / custom beacon remote:
- Read
service_ble_remote/README.md. - Register scan/bind callbacks before full product online as demo order requires.
- APIs include
tuya_ble_reg_app_scan_adv_cb,tuya_ble_reg_app_scan_adv_handle_cbs,
tuya_ble_set_bind_window, and user raw scan CB variants.
This is not the same as bare tal_ble_bt_init peripheral demos.
Rules
- Prefer adapting
os_bledemos over free-hand GATT design. - Role is exclusive in demos — confirm central vs peripheral; dual-role needs platform support check.
- Do not mix TuyaOpen BLE helpers or host-side stacks into the firmware skill path.
- After code changes:
local.mkif new files, then `tuyaos-build`.
Troubleshooting
| Symptom | Likely cause | Fix | |
|---|---|---|---|
| No ADV seen | init failed / wrong role / ADV not started in TAL_BLE_STACK_INIT | start ADV only after stack init success | |
| Scan empty | passive vs active / window too small / RF coexistence | match demo scan_cfg; check Wi-Fi+BLE coexistence | |
| Connect then drop | bad conn params / app watchdog | log TAL_BLE_EVT_DISCONNECT; restart ADV | |
| Remote never binds | wrong init order vs example_soc_init | follow service_ble_remote README order |
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/embedded/tuyaos-hardware-vibe-coding/peripheral-drivers/ble/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tuya/tuyaopen-ide-manifests/ble)