Repository navigation
Replies: 5 comments 6 replies
|
Leave it to me. Thanks |
0 replies
|
Is it an idea to make RS485 (controll Driver Enable Pin) available with Berry? |
2 replies
|
Last weekend I tested the TCP Serial Bridge with ESP32 and ESP8266 and it worked well. Thanks for the implementation. |
0 replies
|
Good feature to have. How does it compare to newer 485 modules that do this in hardware? It saves a GPIO and works with a PZEM energy meter. MAX13487 has a built in state machine/direction control - I haven't tested, could be fake or mislabelled MAX3485 (3.3V). |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Overview
Add support for using MAX485 or equivalent to use TCP serial bridge with RS485 networks.
(It is an equivalent function as Modbus Bridge. (xdrv_63_modbus_bridge.ino, TasmotaModbus.cpp))
I tested the functionality of my ESP32 board with the following changes.
Tasmota version: 13.4.0 (tasmota32) (self-compiled version)
However, I'm not sure if I can implement the feature correctly in the project, so I need help.
First step: Add pin definition GPIO_TCP_TX_EN
Changes in be_gpio_defines.h

Added lines
“
{ "TCP_TX_EN", (int32_t) GPIO_TCP_TX_EN },
“
I'm not sure if it's necessary to add a line in tasmota_template_legacy.h
Changes in tasmota_template.h

Added lines
Added lines
Changes in lv_gpio_enum.h

Added lines
The pin selector worked but has no text. So there must be an error there.

second Step: add RS485 DE-Pin functionality
Changes in xdrv_41_tcp_bridge.ino

Added lines
The log line is optional
Thank you in advance for support in implementing the functionality.
All reactions