在^sysinfo和C 终端程序
AT^SYSINFO and a C++ terminal program
我编写了一个与USB 3G调制解调器串行的程序。当我打开端口并写下at命令
时AT
在调制解调器上,我得到了正常的"确定"响应,并可以使用串行读取功能读取它。在终端中,当我编写命令
时AT^SYSINFO
我得到以下响应:
^SYSINFO:#,#,#,#,#,#
#的数字。但是,当我尝试使用程序串行编写相同的命令时,我仅阅读此响应:
AT^SYSINFO
我尝试读取另一行传入数据,但没有数据。谁能帮我这个?^sysinfo消息中有我需要提取的信息。
you 必须用r
终止命令行,没有其他(除非您已经修改过ATS3
,否。引用V.250规范:
5.2.1 Command line general format
A command line is made up of three elements: the prefix, the body, and
the termination character. The command line prefix consists of the
characters "AT" or "at", or, to repeat the execution of the previous
command line, the characters "A/" or "a/". The body is made up of
individual commands as specified later in this Recommendation. Space
characters are ignored and may be used freely for formatting purposes,
unless they are embedded in numeric or string constants (see 5.4.2.1
or 5.4.2.2). The termination character may not appear in the body. The
DCE shall be capable of accepting at least 40 characters in the body.
The termination character may be selected by a user option (parameter S3),
the default being CR (ASCII value 13).
dce表示调制解调器。
(我删除了上面引用中的IA5参考文献,因为这只是令人困惑)
1 用rn
终止通常会起作用,但这仅仅是因为125ms中止超时延迟,这使得额外的n
不中止命令。
相关文章:
- 从 GUI 文件资源管理器执行程序,并且不生成终端
- 终端命令在程序运行后自动打开图形
- 在集成终端上运行vscode lldb调试器时,如何获取程序的输出?
- 当主终端关闭时,程序终止
- 如何从终端运行用 eclipse 编写的 c++ 程序
- 如何在另一个终端中打开并稍后关闭来自c ++的另一个程序?
- 我想在终端窗口中运行我的 CLion 程序
- 试图调节我的 do-while 以停止在终端中退出程序.菜单不会根据需要循环使用当前语句
- 如何在应用程序进行大量printf时,在固定输入的终端中设置最后一行
- 在Qt小部件应用程序中显示cmd终端
- 崇高文本 3 - 在终端中编译并运行 C++ 程序(路径包含空格)
- 终端不显示程序的警告.如何在终端中看到它们
- 从C 程序传递命令到终端的问题
- 命令在终端或程序中提供不同的行为(Python和C )
- 如何在与 c++ 代码不同的终端中打开程序?
- 如何在不将其连接到终端的情况下运行'screen',以便我可以在C++ (qt) 应用程序中捕获输出?
- 如何通过终端在Macbook上运行基于GUI的程序
- macOS 差异在“访达”和“终端”中运行应用程序
- 在^sysinfo和C 终端程序
- 如何在终端程序中调整光标,使其与输出列对齐?