Académique Documents
Professionnel Documents
Culture Documents
SMS
PORT1
8051
Level
Converter
TABLE OF CONTENTS
1
INTRODUCTION
Introduction
Methodology
Scope of Work
Aims of the GSM Electronic Notice Board
Objectives of the GSM Home Appliance Control Device
Block diagram
Circuit diagram
Component list
Technical Details
Main Cellular Standards
GSM Frequencies
Network Structure
Subscriber Identity Module (SIM)
Literature Review
GSM Security
HARDWAR DISCRIPTION
DESIGN AND CONSTRUCTION
GSM Modem
Accessing GSM MODEM using Microsoft HyperTerminal
Testing of GSM Modem
List of Important AT Commands
INTRODUCTION
3
SMS to Electricity
METHODOLOGY
The method used to carry out this project is the principle of
serial communication in collaboration with embedded systems.
5
BLOCK DIAGRAM
REGULATED
POWER
SUPPLY
METER
LCD
RELAY
APPLIANC
ES
89S52
GSM
MODEM
MOBILE PHONES
CIRCUIT DIAGRAM
8
COMPONENT LIST
Capacity
Quantity
Code
Regulator
7805
U1
Regulator
7812
U3
Capacitor
1000f
C1
Capacitor
10f
C2
Ceramic Capacitor
22pf
C3,C4
Diode
D1,D2,D3,D4
Push Button
Mobile Phone
Relay
LCD
16*2
RL1
40 Pin Base
U2
16 Pin Base
U5
ULN2003
8051(AT89S52)
Oscillator
11.0592mhz
LED
X1
D5,D7
Resistance
220
R1,R4,R8
Resistance
1k
R3
10
Resistance
10k
R2,R5
Buzzer
BUZ1
BC547
Q1
Energy meter
YEAR
1981
1985
STANDARD
MOBILE
TECHNO
PRIMARY
TELEPHONE
LOGY
MARKETS
NMT540
SYSTEM
NORDIC
TACS
TELEPHONY
UE
TOTAL
ACCESS ANALOG
LE EAST
EUROPE
COMMUNUNICATION
CHINA
MOBILE ANALOG
UE
EUROPE,MIDD
AND
SYSTEM
1986
NMT900
NORDIC
MOBILE ANALOG
TELEPHONY
13
UE
EUROPE,
MIDDLE EAST
1991
GSM
WORLD-WIDE
MOBILE
1991
TDMA
COMMUNICATION
TIME
DIVISION DIGITAL
AMERICA
1993
CDMA
MULTIPLE ACCESS
CODE
DIVISION DIGITAL
NORTH
MULTIPLE ACCESS
AMERICA,
KOREA
EUROPE
1992
GSM 1800
MOBILE
PDC
COMMUNICATION
PERSONAL DIGITAL DIGITAL
JAPAN
1995
PCS 1900
CELLULAR
PERSONAL
NORTH
2001
GSM 800
COMPUTER SERVICES
GLOBAL SYSTEM FOR DIGITAL
AMERICA
NORTH
MOBILE
AMERICA
COMMUNICATION
GLOBAL SYSTEM FOR DIGITAL
WORLD-WIDE
1994
2006-TILL
DATE
GSM 450
DIGITAL
MOBILE
COMMUNICATION
GSM FREQUENCIES
GSM networks operate in a number of different frequency
ranges (separated into GSM frequency ranges for 2G and UMTS
frequency bands for 3G). Most 2G GSM networks operate in the
900 MHz or 1800 MHz bands. Some countries in the Americas
(including Canada and the United States) use the 850 MHz and
14
1900 MHz bands because the 900 and 1800 MHz frequency
bands were already allocated. Most 3G GSM networks in
Europe operate in the 2100 MHz frequency band [9]
NETWORK STRUCTURE
The network behind the GSM seen by the customer is large and
complicated in order to provide all of the services which are
required.
The Base Station Subsystem (the base stations and their
controllers).
The Network and Switching Subsystem (the part of the
network most similar to a fixed network). This is
sometimes also just called the core network.
The GPRS Core Network (the optional part which allows
packet based Internet connections).
15
16
LITERATURE REVIEW
This project is an implementation to the idea of the wireless
communication between a mobile phone and a microcontroller.
Currently the main work that has been done on this proposed
system is through serial port to the computer but not wireless. If
they want to switch on and off the appliance, they have to go to
the remote area and one /off the appliance. But in this new
design, the systems need not be reprogrammed to control
another home appliance without changing the programming of
microcontroller. The user will send SMS from his phone and he
will be able to control the appliance.
GSM SECURITY
GSM was designed with a moderate level of security. The
system was designed to authenticate the subscriber using a pre-
17
18
HARDWARE DISCRIPTION
POWER SUPPLY:
Power supply is a reference to a source of electrical power. A
device or system that supplies electrical or other types of energy
19
TRANSFORMER:
A transformer is a device that transfers electrical energy from
one circuit to another through inductively coupled conductors
the transformer's coils or "windings". Except for air-core
transformers, the conductors are commonly wound around a
single iron-rich core, or around separate but magneticallycoupled cores. A varying current in the first or "primary"
winding creates a varying magnetic field in the core (or cores) of
the transformer. This varying magnetic field induces a varying
20
22
an
IRON-CORE TRANSFORMER.
Most
power
BRIDGE RECTIFIER
BASIC OPERATION
According to the conventional model of current flow originally
established by Benjamin Franklin and still followed by most
engineers today, current is assumed to flow through electrical
conductors from the positive to the negative pole. In actuality,
free electrons in a conductor nearly always flow from the
negative to the positive pole. In the vast majority of
applications, however, the actual direction of current flow is
irrelevant. Therefore, in the discussion below the conventional
model is retained.
In the diagrams below, when the input connected to the left
corner of the diamond is positive, and the input connected to the
right corner is negative, current flows from the upper supply
terminal to the right along the red (positive) path to the output,
and returns to the lower supply terminal via the blue (negative)
path.
25
When the input connected to the left corner is negative, and the
input connected to the right corner is positive, current flows
from the lower supply terminal to the right along the red path to
the output, and returns to the upper supply terminal via the blue
path.
In each case, the upper right output remains positive and lower
right output negative. Since this is true whether the input is AC
or DC, this circuit not only produces a DC output from an AC
26
27
28
29
withstand the current surge that occurs when the power is turned
on at the peak of the AC voltage and the capacitor is fully
discharged. Sometimes a small series resistor is included before
the capacitor to limit this current, though in most applications
the power supply transformer's resistance is already sufficient.
Output can also be smoothed using a choke and second
capacitor. The choke tends to keep the current (rather than the
voltage) more constant. Due to the relatively high cost of an
effective choke compared to a resistor and capacitor this is not
employed in modern equipment.
Some early console radios created the speaker's constant field
with the current from the high voltage ("B +") power supply,
which was then routed to the consuming circuits, (permanent
magnets were then too weak for good performance) to create the
speaker's constant magnetic field. The speaker field coil thus
performed 2 jobs in one: it acted as a choke, filtering the power
supply, and it produced the magnetic field to operate the speaker.
REGULATOR IC (78XX)
31
REGULATORS
This
include
78xx
voltage
regulators. The most commonly used ones are 7805 and 7812.
32
33
35
36
38
become more positive than the anode, and the diode ceases to
conduct.
Operation of the simple capacitor filter using a full-wave
rectifier is basically the same as that discussed for the half-wave
rectifier. Referring to figure 4-18, you should notice that because
one of the diodes is always conducting on. either alternation, the
filter capacitor charges and discharges during each half cycle.
(Note that each diode conducts only for that portion of time
when the peak secondary voltage is greater than the charge
across the capacitor.)
Figure 4-18. - Full-wave rectifier (with capacitor filter).
40
41
42
43
capacitor, and the lower the average value of output voltage. For
this reason, the simple capacitive filter is seldom used with
rectifier circuits that must supply a relatively large load current.
Using the simple capacitive filter in conjunction with a fullwave or bridge rectifier provides improved filtering because the
increased ripple frequency decreases the capacitive reactance of
the filter capacitor.
CIRCUIT DIAGRAM OF POWER SUPPLY
44
RELAY
The relay takes advantage of the fact that when electricity flows
through
coil,
it
becomes
an
electromagnet.
The
45
Relays
There are many kind of relays. You can select one according to
your needs. The various things to consider when selecting a
relay are its size, voltage and current capacity of the contact
points, drive voltage, impedance, number of contacts, resistance
of the contacts, etc. The resistance voltage of the contacts is the
maximum voltage that can be conducted at the point of contact
in the switch. When the maximum is exceeded, the contacts will
spark and melt, sometimes fusing together. The relay will fail.
The value is printed on the relay
46
GSM MODEM
A GSM modem is a wireless modem that works with a GSM
wireless network. A wireless modem behaves like a dial-up
modem. The main difference between them is that a dial-up
modem sends and receives data through a fixed telephone line
while a wireless modem sends and receives data through radio
waves. Like a GSM mobile phone, a GSM modem requires a
SIM card from a wireless carrier in order to operate [11].
ACCESSING
GSM
MODEM
USING
MICROSOFT
HYPERTERMINAL
Microsoft HyperTerminal is a small program that comes with
Microsoft Windows. We use it to send AT commands to the
GSM modem. It can be found at Start -> Programs ->
Accessories -> Communications -> HyperTerminal. Before
programming our SMS application, it is required to check if the
GSM modem and SIM card are working properly first [12]. The
MS HyperTerminal is a handy tool when it comes to testing the
GSM device. It is a good idea to test the GSM devices
beforehand. When a problem occurs, sometimes it is difficult to
47
tell what causes the problem. The cause can be the program, the
GSM device or the SIM card. If GSM device and SIM card with
MS HyperTerminal are operating properly, then it is very likely
that the problem is caused by the program or other hardware
[12]. For Linux users, Mincom can be used instead of
HyperTerminal.
TESTING OF GSM MODEM
To use MS HyperTerminal to send AT commands to the GSM
modem, the following procedure is followed
1. I put a valid SIM (MTN) card into the GSM modem. I obtain
a SIM card by subscribing to the GSM service of a wireless
network operator.
2. No need to install any driver for the GSM modem
3. Then I set up MS HyperTerminal by selecting Start ->
Programs -> Accessories -> Communications -> HyperTerminal.
4. In the Connection Description dialog box (as shown in the
screenshot given below), I enter any file name and choose an
icon I like for the connection. Then I click the OK button.
. In the Connect To dialog box, choose the COM port that your
mobile phone or GSM modem is connecting to in the Connect
48
call and I will hear a lot of noise. Then it becomes quiet and I
see my login prompt or my dialing program tells me the
connection is established. Now I have a connection with the
server from my provider and I can surf the Internet [13].
MICROCONTROLLER LCD INTERFACING
the R/W line of the LCD panel, into write mode. This will cause
no bus conflicts on the data lines. As a result I cannot read back
the LCDs internal Busy Flag which tells us if the LCD has
accepted and finished processing the last instruction [20]. This
problem is overcome by inserting known delays into my
program. The 10k Potentiometer controls the contrast of the
LCD panel. Nothing fancy here.
I used a power supply of 5volt. The user may select whether the
LCD is to operate with a 4-bit data bus or an 8- bit data bus. If a
4-bit data bus is used, the LCD will require a total of 7 data
lines. If an 8-bit data bus is used, the LCD will require a total of
11 data lines [20]. LCD with 8-bit data bus is used for this
design. The three control lines are EN, RS, and RW. EN line
must be raised/lowered before/after each instruction sent to the
LCD regardless of whether that instruction is read or write text
52
53
54
Test
Result
meeting by 2pm
2pm
12345 I want to see Mr. I want to see Mr. Musa
Musa
12345 I will not come to I will not come to school
school today
12345 please enemy alert
12345 I am in India
12345 please hurry up
1234 I will be in office in
today
Please enemy alert
I am in India
Please hurry up
I will be in office in the next
30 minute
58
89S52:
60
61
The pin diagram of the 8051 shows all of the input/output pins
unique to microcontrollers:
62
Internal ROM 4k
clock circuits.
SIMULATOR
KEIL Micro Vision is an integrated development environment
used to create software to be run on embedded systems (like a
microcontroller). It allows for such software to be written either
in assembly or C programming languages and for that software
to be simulated on a computer before being loaded onto the
microcontroller. The software used is c programming
64
65
A powerful debugger.
To create a GSM ENOTICE board project in uVision3:
1. Select Project - New Project.
2. Select a directory and enter the name of the project file.
3. Select Project Select Device and select a device from
Device Database.
4. Create source files to add to the project
5. Select Project - Targets, Groups, and Files. Add/Files, select
Source Group1, and add the
Source files to the project.
6. Select Project - Options and set the tool options. Note that
when the target device is selected from the Device
Database all-special options are set automatically. Default
memory model settings are optimal for most applications.
7. Select Project - Rebuild all target files or Build target.
To create a new project, simply start micro vision and
select Project=>New Project from the pulldown menus.
In the file dialog that appears, a filename and directory was
chosen for the project. It is recommended that a new directory
66
69
microcontrollers.
CONCLUSION
The prototype of the GSM based display electronic notice board
was efficiently designed. This prototype has facilities to be
70
again.
A leg of the crystal oscillator was broken during mounting.
So it has to be replaced.
LED`s get damaged when we switched ON the supply so
we replace it by the new one.
TROUBLESHOOT
71
FUTURE IMPROVEMENT
Control
the
home
device
by
utilizing
AT
1991
Bernard
Sklar,
Digital
Communications:
73
Mobile
Network
(PLMN).
European
Multiple
Access
http://www.eecg.toronto.edu/~nazizi/gsm/ma/
Scheme,
William
Equipment
(SIM-ME)
Interface.
74
European
Course on Computer
75
18. M.
Zimmermann
and
A.
Kirsch,
The
AN/GSC-
MOTOROLA
C168
http://developer.motorola.com/getDocument.do?docId=65054
20. http://www.mobilegpsonline.com/downloads/GM2829%20Datasheet%20R1G.pdf
21. http://www.mobilegpsonline.com/GSMJC01Spec.pdf
22.
http://www.visualgsm.com/wire_sms_index.htm
23. http://en.wikipedia.org/wiki/Gsm
76