bluetooth: close H4 transport and propagate cleanup results - #593
Draft
yangshuxuan1024 wants to merge 1 commit into
Draft
yangshuxuan1024 wants to merge 1 commit into
yangshuxuan1024 wants to merge 1 commit into
Conversation
|
This was referenced Sep 18, 2026
Signed-off-by: yangshuxuan1024 <yangshuxuan1024@gmail.com>
yangshuxuan1024
force-pushed
the
contest161/bluetooth-h4-cleanup
branch
from
September 18, 2026 14:17
238c974 to
102668a
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
bluetooth: close H4 transport and propagate cleanup results
目标仓库:https://github.com/open-vela/frameworks_bluetooth
目标分支:
dev-ai-contest-2026;准备时目标提交:028b4ba7e39328acdf23fed0921b7c65aba2001a。提交分支:
contest161/bluetooth-h4-cleanup;签署提交:102668a25d07957c6a2d7f9c8dcc6f62bd1546d6。Summary
H4 驱动原先没有 close 回调,关闭请求返回 -ENOSYS。补充 poll/UART 资源关闭,向上层传播清理结果,并保留服务跟踪和 GATT user_data 所有权辅助逻辑。
关联作品:open-vela/contest2026_161_xiaoxiaozhihuijia#3
Impact
依赖 ZBlue host 状态接口和 HCI RX 诊断接口;新增 service_trace.h 与 sal_gatt_db_ownership.h 已随补丁纳入并添加许可标识。
Testing
最新目标分支补丁应用及空白检查通过。旧基线 ARM/allsyms 已完成;真实控制器 RESET、在途 RX/TX 关闭及重复启动未整体通过验收。
本次未修改算法、阈值或已交付固件,未执行 ARM 编译或烧录。历史构建采用 Linux、ARM GCC 10.3.1、CMake 3.22.1、Ninja 1.10.1,目标为黄山派 SF32LB52。原始验证范围见作品仓 evidence/v28_bootfix。
提交状态
本 PR 以 Draft 发布,保留上述未验证项。等待维护者审核及实际 CLA / CI 结果;补丁可应用不代表 CI 或完整集成测试通过。
涉及文件:
framework/api/bluetooth.cservice/common/service_loop.cservice/common/service_trace.hservice/src/adapter_service.cservice/stacks/include/sal_adapter_le_interface.hservice/stacks/zephyr/hci_h4.cservice/stacks/zephyr/sal_adapter_le_interface.cservice/stacks/zephyr/sal_gatt_db_ownership.hservice/stacks/zephyr/sal_gatt_server_interface.cservice/stacks/zephyr/sal_le_advertise_interface.c公共依赖关联
LVGL 与 const-allsyms 可独立审阅;HCI 快照接口、SiFli、ZBlue 与 Bluetooth 需协调审阅及集成验证。