Serial to old reciever. Problem with the serial comunication

If you're seeing the E04 message, perhaps you're missing part of the command message...
Does the receiver expect a preamble/start or end marker, or a checksum within the message you send it?

(Unlikely - as PuTty works, or there's something missing from the explanation.)