Hi Guys,
First of all please be gentle with me. These are still early days for me!
I’ve got a Telit GM862 Quad, but with no GPS or GPRS. Initially I’m trying to send an SMS using the arduino. I’ve bought a serial version of the arduino so I don’t have to worry about logic level translation or FTDI driver, serial to usb conversion etc.
The telit has logic level translation using MAXIM 3232.
If I send the appropriate AT commands using hyperterminal SMS is sent.
If I view the output from the serial arduino I see the appropriate commands to send an SMS. (If I cut and paste the commands driven by the arduino into hyperterminal to Telit an SMS is sent.)
If I connect the arduino to the Telit device the LED on the arduino blinks and nothing else happens. (I’m assuming the arduino is “hanging” until some precondition is met.)
I have tried :-
-
extending delays between AT commands being sent to 1 second.
-
turning off echo (using ATE0)
-
Alternating flow control settings (AT&Kn)
Code is here-
Code:
//Serial comms to Telit GM862
Void setup(void) {
Serial.begin(9600);
Serial.print("AT\r\n");
delay(1000);
Serial.print("AT+IPR=9600\r\n");
delay(1000);
Serial.print("AT+CMGF=1\r\n");
delay(1000);
Serial.print("AT+CMGS=");
delay(1000);
// Replace with a valid phone number
Serial.print("+44***********\r\n");
delay(1000);
Serial.print("Hello from Arduino.");
delay(1000);
// End the SMS with a control-z
Serial.print(0x1A,BYTE);
}
void loop() {
}
If anyone has any suggestions it would be greatly appreciated.
Thanks - Tim