Loading...
Pages: [1]   Go Down
Author Topic: Sending SMS with a Sony Ericsson K700i phone  (Read 547 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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?  smiley-confuse
Here is my code:
http://pastebin.com/zzCXhjAY
Logged

Athens,Greece
Offline Offline
Jr. Member
**
Posts: 61
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello.First check your cable connection mobile phone with arduino.You test it with AT commands? AT....ok
Look my code http://webgsmremotecontrol.webs.com/arduinogsmcode.htm and http://www.dreamfabric.com/sms/ i use an old SE K700i check pins...
Logged

0
Offline Offline
Jr. Member
**
Posts: 76
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Jr. Member
**
Posts: 55
there's no place like 127.0.0.1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Why do you want to send it in PDU mode?

Code:
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.   smiley-lol

Code:
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/
Logged

Offline Offline
Newbie
*
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
« Last Edit: February 21, 2012, 12:51:11 PM by BineG » Logged

Pages: [1]   Go Up
Print
 
Jump to: