chengkai15 opened a new pull request, #21479: URL: https://github.com/apache/nuttx/pull/21479
*Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary Add `sim:zblue` for the Zephyr Bluetooth host in nuttx-apps (`wireless/bluetooth/zblue`, apache/nuttx-apps#3977), and its documentation. This is part of step 1 of option 1B in the [VOTE] on dev@ (https://lists.apache.org/thread/9fy6bog3dcw3do5d8wd0yyvlpkjrhxpn); the vote is open until 9 November 2026, 00:00 UTC, so this PR is a draft until the result. The overall plan is in #21478. Previous discussion: #20686. - `boards/sim/sim/sim/configs/zblue`: a Bluetooth controller of the host is attached with `CONFIG_SIM_HCISOCKET` and exposed as `/dev/ttyHCI0` through `CONFIG_UART_BTH4`; `zblue_peripheral` is enabled. `CONFIG_DEV_URANDOM` gives entropy to the host cryptography, `CONFIG_TLS_NELEM` the thread-specific data of the porting layer. - `Documentation/applications/wireless/zblue`: configuration, porting layer, how to update the Zephyr release. - `Documentation/platforms/sim/sim/boards/sim`: how to run `sim:zblue`. - `tools/ci/testlist/sim-03.dat`: build `sim:zblue` with CMake, and not on macOS (it needs the Linux HCI socket and ELF section start/stop symbols). ## Impact - New board configuration and documentation only. No kernel code changes. - CI: one more sim configuration in `sim-03`; it downloads the Zephyr release during the build, like `sim:nimble` downloads NimBLE. - Depends on apache/nuttx-apps#3977: without it `CONFIG_ZBLUE` does not exist and the configuration does not build the Bluetooth host. ## Testing Host: Ubuntu 22.04.5 x86_64, gcc 13.1.0, CMake 3.23.0, Python 3.10.12. - `tools/testbuild.sh -N` with `/sim/*/*/*/zblue` and `CMake,sim:zblue`, from clean trees of this branch and the apps branch. - `./tools/configure.sh -l sim:zblue && make`, from clean trees. - `tools/checkpatch.sh -g` passes. - Documentation: `sphinx-build -b html` with the packages of `Documentation/Pipfile`; no warning for the new or changed pages, and the sim page links to the zblue page. - Run on hardware (CSR USB controller, BlueZ central on a second controller): advertising, connection, GATT discovery and read, disconnection and reconnection. Logs are in apache/nuttx-apps#3977. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
