hi sir i have written the following program to control the gsm module (SIM module)...the program is written on arduino platform the problem is that i am unable to transmit anything from micrccoontroller board even i have crossed rx and tx pins and grounded both the ports, so i am not getting any msg from the gsm module. kindly check the code and correct me wherever necessary.
int a[30]={'A','T','+','C','M','G','S','='};
int b[10]={'9','3','4','2','5','4','5','0','0','0'};
void setup()
{
Serial.begin(9600);
for(int i=0; i < 8 ; i++)
{
delay(100);
Serial.write(a);
delay(100);
}
Serial.write(0X22);
delay(100);
for(int j= 0; j < 10; j++)
{
delay(100);
Serial.write(b[j]);
delay(100);
}
Serial.write(0X22);
Serial.write(0x0a);
delay(100);
Serial.write("hi");
delay(100);
Serial.write(0x0a);
Serial.println(0X1A);
}
Thanks Satya