This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] MSP430F5229:使用Energia的UART接口(发送SMS)

Guru**** 2383970 points
Other Parts Discussed in Thread: MSP430F5229
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/616268/msp430f5229-uart-interface-using-energia-sending-sms

部件号:MSP430F5229

您好,

由于43oh论坛崩溃,我尝试了这里:

我已将Tx,Rx和GND针脚连接到SIM900调制解调器中匹配的针脚,并尝试使用AT命令发送SMS。
我想声明代码中的UART引脚,因为我的主板中有2个UART接口。

我该怎么做? 可能在setup()例程中,但如何?

这是我的SMS程序代码:它足够了吗? 还是应该为命令获取ack?

void sendsms(){
serial.println ("at\r");
延迟(1000);
serial.println ("AT+CMGF = 1\r");
延迟(1000);
serial.println ("AT+CMGS =\"0.12345678亿\"\r");
延迟(1000);
serial.println("hello world");
延迟(1000);
serial.println((char)26);
延迟(100);
}

谢谢

NIR

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好,NIR,

    您使用的是MSP430F5229还是F5529? 应该说F5529对吗? 使用F5529午餐板时,应仅使用一个UART接口,另一个保留用于PC通信。

    对于SIM900通信,我已经检查了SIM900的数据表,有AT+CMGS发送SMS消息的响应,这意味着如果消息已发送或未发送,您可以从串行一端读取。

    此致
    KC