← 返回
开发者工具 中文

Bluetooth

Discover, connect, and control Bluetooth devices with automatic profile learning, cross-platform tools, and device management.
发现、连接并控制蓝牙设备,支持自动学习配置文件、跨平台工具和设备管理。
ivangdavila
开发者工具 clawhub v1.0.0 1 版本 99827 Key: 无需
★ 2
Stars
📥 1,114
下载
💾 14
安装
1
版本
#latest

概述

Core Workflow

  1. Scan — Discover nearby devices
  2. Identify — Match against known profiles or learn new device
  3. Connect — Establish link with appropriate protocol
  4. Execute — Send commands, read data, manage state
  5. Learn — Update device profile based on interaction success/failure

Quick Reference

NeedLoad
------------
CLI commands by platformtools.md
Device profile managementprofiles.md
Security rules and warningssecurity.md
Patterns by use caseuse-cases.md

Workspace

Store device profiles and interaction history:

~/bluetooth/
├── profiles/         # Known device configs (one file per device)
├── history.md        # Interaction log with success/failure
└── pending.md        # Devices discovered but not profiled

Critical Rules

  1. Never auto-connect to unknown devices — require explicit user confirmation
  2. Whitelist first — only interact with pre-authorized devices
  3. Log everything — every connection attempt, command, result
  4. Fail gracefully — if device unreachable, retry with backoff, then report
  5. Profile learning — when something works, save it; when it fails, note why

Platform Detection

OSPrimary ToolFallback
----------------------------
Linuxbluetoothctlhcitool, gatttool
macOSblueutilsystem_profiler, CoreBluetooth
WindowsWinRT/PowerShellpnputil for enumeration
Cross-platformBleak (Python)Noble (Node.js)

Device Interaction Pattern

1. Check ~/bluetooth/profiles/ for device
2. If known → load profile, use saved commands
3. If unknown → scan characteristics, discover capabilities
4. Execute requested action
5. Verify result (read state, check acknowledgment)
6. Update profile: what worked, what failed, timing

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 04:01 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,362 📥 318,811
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,826
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 671 📥 324,378