I’m looking for a code sample, library, hardware definition about “ESP32 & MODBUS RTU RS485 protocol”, but I need baud rate communications between master-slave about 1,5 Mbit/s or more. Could anyone help me?
The biggest problem is that the voltage levels for RS-485 are way different than what you have on an ESP32 so you need an interfacing chip like an MAX485. This post should help out. I think 10Mb/s is max rate on an ESP32. Also I’m pretty sure the built-in serial library should work. RS-485 is in the Espressif docs.
I don’t have experience with the MODBUS protocol on the ESP32.
The resources Steve shared can be a good starting point. I also find this library compatible with the ESP32 that might be useful for your project: https://github.com/emelianov/modbus-esp8266.
I’m sorry that I can’t help much with this subject.