问题
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?
回答1:
try this
(char)26
detail on ascii of char-z
回答2:
Send the ASCII character 0x1A.
Have a look at the ASCII code table
回答3:
Use this Command
port.Write(txt_msgbox.Text + char.ConvertFromUtf32(26));
来源:https://stackoverflow.com/questions/7188566/sending-ctrlz-to-a-serial-port