Go Down

Topic: Interface Arduino with Nokia phone (Read 936 times) previous topic - next topic

zeroG

Nov 06, 2010, 10:20 pm Last Edit: Nov 06, 2010, 10:22 pm by zeroG Reason: 1
Hello,
i'm getting crazy trying to interface a Nokia 6630 with Arduino, this is the story:

1)i bought a DKU5 cable and i hacked it to find the TX, the RX and the GND cable ;);

2)i connected the cables to Arduino including GND. Thanks to NewSoftSerial i created a fake serial port in pin 3 and 4 (digital);

3)i wrote the program using the library SSerial2mobile, typing 19200 as Baud Rate (read in the Nokia website) and using AT commands for Nokia phones: i want to send sms, so i specified the phone number and typed the text;

4)when the program started, the phone died, so i reduced the voltage of TX and RX from 5V to 2.8V with a voltage partitor using 2 resistors 8-);

5)now the phone doesn't die and it shows the little icon of headphones connected when the program starts, but it doesn't do anything.. :-/....

I don't know what to do now, help!!!! Any idea?? :-[

zeroG

#1
Nov 06, 2010, 10:42 pm Last Edit: Nov 06, 2010, 10:42 pm by zeroG Reason: 1
Without using SSerial2mobile i also tried with this code:

Code: [Select]
#include <NewSoftSerial.h>
#include <String.h>

char incoming_char=0;
NewSoftSerial tel(3,4);
int timesToSend = 1;
int count = 0;

void setup(){
 Serial.begin(9600);
 tel.begin(19200);
 delay(3000);
 tel.println("AT");
 delay(500);
 tel.println("ATE0");
 delay(500);
 Serial.println("Ready");
 
}

void loop(){
  while (count < timesToSend){
      tel.println("AT+CMGF=1");
      delay(1500);
      tel.println("AT+CMGS=****number****");  
      delay(1500);
      tel.print("message");  
      delay(500);
      tel.print(0x1A,BYTE);
      delay(5000);
      count++;
     
  }
}



But it doesn't do anything.........

Go Up