Smart Home Automation Forum
Need Assistance with KC868-ATC Modbus Master (RS485 RTU) Communication in ESP32 - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-ATC / Tuya adapter V2 (https://www.kincony.com/forum/forumdisplay.php?fid=32)
+--- Thread: Need Assistance with KC868-ATC Modbus Master (RS485 RTU) Communication in ESP32 (/showthread.php?tid=3575)



Need Assistance with KC868-ATC Modbus Master (RS485 RTU) Communication in ESP32 - ibrahim - 11-29-2023

Greetings community,

I trust this message finds you well.

I'm currently engrossed in a project that requires the use of a KC868-ATC as a Modbus master using RS485 RTU to communicate with Modbus slave devices. Despite my efforts to create a simple program using the Modbus Master library for ESP32, I've encountered challenges and believe I'm missing some crucial details.

Could anyone kindly share a basic program or offer guidance on reading holding register data from a Modbus slave device using KC868-ATC as the Modbus master with ESP32?

Your insights and assistance would be immensely valuable. Thank you in advance!

Best regards,


RE: Need Assistance with KC868-ATC Modbus Master (RS485 RTU) Communication in ESP32 - admin - 11-29-2023

KC868-ATC is open source, so you can write your own arduino code for modbus. i think you can use arduino modbus library directly.


RE: Need Assistance with KC868-ATC Modbus Master (RS485 RTU) Communication in ESP32 - Auxinne Paul - 12-01-2023

I have also tried this, I have good foundation in arduino but honestly I cannot fix it, #include <ArduinoModbus.h> does not compile for the esp32 boards while #include <ModbusRTU.h> is compiling and being uploaded although things don't work out