espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
12.98k stars 7.12k forks source link

Wifi to Serial Tunnel Example (IDFGH-11758) #12857

Open seankovacs opened 7 months ago

seankovacs commented 7 months ago

Is your feature request related to a problem?

No

Describe the solution you'd like.

It would be nice to see an example of a native ESP-IDF Wifi to Serial tunnel. This is a very common use-case handled by uBlox and Lantronix chips out the box.

Describe alternatives you've considered.

Many Arduino based wifi to serial bridges, but nothing I've seen using just ESP-IDF.

Additional context.

No response

MaxwellAlan commented 7 months ago

Hi @seankovacs

Could you provide some more details about this feature request? Such as application scenario or some other reference examples? PS: we also have esp-hosted solution, does it meet your request?

Thanks.

seankovacs commented 7 months ago

The esp-hosted solutions are a step in the right direction, but seem like overkill. The esp-hosted solutions don't support Wifi to Uart either. The idea is to simply connect to an STM32 over Wifi (STA or AP) via UDP or TCP, with the ESP32 interfacing to the STM32 using a UART. In particular, I'm passing mavlink packets between a host computer and an STM32 MCU.

MaxwellAlan commented 7 months ago

@seankovacs how about ESP-AT(https://github.com/espressif/esp-at) solution?

seankovacs commented 6 months ago

This seems to do what I am asking, though is it open source? I need to do man-in-the-middle packet inspection on the ESP.

MaxwellAlan commented 6 months ago

@seankovacs

Yeah, most of the AT solution code is open. Maybe you can submit your detail request in the AT issue