0% found this document useful (0 votes)
152 views20 pages

GSM With CKT, Flow Code

GSM stands for Global System for Mobile Communications, which is a standard developed by ETSI for 2G digital cellular networks. It uses TDMA to allow multiple users to access radio channels simultaneously, and originally supported voice calls before expanding to include data services. Common frequencies used include 900MHz and 1800MHz. Key features of GSM include SIM cards that allow users to change phones while retaining their number and information. Common commands to interact with GSM modules start with "AT" and are used to check status, send/receive SMS, and more.

Uploaded by

Ravi Chandra M
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
152 views20 pages

GSM With CKT, Flow Code

GSM stands for Global System for Mobile Communications, which is a standard developed by ETSI for 2G digital cellular networks. It uses TDMA to allow multiple users to access radio channels simultaneously, and originally supported voice calls before expanding to include data services. Common frequencies used include 900MHz and 1800MHz. Key features of GSM include SIM cards that allow users to change phones while retaining their number and information. Common commands to interact with GSM modules start with "AT" and are used to check status, send/receive SMS, and more.

Uploaded by

Ravi Chandra M
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

GSM

GSM stands for Global System for Mobile Communications formerly


called as Groupe Spécial Mobile.
This is a standard set developed by the European Telecommunications
Standards Institute (ETSI) to describe technologies for second generation (or
"2G") digital cellular networks.
The GSM standard initially was used originally to describe switched circuit
network for full duplex voice telephony to replace first generation analog
cellular networks
The standard was expanded over time to include first circuit switched data
transport, then packet data transport via GPRS(General packet radio
service). Packet data transmission speeds were later increased via EDGE.
The GSM standard is succeeded by the third generation (or "3G") UMTS
standard developed by the 3GPP. GSM networks will evolve further as they
begin to incorporate fourth generation (or "4G") LTE Advanced standards.
"GSM" is a trademark owned by the GSM Association.

GSM networks operate in a number of different carrier frequency ranges


(separated into GSM frequency ranges for 2G and UMTS frequency bands
for 3G), with most 2G GSM networks operating in the 900 MHz or
1800 MHz bands. Where these bands were already allocated, the 850 MHz
and 1900 MHz bands were used instead (for example in Canada and the
United States). In rare cases the 400 and 450 MHz frequency bands are
assigned in some countries because they were previously used for first-
generation systems.
India GSM 900 5 carriers

GSM 900/1800 3 carriers

Regardless of the frequency selected by an operator, it is divided into


timeslots for individual phones to use. This allows eight full-rate or sixteen
half-rate speech channels per radio frequency. These eight radio timeslots
(or eight burst periods) are grouped into a TDMA frame. Half rate channels
use alternate frames in the same timeslot. The channel data rate for all 8
channels is 270.833 kbit/s, and the frame duration is 4.615 ms.
The transmission power in the handset is limited to a maximum of 2 watts in
GSM850/900 and 1 watt in GSM1800/1900
One of the key features of GSM is the Subscriber Identity Module,
commonly known as a SIM card. The SIM is a detachable smart card
containing the user's subscription information and phone book. This allows
the user to retain his or her information after switching handsets.
Alternatively, the user can also change operators while retaining the handset
simply by changing the SIM. Some operators will block this by allowing the
phone to use only a single SIM, or only a SIM issued by them; this practice
is known as SIM locking.
We are be using SIM300 GSM Module in our Project.
SIM300 is a Tri-band GSM/GPRS engine from SIMCOM Ltd., that
works on frequencies EGSM 900 MHz, DCS 1800 MHz and PCS 1900
MHz. SIM300 features GPRS multi-slot class 10/ class 8 (optional) and
supports the GPRS coding schemes CS-1, CS-2, CS-3 and CS-4.
With a tiny configuration of 40mm x 33mm x 2.85 mm , SIM300 can fit
almost all the space requirement in an application, such as Smart phone,
PDA phone and other mobile device.
The physical interface between SIM300 and the mobile application is
through a 60 pins board-to-board connector, which provides all hardware
interfaces from module to customer’s boards except the RF antenna
interface.

• 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.

• Two audio channels include two microphones inputs and two


speaker outputs. These audio interfaces can be easily configured
by AT command.

• One ADC input

• Two GPIO ports and SIM card detection port

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

You can use AT Commands "AT" meaning attention , to communicate with


the SIM card. The SIM interface supports the functionality of the GSM
Phase 1 specification and also supports the functionality of the new GSM
Phase 2+ specification for FAST 64 kbps SIM (intended for use with a SIM
application Tool-kit).
The "AT" or "at" prefix must be set at the beginning of each command
line.
To terminate a command line enter <CR>.
Commands are usually followed by a response that includes
”<CR><LF><response><CR><LF>”.
Testing and General commands for GSM

1. Steps to test the GSM Module

We can use the PC Hyper Terminal to interact with the GSM Module.

➢ First insert the SIM card to 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.

➢ Another LED on the Module starts blinking to indicate the availability


of network.

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.

➢ Each GSM modem will have a unique id called IMEI.

➢ Open Hyper Terminal in the PC , apply the below settings

Connect using  COM1

Bits per second  9600

Data bits  8

Parity  None

Stop bits  1

Flow control  None


➢ Type AT on HyperTerminal and press ENTER  OK will be display
as a response from the GSM Module.

AT
OK
Below are few more commands and response from the Module

AT+CGMI - To check Manufacturer Identification


FLYFOT M260 MODEM
OK

AT+CGMM
MULTIBAND 900 1800 1900
OK

2. Commands in detail

A . Manufacturer identification +CGMI


Description:
This command gives the manufacturer identification.
Syntax:
Command syntax: AT+CGMI

B. New message indication +CNMI


Description:
This command selects the procedure for message reception from the
network.
Syntax :
Command syntax : AT+CNMI=<mode>,<mt>,<bm>,<ds>,<bfr>

C. Send message +CMGS


Description :
The <address> field is the address of the terminal to which the message is
sent. To send the message, simply type, <ctrl-Z> character (ASCII 26). The
text can contain all existing characters except <ctrl-Z> and <ESC> (ASCII
27). This command can be aborted using the <ESC> character when entering
text. In PDU mode, only hexadecimal characters are used
(‘0’…’9’,’A’…’F’).
Syntax :
Command syntax in PDU mode :
AT+CMGS= <length> <CR>
PDU is entered <ctrl-Z / ESC >

The message reference, <mr>, which is returned to the application is


allocated by the product. This number begins with 0 and is incremented by
one for each outgoing message (successful and failure cases); it is cyclic on
one byte (0 follows 255).

3. Few Worked Examples

Command to send SMS

AT+CMGS="9845843843"
> HI
+CMGS: 9
OK
at+cpin? // To check network connectivity
+CPIN: READY

AT+COPS?
+COPS: 0,0,"Hutch-Kamataka"

AT&F // To store Factory default


OK

// 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

Command to set in receive mode

AT+CNMI=2,2,0,0,0
OK

+CMT: "+919845843843",,"10/05/12,08:18:40+22" // Total 45


characters
SYSTEM STARTS
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

AT+CBC? - To check for Battery Starus <n> +CBC: n,m

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

Note: Get manufacture identification OK

AT+CGMI=? Note: Command valid, FLYFOT

AT+CGMI? OK

AT+CGMI=1 +CME ERROR 3

Note: not support


AT+CPAS This
command
returns the
activity status
of the mobile
equipment.
AT+CPAS <pas> +CPAS: <pas>

Note :Current activity status 0: ready OK


(allow
AT+ CPAS? +CME ERROR 3
commands

AT+ CPAS=? from TA/TE) Note: not support


AT+ CPAS=1 1:
unavailable
(does not
allow
commands)

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

30885E9ED301 <ctrl-Z> Note : Successful transmission


AT+CNMI=<mode>,<mt>,<bm>,<ds>,<bfr> This
command
selects the
procedure for
message
reception
from the
network.
AT+CNMI=2,1,0,0,0 <mode> : OK
controls the
Note : <mt>=1 Note: message received and save
processing of
then route the SMS-DELIVERS w
unsolicited
unsolicited result codes: +CMTI:
result codes
<index>
Important
OK
note: only
<mode>=2 is Note: message received, then rou
AT+CNMI=2,2,0,0,0
supported.
Note : <mt>=2 SMS-DELIVERS with unsolicite
<mt> : sets codes: +CMT: [<alpha>,] <length
the result <LF> <pdu>
code
indication OK
routing for
Note: SMS-STATUS-REPORTS
SMS-
using unsolicited code:
AT+CNMI=2,0,0,1,0 DELIVER
indications. +CDS : <length> <CR> <LF> <p
Note : <ds>=1
<bm> : OK
defines the
rules for Note: No SMS-STATUS-REPOR

storing the routed.

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

Note : Read the message 0891683108100005F0040D9168

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

30885E9ED301 <ctrl-Z> Note : Successful transmission


Interfacing the GSM Module with Microcontroller .

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

DB9 MALE CONNECTOR GSM MODULE

+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

R1IN R1OUT RXD


4
9
5
15

CON2

MAX232
GSM Send SMS Flow Chart

Test GSM Module after inserting SIM as


shown in steps above and connect it to the
Controller

Initialize using AT Enter command – Use ASCII


value of ‘Enter’ = 0x0D

Command Format AT+CMGS=”mob num” Enter 


which will transmitted serially to GSM module through
UART0 of the Controller

Send AT+CMGS= String

Send 0x22(ASCII value of “)

Send Mobile number

Send 0x22(ASCII value of “)

Send 0x0D(ASCII value of carriage return)

You might also like