I have two ESP32 that are communicating via USART (TTL) on the Serial2.
The TX2 pin of ESP_Alice is connected with the RX2 pin of ESP_bob.
The RX2 pin of ESP_Alice is connected with the TX2 pin of ESP_bob.
(left on the image)
It works, but it's a noisy channel and I need to increase cable length. I bought two MAX3232-based boards and I connected them as in the right scheme on the image:
TX2 RX2 between ESP and MAX3232 boards are connected directly (on the TTL SIDE), the TX and RX pin of the two boards (on the RS232 side) are crossed.
Boards are powered with 3.3 V and GND pin connected to ESP_Alice
It does not communicate at all (same program that works correctly when the two boards are connected directly with the TTL USART).
What am I doing wrong here?