I assume you are connected by USB and using a terminal software to send commands.
What terminal software are you using?
Can you send M122 and copy paste the results here?
"could not establish a connection to the duet firmware! Please check your settings and try again"
Where exactly are you seeing this message?