Sie sind auf Seite 1von 5

Design a Microcontroller Based System with Mini PSTN Module for Power

Failure Detection

Kumarathunga YMSB
Perera LDRD

ABSTRACT

The six month industrial training was obtained at Sri Lanka Telecom at Kurunegala from 21 April
2010 to 21 November 2010. During that period I was trained at Maintenances Section, planning
and new connection section, switching and transmission section, CDMA section and ADSL & new
technology section. During the training period, I was interested in adding some better value to
current testing equipments and Alarm panel at the exchanges by developing new system to it.
When I was trained at Main Distribution Frame (MDF), I tried to create a new system for testing
lines of subscribers because the officer at MDF has to spend more time to check telephone lines.
Then I did some experiments to create a new system to check telephone lines at MDF quicker than
the old system. In this task, I wanted to control PSTN phone using the micro controller. I could
make Mini PSTN (Public Switching Transmission Network) module to detect the telephone
number of the testing line through the officer’s mobile phone or exchange CLI unit. Also I
designed a system to get a signal from the exchange to the mobile phone of the relevant officer to
indicate a tripped condition. And I designed this circuit to indicate the Battery level condition of
the exchange to another mobile phone. For this research, I mainly used 16F877A microcontroller
and mikroC software to program this IC.

INTRODUCTION
Sri Lanka Telecom (SLT) is the copper access has been the major driver
Country’s leading Telecom operator. It is of SLT.
a company that has gainfully carried Optical fiber rings have been planned to
forward the legacy of the incumbent provide Fiber Optic Super Highway
whilst successfully integrating related Interconnecting all the provinces of Sri
businesses plus a modern organizational Lanka. Already certain optical fiber rings
structure and culture. SLT is listed on the have been commissioned while part of
Colombo Stock Exchange and is its the other rings are planned to be
largest capitalized company. SLT as an commissioned by the end of this year to
incumbent operator has been responsible provide optical fiber connectivity for the
for providing both voice and data major cities of Sri Lanka. 228 numbers
services, domestic as well as of towers have been deployed on Sri
international. In the domestic network Lanka to provide radio communication to
predominantly access services has been SLT network. The provision of CDMA
provided by copper pairs while in the by Sri Lanka Telecom by using the
transport network all the switches and existing towers will help SLT to
transmission were digital. SLT has penetrate much into rural areas, within a
introduced ADSL service which has short spam off time, in a cost effective
become very popular in Sri Lanka. Still way(1).
the ADSL, IPTV service along with
BACKGROUND AND RATIONALE availability of relevant officers at the
FOR THE RESEARCH RSU or MSU at night affects continuous
Main distribution Frame (MDF) is communication. Therefore, a way of
included all subscribers’ connections. informing the defect to the relevant
MDF of Main Switching Unit (MSU) officers has to be planned. Therefore I
contains about connections like 20,000 or hope to solve the above problems by
30,000.When a technician wants to check introducing a more appropriate alarm
lines, he has to use PSTN phone by system. Also I propose to apply this
dialing one by one. It is a very difficult system to PSTN home phone of a
task and spends a lot of time to check subscriber, when he wants to get a signal
many lines, if necessary .Therefore if on his mobile phone to indicate door
there is an easy system available, it opening or Fire Warning at home.
becomes very useful.
Extended Line Units (ELU) in Sri OBJECTIVES
Lanka Telecom are located in remote There are GSM modules at the market.
areas from MSU or RSUs (Remote They can send signals from relevant
Switching Unit). There are no persons at place to mobile phone by programming
ELUs. An ELU provides services to 460 GSM modules. Without using GSM
subscribers. Also ELUs are connected to module, I planned to design a circuit to
each other using Fiber Optical Ring. If send a signal from a mobile phone or any
any failure occurs at this station, it telecommunication network using a
affects the subscribers and sometimes PSTN phone by using a microcontroller.
affects the transmission Network. Also it can control not only PSTN
Therefore all failures like commercial phones but also GSM phones.
power failure, Tripped Switch failure, Also, I hope to design another circuit to
Battery voltage condition, door identify the commercial power failure,
condition, temperature and other Tripped switch failure and voltage level
condition. When a failure occurs, it is of Batteries of exchange and send signals
indicated by alarm ELU from exchange. to different mobile phones relevant to the
But some signals can’t be identified condition fault.
correctly whether it is a commercial
power failure or tripped switch failure. DESIGNING THE CIRCUITS
Also it is indicated as only commercial Mini PSTN Module (for line testing)
power failure for both failures. Then the Inputs of the UM91214A (DTMF
technicians have to go with generators to Encoder) of PSTN Pin 11 to 16 were
supply the power. But if it is a case of a connected to PSTN module circuit.The
Tripped switch, time and labour are terminals of RJ 11 of PSTN phone was
wasted. connected to 5V relay. The supplying
Also, In order to know the power of the microcontroller was
correct voltage level of Batteries (from connected through above Relay.
48V to 45V) after a power failure, some
device has to be used. In addition, none
Figure 1.Basic Connections of PSTN Figure 2.Basic Connections of Power
Module Circuit Failure Detection Circuit

Application circuit (power failure Implementation of the Circuit


detection) Implementation Mini PSTN Module
Voltage of Batteries of exchange The PSTN module and power failure
(normally 48V or 50V) is reduced using Detection circuits are shown in Figures
Voltage divider circuit to 5V.The level of
PIC16F877A microcontroller used for
Analogue voltage was checked using
micro controller registers by converting this circuit development. Proteus 7
digital format and sent signal to relevant edition software used for drawing circuit
relays when a giving condition true.
and simulate the program with drowns
Also send signal to Relay which was
connected to PSTN module through circuits.
NE555 timer using monostable mode. It
is used to increase Dialing time by
changing value of variable resister. The
two ends of Tripped switch and
commercial power were connected to
micro controller inputs by converting
230V (AC) to 5V (DC) using transformer
and rectifiers (or Power pack).
All status of Batteries and conditions of
Power was displayed using LCD.

Figure 3.Mini PSTN Modular


Implementation Power Failure
Detection Circuit

Figure 5.Power Failure Detection


Figure 4.Power Failure Detection
Circuit (Implementation)
Circuit

RJ-11 P_LINE(Power Line) was The Combined Circuit


connected to the telephone Line and RJ-
11 MODULE port of figure was
connected to the RJ-11 port of PSTN
phone. Other output port of TR_ALARM
(Tripped alarm), COM_ALARM
(commercial power alarm) and V<48
connectors can be connected for output
signal like MDF alarm Tie.
The TRP connector is used to connect
Tripped line signal and CONSU
connector is used to connect commercial
power signal using DC power packs.
Also 48V connector of this circuit is
connected to terminals of Batteries at the
relevant exchange.

Figure 6.Combined Circuit with PSTN


Module and Power Failure Detection
Circuit
DISCUSSION sent to the Mobile phones of authorized
If we can control PSTN phone with persons. Also this circuit can be
signals, we can use that application to do connected to the Alarm Tie at the RSU or
many things like not only power failure MSU. Then it can be sent to the
detections but also Identifying cutting Exchange. Then the Alarm can be
areal cables, applying for security places identified by using computers.
when unauthorized person entering that
area and many places.
According to my first experiment, I hope
to improve the line number indication REFERENCES
circuit by removing Mobile phone and  http://www.sltnet.lk,
adding a display unit as soon as
connecting probe to LI. Then I should
learn signaling theories.
In my power failure detection project, I
used only dialing technique from relevant
place. In future I can improve my circuit
for sending SMS by indicating alarm
conditions to relevant places using a
mobile phone by controlling micro
controller. Then I have to find a protocol
between microcontroller and mobile
phone.

CONCLUSION
According to this research project, the
final solution for detection of power
failures is microcontroller based
electronics system. I have completed two
circuits for many applications.
The first circuit can be used to get
subscriber’s telephone number to the
Mobile phone of MDF officer or
Exchange CLI Unit at the MDF from LI
without manually dialing the number of
PSTN phone. The second circuit can be
used to indicate commercial power
failure condition, Tripped switch
condition and voltage levels of Batteries
using LCD and Alarm. By connecting the
above two circuits, alarm signals can be

Das könnte Ihnen auch gefallen