Page 1 of 1

ESP32 Modbus RTU Master Data Direction Pin Goes Low During Transmission

Posted: Mon Feb 21, 2022 6:17 am
by vladiand
Hello,

I'm working on a modbus project with ESP32 TTGO board, which as a modbus RTU master gets data from a power meter.
The problem I have is that during the trasmission, after the second byte the Data Direction Pin goes low and the rest of the Modbus request message is not transferred over the RS485 bus.
ESP32 Modbus.jpg
ESP32 Modbus.jpg (54.76 KiB) Viewed 1563 times
ESP32 Modbus2.jpg
ESP32 Modbus2.jpg (68.31 KiB) Viewed 1563 times
Can you please check?

Regards,
Vladislav

Re: ESP32 Modbus RTU Master Data Direction Pin Goes Low During Transmission

Posted: Mon Feb 21, 2022 8:09 am
by medelec35
Hi.
The App Developer website has a Mains Power Monitor - ESP32, USB.
That uses the PZEM-004T to communicate via MODBUS.
You could use that to compare with your version.
It works OK with Wroom32 and WiFi Kit 32.
With the latter, it also displays all the values.
PM WiFi Kit 32.png
PM WiFi Kit 32.png (165.49 KiB) Viewed 1559 times
I'm thinking of adding it to the TTGO myself s the text will look much better in colour.