GOOD AFTERNOON. I´M FROM MEXICO AND I TRY TO DO MY BEST WITH MY ENGLISH.
i’m a beginner. WOULD YOU EXPLAIN ME HOW CAN I SEE THE ANSWER OF EACH INSTRUCTION?. I HAVE AN ARDUINO UNO INTERCONECTED WITH A GPRS SHIELD. I USE A SERIAL SOFTWARE USING PINS 7&8 BECAUSE I WANT TO CHECK (IN PINS 0&1) THE INFORMATION IN THE SERIAL MONITOR.
I GENERATE A CALL BUT I NEED TO CONTROL THIS CALL ACORDING TO THE ANSWER (FOR EXAMPLE: NO DIAL TONE, BUSY, NO ANSWER, OK)
if (Serial.available()) // if there is incoming serial data
switch(Serial.read()) // read the character
{
case ‘d’: // if the character is ‘d’
DialVoiceCall(); // dial a number
break;
}
if (gprsSerial.available()){ // if the shield has something to say
Serial.write(gprsSerial.read()); // display the output of the shield
}
}
/*
Name: DialVoiceCall()
Description: Can call/dial a phone number /
void DialVoiceCall()
{
gprsSerial.println(“AT+MORING=1;”);
delay(100);
gprsSerial.println("ATD+******;");//Enter your phone number deleting the stars , must include country code
delay(100);
gprsSerial.println();
}
[/code]