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: UART interface using Energia (sending SMS)

Part Number: MSP430F5229

Hello,

since 43oh forum had crashed, im trying here:

I connected my Tx, Rx and GND pins to the matched pins in SIM900 modem and try to send sms using AT commands.
I want to declare about the UART pins in the code , because there are 2 UART interfaces in my board.

how can I do that? probably in the setup() routine, but how?

this is my code for the sms routine: is it enough? or should I get acks for the commands?

void sendsms(){
Serial.println("AT\r");
delay(1000);
Serial.println("AT+CMGF = 1\r");
delay(1000);
Serial.println("AT+CMGS =\"012345678\"\r");
delay(1000);
Serial.println("HELLO WORLD");
delay(1000);
Serial.println((char)26);
delay(100);
}

thanks

Nir

  • Hi Nir,

    Are you using MSP430F5229 or F5529? shoud be F5529 right? With F5529 lunchpad there should be one UART interfaces only, the other one is reserved for PC communication.

    For SIM900 commumication I have checked the datasheet for SIM900, there is responce with AT+CMGS Send SMS Message, that means you can read from serial for ack if the message has got sent or not.

    regards
    KC

**Attention** This is a public forum