Skip to content

Hosted Solution (Linux/MCU) with ESP32 (Wi-Fi + BT + BLE)

Notifications You must be signed in to change notification settings

sergey-suloev/esp-hosted

 
 

Repository files navigation

ESP-Hosted

ESP-Hosted is an open source solution that provides a way to use Espressif SoCs and modules as a communication co-processor. This solution provides wireless connectivity (Wi-Fi and BT/BLE) to the host microprocessor or microcontroller, allowing it to communicate with other devices.

Following is the high level block diagram for ESP-Hosted. Detailed block diagram is available in subsequent sections.

alt text

1. ESP-Hosted Flavours

The ESP-Hosted solution is available in two flavours as mentioned below. The differentiation factor here is the type of network interface presented to host and the way Wi-Fi on ESP SoC/module is configured/controlled. Both the flavours have their respective host and firmware software.

1.1 ESP-Hosted-NG

This is the Next-Generation ESP-Hosted solution specifically designed for hosts that run Linux operating system. This flavour of the solution takes a standard approach while providing a network interface to the host. This allows usage of standard Wi-Fi applications such as wpa_supplicant to be used with ESP SoCs/modules.

This solution offers following:

  • 802.11 network interface which is a standard Wi-Fi interface on Linux host
  • Configuration of Wi-Fi is supported through standard cfg80211 interface of Linux
  • A standard HCI interface

This flavour is available in esp_hosted_ng

Please proceed with the detailed documentation for setup and usage instructions.

1.2 ESP-Hosted-FG

This is a first generation ESP-Hosted solution. This is a flavour, which provides a standard 802.3 (Ethernet) network interface to the host. Thought process behind this solution is to keep the host software simple while providing suite of connectivity features.

In order to achieve this, the host is presented with following:

  • A standard 802.3 network interface which essentially is an Ethernet interface
  • A light weight control interface to configure Wi-Fi on ESP board
  • A standard HCI interface

Although this flavour supports Linux host, the nature of this solution makes it ideal to be used with MCU hosts which do not have complex communication interfaces such as Ethernet, Wi-Fi, BT/BLE etc.

This flavour is available in esp_hosted_fg

Please proceed with the detailed documentation for setup and usage instructions.

2. ESP-Hosted-FG vs ESP-Hosted-NG

Now that we offer two flavours of this solution, it could cause a little confusion. This section will try to explains similarities and differences in both the flavours and help you make a choice.

2.1 Similarities

  • Both the flavours share the same aim, to conveniently use ESP's Wi-Fi and Bluetooth/BLE capabilities from host
  • Both the flavours aim to support same set of ESP SoCs/modules and same set of transports like SPI/SDIO/UART for connectivity needs

2.2 Key Differences

  • ESP-Hosted-FG supports both Linux and MCU hosts. ESP-Hosted-NG supports only Linux host.
  • ESP-Hosted-FG exposes 802.3 network interface (Ethernet) to the host. Where as, ESP-Hosted-NG exposes 802.11 interface (Wi-Fi).
  • ESP-Hosted-FG uses custom control path to configure Wi-Fi as opposed to ESP-Hosted-NG which uses standard nl80211/cfg80211 configuration.

Following table summarizes this entire discussion.

Features ESP-Hosted
First
Generation
ESP-Hosted
Next
Generation
Supported platforms MCU & Linux host Linux only host
Wi-Fi Configuration mechanism Custom control interface nl80211 / cfg80211
Network Interface available 802.3 Ethernet Interface 802.11 Wi-Fi interface
Recommended Host Type MCU Host Linux Host
Wi-Fi features 802.11 b/g/n
Transport Layer SDIO, SPI, UART
Usable transport combinations SPI only, SPI+UART, SDIO only, SDIO+UART
Wi-Fi Mode Station, SoftAP Station, SoftAP
Wi-Fi Security Protocols Open / WPA / WPA2 / WPA3
Bluetooth features BLE 4.2, BLE 5.0, BLE 5.3
Chipsets supported ESP32, ESP32-C2/C3/C5/C6/S2/S3 ESP32, ESP32-C2/C3/C6/S2/S3

3. Our Recommendation

  • If you are using MCU host, you do not have choice but to use ESP-Hosted-FG
  • If you are using Linux host, we recommend ESP-Hosted-NG since it takes a standard approach which makes it compatible with widely used user space applications/services such as wpa_supplicant, Network Manager etc.

About

Hosted Solution (Linux/MCU) with ESP32 (Wi-Fi + BT + BLE)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 91.1%
  • Python 5.6%
  • Shell 2.0%
  • CMake 0.6%
  • Makefile 0.4%
  • Batchfile 0.2%
  • PowerShell 0.1%