Pages: 1 [2]   Go Down
Author Topic: How to send a sms with a Sony Ericsson phone  (Read 343899 times)
0 Members and 3 Guests are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 76
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I can have a Sony Ericsson J220i, do you know if it could work ?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In the mean while i discovered that the K750i doesn't have a straight serial connection. (I tried everything)  When installing the phone in windows it creates a few virtual com ports. So it's not possible to connect the arduino to the phone straight away.
http://alienproject.wordpress.com/tag/radiometrix-ntx2/
http://alienproject.wordpress.com/2009/04/14/at-commands-with-the-w800/
The only thing you can use is maybe this:
http://www.circuitsathome.com/products-page/arduino-shields/usb-host-shield-for-arduino/
I now bought an old T68i. It came with a KRY 105 192 R2C “USB docking station” :
http://cgi.ebay.co.uk/Sony-Ericsson-KRY-105-192-R2C-KRY-111-117-R6A-Cable-/150544506221
After finding the right driver for this and installed in in xp I saw 1 serial com port. This was the usb to rs232 com port from the docking station. I connected the phone to the docking station, opened HyperTerminal, choose the com port of the docking station and I can send at commands. Later this day I'm going to buy a DCU-11 cable, I will remove the usb to serial converter and will test it when connected the arduino to the T68i. I think I need to use a voltage divider:
http://alienproject.wordpress.com/tag/radiometrix-ntx2/
http://hollandshoogte.wordpress.com/2010/07/27/t68i-sms-working/
I will keep you posted.
Logged

Sweden, Malmö
Offline Offline
Full Member
***
Karma: 2
Posts: 200
Rooky
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

moustic,

Sorry do not think it will work, check my first post for modells that i assume will work.

Logged

Sweden, Malmö
Offline Offline
Full Member
***
Karma: 2
Posts: 200
Rooky
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Kristof,

Sorry, do not think that K750 will work that easy but the T68i should do so.

I suggest below connection!



Pin 4: Rx
Pin 5: Tx

Above information found at: http://pinouts.ru/CellularPhones-P-W/erics_t28_pinout.shtml
« Last Edit: January 19, 2011, 04:42:01 am by HULK » Logged

Sweden, Malmö
Offline Offline
Full Member
***
Karma: 2
Posts: 200
Rooky
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Try below code and see if you get a OK back from the phone true the Arduino serial monitor.

Arduino pin 0 and 1 connected to T68i pin 4 and 5 .
Try to switch cables both ways.

Let me know how it goes!


Code:
 char incomingByte;
  
  void setup() {

  Serial.begin(9600);
  delay(3000);

  }
  
  void loop() {
  
      //check connection with phone
      Serial.println("AT");
      delay(3000);
  
        // read phone reply if available
      if (Serial.available() > 0) {
  
            incomingByte = Serial.read(), BYTE;

            // say what you got:
            Serial.print("I received: ");
            Serial.println(incomingByte);
      }

  }
« Last Edit: January 19, 2011, 05:05:23 am by HULK » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello Hulk, thanks for the reply. In de mean while I bought a cable and removed the “usb to serial converter”. I connected it to the arduino. With newsoftserial I can send at commands with seralmonitor. The next thing I did was loading your example so the arduino will tell the T68i to send an sms. But I get a error while compiling the example. I get some error that newsoftserial not recognize “myserial.write(26); So I changed that line to:
byte ctrlz = 26;
mySerial.print(ctrlz);
And now it will compile and the program works. The arduino sends an sms with the T68i.
I tried the software sserial2mobile, but it will not work because we use PDU?
So I just use your link: http://www.twit88.com/home/utility/sms-pdu-encode-decode to convert to PDU. Can you send me an example how to read an sms from the T68i? for example when I send an sms “output 13 high” to the T68i, is it possible to read this with the arduino and the put digital pin 13 high?
Thanks,
« Last Edit: January 20, 2011, 04:36:47 am by kristof » Logged

Sweden, Malmö
Offline Offline
Full Member
***
Karma: 2
Posts: 200
Rooky
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

kristof, great that you manged to get it working.
Could you share the code you used with the newsoftserial library?
My code example above was intended to be used without the newsoftseial library.

Yes, it is possible to read a incoming sms and then do something, i did something like that a while ago and could turn on/off lights at home.
Let me share the code for that with you here later today or tomorrow.
« Last Edit: January 24, 2011, 03:25:24 am by HULK » Logged

Pages: 1 [2]   Go Up
Jump to: