Pages: [1]   Go Down
Author Topic: Sending SMS with a Sony Ericsson K700i phone  (Read 2770 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
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

Offline Offline
Full Member
***
Karma: 2
Posts: 175
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://www.power7.net and http://www.dreamfabric.com/sms/ i use an old SE K700i check pins...
« Last Edit: February 22, 2013, 09:11:35 am by power7net » Logged

Web / sms / bluetooth / arduino / android remote control. Home Automation projects.
http://www.power7.net

0
Offline Offline
Jr. Member
**
Karma: 0
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
**
Karma: 0
Posts: 65
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
*
Karma: 0
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
Jump to: