Академический Документы
Профессиональный Документы
Культура Документы
Contents
About GSM.
Programming of GSM.
What is
GSM ?
• Global System for Mobile (GSM) is
a second generation cellular
standard developed to cater voice
services and data delivery using
digital modulation
GSM operating range
In the United States, GSM operates on
frequencies in the range of 1.9 GHz and 850 MHz .
• AT+CMGS=98XXXXXX;
>TYPE YOUR MESSAGE HERE
CRTL+ZTO SEND MESSAGE
#include<reg51.h>
#include<stdio.h>
sbit sw1=P1^0;
sbit sw2=P1^1;
sbit sw3=P1^2;
sbit sw4=P1^3;
delay()
{
int i;
for(i=0;i<=30000;i++);
}
void main()
{
TMOD=0X20;
TH1=0XFD; //set baud rate 9600 or FA 4800
SCON=0X50;
TR1=1;
TI=1;
while(1)
{
if(sw1==1)
{
printf("at");
printf("\n "); //press sw1 to send AT command.
printf("\r ");
delay();
}
if(sw2==1)
{
printf("atd9876675062; "); //sw2 to send mobile no.
delay();
}
if(sw3==1)
{
printf("\n "); //sw3 to establish
call.
printf("\r ");
delay();
}
if(sw4==1)
{
printf("ATA"); // sw4 to hang up
call.
delay();
delay();
delay();
printf("\n ");
printf("\r ");
delay();
}
}
}