Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export BLE buffers in SKD #4079

Open
loftyinclination opened this issue Jan 24, 2025 · 2 comments
Open

Export BLE buffers in SKD #4079

loftyinclination opened this issue Jan 24, 2025 · 2 comments
Labels
Bluetooth Core+Services HAL, furi & core system services Feature Request New feature or user-story you wanna add to flipper

Comments

@loftyinclination
Copy link

Describe the enhancement you're suggesting.

When sending BLE HCI commands to the STM32WB55 coprocessor (using the process laid out in Annex 5289, 14.2.2) the command body must first be written into the p_cmdBuffer. Currently, it's not possible to write to this buffer in third party applications, since it's not referenced in the SDK, and so it's not possible to build any applications that use HCI commands.

(It is currently possible to listen for the responses to these events, via use of the ble_event_dispatcher_register_svc_handler function, which I think was included because the event handling is necessary for both ACI commands (which, as they don't require touching the p_cmdBuffer, are already callable from other applications), as well as HCI commands).

Anything else?

No response

@hedger
Copy link
Member

hedger commented Feb 3, 2025

Issuing raw BLE HCI commands could possibly affect the state managed by the BLE subsystem. We'll consider if that feature is worth implementing, because it's current use is also quite limited due to dependance on full HCI headers being available in the SDK to parse callback results.

@hedger hedger added Feature Request New feature or user-story you wanna add to flipper Bluetooth Core+Services HAL, furi & core system services labels Feb 3, 2025
@loftyinclination
Copy link
Author

loftyinclination commented Feb 3, 2025

Do you mean the BLE subsystem inside of the copro library, or in the flipper firmware itself?

And for HCI headers, do you mean the version of the BLE LE stack variant, or the HCI events as detailed in AN5270, section 3? Having done some reading, probably the C Header files from the STM32_copro library -- when investigating send BLE commands from within C, exposing ble_app_cmd_buffer via a method in targets/f7/ble_glue/ble_app.h bought all of the stm32wb_copro headers into the SDK, evidenced by api_symbols gaining a bunch of new entiries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bluetooth Core+Services HAL, furi & core system services Feature Request New feature or user-story you wanna add to flipper
Projects
None yet
Development

No branches or pull requests

2 participants