title: MSP430 And Gsm interfacing using energia
body: <p>I am working on a project, which involves sending SMS from MSP430G2553 to GSM module. Below here is the code, I am using for interfacing of GSM and MSP430G2553 micro controller. This code is neither showing any error nor it is executing.</p>
  
  <p>Kindly suggest some solutions. </p>
  
  <pre><code>#include&lt;msp430.h&gt;
  
  void setup(){
      Serial.begin(9600);
      //pinMode(RED_LED, OUTPUT);
      //pinMode(GREEN_LED, OUTPUT);
  }
  
  void loop(){
      sendsms();
  }
  
  void sendsms()
  {
      Serial.println(" AT+CMGF=1 ");
      // digitalWrite(GREEN_LED, LOW);
      Serial.println(" AT+CMGS =\"1234567890\""); //Enter Mobile Number between double "  " codes.
      Serial.println("Hello World!"); //SMS to ur Mobile Number
      delay(5000);
      delay(5000);
  }
  </code></pre>
  
  <p>For the physical connection between the gsm and MSP430G2553 micro controller. I have connected pin</p>
  
  <ol>
  <li>Pin P1.1  -> Rx of GSM.</li>
  <li>Pin P1.2 -> Tx of GSM. </li>
  <li>Connected GND of both boards.</li>
  </ol>
  
  <p>Is this connection correct?? OR</p>
  
  <p>I need to physically connect more wires between the two boards?</p>