ESP-IDF Modbus Slave Implementation
Posted: Fri Aug 18, 2023 11:18 am
Hey Everyone,
I am utilizing the modbus master example in esp-idf on esp32. The code is flashing perfectly and running as well. I want to simulate a slave on my PC using 3rd party Modbus slaves.
But I cannot figure out the structure that would work. Based on my understanding of the code, I tried making changes to the Coils, Inputs and Holding registers as well but have not been able to simulate it. i.e. my master times out.
P.S. Based on research online I have already increased the timeout, but it still does not work
Is there any documentation about the structure that should be used?
PPS I do not have another esp32 and neither do I want buy another one just for testing this.
TIA
I am utilizing the modbus master example in esp-idf on esp32. The code is flashing perfectly and running as well. I want to simulate a slave on my PC using 3rd party Modbus slaves.
But I cannot figure out the structure that would work. Based on my understanding of the code, I tried making changes to the Coils, Inputs and Holding registers as well but have not been able to simulate it. i.e. my master times out.
P.S. Based on research online I have already increased the timeout, but it still does not work
Is there any documentation about the structure that should be used?
PPS I do not have another esp32 and neither do I want buy another one just for testing this.
TIA