I'm sending AT-Command to gsm modem through serial port.
At the end of the AT-Command I have to terminate the command with Ctrl+z
How would I do that in serial port?
bitsmonkey
Send the ASCII character 0x1A.
Have a look at the ASCII code table
Use this Command
port.Write(txt_msgbox.Text + char.ConvertFromUtf32(26));
来源:https://stackoverflow.com/questions/7188566/sending-ctrlz-to-a-serial-port