Harsha_Nagaraja
Hi,

I am using an Arduino Mega as a slave device, and I’ve written a small piece of code that echoes a number back to the master to verify that communication is intact. I would like to know whether this kind of method is necessary to ensure reliable communication, or if communication breaks are unlikely to occur without such checks. If it is necessary, is there a better approach than using a heartbeat-style echo mechanism?
Thank you.


Best Regards
Harsha
Reply 0 0
thiagoralves
It's always a good idea to have code on the slave that automatically disables all outputs in case the master stop sending messages. The master needs to constantly send requests to the slave. Things can happen, a broken cable, software crash, etc. In that case, keeping the outputs turned on can be catastrophic.
Reply 0 0
Harsha_Nagaraja
Thank you
Reply 0 0
Reply