This can be related to both hardware and software.
First, on the hardware, the connection line may be faulty, or the RX\/TX sequence is wrong.
Second, the software and protocol do not match, resulting in the data sent, is not recognized. So try a new wire first.
Communication wire wiring error, poor contact, or RS232 chip failure