Go Down

Topic: Sending SMS with a Sony Ericsson K700i phone (Read 2834 times) previous topic - next topic

BineG

Im trying to send a sms message using arduino and a SE K700i phone but im having big problems.
I wrote a function which builds a pdu text string and sends it to the phone but nothing happens. If i run this snippet i found sms is sent
Code: [Select]
Serial1.println("AT+CMGF=0"); // Set PDU mode
  delay(3000);
  Serial1.println("AT+CMGS=19"); // Number of octets
  delay(3000);
  Serial1.print("0011000B918346555555F50000AA05C8329BFD06"); // Sends "Hello" to "00 46707112233"
  delay(3000);
  Serial1.write(26);
  delay(3000);
 
  Serial.println("Command sent");


But when i try my function.. nothing. Any suggestions?  :~
Here is my code:
http://pastebin.com/zzCXhjAY

#1
Feb 13, 2012, 06:43 am Last Edit: Feb 22, 2013, 03:11 pm by power7net Reason: 1
Hello.First check your cable connection mobile phone with arduino.You test it with AT commands? AT....ok
Look my code http://www.power7.net and http://www.dreamfabric.com/sms/ i use an old SE K700i check pins...
Web / sms / bluetooth / arduino / android remote control. Home Automation projects.
http://www.power7.net

moustic

Some times ago I made a small libray to build PDU
check on the playground it should still be there (PDU encoder )
I heavily tested it.

spumanti

Why do you want to send it in PDU mode?

Code: [Select]
Serial1.println("AT+CMGF=0"); // Set PDU mode

If you set it to 1 instead, you dont have to encode the SMS to PDU, but instead use clear text ->> much easier IMO.   XD

Code: [Select]
Serial1.println("AT+CMGF=1"); // Set TXT mode

http://www.diafaan.com/sms-tutorials/gsm-modem-tutorial/at-cmgf/

For a more convenient way of handling the comms with the mobile phone, consider using the Sserial2mobile library:
http://code.google.com/p/sserial2mobile/

BineG

#4
Feb 21, 2012, 06:12 pm Last Edit: Feb 21, 2012, 06:51 pm by BineG Reason: 1
Thank you all. I could send sms messages afterwards (although to be honest i dont know why it started working) but i will definitely check out sending it as plain text. Sounds much easier.

Go Up