Modbus RTU problem with de signal

luk_ab
Posts: 2
Joined: Sat May 25, 2024 8:36 am

Modbus RTU problem with de signal

Postby luk_ab » Sat May 25, 2024 8:54 am

I'm using the modbus master example, since I'm having problems with the communication of my device I examined the signals on the TX RX and DE pins. Below you can see that the EN signal goes low before TX finishes transmitting.
Logic_KFOZGr5i7a.png
logic
Logic_KFOZGr5i7a.png (105.27 KiB) Viewed 1707 times
How can I fix this? Modbus speed 9600 TX - GPIO23 RX - GPIO22 DE - GPIO18

ESP_alisitsyn
Posts: 211
Joined: Fri Feb 01, 2019 4:02 pm
Contact:

Re: Modbus RTU problem with de signal

Postby ESP_alisitsyn » Mon May 27, 2024 9:14 am

Hi @luk_ab,

Which version of esp-idf you are using? The issue you describe looks as already resolved issue with the UART driver in RS485 mode.

luk_ab
Posts: 2
Joined: Sat May 25, 2024 8:36 am

Re: Modbus RTU problem with de signal

Postby luk_ab » Mon May 27, 2024 5:14 pm

Hi @ESP_alisytsyn in this project I am using ESP-IDF v5.1.2 communication I run on UART 2. I momentarily coped by using a separate task to control the DE pin. From which version of IDF does this work correctly?

ESP_alisitsyn
Posts: 211
Joined: Fri Feb 01, 2019 4:02 pm
Contact:

Re: Modbus RTU problem with de signal

Postby ESP_alisitsyn » Fri Jul 19, 2024 8:10 am

Hi @luk_ab,

Sorry for the late response.
As per my information the issue is fixed by commit https://github.com/espressif/esp-idf/co ... 9338ccdf37

Who is online

Users browsing this forum: MicroController and 199 guests