Skip to content

cybergear-robotics/esp_rfc2217_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

RF2217 server for connecting ESP32 to a Raspberry PI

License: BSD-3-Clause Maintenance Language

If you would like to connect to an Espressif SoC that is not directly connected to your system, you can use a remote serial port. This is useful when the chip is on a different machine, or for example when using WSL on Windows.

It is possible to connect to any networked remote serial port that supports RFC2217 (Telnet) protocol. To do this, specify the serial port to esptool as rfc2217://:. For example, to read information about your chip’s SPI flash, run:

This repository bases on the tool esp_rfc2217_server.py which is provided by the esptool. Instead of using RTS and DTR lines, the code uses two dedicated Raspberry PI GPIOs for restarting and entering the ESP DFU (bootloader) mode. This code is only tested with a Raspberry PI 4 and ESP32S3.

Schematics

  • Raspberry Pi GPIO: 31 -> BOOT Pin (ESP32S3)

  • Raspberry Pi GPIO: 3 -> EN Pin (ESP32S3)

  • Raspberry Pi TX UART3: 7 -> GPIO 43/UOTXD (ESP32S3)

  • Raspberry Pi RX UART3: 29 -> GPIO 44/UORXD (ESP32S3)

On Raspberry PI:

As the UART 3 is used on the Raspberry PI 4, the required overlay should be enabled in boot/config.txt:

dtoverlay=uart3

The server runs on the Raspberry PI:

esp_rfc2217_server.py -p 5555 -b 115200 -v /dev/ttyAMA3 --boot-pin=31 --enable-pin=3

On client:

esptool.py --port rfc2217://ADDRESS_OF_PI:5555?ign_set_control flash_id

References

About

RFC2217 server for ESP32 with Raspberry PI support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages