GM862-GPS通过MSP430 [英] GM862-GPS via MSP430

查看:82
本文介绍了GM862-GPS通过MSP430的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用telit GM862-GPS和TI MSP430G2553微控制器。我可以从串行通信接收调试回声,但设备不执行任何AT-COMMAND。


硬件配置

MCU --- GSM

Rx ---- Tx

Tx ----- Rx

--------- RTS - GRD

--------- DTR - 拉起来


电压水平在运行参数范围内。


我已经玩过波特率了,我试过的每个配置都以相同的结果结束。


我用''\\​​\\ r''结束所有行。我甚至尝试过:

\ 015

\ 0x0D

\ 0D

\ 0x0d

\ 0d

\\ n

\ n \ n

/ r

/ r / n

/ n / r

< CR>

< cr>


和其他几个更嘲讽的组合,都是相同的结果,回声。



我该怎么做才能做到这一点是什么工作?

I''m using the telit GM862-GPS with a TI MSP430G2553 microcontroller. I can receive the debug echo from the serial communication but the device does not execute any of the AT-COMMANDs.

Hardware configuration
MCU---GSM
Rx ---- Tx
Tx ----- Rx
--------- RTS - GRD
--------- DTR - Pulled up

The voltage levels are within operating parameters.

I''ve played with the baud rate, every configuration I''ve tried ends with the same result.

I end all lines with ''\r''. I''ve even tried:
\015
\0x0D
\0D
\0x0d
\0d
\r\n
\n\r
/r
/r/n
/n/r
<CR>
<cr>

And several other even more ridicules combinations, all to the same result, the echo.


What can I do to make this thing work?

推荐答案

你是什么意思我可以收到调试回声?你发送什么收到什么?


你应该尝试使用任何调制解调器的第一件事是发送AT,它应该回复OK。您应该只使用回车< CR> (ASCII 0x0D,C string" \ r")使用换行符< LF>来终止命令(ASCII 0x0A,C string" \ n")也可能会混淆该问题,因为它不是命令集协议的一部分。
What do you mean by "I can receive the debug echo"? What do you send what do you receive back?

The first thing you should try with any modem is sending an "AT", it should reply with "OK". You should only be using the carriage return <CR> (ASCII 0x0D, C string "\r") to terminate your commands, using line feed <LF> (ASCII 0x0A, C string "\n") as well can confuse the issue as it is not part of the command set protocol.


我发送AT\\&并且只得到AT\\返回。


这是UART:

I send "AT\r" and only get "AT\r" back.

Here is the UART:

展开 | 选择 | Wrap | 行号


我刚刚注意到我的错误检查错误:


if(!Rx_Get())

ERROR();


但即使有这个错误,测试仍然有效,Rx_Get()清除rx_index,所以如果我从GM862收到任何东西,我仍然会退出while循环并返回0;


快速注释:

''\ 0''用作字符串的结尾,不会被发送到GM862


rx_data初始化为所有''x''
I just noticed an error in my error checking:

if(!Rx_Get())
ERROR();

But even with this error, the test is still valid, Rx_Get() clears rx_index so if I was to recieve anything from the GM862 I will still fall out of the while loop and return 0;

Quick notes:
The ''\0'' is used as an end of string and does not get sent to the GM862

rx_data is initialized to all ''x''


这篇关于GM862-GPS通过MSP430的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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