How to put a CTRL-z character to the serial monitor send-window?

I have a GSM modem and I had to test some AT-commands. When I tried to send a SMS, I noticed that I can't send a CTRL-Z to finish it.

You can use other "serial monitor" like putty.

Yes, I guess I have to. I tried Realterm. It works but it messes up its display.

I guess that you try Alt+ASCII, rigth? The Ctrl+z is the ASCII code "named" SUB and it have the code 26 decimal. To use this, it will be Alt+026.

I have to try that.
I got putty running and it looks nice.

I just sent myself a SMS with Putty. Ctrl-Z in the putty window worked.

mySerial.print("AT+CMGF=1\r");
delay(1000);
mySerial.print("AT+CMGS="+91********"\r");
delay(1000);
mySerial.println("Your message to send" );
mySerial.print("\r");
delay(1000);
mySerial.println((char)26);
mySerial.println();

the ctrl+z in software will work by the sending 26 to serial port.
try it it will work.

1 Like