I'm running a project with an Industruino D21G using Modbus protocol. It's is a very simple sketch where I'm reading data from a PV Inverter. This inverter is on during the day, but when the night comes the inverter disconnect and switch off the data board. When the PV Inverter re connect as soon as the sun rise, I cannot read the Modbus register anymore, then I need to switch off and on the Industruino for reading again.
I assume that I have a problem with the timeout and\or the retry, but I don't know how to deal with it. Could anyone help to solve this problem: reconnect automatically the Modbus communications when the slave is available after a switch down.
Thanks in advance
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!