The common causes of that issue are:
1. Bad connection on the data in or the data out wire. Or the pins swapped in the cable.
2 Mismatched baud rate. The baud rate set in the M575 command in config.g must match he baud rate set on the Setup page of PanelDue. The usual value is 57600.
HTH David