This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 9ef787f9de3aa7f42fd8bcfb5f033a29c49aed56 Author: Eren Terzioglu <[email protected]> AuthorDate: Thu May 28 12:07:35 2026 +0200 Docs/platforms/esp32[-c6|-h2]: Add BLE docs for esp32[-c6|-h2] Add BLE docs for esp32c6 and esp32h2 Signed-off-by: Eren Terzioglu <[email protected]> --- .../esp32c6/boards/esp32c6-devkitc/index.rst | 68 ++++++++++++++++++++++ Documentation/platforms/risc-v/esp32c6/index.rst | 2 +- .../risc-v/esp32h2/boards/esp32h2-devkit/index.rst | 68 ++++++++++++++++++++++ Documentation/platforms/risc-v/esp32h2/index.rst | 2 +- 4 files changed, 138 insertions(+), 2 deletions(-) diff --git a/Documentation/platforms/risc-v/esp32c6/boards/esp32c6-devkitc/index.rst b/Documentation/platforms/risc-v/esp32c6/boards/esp32c6-devkitc/index.rst index 3b39191ef21..ba228e8e913 100644 --- a/Documentation/platforms/risc-v/esp32c6/boards/esp32c6-devkitc/index.rst +++ b/Documentation/platforms/risc-v/esp32c6/boards/esp32c6-devkitc/index.rst @@ -121,6 +121,74 @@ power if DTIM is short as the DTIM is determined by the access point. During ping operation power consumption should drop from 90-100mA to 30-40mA. +ble +--- + +This configuration is used to enable the Bluetooth Low Energy (BLE) of +ESP32-C6 chip. + +To test it, just run the following commands below. + +Confirm that bnep interface exist:: + + nsh> ifconfig + bnep0 Link encap:UNSPEC at DOWN mtu -9 + inet addr:0.0.0.0 DRaddr:0.0.0.0 Mask:0.0.0.0 + +Get basic information from it:: + + nsh> bt bnep0 info + Device: bnep0 + BDAddr: 8c:bf:ea:b3:4c:ea + Flags: 0000 + Free: 20 + ACL: 20 + SCO: 0 + Max: + ACL: 24 + SCO: 0 + MTU: + ACL: 70 + SCO: 70 + Policy: 0 + Type: 0 + +Start the scanning process:: + + nsh> bt bnep0 scan start + +Wait a little bit before stopping it. + +Then after some minutes stop it:: + + nsh> bt bnep0 scan stop + +Get the list of BLE devices found around you:: + + nsh> bt bnep0 scan get + Scan result: + 1. addr: d7:c4:e6:xx:xx:xx type: 0 + rssi: -62 + response type: 4 + advertiser data: 10 09 4d 69 20 XX XX XX XX XX XX XX XX XX XX 20 e + 2. addr: cb:23:18:xx:xx:xx type: 0 + rssi: -60 + response type: 0 + advertiser data: 02 01 06 1b ff XX XX XX ff ff ff ff ff ff ff ff 8 + 3. addr: cb:23:18:xx:xx:xx type: 0 + rssi: -60 + response type: 4 + advertiser data: 10 09 4d 69 20 XX XX XX XX XX XX XX XX XX XX 20 e + 4. addr: d7:c4:e6:xx:xx:xx type: 0 + rssi: -62 + response type: 0 + advertiser data: 02 01 06 1b ff XX XX XX ff ff ff ff ff ff ff ff e + 5. addr: d7:c4:e6:xx:xx:xx type: 0 + rssi: -62 + response type: 4 + advertiser data: 10 09 4d 69 20 XX XX XX XX XX XX XX XX XX XX 20 e + nsh> + bmp180 ------ diff --git a/Documentation/platforms/risc-v/esp32c6/index.rst b/Documentation/platforms/risc-v/esp32c6/index.rst index 1cda738ceea..f0db2ae1a03 100644 --- a/Documentation/platforms/risc-v/esp32c6/index.rst +++ b/Documentation/platforms/risc-v/esp32c6/index.rst @@ -425,7 +425,7 @@ Peripheral Support NOTES ============== ======= ==================== ADC Yes Oneshot and internal temperature sensor AES Yes -Bluetooth No +Bluetooth Yes CAN/TWAI Yes DMA Yes ECC No diff --git a/Documentation/platforms/risc-v/esp32h2/boards/esp32h2-devkit/index.rst b/Documentation/platforms/risc-v/esp32h2/boards/esp32h2-devkit/index.rst index 5703429f07c..ff979d67572 100644 --- a/Documentation/platforms/risc-v/esp32h2/boards/esp32h2-devkit/index.rst +++ b/Documentation/platforms/risc-v/esp32h2/boards/esp32h2-devkit/index.rst @@ -146,6 +146,74 @@ autopm This configuration makes the device automatically enter the low power consumption mode when in the idle state, powering off the cpu and other peripherals. +ble +--- + +This configuration is used to enable the Bluetooth Low Energy (BLE) of +ESP32-H2 chip. + +To test it, just run the following commands below. + +Confirm that bnep interface exist:: + + nsh> ifconfig + bnep0 Link encap:UNSPEC at DOWN mtu -9 + inet addr:0.0.0.0 DRaddr:0.0.0.0 Mask:0.0.0.0 + +Get basic information from it:: + + nsh> bt bnep0 info + Device: bnep0 + BDAddr: 58:41:81:40:02:08 + Flags: 0000 + Free: 20 + ACL: 20 + SCO: 0 + Max: + ACL: 24 + SCO: 0 + MTU: + ACL: 70 + SCO: 70 + Policy: 0 + Type: 0 + +Start the scanning process:: + + nsh> bt bnep0 scan start + +Wait a little bit before stopping it. + +Then after some minutes stop it:: + + nsh> bt bnep0 scan stop + +Get the list of BLE devices found around you:: + + nsh> bt bnep0 scan get + Scan result: + 1. addr: d7:c4:e6:xx:xx:xx type: 0 + rssi: -62 + response type: 4 + advertiser data: 10 09 4d 69 20 XX XX XX XX XX XX XX XX XX XX 20 e + 2. addr: cb:23:18:xx:xx:xx type: 0 + rssi: -60 + response type: 0 + advertiser data: 02 01 06 1b ff XX XX XX ff ff ff ff ff ff ff ff 8 + 3. addr: cb:23:18:xx:xx:xx type: 0 + rssi: -60 + response type: 4 + advertiser data: 10 09 4d 69 20 XX XX XX XX XX XX XX XX XX XX 20 e + 4. addr: d7:c4:e6:xx:xx:xx type: 0 + rssi: -62 + response type: 0 + advertiser data: 02 01 06 1b ff XX XX XX ff ff ff ff ff ff ff ff e + 5. addr: d7:c4:e6:xx:xx:xx type: 0 + rssi: -62 + response type: 4 + advertiser data: 10 09 4d 69 20 XX XX XX XX XX XX XX XX XX XX 20 e + nsh> + bmp180 ------ diff --git a/Documentation/platforms/risc-v/esp32h2/index.rst b/Documentation/platforms/risc-v/esp32h2/index.rst index 33ecb7278cf..a37949ab829 100644 --- a/Documentation/platforms/risc-v/esp32h2/index.rst +++ b/Documentation/platforms/risc-v/esp32h2/index.rst @@ -416,7 +416,7 @@ Peripheral Support NOTES ============== ======= ==================== ADC Yes Oneshot and internal temperature sensor AES Yes -Bluetooth No +Bluetooth Yes CAN/TWAI Yes DMA Yes DS No
