I am trying to connect arduino with GSM modem.
I have connected Rx of arduino w/ Tx of modem and vice versa.
Here is the code
#include <NewSoftSerial.h> //Include the NewSoftSerial library to send serial commands to the cellular module.
#include <string.h> //Used for string manipulations
char incoming_char=0; //Will hold the incoming character from the Serial Port.
NewSoftSerial cell(2,3); //Create a 'fake' serial port. Pin 2 is the Rx pin, pin 3 is the Tx pin.
//Initialize serial ports for communication.
//If a character comes in from the cellular module...
incoming_char=cell.read(); //Get the character from the cellular serial port.
Serial.print(incoming_char); //Print the incoming character to the terminal.
//If a character is coming from the terminal to the Arduino...
incoming_char=Serial.read(); //Get the character coming from the terminal
cell.print(incoming_char); //Send the character to the cellular module.
There is no response from the modem nor the arduino is sending any command to the mode.
The modem is working fine w/ computer.