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.

interfacing issues

Other Parts Discussed in Thread: MSP430G2553, ENERGIA


void setup()
{
// start serial port at 9600 bps:
Serial.begin(9600);
pinMode(2, INPUT); // digital sensor is on digital pin 2
}
void loop()
{
pin = digitalRead(2);
if(pin == HIGH)
{
sendsms();
delay(1000);
}
}
void sendsms()
{
Serial.println("AT+CNMI=1,2,0,0");
Serial.println("AT+CMGS=\"09960638295\"");
Serial.println("HELLO"); 
Serial.print(char(26));
delay(5000);
delay(5000);
}

trying to get output bt unable to do so.

USING MSP430G2553...

gsm module sim900a

connections tx of gsm --> p1.1

rx of gsm -->p1.2

  •  Code is Energia, this forum don't support Energia nor user programming error so this has to be posted on proper Energia forum.

     Before to post MUST be reworded in a decent manner, it is not clear what is asked for nor target nor scope.

  • Sure the modem and the MSP are connected properly? Usually, modems use RS232 signal levels (-+3 to -+12V) while the MSP uses TTL signal levels (0V/VCC).
    IO don't speak Energia, but sure that Pin2 can ever be high? By default, MSP pins are high impedance and floating. So be sure that the external connection really pulls the pin to high when active.
  • Jens-Michael Gross said:
    Sure the modem and the MSP are connected properly? Usually, modems use RS232 signal levels (-+3 to -+12V) while the MSP uses TTL signal levels (0V/VCC).

     Hi Michael, about sim900a I found this page from manufacturer, it is a module communicating at cmos level, so it can be connected directly to MSP, no other specs are present so it is very hard to diagnose just if module is correcly powered if it answer to at command and interface. Energia use both software and hardware usart so we cannot say just nothing about.

**Attention** This is a public forum