At the moment I'm trying to get my Sony Ericsson working on the Arduino.
So what have I done:
I got a Serial cable for the phone. I plugged it into my PC and connected through the Terminal. At commands work great. The I cuted the cable to see the wires. Ok there were 6 wires. But 3 where useless.
I got now 3 cable to the serial port and it does still work. I found out that one is the RX cable. (To test that I sent the code to turn off the phone. First with this cable connected and the disconnected this cable. Both time it worked but once I didn't get the OK message from the phone so it should be the RX cable? Should be right or did I miss something?)
Now how do I detected the Ground cable and the TX? ok 3 cables so 50:50
But one of the important question:
When I like to connect the phone with those 3 wires to the Arduino do I have to use a Serial to TTL converter? I think so because as I tried to connected my Garmin GPS I had to use this as well? or am I wrong
What's your phone model? I think the easiest (and safer) way is googling it... or, is very possible that the GND is connected to pin 5 on the serial cable... if the 3 wires you get are straight to the phone connector, they are probabilly ttl...
you don't need level converters, both are ttl-level ports.
just remember that some people has reported some troble using pins 0/1 serial with USB cable attached... sound weird to me because of the 2 1k resistors between the ftdi and atmega... anyway, if it don't work at first try, check this.
Now I got a problem with the SoftSerial. i tired to send codes
to my phone over the SoftSerial but without success.
/*
Example of SSerial2Mobile libary
Sends a SMS and an email
The SMS phone number and the email address need to be changed to something valid.
created 21 June 2008
by Gustav von Roth
*/
#include <SoftwareSerial.h>
#include <t630.h>
#include <AFSoftSerial.h>
AFSoftSerial mySerial = AFSoftSerial(3, 2);
char message[20]="Hallo Test 2";
char number[20]="0123456789";
t630 phone = t630(2,3);
void setup() {
pinMode(13, OUTPUT);
mySerial.begin(4800);
phone.sendTxt(number,message);
}
void loop(){ }
I have been working on Arduino-GSM/SMS code for a while, and might be able to help you (though right now I'm running into problems processing a received SMS because of the RAM limits of the Arduino)