GSM With CKT, Flow Code
GSM With CKT, Flow Code
• The keypad and SPI LCD interface will give you the flexibility to
develop customized applications.
• Two serial ports can help you easily develop your applications.
Both 1.8V and 3.0V SIM Cards are supported. The SIM interface is
powered from an internal regulator in the module having nominal voltage
2.8V. All pins reset as outputs driving low.
Reference circuit of 6PIN SIM card
We can use the PC Hyper Terminal to interact with the GSM Module.
➢ Connect the Serial cable –RS232 to the PC via DB9 pin connector on
the GSM Module.
➢ Give the power supply. The power supply indicating LED will be ON
continuously.
If the network is available then the delay between the blinking is less.
If the network is not available then the delay between the blinking is
more.
Data bits 8
Parity None
Stop bits 1
AT
OK
Below are few more commands and response from the Module
AT+CGMM
MULTIBAND 900 1800 1900
OK
2. Commands in detail
AT+CMGS="9845843843"
> HI
+CMGS: 9
OK
at+cpin? // To check network connectivity
+CPIN: READY
AT+COPS?
+COPS: 0,0,"Hutch-Kamataka"
// Use the next 2 commands if we face any problem to send and receive
SMS.
// If we type SMS send command, then error comes.
// If we enable in SMS receive command, then the SMS received will be in
numbers and alphabets format.
AT+CMGF=1
OK
AT+CMGR=1
+CMGR: "REC READ","+919880147756",,"10/03/08,17:48:53+22"
Ok
AT+CNMI=2,2,0,0,0
OK
+CMT: "+919845843843",,"09/12/25,23:44:42+22"
Hello
List of other SIM 300 AT Commands in Detail
0: battery not OK
in charge
AT+CBC=? +CBC: (0-3), (0-100)
1: battery in
OK
charge
AT+CBC +CBC: n,m
2: battery full
OK
3: battery low
AT+CBC=1 +CME ERROR 3
<m>
Note: not support
0: battery
level 0
25: battery
level 1
50: battery
level 2
75: battery
level 3
100: battery
level 4
This
command
AT+CGMI
gives the
manufacturer
identification.
AT+CGMI FLYFOT MODEM
AT+CGMI? OK
2: unknown
3: ringing
(ringer is
active)
4: call in
progress
5: asleep
(low
functionality)
AT+CMGS= <address> <CR> The
<address>
field is the
address of the
terminal to
which the
message is
sent. To send
the message,
simply type,
<ctrl-Z>
AT+CMGS=.28.<CR> +CMGS: <mr>
0031000BA13105119226F40000AD0AA8C3F6 OK
AT+CNMI=2,0,0,0,0 received
+CNMI: 2,2,0,1,0
CBMs (Cell
Note : <ds>=0
Broadcast Will return the previous status.
Message)
+CNMI: (0-3),(0-3),(0-3),(0-1),(0
types.
at+cnmi?
<ds> for
Note : Read
SMS-
at+cnmi=? STATUS-
REPORTs.
Default is 0.
<bfr>
Default is 0.
AT+CMGR=<index> This
command
allows the
application to
read stored
messages
AT+CMGR=1 +CMGR: 1,,24
F900005001429042802304B018
OK
AT+CMGL=<stat> This <stat> possible values
command
received unread messages(0)
allows the
application to received read messages(1)
read stored
messages, by stored unsent messages(2)
indicating the
stored sent messages(3)
type of the
message to all messages(4)
read.
Does not
work.
AT+CMGS= <address> <CR> The
<address>
field is the
address of the
terminal to
which the
message is
sent. To send
the message,
simply type,
<ctrl-Z>
AT+CMGS=.28.<CR> +CMGS: <mr>
0031000BA13105119226F40000AD0AA8C3F6 OK
A SIM card is inserted to the GSM module. After checking as shown in the
steps above, RS232 cable is directly connected between DB9 of the module
and the DB9 on the controller port. This establishes the serial
communication between them. The GSM commands embedded in the
controller takes care to communicate with the GSM Module via RS232
cable-MAX232-Serial I/O pins of the Controller.
+5V
DB9 SOCKET MALE uC DB9 SOCKET MALE GSM DB9 SOCKET FEMALE
1 1 U16
6 6 1
2 2 6 1
7 7 2 Tx
3 3 7 2
Rx
8
4
8
4
3
8 3
Vcc
GSM
9 9 4
5 5 9 4
5 GND
CON3 CON4
CON5 GSM
+5V
C6 0.1uF
1 2
1
C7
0.1uF
16
U4 MAX232
2
1 2
VCC
1
C8 C1+ V+ 6
0.1uF V-
1
C9
2
3 0.1uF
4 C1-
2
1
C12 C2+
DB9 SOCKET 0.1uF
2
1 5
6 C2-
2 7 10
7 8 T2OUT T2IN 9
3 14 R2IN R2OUT 11
T1OUT T1IN TXD
8 13 12
GND
CON2
MAX232
GSM Send SMS Flow Chart