Design of Digital Telephone System Oriented For Training: Bin Zhang Danhong Zhang Pan Yu Huajun Zhang
Design of Digital Telephone System Oriented For Training: Bin Zhang Danhong Zhang Pan Yu Huajun Zhang
Training
Bin Zhang DanHong Zhang Pan Yu Huajun Zhang
School of automation School of automation China Nuclear Control School of automation
Wuhan University of Technology Wuhan University of Technology System Engineering Co. Ltd Wuhan University of Technology
Wuhan, China Wuhan, China Wuhan, China Wuhan, China
[email protected] [email protected] panyu @ cncs.bj.cn [email protected]
with the advancement of China's power grid, the rapid 6WXGHQW 2YHUYRO 6LJQDOWRQH
expansion of the size of naval vessels and the vigorous SKRQH WDJH
SURWHFW
development of nuclear power, the demand for digital LRQ 'LJLWDO
8VHU H[FKDQJH
telephone systems with special functions is getting stronger. FLUFXLW
LQWHUIDFH 3&0FRGH QHW
market only have Basic dialing call function and can’t meet the
$GUHVV
EXV
needs of all users. For example, in power sector, factories and 1XPEHU
mines, telephone system with special functions is commonly UHFHSWLRQ
((3520 ([FKDQJH
used for personnel scheduling and student training but these 8VHUXQLW
FRQWURO
SURFHVVRU
functions can’t be achieved on a lot of ordinary SPC telephone SURFHVVRU &$1%86
exchange. If there is a set of digital telephone systems for
training which can simulate the actual operating environment.
It will greatly improve the status quo in the enterprise as an 9RLFHEURDGFDVW
important platform for operator training, learning and &RDFK
SKRQH
(WKHUQHW
QXPEHUXSGDWH
assessment. In this paper, a digital telephone system for
+RVWFRPSXWHU
training is designed for the current situation and the system can &RDFKFRQWUROVWDWLRQ
This research was supported by the Natural Science Foundation of Hubei Province (#2016CFB502 and #2015CFB586) and the Fundamental Research Funds
for the Central Universities (#163111005).
.
1946
clock interrupt to schedule the relevant procedures to do. The users in turn. The program first determine whether the user is
commonality of the basic program is that it requires less real- on the hook moment, if the user just hang up, status of each
time requirements, can be interrupted by an emergency or state of the user is cleared; Otherwise, if the user is in the off-
critical task. The execution time of basic program which is hook state, then go to the off-hook processing procedures for
mostly composed of programs that are executed only when off-hook analysis. When the call number is identified as a
they need to be executed is not strict. The periodic program function number, the number receiving program automatically
periodically scans the subscriber line status and generates change the call number to the host number and wait for the
various events for the basic program to receive and process. connection with the host[8].
The basic program receives event reports from the periodic
level, processes them accordingly, and issues various control EHJLQ
commands.
The overall block diagram of the call processing program is \HV +DQJXS
shown in Figure 4. LQVWDQWO\"
QR
V\VWHPLQLW &OHDUWKH
XVHUVWDWH QR
2IIKRRN"
([HFXWHWKH &DOOHG QR
\HV
SHULRGLFSURJUDP 'LVFRQQHFW VWDWH"
([HFXWHWKH WKHXVHU 2IIKRRN
SURFHVVLQJ \HV
EDVLFSURJUDP
6HWULQJ
Fig.4. Call processing block diagram
FRPPDQG QR
5HDGWKHODVW 'DWDUHTXLUH QR
VXEVFULEHUOLQH 6HQGXVHUKDQJXS IUDPH" IUDPH"
VWDWXV% HYHQWZDLWIRUWKH \HV
EDVHSURJUDPWR \HV
SURJUHVV 6HQGWR
6HQGWR FRPPDQGBTXHXH
$ % GDWDBUHTBTXHXH
$OOXVHUV QR
VFDQQHG 5HWXUQ
6HQGXVHURIIKRRN 'DWDUHVSRQVH QR
HYHQWZDLWIRUWKHEDVH \HV IUDPH"
SURJUDPWRSURJUHVV
UHWXUQ \HV
1947
process, pointer to the first empty record, and relative statistic. The voice broadcast module is designed using the
The system periodically processes the data in each buffer Microsoft Speech SDK. The module receives the voice
queue. broadcast data frame from the SPC Telephone Exchange and
use TTS engine to voice broadcast it[11]. The flow chart of
The network port communication program which is voice broadcast module is shown in Figure 9.
designed based on the μIP protocol stack belongs to the
application layer procedure[9]. It runs as the client on the
switchboard. uIP is very effective in embedded systems for it
requires very small amounts of code and memory. It has been EHJLQ
3HUIRUPDYRLFH
ported to several platforms including ARM(Acorn RISC EURDGFDVW
Machine) platforms. As an interface, the entry function of &UHDWHWFS
network port communication program is defined as macro FRQQHFWLRQ
UIP_APPCALL() provided to the μIP protocol stack to call[10]. QR &ORVH
The network port communication program flow chart is shown FRQQHFWLRQ˛
in figure 8. 5HFHLYHYRLFH
EURDGFDVWGDWD \HV
EHJLQ
5HWXUQ
1948
Speed and volume adjustment is supported and history call [3] Yang Huawei, Wan Zhengquan. Application of CAN bus in ship
records can be queried easily. structure safety monitoring system, J. Journal of Electronic
Measurement and Instrumentation, vol. 5, pp. 553-559., May 2014.
[4] Zhi Jinning, Xiang Changle, Ma Yue. Design and Implementation of
V. CONCLUSION CAN Communication System for Distributed Electric Drive Vehicle, J.
Journal of North University of China(Natural Science Edition), vol. 36,
The digital telephone system designed in this paper is pp. 22-25, March 2015.
mainly oriented to training and scheduling. In this paper, the [5] Han Xiaoxia, Design of the Small Digital Program Controlled Exchange
demand for digital telephone system is analyzed, the basic Used in Electric Power Communication _____the whole design and the
functions of the system are determined, and the overall scheme realization of software program, D. BaoDing: HeBei University, pp. 25-
of the system is designed. Then, the hardware implementation 30. April 2005.
scheme of distributed digital telephone system based on CAN [6] Gao Xiue, Application of DTMF Special purpose Chip MT8880 in the
bus is described, and the working principle of each hardware Data Transmission of Communication Network, J. Modern Electronics
Technique, vol. 13, pp. 30-32, July 2004.
module is described. Finally, the system software is designed
[7] Li Yanxia, Liu Yurong. Research on Audio Signal Testing of Digital
in detail, and the algorithm flow chart of each software module HD Equipment Based on PCM Code, J. Computer and Modernization,
is presented, and the design idea is explained. After more than pp. 124-126, April 2015.
two years of operation, the system is stable and reliable. [8] Chen Wenyin, Sheng Zhanshi, Sheng Biqi. Design of number
identification and SMS sending device based on the STM32, J.
Information Technology, vol 39, pp. 152-154, October 2015.
REFERENCES [9] Qiao Liyan, Liang Yu, Zhao Haoran, Zhu Jianping. Design of Ethernet
interface based on W5300, J. Electronic Measurement Technology, vol.
7 , pp. 129-132. July 2012.
[1] Shi Bin, Design and Realization of the Small Digital Program [10] Tang Qiaoge, Gao Qiang, Liu Chao. Embedded Ethernet Positioning
Controlled Exchange, D. Nanjing Normal University, pp. 3-5, April System Based on STM32, J. Ordnance Industry Automation, vol 36, pp.
2003. 17-20, May 2017.
[2] Li Zhengwei, Study on Message Architecture of Distributed Real-Time [11] Wang Husheng, Li Jinhuan, Yuan Xianfeng, Zhang Shengchun. Design
Embedded System, D. ChongQing: Chongqing University, pp. 12-14. of an Embedded Speech Brodcast System Based on STM32, J. Journal
May 2009. of Beijing Union University(Natural Sciences), vol. 03, pp. 11-15.
September 2011.
1949