Skip to content

docs(bluetooth): add CS API, remove AVRCP/BLE scan/advertiser per tea…#549

Merged
tanghao-xiaomi merged 1 commit into
open-vela:devfrom
tanghao-xiaomi:refactor-bluetooth-api
May 14, 2026
Merged

docs(bluetooth): add CS API, remove AVRCP/BLE scan/advertiser per tea…#549
tanghao-xiaomi merged 1 commit into
open-vela:devfrom
tanghao-xiaomi:refactor-bluetooth-api

Conversation

@tanghao-xiaomi
Copy link
Copy Markdown
Collaborator

…m decision

Note: Please adhere to Contributing Guidelines.

Summary

Update this section with information on why change is necessary,
what it exactly does and how, if new feature shows up, provide
references (dependencies, similar problems and solutions), etc.

Impact

Update this section, where applicable, on how change affects users,
build process, hardware, documentation, security, compatibility, etc.

Testing

Update this section with details on how did you verify the change,
what Host was used for build (OS, CPU, compiler, ..), what Target was
used for verification (arch, board:config, ..), etc. Providing build
and runtime logs from before and after change is highly appreciated.

@@ -1,139 +0,0 @@
\[ English | [简体中文](../../../../zh-cn/api/framework/bluetooth/bt_le_advertiser.md) \]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why delete?

@@ -1,141 +0,0 @@
\[ English | [简体中文](../../../../zh-cn/api/framework/bluetooth/bt_le_scan.md) \]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dito

@tanghao-xiaomi tanghao-xiaomi merged commit 58e8a7b into open-vela:dev May 14, 2026
4 checks passed
- **[SPP](bt_spp.md)**(串口仿真)— 数据透传
- **[PAN](bt_pan.md)**(个人局域网)— 网络共享与蓝牙组网

## 低功耗蓝牙规范
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议改成 测距定位


| 字段 | 类型 | 说明 |
| --------------------------- | --------- | ---------------------- |
| `centimeter` | `uint8_t` | 距离(厘米) |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Max 255cm = 2.55m? For BT 5.4 CS claiming "centimeter-level accuracy", this seems too narrow. Should this be uint16_t or uint32_t?

| 字段 | 类型 | 说明 |
| --------------------------- | --------- | ---------------------- |
| `centimeter` | `uint8_t` | 距离(厘米) |
| `error_centimeter` | `uint8_t` | 距离误差(厘米) |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dito

| `error_azimuthAngle` | `uint8_t` | 方位角误差 |
| `altitude_angle` | `uint8_t` | 仰角 |
| `error_altitudeAngle` | `uint8_t` | 仰角误差 |
| `elapsed_realtime_nanos` | `long` | 经过的实时时间(纳秒) |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-portable. Should be int64_t or uint64_t for a nanosecond timestamp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants