2
I’m communicating by Serial (SerialPort
) with a device that requires me to send commands CR LF at the end of each instruction for the device to understand that an instruction has been sent to it.
The instructions I must send are all in ASCII.
I know that in the ASCII table there are the commands Line-Feed - Feed line (10) and Carriage-Return - Car return (13).
The communication is working perfectly, but the device always returns me invalid command because I need to send these characters at the end of each instruction.
How do I write along on Port.Write
or in the Port.WriteLine
at the end of each instruction these characters in ASCII?
Would write the string
"\r\n"
?– Guilherme Bernal
@The device sends me through the door WITH "UNKNOW COMMAND"
– Butzke