发送 Ctrl+Z 到串口 [英] Sending Ctrl+Z to a serial port

查看:39
本文介绍了发送 Ctrl+Z 到串口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过串口向 gsm 调制解调器发送 AT-Command.

I'm sending AT-Command to gsm modem through serial port.

在 AT-Command 结束时,我必须用 Ctrl+z

At the end of the AT-Command I have to terminate the command with Ctrl+z

我将如何在串行端口中做到这一点?

How would I do that in serial port?

推荐答案

试试这个

(char)26

char-z 的 ascii 详细信息

这篇关于发送 Ctrl+Z 到串口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆