# interface gm862 with arduino

**URL:** <https://community.sparkfun.com/t/interface-gm862-with-arduino/24317>\
**Category:** Development Boards\
**Created:** [June 3, 2012, 5:00am UTC](https://community.sparkfun.com/t/interface-gm862-with-arduino/24317 "2012-06-03T05:00:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![okili](https://avatars.discourse-cdn.com/v4/letter/o/e495f1/32.png) [@okili](https://community.sparkfun.com/u/okili)\
**Post date:** [June 3, 2012, 5:00am UTC](https://community.sparkfun.com/t/interface-gm862-with-arduino/24317/1 "2012-06-03T05:00:48Z")

</div>

]good morning

i am facing a problem when interfacing telit gm862 with arduino. Actually i am able to launch a call to the gm862 module but i am unable to make an sms message go out of the microcontroller.Here is my code followed by the schematic

```auto
/*
 #include <SoftwareSerial.h>
	 
	int rxPin = 0;
	int txPin = 1;
	 
	// set up a new serial port
	SoftwareSerial serial=SoftwareSerial(rxPin,txPin);
	 
	void setup() {
	  pinMode(rxPin, INPUT);
	  pinMode(txPin, OUTPUT);
	 
	  // set the data rate for the SoftwareSerial port
	  serial.begin(9600);
	 
	  // Set SMS to text mode. Note it is critical
	  // to use \r\n to end each line
	  // The delays are also critical, without them,
	  // you may lose some of the
	  // characters of your message
	 
	  serial.print("AT+CMGF=1\r\n");
	  delay(300);
	  serial.print("AT+CMGS=");
	  delay(300);
	  // Replace with a valid phone number
	  serial.print("00233240582093\r\n");
	  delay(300);
	  serial.print("Hello from Arduino.");
	  delay(300);
	 
	  // End the SMS with a control-z
	  serial.write(0x1A);
	}
	 
	void loop() {
	}

[*]

```

---

<div class="post-metadata">

**Author:** ![ezflyr](https://avatars.discourse-cdn.com/v4/letter/e/2bfe46/32.png) [@ezflyr](https://community.sparkfun.com/u/ezflyr)\
**Post date:** [June 3, 2012, 5:06pm UTC](https://community.sparkfun.com/t/interface-gm862-with-arduino/24317/2 "2012-06-03T17:06:40Z")

</div>

Hi,

I haven’t worked with the GM862, but I assume it’s like all other “AT command” GSM modems. If so, you need to add a longer

delay after you send the phone number, and the message text. I’d start with a 3 second delay in both cases, and once it’s working

you can tweak the delay downward to find the minimum value required.

John

---

<div class="post-metadata">

**Author:** ![okili](https://avatars.discourse-cdn.com/v4/letter/o/e495f1/32.png) [@okili](https://community.sparkfun.com/u/okili)\
**Post date:** [June 6, 2012, 7:42pm UTC](https://community.sparkfun.com/t/interface-gm862-with-arduino/24317/3 "2012-06-06T19:42:43Z")

</div>

thank for ur help

i think the problem was with the atmega328p microcontroller which can not communicate with the gm862 directly. i needed an ic for translation but now i have come with a new approach by using seeduino board to communicate with the gm862. and it works perfectly.
