您尚未登录。

楼主 #1 2021-01-10 21:20:37

kekemuyu
会员
注册时间: 2018-12-13
已发帖子: 841
积分: 721

发现乐鑫官方已经支持把esp32作为网卡来用了(支持linux和stm32)

https://github.com/espressif/esp-hosted

ESP-Hosted solution
ESP-Hosted project provides a way to use ESP32 or ESP32-S2 (termed as ESP peripheral) as a communication processor for Wi-Fi and Bluetooth/BLE connectivity. On the host side, ESP-Hosted offers a standard network interface for receiving and transmitting 802.3 frames. On top of the network interface, the host can use its own TCP/IP and TLS stack. For BT connectivity, a standard HCI interface is exposed to the Bluetooth host stack.

Please note that this project doesn't provide a standard 802.11 interface to the host. For the control path between the host and ESP peripheral, ESP-Hosted uses a custom implementation based on Protobuf.

Connectivity Support
ESP hosted solution provides following WLAN and BT/BLE features to host:

WLAN Features:
802.11b/g/n
WLAN Station
WLAN Soft AP
BT/BLE Features:
v4.2 BR/EDR and BLE
Supported Hosts
ESP-Hosted solution supports microprocessors running Linux as well as STM32 MCU (STM32F469I). It's possible to port this relatively easily on other MCUs too. We support Raspberry-Pi (3 Model B+, 4 Model B) and STM32 Discovery Board (STM32F469I-DISCO) out of the box.

Supported Transports
ESP-Hosted uses SDIO or SPI interface as a transport interface for data and control path. The host acts as SDIO or SPI host whereas ESP32 or ESP32-S2 acts as a corresponding ESP peripheral. Currently Raspberry Pi supports both SDIO and SPI transport and STM32 supports SPI transport. As a peripheral device, ESP32 supports both SDIO and SPI transport interfaces and ESP32-S2 supports SPI transport interface.

For detailed explanation, please go through -

Using Raspberry-Pi as a Linux host
Using STM32F469I-DISCO as a MCU host
Feature Matrix
Linux Host
Below table explains which feature is supported on which transport interface for Linux based host.

ESP device    Transport Interface    WLAN support    Virtual serial interface    BT/BLE support
ESP32    SDIO    Yes    Yes    Yes
ESP32    SPI    Yes    Yes    Yes
ESP32    UART    No    No    Yes
ESP32-S2    SDIO    NA    NA    NA
ESP32-S2    SPI    Yes    Yes    NA
ESP32-S2    UART    No    No    NA
MCU Host
Below table explains which feature is supported on which transport interface for MCU based host.

ESP device    Transport Interface    WLAN support    Virtual serial interface    BT/BLE support
ESP32    SDIO    No    No    No
ESP32    SPI    Yes    Yes    HCI interface can be implemented over virtual serial interface
ESP32    UART    No    No    No
ESP32-S2    SDIO    NA    NA    NA
ESP32-S2    SPI    Yes    Yes    NA
ESP32-S2    UART    No    No    NA

离线

楼主 #5 2021-01-11 17:37:26

kekemuyu
会员
注册时间: 2018-12-13
已发帖子: 841
积分: 721

Re: 发现乐鑫官方已经支持把esp32作为网卡来用了(支持linux和stm32)

Bosspoi 说:

看了下,固件是下载到ESP32铁皮模块的Flash里的,启动的时候加载。
ESP8089/ESP8266EX是每次启动的时候下载到ESP8089/ESP8266EX的RAM里。
也就是ESP32比ESP8089/ESP8266EX功能更多,bug更少,但是体积也更大(因为得要用铁皮模块)

”铁皮模块“这都不是事儿,esp32可以直接画在板子上

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn