开发者

Sending Ctrl+Z to a serial port

I开发者_如何学C'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?


try this

(char)26

detail on ascii of char-z


Send the ASCII character 0x1A.

Have a look at the ASCII code table


Use this Command

port.Write(txt_msgbox.Text + char.ConvertFromUtf32(26));

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜