Wifi uart мост esp32

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Wifi to 3x Serial bridge based on a ESP32

License

AlphaLima/ESP32-Serial-Bridge

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Transparent WiFi (TCP) to all three UART Bridge, supports both AP and STATION WiFi modes. The .ino file is the code for the ESP32. Use Arduino IDE for ESP32 to compile and upload it to the ESP32. I made this project in order to connect Flight equipment devices devices like (Radio, Vario FLARM), to a Flight Computer (Kobo, Smartphones etc.), but it is not limited to that. You can use it wherever you want, but on your own risk. Read license file for more details. Accesspoint
IPAdress: 192.168.4.1
AP SSID: LK8000
AP Password: Flightcomputer
Used Ports:
192.168.4.1:8880 COM0
192.168.4.1:8881 COM1
192.168.4.1:8882 COM2

Used Libraries: (must be installed in the arduino IDE):

In some cases the memorylayout is to small for this scetch. If you face this problem you can either disable Bluetooth by removing #define BLUETOOTH in config.h or change the partition size as described here: https://desire.giesecke.tk/index.php/2018/04/20/change-partition-size-arduino-ide/

Arduino hardware configuration:

here is the wiring diagram recomendation: https://raw.githubusercontent.com/AlphaLima/ESP32-Serial-Bridge/master/ESP32-SerialBridge.jpg
Pinning
COM0 Rx GPIO21
COM0 Tx GPIO01
COM1 Rx GPIO16
COM1 Tx GPIO17
COM2 Rx GPIO15
COM2 Tx GPIO04

Читайте также:  Нет подключения через вай фай смартфона

NOTE: The PIN assignment has changed and may not look straigt forward (other PINs are marked as Rx/Tx), but this assignment allows to flash via USB also with hooked MAX3232 serial drivers.

I recomend to start your project with a Node32s or compatible evaluation board. For a TTL to RS232 level conversion search google for «TTL RS3232 Converter»

Источник

ESP32-Serial-Bridge

Transparent WiFi (TCP) to all three UART Bridge, supports both AP and STATION WiFi modes. The .ino file is the code for the ESP32. Use Arduino IDE for ESP32 to compile and upload it to the ESP32. I made this project in order to connect Flight equipment devices devices like (Radio, Vario FLARM), to a Flight Computer (Kobo, Smartphones etc.), but it is not limited to that. You can use it wherever you want, but on your own risk. Read license file for more details. Accesspoint
IPAdress: 192.168.4.1
AP SSID: LK8000
AP Password: Flightcomputer
Used Ports:
192.168.4.1:8880 COM0
192.168.4.1:8881 COM1
192.168.4.1:8882 COM2

Used Libraries: (must be installed in the arduino IDE):

In some cases the memorylayout is to small for this scetch. If you face this problem you can either disable Bluetooth by removing #define BLUETOOTH in config.h or change the partition size as described here: https://desire.giesecke.tk/index.php/2018/04/20/change-partition-size-arduino-ide/

Arduino hardware configuration:

Hardware

here is the wiring diagram recomendation: https://raw.githubusercontent.com/AlphaLima/ESP32-Serial-Bridge/master/ESP32-SerialBridge.jpg
Pinning
COM0 Rx GPIO21
COM0 Tx GPIO01
COM1 Rx GPIO16
COM1 Tx GPIO17
COM2 Rx GPIO15
COM2 Tx GPIO04

NOTE: The PIN assignment has changed and may not look straigt forward (other PINs are marked as Rx/Tx), but this assignment allows to flash via USB also with hooked MAX3232 serial drivers.

I recomend to start your project with a Node32s or compatible evaluation board. For a TTL to RS232 level conversion search google for «TTL RS3232 Converter»

Open Source Agenda is not affiliated with «ESP32 Serial Bridge» Project. README Source: AlphaLima/ESP32-Serial-Bridge

Источник

Нужна помощь ESP32 UARTWiFi мост

Надо реализовать связь с низкой интенсивностью обмена данными между двумя удалёнными контроллерами.

Может кто проверить в работе пример по ссылке?
Заказал пару отладок, но они в пути. И может это вовсе не то, что мне надо.

Работу примера понял так: можно связать два модуля ESP32 по WiFi и отсылать \ принимать данные через UART с обоих концов.

Алексей.

Active member

Работу примера понял так: можно связать два модуля ESP32 по WiFi и отсылать \ принимать данные через UART с обоих концов.

В примере реализован только tcp сервер, клиенты там не реализованы, некому исходящее соединение устанавливать.
UARTTCPUART не реализовано, проверять пока нечего.

Читайте также:  Где посмотреть пароль от вайфая айфон

kreker

New member

Алексей.

Active member

Промышленные преобразователи интерфейсов moxa, пользовался моделью de-311, впечатления только положительные.

kreker

New member

nikolz

Well-known member

Надо реализовать связь с низкой интенсивностью обмена данными между двумя удалёнными контроллерами.

Может кто проверить в работе пример по ссылке?
Заказал пару отладок, но они в пути. И может это вовсе не то, что мне надо.

Работу примера понял так: можно связать два модуля ESP32 по WiFi и отсылать \ принимать данные через UART с обоих концов.

чтобы не гонять из пустого в порожнее,
давайте уточним задачу.
————————
У вас два контроллера, которые что-то иногда выдают в uart. Верно?
Вопрос куда и ждут ли ответа.
какой формат сообщений
как синхронизируется переда-прием
допускается ли пропуск сообщений
какие контроллеры.
пока все.

kreker

New member

@nikolz
>У вас два контроллера, которые что-то иногда выдают в uart. Верно?
Верно.

>Вопрос куда и ждут ли ответа.
Пока не проработано: передал контроллер 1 -> принял контроллер 2 или передал контроллер 2 -> принял контроллер 1. Т.е. прям постоянного обмена не надо.

>какой формат сообщений
В данный момент — его нет.

>допускается ли пропуск сообщений
Не желателен.

>как синхронизируется передача-прием
Пока никак. Самое простое — отправка запроса на передачу и получение разрешение на её осуществление. Нет ответа на запрос или ответ отрицательный — принимаем. Ничего не принято в течении n-ого времени — снова запрос на передачу.
В таком вот сыром виде.

>какие контроллеры
Не важно.

Вообще, надо бы самому делать. Только с ESP32 не знаком.
На одной ESP32 — TCP сервер и чтение \ запись буфера UART.
На другой ESP32 — TCP клиент и чтение \ запись буфера UART.

nikolz

Well-known member

@nikolz
>У вас два контроллера, которые что-то иногда выдают в uart. Верно?
Верно.

>Вопрос куда и ждут ли ответа.
Пока не проработано: передал контроллер 1 -> принял контроллер 2 или передал контроллер 2 -> принял контроллер 1. Т.е. прям постоянного обмена не надо.

>какой формат сообщений
В данный момент — его нет.

>допускается ли пропуск сообщений
Не желателен.

>как синхронизируется передача-прием
Пока никак. Самое простое — отправка запроса на передачу и получение разрешение на её осуществление. Нет ответа на запрос или ответ отрицательный — принимаем. Ничего не принято в течении n-ого времени — снова запрос на передачу.
В таком вот сыром виде.

>какие контроллеры
Не важно.

Вообще, надо бы самому делать. Только с ESP32 не знаком.
На одной ESP32 — TCP сервер и чтение \ запись буфера UART.
На другой ESP32 — TCP клиент и чтение \ запись буфера UART.

из ваших ответов следует, что готового решения нет.
Будете делать сами.
Вашу задачу можно решить и на ESP8266 или ESP8285,
так как решение на ESP32 избыточно,
сложнее,дороже и нет преимуществ.

Читайте также:  Изменить пароль wifi белтелеком через телефон

Источник

WiFi-UART Serial Bridge Using ESP8266 or ESP32

esp link web

One of the most well-known (appeared on Hackaday’s blog) and well-designed projects to make ESP8266 as a WiFi-UART bridge is jeelabs’s esp-link. Actually, this project is far beyond being a simple serial bridge as it also manages MQTT client pub/sub and REST HTTP requests in order to connect the MCU to the internet. Moreover, it can be used to flash the attached MCU. Esp-link has a very handy web interface stored inside the ESP. To make the test, we will use ESP8266 development board, specifically NodeMCU.

Prepare The Software

First, we need to download one of the release images of the project from releases page. The compressed file (A .tgz file is beside the download word in bold) should have 5 bin files :blank.bin, boot_v1.x.bin, esp_init_data_default.bin, user1.bin and user2.bin. The ESP8266 board should be connect after downloading one of the available download tools like: Flash download tool from Espressif or Nodemcu flasher. Now, follow the flashing guidelines available in Readme file according to your ESP8266 edition and set the bin files addresses according to your module memory size. nodemcu toolYou can simply make the Flash download tool from Espressif find it for you by connecting it and pressing “start” to get the required specification from the boot message. esp download toolAlternatively, you can read the boot message using a serial console with 76600 baud. esp8266 bootAfter flashing the image files successfully, you should see a new WiFi network. Connect to it and type this IP address into the browser http://192.168.4.1 . Now, you should see the home page.

Prepare The Hardware

To test the serial bridge code, we will achieve the following connection: TX0 from ESP with RX of the device and RX0 with TX of the device that sends serial information and needed to be bridged via WiFi. For the sake of the test, the device here would be a USB-TTL cable (USB-UART converter) and the data will be sent and received from a console (PUTTY for instance). Image Courtesy of ElecFreaks Now, let’s see some serial data fly over the air! Esp-link tx Esp-link rxFinally, I think a considered amount of time is needed to explore the other options of this amazing project!

Serial Bridge Using ESP8266 (Simpler)

The previous project could be too complicated to do the simple job of converting Serial connection to a WiFi connection. So I decided to port a project described in the rest of this article written in Arduino. The ported code works on ESP8266 and can be download from here:

Источник

Оцените статью
Adblock
detector