Microcontroller › 8051 › Check the GSM(SIM 900) Response using AT Command › Hello Kamal, Its very easy to
Hello Kamal,
Its very easy to get response and comapre form GSM,
Here are some steps, hope it may helpful to you
1. connect GSM 300 modem with PC/LAPTOP via USB to RS 232 converter or direct DB-9 whatever u may comfortable but you must have valid COM port after that
2. Go to Hyper Terminal and create profile
3. baud rate – 9600 , flow control – none , bits – 8 and rather as it is.
4. Now in Hyper terminal go to setting -> preferance / advance seting -> in that field tick the ” Echo on ” tab. (This is very imp for displaying the response form GSM)
5. after that wait fro network in GSM and type AT in terminal and Enter
6. You will see ‘OK’ in next line.
for your 2nd Q about storing the response
1. In your C code just create one array of 60-70 character
i.e. unsigned char a[60];
2. create one other array
i.e. unsigned char test[2]=”OK”;
3. now just add SBUF to a[60];
for(i=0;i<=1;i++)
{
a=SBUF;
}
4. and compare with test and send the o/p to any pin
for(i=0;i<=1;i++)
{
if(a=test);
{
P2=0xFF;
}
}
Hope you get some idea from it and also if any doubt then you can contact me also you can buy any electronics components and GSM module form me (GSM 300 is only 1150 Rs.)
project [dot] student123 [at] gmail [dot] com
Best luck
Regards
Jaymin D