connecting EFCom GPRS/GSM Shield to mega2560

I have EFCom GPRS/GSM Shield http://www.elecfreaks.com/wiki/index.php?title=EFCom_GPRS/GSM_Shield am using it with mega 2560 the problem is that the code in the wiki page

> //Serial Relay - Arduino will patch a  //serial link between the
> computer and the GPRS Shield //at 19200 bps 8-N-1 //Computer is
> connected to Hardware UART //GPRS Shield is connected to the Software
> UART 
>  
> 
> > #include <SoftwareSerial.h>   
> > SoftwareSerial mySerial(2, 3);   
> >void setup() {   
> > mySerial.begin(19200);               // the GPRS baud rate
> > Serial.begin(19200);                 // the GPRS baud rate    }   void
> > loop() {   if (mySerial.available())
> >     Serial.write(mySerial.read());   
        if (Serial.available())
> >     mySerial.write(Serial.read()); 
          }

makes use of software serial while problem is that mega 2560 cannot use software serial on pin 2 , as in the arduino reference , however i changed the pins to 50 and 51

and used external female-male headers to connect s_tx to pin 50 “rx” , and s_rx to pin 51 “tx” , still no response with the AT command … pls help me . how to solve that

code after update is :

   #include <SoftwareSerial.h>   
   SoftwareSerial mySerial(50, 51);   
   void setup() {   
   mySerial.begin(19200);               // the GPRS baud rate   
   Serial.begin(19200);                 // the GPRS baud rate   
               }  
 void loop() {  
 if (mySerial.available())
        Serial.write(mySerial.read());   
        if (Serial.available())
        mySerial.write(Serial.read());    
             }

note that i am using arduino serial monitor …thanx

There are other pins avialble in arduino mega like below. Why you using 50,51. COnfigure to below pins & try

Keep baud rate mentioned in datasheet , Dont use like anything

Serial: 0 (RX) and 1 (TX); Serial 1: 19 (RX) and 18 (TX); Serial 2: 17 (RX) and 16 (TX); Serial 3: 15 (RX) and 14 (TX). Used to receive (RX)

thanx AMPS- for ur reply, I can't use tx and rx on serial0 because that's the port through which the computer communicate with the mega ... for rest of hardware serials i can't use the (as i think) because the two pins in gsm/gprs shield to which i connect pin 50 and 51 are for software serial use (see schematic in wikipage) , there are others for hardware use but require soldiering of headers so i couldn't use them ..

see : http://www.elecfreaks.com/wiki/images/thumb/e/e7/EFCom-Interface.jpg/450px-EFCom-Interface.jpg

the picture shows part called Software serial the picture also shows part called hardware serial (require soldering)

am i true when deducing that software serial in gprs/gsm couldn't be connected to hardware serial in arduino mega ?

also see this : http://www.instructables.com/id/Tutorial-EFCom-GRPSGSM-Shield-Arduino/step5/Q-A/

If you using above sheild you can't configure port like you wanted unless you use it like exterally.

The sheild is compatianble with arduin UNO

http://www.elecfreaks.com/wiki/index.php?title=EFCom_GPRS/GSM_Shield#Schematic

you could use pin 2 & 3 for hardware serial library.

http://www.elecfreaks.com/store/download/product/EFcom/EFcom_Datasheet.pdf

also concentrate on jumper connection mention in page no 6.

you can't configure port like you wanted unless you use it like exterally.

i don't get what you mean exactly by externally but if you mean removing the jumbers and use headers (female-male) to connect S_RX to 51 and S_TX to 50 , ihave done this already and no respoce

Sheild are meant to place top of stack. usually shield are designed as per Uno board which usually fit alsoi for mega. since i don't have arduino Mega board,

even while seeing image i can say that you cant use pin 50,51. because shield reside top allocated pins will be up to 13 .

External i sense.

Bottom pins of shield are connected indivually via jumper wire. This method allow you to use your own using pins for programming.

If you planning use as sheild u must use within 13 pins. Also check whether tx & RX line differ in sheild

is it start working .. hope it worked out for you

Sir, can I have a look at your circuit and your sketch please.