From d6f6f8117c861f21f0e1267445bfd406317d77e0 Mon Sep 17 00:00:00 2001 From: Roshan Bangar Date: Mon, 4 Mar 2024 14:53:20 +0530 Subject: [PATCH] docs(nimble): Improved documentation for uart host only example --- .../tutorial/bleprph_host_only_walkthrough.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/examples/bluetooth/nimble/bleprph_host_only/tutorial/bleprph_host_only_walkthrough.md b/examples/bluetooth/nimble/bleprph_host_only/tutorial/bleprph_host_only_walkthrough.md index 4bfba23bc4..89bcc3e0da 100644 --- a/examples/bluetooth/nimble/bleprph_host_only/tutorial/bleprph_host_only_walkthrough.md +++ b/examples/bluetooth/nimble/bleprph_host_only/tutorial/bleprph_host_only_walkthrough.md @@ -7,11 +7,18 @@ The tutorial is focused on how to implement the custom transport in the applicat Note: This walkthrough only covers the transport used by the application, for detailed explanation see the [bleprph_walkthrough](../../bleprph/tutorial/bleprph_walkthrough.md) ## Hardware Setup -This example uses esp32 chip to run the example `bleprph_host_only` that runs the nimble-host and sends and receives the commands and events using uart. The another chip used is esp32c6 that runs the esp-hosted `esp-hosted/esp_hosted_fg/esp/esp_driver/network_adapter` example that runs the controller and receives commands and sends events using UART. Below is the setup of esp32 and esp32c6. +This example uses esp32 chip to run the example `bleprph_host_only` that runs the nimble-host and sends and receives the commands and events using uart. The another chip used is esp32c6 that runs the controller `esp-idf/examples/bluetooth/nimble/hci` example that runs the controller and receives commands and sends events using UART. Below is the setup of esp32 and esp32c6. ![Hardware Setup](hardware_setup.png) -Note that the esp32s gpio pins tx=4 and rx=5 are defined in [uart_driver.c](../main/uart_driver.c) file. The tx pin of one chip connectes to the rx pin of the other and vice versa. +Note that the esp32 gpio pins tx=4 and rx=5 are configurable using idf.py menuconfig -> example config -> Uart Configuration. The tx pin of one chip connectes to the rx pin of the other and vice versa. + +Below is the pin connection chart for Esp32 and esp32c6. + +| Esp32 (Signal) | Esp32 (GPIO Pin) | C6 (Signal) | C6 (GPIO Pin) | +|----------------|-------------------|-------------|---------------| +| Rx | 5 | Tx | 5 | +| Tx | 4 | Rx | 12 | ```c #define UART_TX_PIN (4)