DB9串行通讯
使用适当的波特率与 GSM 调制解调器建立通信后,我在超级终端上显示一些奇怪的字符。当我输入“AT”时,它似乎会在超级终端屏幕上重复或显示奇怪的字符(就好像波特率不正确)为“AATT”。所有其他 AT 命令也会重复,但令我惊讶的是它们都响应该命令。 “AATT”(输入“AT”)给我“OK”。
可能是什么问题?我使用 MAX232 将调制解调器连接到 DB9。以下是回复
øatt
好的
aautø
好的
aatt++ücnnmiiþ?ø
+CNMI: 1,0,0,0,0
好的
aattþ+ccssccs??ø
+CSCS:“UCS2”
OK
环
环
环
无载波 øat++ücnnmmii==11<,22<,00,,00,,00ø 好的 aattþ+ccssccss==""GGêSMM""ø 好的 Øaüt++ccmmögæf==11ø 好的 亚特 好的
aaut++ccþnmii?? +CNMI:1,2,0,0,0
好的,
谢谢!
I am getting some strange character displays on hyper terminal, after establishing communication with my GSM modem using the appropriate baud rate. When I type "AT", it appears to get repeated or display strange characters (as though the baud rate were not correct) on the hyper terminal screen as "AATT". And all other AT commands get repeated as well, but what surprises me is that they all respond to the command. "AATT"(having typed "AT") give me "OK".
What could possibly be the problem? I am connecting the Modem to the DB9 using a MAX232. Below is the response
øatt
OK
aaütø
OK
aatt++ücnnmmiiþ?ø
+CNMI: 1,0,0,0,0
OK
aattþ+ccssccss??ø
+CSCS: "UCS2"
OK
RING
RING
RING
NO CARRIER
øat++ücnnmmii==11<,22<,00,,00,,00ø
OK
aattþ+ccssccss==""GGêSMM""ø
OK
Øaüt++ccmmögæf==11ø
OK
aatt
OK
aaüt++ccþnmii??
+CNMI: 1,2,0,0,0
OK
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您在终端仿真器程序中启用了回显选项,那么您发送字符后会发生什么,终端仿真器将其打印在屏幕上,同时另一端的调制解调器将字符回显给您,以便您看到它两次。
然而,由于该模式只获取该字符一次,所以这没有问题。
这基本上是一个美容问题。如果需要,您可以通过关闭终端仿真程序中的 ehco 字符选项来修复它
You have the echo option enabled in your terminal emulator program, so what happens you send the character, your terminal emulator prints it on the screen and at the same time the modem at the other end echos the character back to you so you see it twice.
However, since the mode only gets the character once, it is fine for it.
It's basically a cosmetic problem really. You can fix it if you want by turning off the ehco characters option in your terminal emulator program