Modbus RS485 RTU - Slave

renanpaiva
Posts: 1
Joined: Mon Aug 12, 2019 4:55 pm

Modbus RS485 RTU - Slave

Postby renanpaiva » Mon Aug 12, 2019 5:07 pm

Hi everyone,

I'm getting started with NodeMCU.

At this point, I'm trying to read a Modbus RTU RS485 meter. With Arduino works ok, but when I put the same code to work with ESP 32 nothing happens. I can't get any value.

Has someone a good example for a beginner with NodeMCU for the above scenario?

Best regards,
Renan Paiva

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

Re: Modbus RS485 RTU - Slave

Postby ESP_alisitsyn » Wed Sep 18, 2019 6:19 am

Hi Renan Paiva,

ESP-IDF supports communication over RS485 as master and slave. If it is ok to use pure C code for communication with your device please try to use the examples in the ESP-IDF examples/protocols folder.

--
Alex

Who is online

Users browsing this forum: Bing [Bot] and 24 guests