CN105120114B - Program controlled telephone automatic test terminal - Google Patents

Program controlled telephone automatic test terminal Download PDF

Info

Publication number
CN105120114B
CN105120114B CN201510366001.2A CN201510366001A CN105120114B CN 105120114 B CN105120114 B CN 105120114B CN 201510366001 A CN201510366001 A CN 201510366001A CN 105120114 B CN105120114 B CN 105120114B
Authority
CN
China
Prior art keywords
microcontroller
dialing
circuit
test
dtmf
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201510366001.2A
Other languages
Chinese (zh)
Other versions
CN105120114A (en
Inventor
黄国雄
兰秀凯
刘辉峰
关晓旭
吴昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
PLA 63698 ARMY
Original Assignee
PLA 63698 ARMY
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by PLA 63698 ARMY filed Critical PLA 63698 ARMY
Priority to CN201510366001.2A priority Critical patent/CN105120114B/en
Publication of CN105120114A publication Critical patent/CN105120114A/en
Application granted granted Critical
Publication of CN105120114B publication Critical patent/CN105120114B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of program controlled telephone automatic test terminal, the microcontroller for testing terminal connects remote computer by the network interface of network communication circuit, program controlled system is connected by telephone interface circuit, remote computer is sent to microcontroller by network interface and ordered, microcontroller decodes related test parameters from command packet, the parameter received is sent into dial-up circuit generation dialing signal to be dialled, wait remote phone response and answer signal is carried out calling tone detection to complete test by calling tone decoding circuit, and test result is reported remote computer by microcontroller by network interface.The problem of present invention solves the testing time length existed during manual measurement programme-controlled telephone system working condition, test is inconvenient, testing time covering is not complete.

Description

Program controlled telephone automatic test terminal
Technical field
The present invention relates to a kind of program controlled telephone ATE, more particularly, to one kind to flat based on integrated information transmission The distributed programme-controlled telephone system of platform is tested, the device for finding programme-controlled telephone system failure, is related to automatic measurement With control field.
Background technology
In surveying vessel multi-service Transport Platform system, program controlled system exchanges design using distributed, is conduct A kind of applied business is carried on multi-service Transport Platform.Using the program controlled system of Distributed Design there is system to set Meter is flexible, and device configuration modifications are free, the advantages of system wiring is simple, but there is also the work of each node is relatively independent, is distributed section The deficiencies such as point monitoring difficulty, can not find in time when node device operation irregularity, the reliability of influence system work, using people Though work fixed time test is it can be found that equipment fault, artificial fixed time test is wasted time and energy, and it is incomplete to there is testing time covering It is not enough.
The content of the invention
The technical problems to be solved by the invention be provide one kind for above-mentioned prior art can be to programme-controlled telephone system Remote testing is carried out, the program controlled telephone automatic test terminal of remote transmission can be carried out to test result.
The present invention the used technical scheme that solves the above problems is:A kind of program controlled telephone automatic test terminal, the survey Examination terminal includes microcontroller and the telephone interface circuit being connected on microcontroller, dial-up circuit, calling tone decoding electricity Road and network communication circuit, the microcontroller of the test terminal connect remote computation by the network interface of network communication circuit Machine, program controlled system is connected by telephone interface circuit, and remote computer is sent to microcontroller by network interface and ordered, If test command, then microcontroller decodes related test parameters from command packet, and microcontroller will be received Parameter is sent to dial-up circuit generation dialing signal and dialled, and waits remote phone response and passes through calling tone to answer signal Decoding circuit carries out calling tone detection to complete test, and test result is reported long-range meter by microcontroller by network interface Calculation machine;If parameter shows or changed order, then microcontroller is shown or parameter modification number by network interface return parameters According to remote computer.
Line status can all be detected by often completing a dial-up operation microcontroller, interrupted and surveyed if line status is abnormal Examination, microcontroller is by telephone interface circuit analog phone on-hook if line status is normal, and test is completed.
The dial-up circuit includes dtmf dialing chip, and the output port of the microcontroller is respectively connected to dtmf dialing Piece choosing, serial clock and the serial data port of chip, open the piece choosing of dtmf dialing chip, delay a period of time etc. during dialing Chip crystal oscillator working stability is treated, the dtmf signal of output correspondence number is simultaneously delayed a period of time, stops dtmf signal and export and prolong When for a period of time, repeat more than operation until completing the dialing of institute number, close the piece choosing of dtmf dialing chip.
Compared with prior art, the advantage of the invention is that:
The present invention is a kind of program controlled telephone automatic test terminal, and it is capable of the work shape of remote testing programme-controlled telephone system State, possesses remote data transmission function, solve exist during manual measurement programme-controlled telephone system working condition testing time length, The problem of test is inconvenient, testing time covering is not complete.
Brief description of the drawings
Fig. 1 is a kind of theory diagram of program controlled telephone automatic test terminal of the invention.
Fig. 2 is a kind of microcontroller circuit figure of program controlled telephone automatic test terminal of the invention.
Fig. 3 is a kind of telephone interface circuit figure of program controlled telephone automatic test terminal of the invention.
Fig. 4 is a kind of dial-up circuit figure of program controlled telephone automatic test terminal of the invention.
Fig. 5 is a kind of calling tone decoding circuit figure of program controlled telephone automatic test terminal of the invention.
Fig. 6 is a kind of network communication interface circuit diagram of program controlled telephone automatic test terminal of the invention.
Fig. 7 is a kind of power circuit diagram of program controlled telephone automatic test terminal of the invention.
Fig. 8 is a kind of program flow diagram of program controlled telephone automatic test terminal of the invention.
Embodiment
The present invention is described in further detail below in conjunction with accompanying drawing embodiment.
As shown in figure 1, a kind of program controlled telephone automatic test terminal in the present embodiment, the test terminal is connect by network Mouth connection remote computer, program controlled system is connected by telephony interface.Remote computer is whole to test by network interface End sends order, if test command, then microcontroller decodes related test parameters from command packet, then micro-control The parameter received is sent to dial-up circuit, dialing electricity by device processed by telephone interface circuit analog phone off-hook, microcontroller Dtmf dialing chip generation dtmf signal in road is dialled, and microcontroller waits remote phone response and sends out answer signal Give calling tone decoding circuit and carry out calling tone detection, line status can all be detected by often completing a dial-up operation microcontroller, The interrupt test if line status is abnormal, microcontroller passes through telephone interface circuit analog phone if line status is normal On-hook, test is completed, and test result is reported remote computer by microcontroller by network interface.If parameter show or Modification order, then microcontroller is shown by network interface return parameters or parameter changes WEB page data to remote computer.
Referring to Fig. 2 ~ 7, the present invention relates to a kind of program controlled telephone automatic test terminal, the test terminal includes microcontroller Device and the telephone interface circuit being connected on microcontroller, dial-up circuit, calling tone decoding circuit and network communication circuit;
Referring to Fig. 2 ~ 3, the model ATMEGA328 of the microcontroller, the telephone interface circuit includes dislodging machine control Port processed, the PB1 mouths of the microcontroller access the dislodging machine control port of telephone interface circuit;
Referring to Fig. 4, the dial-up circuit includes dtmf dialing chip, the model of the dtmf dialing chip HT9200A, PB2, PC0 and PC1 mouth of the microcontroller is respectively connected to the piece choosing of dtmf dialing chip, serial clock, serial FPDP, while the delivery outlet of dtmf dialing chip is connected with the input port of telephone interface circuit;
Referring to Fig. 5, the calling tone decoding circuit includes calling tone decoding chip, the type of the calling tone decoding chip Number it is HT9020B, the output port of the calling tone decoding chip accesses the PD3 mouths of microcontroller, and input port connects with phone The delivery outlet of mouth circuit is connected;
Referring to Fig. 6, the network communication circuit is using ENC28J60 network interface chips and with network isolation transformer Network socket, the model HR911115A of the network socket, 6 ~ 9 pin of the ENC28J60 chips are respectively connected to microcontroller PB4, PB3, PB5 and PC2 mouth of device, 12,13,16 pin of the ENC28J60 chips and 17 pin respectively with network socket 6,3, 2nd, 1 pin is connected;
Referring to Fig. 7, the test terminal also includes power circuit, and the power circuit is constituted using voltage stabilizing chip, institute State voltage stabilizing chip model AMS1117-3.3.
Referring to Fig. 8, a kind of microcontroller built-in type software of program controlled telephone automatic test terminal of the invention using C language and Protothreads multithreadings are designed, and program flow diagram is as shown in Figure 8.Software watchdog is provided with program prevents micro-control Device operation irregularity processed.Program carries out various initialization first, including initialization microcontroller dtmf dialing chip controls port, Dislodging machine control port, line status detection port, the eeprom chip control port for phonetic storage, are initialized for producing The timer of raw thread beat, reads the configuration informations such as network ip address, MAC Address, the node number for testing terminal disposition, initially Change network interface chip and start network service, start software watchdog, open global interrupt and enable, initialize network processes line Journey.Complete after above initial work, program enters Infinite Cyclic, carries out answering for software watchdog first in Infinite Cyclic Position, if program operation exception, house dog can not reset in time, then microcontroller carries out hardware reset.Then at operational network Manage thread.Network processes thread is waited until network interface card receives the data that long-range PC is sent, with reading network card data and Match IP Location, then carries out the processing of the packets such as ARP, ICMP, and UDP request lives are judged if the packet received is containing UDP requests Whether order is correct, and the data such as telephone number are extracted from UDP message bag if order is correct, then off-hook and detects circuit shape State, sends no dial tone data to long-range PC if no dial tone, if dialing tone then respectively loading dialing sub-line journey and Wireline inspection sub-line journey, according to the testing result of wireline inspection sub-line journey, sends corresponding data to long-range PC.Dial sub-line journey The piece choosing of dtmf dialing chip is opened, delay a period of time waits chip crystal oscillator working stability, and correspondence number is exported during dialing Dtmf signal is simultaneously delayed a period of time, stops dtmf signal and exports and be delayed a period of time, repeats operation above until completing institute Number dials, and closes the piece choosing of dtmf dialing chip.Wireline inspection sub-line journey waits rising edge of a pulse or time-out, if super When then judge to detect any state, if then line status to there is response, is otherwise detection ringing condition for line status Without ring.Start pulse width measure if not overtime, wait rising edge of a pulse or time-out, line status is dialled to have if time-out Number sound.Continue to judge if not overtime, reach 6 line status to be unresponsive if ringing pulse and number of pulses.Such as Fruit is busy tone pulse and number of pulses reaches that 4 line status are line be busy.If the packet received is asked for WEB, Packet is parsed, software only handles GET request, according to the result of parsing send parameter show, parameter setting, input mistake By mistake, data preserve the different WEB page such as successfully.
In addition to the implementation, present invention additionally comprises have other embodiment, all use equivalent transformation or equivalent replacements The technical scheme that mode is formed, all should fall within the scope of the hereto appended claims.

Claims (3)

1. a kind of program controlled telephone automatic test terminal, it is characterised in that:The test terminal includes microcontroller and connection In the telephone interface circuit on microcontroller, dial-up circuit, calling tone decoding circuit and network communication circuit, the test terminal Microcontroller remote computer is connected by the network interface of network communication circuit, program control friendship is connected by telephone interface circuit System is changed, remote computer is sent to microcontroller by network interface and ordered, if test command, then microcontroller is obeyed the order Make and related test parameters are decoded in packet, the parameter received is sent to dial-up circuit generation dialing signal by microcontroller Dialled, while waiting remote phone response and carrying out calling tone detection by calling tone decoding circuit with complete to answer signal Into test, and test result is reported remote computer by microcontroller by network interface;If parameter shows or changed Order, then microcontroller is shown by network interface return parameters or parameter changes data to remote computer;
The microcontroller includes network process module, dialing submodule and wireline inspection submodule, and network process module is waited After network interface card receives the data that long-range PC is sent, read network card data and match IP address, then carry out packet Processing, if the packet received containing UDP request if judge whether UDP request commands correct, if order correctly if from Corresponding data is extracted in packet, then off-hook and line status is detected, sent if no dial tone no dial tone data to Long-range PC, if dialing tone then loads dialing submodule and wireline inspection submodule respectively, according to wireline inspection submodule Testing result, sends corresponding data to long-range PC;Wireline inspection submodule opens the piece choosing of DTMF dialing chips, delay one The section time waits chip crystal oscillator working stability, and the DTMF signals of correspondence number are exported during dialing and are delayed a period of time, are stopped DTMF signal outputs are simultaneously delayed a period of time, repeat operation above until completing institute's number dialing, close DTMF and dial The piece choosing of chip;Wireline inspection submodule waits rising edge of a pulse or time-out, any state of detection is judged if time-out, such as Fruit is that then line status, to there is response, is otherwise no ring for line status to detection ringing condition;Start arteries and veins if not overtime Width measurement, waits rising edge of a pulse or time-out, and line status is to have dialing tone if time-out;Continue to sentence if not overtime It is disconnected, reach 6 line status to be unresponsive if ringing pulse and number of pulses;If busy tone pulse and number of pulses It is line be busy to reach 4 line status;If the packet received is asked for WEB, packet is parsed, at GET requests are managed, the different WEB pages are sent according to the result of parsing.
2. a kind of program controlled telephone automatic test terminal according to claim 1, it is characterised in that:Often complete a dialing behaviour Line status can all be detected by making microcontroller, the interrupt test if line status is abnormal, the micro-control if line status is normal Device processed is completed by telephone interface circuit analog phone on-hook, test.
3. a kind of program controlled telephone automatic test terminal according to claim 1 or 2, it is characterised in that:The dial-up circuit Include dtmf dialing chip, the output port of the microcontroller is respectively connected to the piece choosing of dtmf dialing chip, serial clock And serial data port, the piece choosing of dtmf dialing chip is opened during dialing, delay a period of time waits chip crystal oscillator working stability, The dtmf signal for exporting correspondence number is simultaneously delayed a period of time, stops dtmf signal and exports and be delayed a period of time, be more than repetition Operation closes the piece choosing of dtmf dialing chip until completing institute's number dialing.
CN201510366001.2A 2015-06-29 2015-06-29 Program controlled telephone automatic test terminal Expired - Fee Related CN105120114B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510366001.2A CN105120114B (en) 2015-06-29 2015-06-29 Program controlled telephone automatic test terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510366001.2A CN105120114B (en) 2015-06-29 2015-06-29 Program controlled telephone automatic test terminal

Publications (2)

Publication Number Publication Date
CN105120114A CN105120114A (en) 2015-12-02
CN105120114B true CN105120114B (en) 2017-10-03

Family

ID=54667993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510366001.2A Expired - Fee Related CN105120114B (en) 2015-06-29 2015-06-29 Program controlled telephone automatic test terminal

Country Status (1)

Country Link
CN (1) CN105120114B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5471517A (en) * 1993-09-09 1995-11-28 Fujitsu Limited Subscriber system testing method
CN1132993A (en) * 1995-10-16 1996-10-09 朱建平 Fault detecting and diagnosing system for user circuit board of programmed digital telephone switchboard
CN2322329Y (en) * 1997-10-31 1999-06-02 吴伟利 Imitating subscriber telephone calling intelligent tester

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5471517A (en) * 1993-09-09 1995-11-28 Fujitsu Limited Subscriber system testing method
CN1132993A (en) * 1995-10-16 1996-10-09 朱建平 Fault detecting and diagnosing system for user circuit board of programmed digital telephone switchboard
CN2322329Y (en) * 1997-10-31 1999-06-02 吴伟利 Imitating subscriber telephone calling intelligent tester

Also Published As

Publication number Publication date
CN105120114A (en) 2015-12-02

Similar Documents

Publication Publication Date Title
US4937851A (en) Loop status verification system
CN102333163B (en) External auxiliary testing apparatus, and testing system thereof and method thereof
CN103929485B (en) The safe long-distance monitorng device based on embedded Web
CN101072047B (en) DSLAN port fast detecting device
CN109495551A (en) A kind of intelligent monitor system and its collecting method
CN109634878A (en) Monitoring method, monitoring device, server, terminal and readable storage medium storing program for executing
US4864598A (en) Loop status verification system
CN109428783A (en) Network apparatus test method and device
CN109002398A (en) A kind of Auto-matching formula server software test terminal
CN105120114B (en) Program controlled telephone automatic test terminal
CN107945473A (en) Intelligent home control system and its method based on wireless radio frequency modules
CN208172582U (en) Tap water pipe network remote supervisory and control(ling) equipment
CN107255788A (en) A kind of power supply cut-offs the method for testing, system and smart jack of surge
CN203482284U (en) Electric power department voice channel-testing system capable of realizing automatic answering function
CN103647760B (en) The MMS communication platforms and its access method of a kind of intelligent transformer substation digital protection device
CN101170322B (en) User line and user circuit testing system and method
CN108845913A (en) A kind of diagnostic card of system and its I/O state for obtaining CPLD
CN207835500U (en) A kind of detecting system monitoring communication module based on cloud
CN203243420U (en) Regional power supply management controller based on PSTN
CN201118597Y (en) Electrical signal loop circuit and optical receiving/transmission module with this loop
CN204795245U (en) Program controlled telephone automatic test terminal
CN109309600A (en) A kind of detection device and its method for substation network communication failure
CN110031720A (en) A kind of automatic school line apparatus of modularization based on wireless communication
CN103546346B (en) A kind of synchronous polling automated testing method of logic-based link
CN201048421Y (en) DSLAM port fast testing apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171003

Termination date: 20180629

CF01 Termination of patent right due to non-payment of annual fee