Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Switching Theory
Telephone Switching System
About The Phonesets
Types of switching:
– Circuit the traditional form of the switching which makes the paths
physically by switches like relays and codecs. It is like an electrically close
circuit that connects our two desired points. So we can have any kind of
signaling if the frequency response of the path allows us and the current
value is supported by the elements. It means we can have analog or digital
data.
– Packet this kind of switching makes a virtual path not a physically one.
The data must be digital and encapsulated in packets. A packets is a
collection of data bits plus control bits that constructs its frames. The
switching can be performed by a simple PC or some specially designed
digital processing systems. So we can only transmit digital data or digitized
analog data.
Outbound Signaling If we add some wires to the tip and ring just
for transmitting the control signals, it is called outbound signaling. In
this form, conversation is isolated from other signals. The trunks
usually uses outbound signaling because of its higher quality and ease
of use.
Conversation Circuit In analog telephone switching system there
are some buses (separated from each other) that may hold
conversations and is called conversation circuits (one conversation in
one circuit). It means each line / trunk can be connected /
disconnected from each bus (like a matrix).
Monitor Panel
Line 1
Phone 1
Line 2 &Trunks
Phone 2 Another GX
GX Switching System
Signals
…
Line I
Phone I
Power
Data Processing
System
Operator Monitor
Panel
Line 1 Trunk 1
Phone 1 GX 1
Line 2 Trunk 2
Phone 2 GX 2
PBX Switching System
…
…
Line I Trunk J
Phone I GX J
Power
Data Processing
System
Notifying Tones There are some tones that switching systems send
to phones to inform the user of the result of its request.
– Dial tone a continuous wave after the handset pickup. It means it is ready
to accept the dialing.
– Ring back tone a discrete wave synchronous with ring wave to inform
the requester that the requested phone is ringing.
– Busy tone a discrete wave which means the requested phone is busy.
– Invalid tone a discrete one which means the dialed number is invalid.
Usually, its frequency is higher than the other tones.
Title
Behavior
Design Considerations
Hardware
Software
Sample Processes
Monitor Panel
Line 1
Phone 1
Line 2
Phone 2 Trunk 1
Project’s PBX Switching GX 1
Line 3 System
Phone 3
Line 4
Phone 4
Power
Data Processing
System
Line 2
Line 3
Line 4
Project’s
Line Unit Monitoring
Signals PBX
System
Data Power
Trunk Unit Signals Supply
Unit
Trunk 1
Power Supply Unit This unit is responsible for supplying the necessary
voltages that other units need. This unit must supply the voice carrier
voltage applied to the phoneset, so must be designed with care.
Line Unit This unit interfaces the system with phonesets. It detects the
dialing & phone mode and also send ring signal. In this unit, tip and ring of
each phone (for use in switch unit) is constructed.
Trunk Unit It interfaces with trunk and has responsibilities similar to line
unit. The tip and ring of trunk (for use in switch unit) is constructed.
Switch Unit It has some conversation circuits and switches the phones
and trunk (under control of control unit) i.e their tip and ring wires.
Control Unit This unit controls the whole system. It gets detect signals
from line and trunk units and sends control signals to switch unit and (if
necessary) to line and trunk units.
29 1-to-4 PBX Project May 2003
Hardware:
Some Components
Relays The main switch components that is used in this project are
relays. A relay is an electrical-mechanical component capable of
attract a contact with an electrical command in order to connect /
disconnect some connections. It is like a key with electrical control.
Despite of its mechanical problems, it’s an idle component for passing
a wide range of signals with different powers.
Open collector not gates Just like normal logical not gates, open
collector not gates, negates the input signals but with one major
difference. The output layer transistors are open collectors, which
means are not connected to power voltage.
Opto-couplers A semiconductor device which consists of a normal
led and a BJT transistor with optically sensitive base. If a current is
passes through the led, it stimulated base just like a normal current.
It’s main usage in this project, is detecting dc-loop in order to find
phoneset mode.
Trunk board The trunk board contains 1 trunk interface circuits that
interfaces a trunk to the system and do the following tasks:
– Detecting the trunk ring signal.
– Carry tip and ring wires to switch unit for switching.
– Showing the ring signal and connect mode by two leds.
Conversation Circuit boards Each conversation circuit board
contains 1 conversation circuit that is able to create one conversation
between some lines or trunk. Control unit controls which relays are active
and therefore switching of each circuit.
Control board This board has one microcontroller from MCS-51TM
(AT89C52) that controls the system by scanning the detect signals and
retrieving the request information then sending controlling or monitoring
signals and if necessary, switching the lines / trunk (via switch unit).
1 L3_RNG
Ring pbx.dsn L3_RING
2 L3_INTR (Line 3” sheet)“
Power L3_DTCT
Supply
Unit
Switch Unit
Power C0_S0
Supply
board C0_S1 Conversation Circuit 0 board
C0_S2 pbx.dsn
C0_S3 (Conversation Ckt 0” sheet)“
pbx.dsn
C0_TONE
)“Control” sheet(
C1_S0
C1_S1 Conversation Circuit 1 board
C1_S2 pbx.dsn
C1_S3 (Conversation Ckt 1” sheet)“
C1_TONE
C2_S0
C2_S1 Conversation Circuit 2 board
pbx.dsn )“Power Supply” sheet(
C2_S2 pbx.dsn
C2_S3 (Conversation Ckt 2” sheet)“
C2_TONE
Trunk Unit
Trunk 0 board
T0_CNCT T0_TIP
pbx.dsn
T0_RDTCT T0_RING
(Trunk 0” sheet)“
Hardware: Photo
Software:
Structure
Line Ports Trunk Ports
Project’s
Central Control Unit Software
Architecture
Switch Ports
Trunk Control Unit Like the line one, this unit controls the trunk. It
receives messages from trunk interface and central control in order to
build trunk control signals.
Switch Control Unit This unit has a collection of useful routines for
handling and monitoring the switching.
Central Control Unit This unit is responsible for making inter-
routine communication and higher policies are held in this unit. This
unit applies number assignments and connects the three above control
units to each other.
Ring & Tone Generator Unit This unit generates all of the tones
and waves that is needed in the software including: ring wave, dial
tone, busy tone, ring back tone and invalid tone.
EvAllRel
(EvToneReq(TnRingback
EvTalkCancel
Accept
EvTalk
(EvToneReq(TnNo
EvPutdown
StTalk
EvAllRel EvTalkAccept
EvPickup
EvEOR
Software: Phone State Diagram
StRing
EvSOR
EvConvReq
(EvToneReq(TnDial
EvPickup
StIdle StDialTone EvSOD StDialing
EvPutdown
EvAllRel (EvToneReq(TnNo
EvPutdown
EvDigitDialed
EvAllRel (EvToneReq(TnInvalid
EvAllRel
(EvToneReq(TnBusy
EvTrunkRel
EvPutdown EvEOD+EvNoTrunkOK
StTrunk
Software:
Routines (1)
Development Suggestions:
– The switch unit can be implemented using digital technology. It needs
major changes in hardware and software.
– Tone dialing can be supported by adding some hardware component to
line boards. Of course some software modification is needed.
– Operator is another possible addition that can be implemented using a new
hardware unit and its software drivers.
– Lots of services like diverting, auto answering, conferencing … and
monitoring and also logging can be supported by system just by adding
required software routines.
Conclusion:
– This project is an electrical and electronical circuit switching system, a PBX
i.e a Private Branch eXchange that is implemented in analog technology.
– Mixture of electronics, communication, software and hardware theories and
technologies are used to construct the project.
More Information:
– All of project documents are in electronic form and are stored as PC files,
please refer to them for more technical information.
– For information of the used microcontroller, please refer to the Intel®
official site: www.intel.com.