开发者

Sending Ctrl+Z to a serial port

开发者 https://www.devze.com 2023-03-31 04:31 出处:网络
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

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

精彩评论

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