Pages: [1]   Go Down
Author Topic: Cannot send SMS with SIM900  (Read 2106 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I have a problem sending SMS with SIM900 i can make a call but there is an Error when i tried to send SMS.

AT+CMGF=1

OK
AT+CMEE=1

OK
AT+CMGS="+41xxxxxxxxxx"

+CME ERROR: 765
testettt


Thanks
Logged

France
Offline Offline
Newbie
*
Karma: 0
Posts: 27
Mess with the best, die like the rest...
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Could you test with the function written into the wiki:

Code:
void SendTextMessage()
{
  mySerial.print("AT+CMGF=1\r");    //Because we want to send the SMS in text mode
  delay(100);
  mySerial.println("AT + CMGS = \"+86138xxxxx615\"");//send sms message, be careful need to add a country code before the cellphone number
  delay(100);
  mySerial.println("A test message!");//the content of the message
  delay(100);
  mySerial.println((char)26);//the ASCII code of the ctrl+z is 26
  delay(100);
  mySerial.println();
}
Logged

vlp

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi thanks for the answers i really have the same code and still the same problem (CME ERROR code 765 )

I tried with two SIM CARD in Switzerland.

I tried ao empty the sms stored in the SIM (mySerial.println("AT+CMGD=1,4")smiley-wink


I really block


Thanks for your help


Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 36
it's time to...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I see it at the SIM900_AT_Command_Manual_V1.03.pdf.page 218,it says that <code 765 > means <Invalid  input value>.
you can download this PDF here, http://www.elecrow.com/wiki/images/a/a8/SIM900_AT_Command_Manual_V1.03.pdf

So maybe you can change a micro-controller to have a try again, or some basic problems happened when operate the Arduino IDE.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You should paste your complete code, so we can know where and what the wrong.
Logged

Pages: [1]   Go Up
Jump to: