您尚未登录。

楼主 #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

离线

#2 2021-01-10 21:31:17

歌以咏志
会员
注册时间: 2019-09-21
已发帖子: 219
积分: 210

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

ESP-Hosted uses SDIO or SPI interface

通过SDIO/SPI与CPU连接上网?

有固件吗?

离线

#3 2021-01-10 21:35:34

孤星泪
会员
注册时间: 2020-03-18
已发帖子: 235
积分: 231

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

歌以咏志 说:

ESP-Hosted uses SDIO or SPI interface

通过SDIO/SPI与CPU连接上网?

有固件吗?

貌似ESP8089就是这么玩的, 和ESP8266就是同一个DIE?

离线

#4 2021-01-11 17:27:08

Bosspoi
会员
注册时间: 2020-11-29
已发帖子: 32
积分: 56.5

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

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

离线

楼主 #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可以直接画在板子上

离线

#6 2021-01-11 18:21:45

liuchangyin
会员
注册时间: 2020-03-17
已发帖子: 204
积分: 199

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

这种模式不错,扩展多了一种选择

离线

#7 2021-01-12 01:55:56

metro
会员
注册时间: 2019-03-09
已发帖子: 442
积分: 486

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

Bosspoi 说:

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

ESP32有SiP Flash的版本,ESP32-PICO-D4,可以不需要“铁皮模块”。

最近编辑记录 metro (2021-01-12 02:02:06)

离线

#8 2021-01-15 16:42:00

whyabc666
封禁
注册时间: 2019-12-12
已发帖子: 378
积分: 365

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

这片子做常用网卡似乎还不明智,和那么多大佬抢市场?

离线

#9 2021-01-16 10:16:06

Blueskull
会员
注册时间: 2020-02-20
已发帖子: 458
积分: 444.5

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

whyabc666 说:

这片子做常用网卡似乎还不明智,和那么多大佬抢市场?

SDIO能上网的有的是。能自己改固件的没几个。拿来单纯上网没意思,但是会玩的肯定会玩新花样,比如上网+系统监控(当单片机用),或者WiFi+LAN,或者WiFi+BT,或者ESP自己跑全套协议栈等等。

离线

#10 2021-01-16 21:18:51

笨企鹅
会员
注册时间: 2019-10-28
已发帖子: 38
积分: 37.5

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

Blueskull 说:
whyabc666 说:

这片子做常用网卡似乎还不明智,和那么多大佬抢市场?

SDIO能上网的有的是。能自己改固件的没几个。拿来单纯上网没意思,但是会玩的肯定会玩新花样,比如上网+系统监控(当单片机用),或者WiFi+LAN,或者WiFi+BT,或者ESP自己跑全套协议栈等等。


显然已经有这样用了,用量还有增加的势头,不然,上海乐鑫也不会下这么大本

离线

#11 2021-02-07 14:54:00

john78
会员
注册时间: 2018-07-19
已发帖子: 219
积分: 167

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

想用在V3S上,没有找到教程

离线

#12 2021-02-08 10:04:29

sy373466062
会员
注册时间: 2018-11-12
已发帖子: 130
积分: 116

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

重点在于不知道这个稳定性如何

离线

#13 2021-07-21 15:18:48

luguanhong
会员
注册时间: 2021-04-23
已发帖子: 12
积分: 6

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

john78 说:

想用在V3S上,没有找到教程

+1,想把esp32 作为v3sLinux板的网卡,用SDIO. 看了下官方文档是有一个树莓派的例子的,但是没整明白。不知道有没有大神 搞过

离线

#14 2021-07-29 16:27:38

xiaoqianxiansheng
会员
注册时间: 2021-05-26
已发帖子: 35
积分: 12.5

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

有USB口通信的吗

离线

#15 2021-08-23 00:22:23

qq1260746351@qq.com
会员
注册时间: 2021-08-23
已发帖子: 2
积分: 1

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

@Blueskull
ESP32作为其他平台的网卡,同时自己又兼有单片机的功能,具体怎么实现呢?

离线

#16 2021-08-26 14:17:35

dgtg
会员
注册时间: 2017-11-08
已发帖子: 253
积分: 217.5

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

ESP32保证wifi连接的情况下,低功耗可以做到多少?
假如用来做wifi低功耗门铃,有优势吗?

离线

#17 2021-11-01 00:06:23

tigger
Moderator
注册时间: 2021-06-18
已发帖子: 172
积分: 111

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

看起来不错, 好像ESP32也不需要FLASH了,直接通过命令把固件下载进去?

离线

#18 2022-09-09 18:45:22

lignin
会员
注册时间: 2020-03-21
已发帖子: 99
积分: 97.5

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

可以做个低功耗的联网监控加上网芯片,就像hi3861加主控soc那种方案的ipc

离线

页脚

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

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