CN215379024U - Automatic testing system for voice function of optical transceiver - Google Patents

Automatic testing system for voice function of optical transceiver Download PDF

Info

Publication number
CN215379024U
CN215379024U CN202121166081.4U CN202121166081U CN215379024U CN 215379024 U CN215379024 U CN 215379024U CN 202121166081 U CN202121166081 U CN 202121166081U CN 215379024 U CN215379024 U CN 215379024U
Authority
CN
China
Prior art keywords
telephone
relay
circuit
voice
ringing
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.)
Active
Application number
CN202121166081.4U
Other languages
Chinese (zh)
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.)
CETC 34 Research Institute
Original Assignee
CETC 34 Research Institute
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 CETC 34 Research Institute filed Critical CETC 34 Research Institute
Priority to CN202121166081.4U priority Critical patent/CN215379024U/en
Application granted granted Critical
Publication of CN215379024U publication Critical patent/CN215379024U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The utility model discloses an automatic testing system for voice functions of an optical transceiver, which comprises a microprocessor CPU connected with an upper computer through an RS232 serial port, a first telephone key matrix control circuit, a second telephone key matrix control circuit, a programmable device FPGA chip, a first ringing current detection circuit, a second ringing current detection circuit and an iron anchor chip, wherein the first telephone key matrix control circuit, the second telephone key matrix control circuit, the programmable device FPGA chip, the first ringing current detection circuit, the second ringing current detection circuit and the iron anchor chip are connected with the microprocessor CPU. The system has low cost, convenient networking and simple test.

Description

Automatic testing system for voice function of optical transceiver
Technical Field
The utility model relates to an optical transmitter and receiver technology, in particular to an automatic testing system for voice function of an optical transmitter and receiver.
Background
At present, the two-wire voice function configured for the optical transceiver device is generally multi-path, even the optical transceiver device with the voice configuration reaching 30 paths, each path of voice generally has four modes, and a user can be configured into a magneto mode, a hot wire mode, a user mode and a relay mode according to the requirement. In the scientific research and production process, four modes of voice need to be tested one by one to ensure the normal function of the voice, and currently, a manual test method or a semi-automatic test method is mostly adopted for testing.
The traditional manual testing method has the following defects: firstly, the testing speed is low, each path of test needs to be manually switched to the next path after the test is finished, test tools need to be replaced in different modes of test, the time and the labor are consumed, and the time of one cycle of test is long; secondly, the operation is inconvenient, the test method is complex, the test tools used in different modes, the connection lines during the test and the test methods are different, and the tester can be trained for a long time; thirdly, the labor cost is high, and the test process needs two persons to be matched to complete the test; fourthly, manual testing is easy to cause misjudgment, artificial error factors exist, and accuracy is not high; and fifthly, the fault can not be positioned, and a great deal of time and energy are spent on troubleshooting and solving when the fault occurs every time.
Semi-automatic testing has the following disadvantages: the automatic test of four voice modes cannot be completely covered, more manual participation is needed, and the semi-automatic test has less support on fault positioning.
SUMMERY OF THE UTILITY MODEL
The utility model aims to provide an automatic testing system for voice function of an optical transceiver aiming at the defects of the prior art. The system has low cost, convenient networking and simple test.
The technical scheme for realizing the purpose of the utility model is as follows:
an automatic testing system for voice function of optical transceiver comprises a microprocessor CPU connected with an upper computer through an RS232 serial port, a first telephone key matrix control circuit, a second telephone key matrix control circuit, a programmable device FPGA chip, a first ringing current detection circuit, a second ringing current detection circuit and an iron anchor chip which are connected with the microprocessor CPU, wherein,
the FPGA chip is provided with a first telephone line which is connected with a first program-controlled switch, a first magneto-mode ring-off module and a first hot-wire mode telephone line short-circuit 330 omega resistor through a first relay K1, the first program-controlled switch is connected with a first telephone through a third relay K3, the FPGA chip is also provided with a second telephone line which is connected with a second program-controlled switch, a second magneto-mode ring-off module and a second hot-wire mode telephone line short-circuit 330 omega resistor through a second relay K2, and the second program-controlled switch is connected with a second telephone through a fourth relay K4;
the first telephone key matrix control circuit is connected with a GPIO interface of a microprocessor CPU and a first telephone key input interface, the CPU outputs key information of the first telephone to the control of the first telephone key matrix control circuit, so as to carry out key operation on a numeric key, dialing, off-hook and on-hook of the first telephone, an MIC head of the first telephone is connected with a loudspeaker of a first voice synthesis module, the loudspeaker of the first telephone is connected with a first point and a static contact 1 of a fifth relay K5, a static contact 2 of a third relay K3 is connected with a telephone port 7 of a first program-controlled telephone switchboard and a static contact of a first relay K1, the static contact of the first relay K1 is respectively connected with a telephone port 8 of the first program-controlled telephone switchboard, a static contact 2 of a third relay K3, a dynamic contact 2 of a fifth relay K5, a first magneto-mode ringing module and a first hot wire mode resistor, a passive 330 omega resistor short-circuit ringing-end telephone line simulates off-hook operation in a hot-line mode, a movable contact of a first relay K1 is connected with a telephone line of a telephone circuit switching circuit, and a movable contact of a fifth relay K5 is connected with a signal input end of a first ringing current detection circuit;
the second telephone key matrix control circuit is connected with GPIO interface of microprocessor CPU and second telephone key input interface, the CPU outputs key information of the second telephone to the control of the second telephone key matrix control circuit, so as to make key operation of digital key, dialing, off-hook and on-hook on the second telephone, MIC head of the second telephone is connected with horn of the second voice synthesis module, horn of the second telephone is connected with MIC head of the second voice recognition module, telephone line of the second telephone is simultaneously connected with movable contact of the fourth relay K4 and fixed contact 1 of the sixth relay K6, fixed contact 2 of the fourth relay K4 is connected with telephone port 7 of the second program-controlled telephone exchange and one fixed contact of the second relay K2, fixed contact of the second relay K2 is respectively connected with telephone port 8 of the second program-controlled telephone exchange, fixed contact 2 of the fourth relay K4, fixed contact 2 of the second program-controlled telephone exchange, The sixth relay K6 movable contact 2, the second magneto-pattern ringing module and the second hot-wire-pattern telephone line short circuit 330 omega resistor are connected, the second relay K2 movable contact is connected with the telephone line of the telephone circuit switching circuit, the movable contact of the sixth relay K6 is connected with the signal input end of the second ringing current detection circuit, the output signal of the second ringing current detection circuit is connected with the ADC channel of the CPU, and the upper computer is connected with the RS232 interfaces of the first voice synthesis module, the second voice synthesis module, the first voice recognition module and the second voice recognition module through RS232 interfaces;
the telephone channel switching circuit is connected with the first tested device and the second tested device by adopting a group of telephone lines, and the first tested device and the second tested device which are connected by the optical fibers are simultaneously connected with the upper computer.
The telephone circuit switching circuit is provided with a first circuit unit and a second circuit unit, the first circuit unit and the second circuit unit are both composed of 30 two-way relays, two movable contacts of the 30 relays of the first circuit unit are respectively connected with A, B lines of a first telephone line, the fixed contacts of different relays of the first circuit unit are respectively connected with A, B lines of a certain telephone circuit in the telephone lines connected with first tested equipment, two movable contacts of the 30 relays of the second circuit unit are respectively connected with A, B lines of a second telephone line, the fixed contacts of different relays of the second circuit unit are respectively connected with A, B lines of a certain telephone circuit in the telephone lines connected with second tested equipment, control pins of all relays of the first circuit unit and the second circuit unit are connected with an FPGA, when the FPGA controls one relay to be opened, the telephone lines are connected with the tested equipment connected with the relay, the switching between the telephone line and different telephone channels of the tested equipment is realized by controlling the opening and closing of different relays.
The first ringing current detection circuit and the second ringing current detection circuit are respectively provided with an alternating current voltage transformer ZHPT 107, an amplification chip AD8065 and a dual-channel amplifier TL072 which are sequentially connected, a ringing signal is connected with the input end of the alternating current voltage transformer chip ZHPT 107, the output end of the alternating current voltage transformer chip ZHPT 107 is connected with the positive electrode of the input end of the amplification chip AD8065, the output signal of AD8065 is connected with the ADC channel of the CPU, TL072 is a high-input impedance dual-channel amplifier, the positive electrode of the first amplifier input end of TL072 is connected with reference voltage, the output feedback is connected with the negative electrode of the input end and the negative electrode of the second amplifier, the positive electrode of the input end of the second amplifier is connected with the signal of the output end of the alternating current voltage transformer ZHPT 107 through a resistor, the output end of the second amplifier is connected with the negative electrode and the output end of the AD8065 input end after passing through a current limiting resistor, the output signals of the first ringing current detection circuit and the second ringing current detection circuit are connected with the ADC channel of the CPU, the first ringing current detection circuit and the second ringing current detection circuit convert ringing current signals into 800mV voltage signals through a voltage transformer ZHTPT107, amplify the signals to a 0V-3.3V voltage range required by an ADC of the CPU through operational amplifiers AD8065 and TL072, and connect to an ADC channel of the CPU for sampling.
The microprocessor CPU is STM32H743IIT6, and is connected with an output signal of an amplifier chip AD8065 of the ringing current detection circuit through an ADC channel to detect the ringing signal of the ringing end of the tested equipment; the GPIO interface is connected with a control signal pin of a telephone key matrix control circuit to control a telephone to generate off-hook, on-hook and dialing digital key signals; the EMMC is connected with the FPGA through an EMMC bus to realize communication with the FPGA; the I2C interface is connected with the anchor chip FM24CL64BG, the information such as mode configuration, test mode and the like set by a user is stored in the FM24CL64BG, and the function that the data set by the user is not lost when the system is powered down is realized; the CPU is connected with the upper computer through an RS232 interface to realize communication with the upper computer.
The FPGA chip of the programmable device is XC6SLX25-2FTG256I, is connected with a relay control pin of a speech path switching circuit by an IO port and controls the switching between a telephone line and each speech path of the tested equipment; the EMMC is connected with the CPU to realize communication with the CPU; the FPGA chip is connected with control signal pins of a first relay K1, a second relay K2, a third relay K3, a fourth relay K4, a fifth relay K5 and a sixth relay K6 to control the opening and closing of relay contacts.
The first magneto mode ringing module and the first magneto mode ringing module are both LRS15-48S75, and LRS15-48S75 generate ringing current signals required by the magneto modes.
The iron anchor chip is FM24CL64 BG.
The first voice synthesis module and the second voice synthesis module are both SYN6288, and sound insulation cotton is adopted to isolate external noise interference when the loudspeakers of the first voice synthesis module and the second voice synthesis module are connected with the receiver of the telephone.
The first voice recognition module and the second voice recognition module are both LD3320A, and sound insulation cotton is adopted to isolate external noise interference when MIC heads of the first voice recognition module and the second voice recognition module are connected with a phone horn.
The first SPC telephone exchange and two voice ports are connected with the relay K3 connected with the first telephone set and the first relay K1 shared by the voice switching circuit, the two voice ports of the second SPC telephone exchange are connected with the second relay K2 connected with the second telephone set and the fourth relay K4 shared by the voice switching circuit, and the voice number and ringing functions are provided for the tested equipment in the user and relay modes.
The first telephone line is selectively connected among the first program-controlled telephone exchange, the first telephone set, the first ringing current detection circuit, the first magneto-pattern ringing module LRS15-48275 and the first telephone line short-circuit resistor 330 omega, and is controlled by a first relay group K1, the first telephone set is selectively connected among the first program-controlled telephone exchange, the first telephone line and the first ringing current detection circuit, and is controlled by a third relay group K3, and the first ringing current detection circuit is selectively connected between the first telephone set and the first telephone line, and is controlled by a fifth relay group K5.
The second telephone line is selectively connected among the second SPC telephone exchange, the second telephone set, the second ringing current detection circuit, the second magneto-pattern ringing module LRS15-48275 and the second telephone line short-circuit resistor 330 omega, and is controlled by a second relay group K2, the second telephone set is selectively connected among the second SPC telephone exchange, the second telephone line and the second ringing current detection circuit, and is controlled by a fourth relay group K4, and the second ringing current detection circuit is selectively connected between the second telephone set and the second telephone line, and is controlled by a sixth relay group K6.
According to the technical scheme, the voice ringing function is achieved by simulating ringing signals in a magnet mode, a hot wire mode, a user mode and a relay mode, whether the ringing function is normal or not is detected through AD conversion, human voice is simulated through a voice synthesis technology, and voice transmitted by the tested equipment is recognized through a voice recognition technology, so that the voice function is detected.
Automatic testing using the above system includes a signaling detection process and a voice detection process, wherein,
1) the signaling detection process comprises the following steps: selecting a signaling detection mode according to the four voice modes, configuring the voice mode of the tested device by the upper computer through network management software of the tested device, and configuring a CPU test mode of the test system through an RS232 serial port, wherein the method specifically comprises the following steps:
1-1) when the first tested device and the second tested device are both in a magnet mode, the CPU configures an FPGA voice circuit mode as a magnet, the FPGA controls a first relay K1 to be connected to the output end of a ringing module LRS15-48S75, a second relay K2 is connected to a 2 nd circuit K6.2 of a sixth relay, a ringing detection circuit is connected with a second telephone line, a fifth relay K5 is suspended, the FPGA controls the ringing module LRS15-48S75 to send ringing signals of 75V and 25Hz to the first telephone line, after the ringing signals are transmitted by the tested devices, ringing of 75V and 25Hz appears on the second telephone line, the second telephone line is connected with the ringing detection circuit, a voltage transformer in the ringing detection circuit can convert the ringing signals into voltage signals of 800mV, after passing through amplifier chips AD8065 and TL072, the ringing signals are converted into voltage signals of 0-3.3V to be sent to an ADC channel of the CPU, and the detection result is reported to an upper computer through a serial port, the upper computer records the test result and issues a voice channel switching instruction to the CPU, the CPU sends the switching instruction to the FPGA, the FPGA controls a relay in the voice channel switching circuit to be switched to a telephone line of the next voice channel to start testing the signaling of the next voice channel, the detection flow of ringing by second equipment and ringing by first equipment to be tested is consistent with the description, the hardware configuration is that a second relay K2 is connected to the output end of a ringing module LRS15-48S75, a first relay K1 is connected to a 2 nd relay K5.2, the ringing detection circuit is connected with the telephone line 1, and a sixth relay K6 is suspended;
1-2) when the first tested device and the second tested device are both in a hot wire mode, the CPU configures an FPGA telephone circuit mode as a hot wire, the FPGA controls a first relay K1 to be connected to a telephone line short-circuit resistor with 330 ohms to simulate an off-hook state in the hot wire mode, a second relay K2 is connected to a 2 nd relay K6.2 to enable a ringing current detection circuit to be connected with a second telephone line, a fifth relay K5 is suspended, the ringing current signal is output to the second telephone line after the second tested device detects that the first tested device is off-hook, the ringing current detection and the telephone circuit switching are the same as a magnet, the test flow of the second tested device for ringing and the first tested device for ringing is consistent with the description, the hardware is configured to connect the second relay K2 to the telephone line short-circuit resistor, connect the first relay K1 to the 2 nd relay K5.2 to enable the ringing current detection circuit to be connected with the telephone line 1, the sixth relay K6 is suspended;
1-3) when the first tested device is a user and the second tested device is a relay mode, the CPU configures an FPGA voice channel mode to be 1 for the user of the first tested device and the relay of the second tested device, the FPGA controls the second SPC telephone switchboard to be connected to a second relay K2 and a fourth relay 1K 4.1, a sixth relay 1K 6.1 is conducted, a first relay K1 is communicated with a third relay 2K 3.2, the CPU controls the first telephone to be off-hook and dial through the first telephone key matrix control circuit, the second telephone generates ringing signals after being transmitted by the tested devices through the second SPC telephone switchboard, and the ringing detection and the voice channel switching are the same as the magnet mode;
1-4) when the first tested device is in a relay second tested device user mode, the CPU configures an FPGA voice channel mode to be that the first tested device is a relay second tested device and is a user, the FPGA controls a first program-controlled switch to be connected to a first relay K1 and a 1 st relay K3.1, a first relay K5.1 is conducted, a second relay K2 is communicated with a 2 nd relay K4.2, the CPU controls a second telephone to be off-hook and dial through a second telephone key matrix control circuit, the ringing signal can be generated on a first telephone line after the ringing signal and the voice channel switching are the same as a magnet mode through the first program-controlled telephone exchange after the tested device is transmitted;
2) the voice detection process comprises the following steps:
2-1) the magnet and the hot wire mode voice function detection method are the same, when the test system is configured in the hot wire or magnet mode, the CPU configures an FPGA voice channel mode corresponding to the hot wire or magnet mode, the FPGA controls a first relay K1 to be connected to a second relay 2K 2.2, a second relay K2 to be connected to a fourth relay 2K 4.2, a fifth relay K5 and a sixth relay K6 to be suspended, so that telephone wires at the transmitting end and the receiving end are both connected with the telephone, at the moment, an upper computer sends test data to a first voice synthesis module through an RS232 port, the first voice synthesis module synthesizes the test data into sound and outputs the sound through a loudspeaker, the loudspeaker of the first voice synthesis module is adjacent to the MIC head of the first telephone and is isolated from the outside through soundproof cotton to form a closed mute environment, voice signals are sent to a tested device through the first telephone wire to be transmitted, and form sound at the loudspeaker of the second telephone, a loudspeaker of the second telephone is adjacent to an MIC head of the second voice recognition module and is isolated from the outside by soundproof cotton to form a closed mute environment, the second voice recognition module identifies received sound information and transmits the sound information to an upper computer through an RS232 port, the upper computer software compares the sent sound test data with the received sound data to form a test conclusion, and after the test is finished, the FPGA controls a voice channel switching circuit to switch the voice to the next channel for continuous test;
2-2) when the first tested equipment is a user and the second tested equipment is a relay mode, the CPU configures an FPGA voice channel mode to be that the first tested equipment is a user and the second tested equipment is a relay, the FPGA controls the second program controlled switch to be connected to a second relay K2 and a fourth relay 1K 4.1, a sixth relay 1K 6.1 is conducted, a first relay K1 is communicated with a third relay 2K 3.2, the CPU controls the first telephone to hook up and dial through the first telephone key matrix control circuit and controls the second telephone to hook up, the subsequent sound generation and voice recognition processes are the same as the magnet mode, and after the test is finished, the FPGA controls the voice channel switching circuit to switch the voice to the next channel for continuous test;
2-3) when the first tested device is in a relay second tested device user mode, the CPU configures an FPGA voice channel mode, when the first tested device is in a relay second tested device user mode, the FPGA controls the first stored program control exchange to be connected to a first relay K1 and a 1 st relay K3.1, a 1 st relay K5.1 is conducted, a second relay K2 is communicated with a 2 nd relay K4.2, the CPU controls a second telephone to be off-hook and dial through a second telephone key matrix control circuit and controls the first telephone to be off-hook, at the moment, the upper computer sends test data to the second voice synthesis module through an RS232 port, the second voice synthesis module synthesizes the test data into sound and outputs the sound through a loudspeaker, the loudspeaker of the second voice synthesis module is adjacent to an MIC head of the second telephone and is isolated from the outside through soundproof cotton to form a closed mute environment, and the voice signal is sent to the tested device through a second telephone line for transmission, and sound is formed at the loudspeaker of the first telephone, the loudspeaker of the first telephone is adjacent to the MIC head of the first voice recognition module and is isolated from the outside by soundproof cotton, a closed mute environment is formed, the first voice recognition module recognizes the received sound information and transmits the recognition result to the upper computer through an RS232 port, the upper computer software compares the sent sound test data with the received sound data to form a test conclusion, and after the test is completed, the FPGA controls the voice channel switching circuit to switch the voice to the next channel for continuous test.
The technical scheme can be applied to research, production and test technical research and development occasions of voice communication equipment, a telephone line between equipment to be tested and an automatic test system is connected on site, the voice function of the equipment can be automatically tested by clicking 'start test' on a network management software interface of an upper computer, and a test result is displayed on the network management interface.
The system has low cost, convenient networking and simple test, has high automation degree of voice test, is convenient and quick, can reduce the cost of a test link, and improves the production efficiency.
Drawings
FIG. 1 is a schematic diagram of a system configuration according to an embodiment;
FIG. 2 is a schematic diagram of a voice signaling test method in an embodiment;
FIG. 3 is a schematic diagram of a voice function testing method in an embodiment;
FIG. 4 is a schematic block diagram of voice switching hardware in an embodiment;
fig. 5 is a block diagram of a ring current detection circuit in an embodiment.
Detailed Description
The utility model will be further elucidated with reference to the drawings and examples, without however being limited thereto.
Example (b):
an automatic testing system for voice function of optical transceiver is disclosed, as shown in fig. 1, and comprises a microprocessor CPU connected with an upper computer via an RS232 serial port, and a first telephone key matrix control circuit, a second telephone key matrix control circuit, a programmable device FPGA chip, a first ringing current detection circuit, a second ringing current detection circuit and an iron anchor chip connected with the microprocessor CPU, wherein,
the FPGA chip is provided with a first telephone line which is connected with a first program-controlled switch, a first magneto-mode ring-off module and a first hot-wire mode telephone line short-circuit 330 omega resistor through a first relay K1, the first program-controlled switch is connected with a first telephone through a third relay K3, the FPGA chip is also provided with a second telephone line which is connected with a second program-controlled switch, a second magneto-mode ring-off module and a second hot-wire mode telephone line short-circuit 330 omega resistor through a second relay K2, and the second program-controlled switch is connected with a second telephone through a fourth relay K4;
the first telephone key matrix control circuit is connected with a GPIO interface of a microprocessor CPU and a first telephone key input interface, the CPU outputs key information of the first telephone to the control of the first telephone key matrix control circuit, so as to carry out key operation on a numeric key, dialing, off-hook and on-hook of the first telephone, an MIC head of the first telephone is connected with a loudspeaker of a first voice synthesis module, the loudspeaker of the first telephone is connected with a first point and a static contact 1 of a fifth relay K5, a static contact 2 of a third relay K3 is connected with a telephone port 7 of a first program-controlled telephone switchboard and a static contact of a first relay K1, the static contact of the first relay K1 is respectively connected with a telephone port 8 of the first program-controlled telephone switchboard, a static contact 2 of a third relay K3, a dynamic contact 2 of a fifth relay K5, a first magneto-mode ringing module and a first hot wire mode resistor, a passive 330 omega resistor short-circuit ringing-end telephone line simulates off-hook operation in a hot-line mode, a movable contact of a first relay K1 is connected with a telephone line of a telephone circuit switching circuit, and a movable contact of a fifth relay K5 is connected with a signal input end of a first ringing current detection circuit;
the second telephone key matrix control circuit is connected with GPIO interface of microprocessor CPU and second telephone key input interface, the CPU outputs key information of the second telephone to the control of the second telephone key matrix control circuit, so as to make key operation of digital key, dialing, off-hook and on-hook on the second telephone, MIC head of the second telephone is connected with horn of the second voice synthesis module, horn of the second telephone is connected with MIC head of the second voice recognition module, telephone line of the second telephone is simultaneously connected with movable contact of the fourth relay K4 and fixed contact 1 of the sixth relay K6, fixed contact 2 of the fourth relay K4 is connected with telephone port 7 of the second program-controlled telephone exchange and one fixed contact of the second relay K2, fixed contact of the second relay K2 is respectively connected with telephone port 8 of the second program-controlled telephone exchange, fixed contact 2 of the fourth relay K4, fixed contact 2 of the second program-controlled telephone exchange, The sixth relay K6 movable contact 2, the second magneto-pattern ringing module and the second hot-wire-pattern telephone line short circuit 330 omega resistor are connected, the second relay K2 movable contact is connected with the telephone line of the telephone circuit switching circuit, the movable contact of the sixth relay K6 is connected with the signal input end of the second ringing current detection circuit, the output signal of the second ringing current detection circuit is connected with the ADC channel of the CPU, and the upper computer is connected with the RS232 interfaces of the first voice synthesis module, the second voice synthesis module, the first voice recognition module and the second voice recognition module through RS232 interfaces;
the telephone channel switching circuit is connected with the first tested device and the second tested device by adopting a group of telephone lines, and the first tested device and the second tested device which are connected by the optical fibers are simultaneously connected with the upper computer.
The telephone circuit switching circuit is provided with a first circuit unit and a second circuit unit, the first circuit unit and the second circuit unit are both composed of 30 two-way relays, two movable contacts of the 30 relays of the first circuit unit are respectively connected with A, B lines of a first telephone line, the fixed contacts of different relays of the first circuit unit are respectively connected with A, B lines of a certain telephone circuit in the telephone lines connected with first tested equipment, two movable contacts of the 30 relays of the second circuit unit are respectively connected with A, B lines of a second telephone line, the fixed contacts of different relays of the second circuit unit are respectively connected with A, B lines of a certain telephone circuit in the telephone lines connected with second tested equipment, control pins of all relays of the first circuit unit and the second circuit unit are connected with an FPGA, when the FPGA controls one relay to be opened, the telephone lines are connected with the tested equipment connected with the relay, the switching between the telephone line and different telephone channels of the tested equipment is realized by controlling the opening and closing of different relays.
As shown in fig. 5, the first and second ringing detection circuits are respectively provided with an ac voltage transformer ZHTPT107, an amplification chip AD8065, and a dual-channel amplifier TL072, the ringing signal is connected to the input terminal of the ac voltage transformer chip ZHTPT107, the output terminal of the ac voltage transformer chip ZHTPT107 is connected to the positive terminal of the input terminal of the amplification chip AD8065, the output signal of AD8065 is connected to the ADC channel of the CPU, TL072 is a high input impedance dual-channel amplifier, the positive terminal of the first amplifier input terminal of TL072 is connected to the reference voltage, the output feedback is connected to the negative terminal of the input terminal of the second amplifier, the positive terminal of the second amplifier input terminal is connected to the signal of the ac voltage transformer ZHTPT107 through a resistor, the output terminal of the second amplifier is connected to the negative terminal and the output terminal of the AD8065 through a current limiting resistor, the output signals of the first and second ringing detection circuits are connected to the ADC channel of the CPU, the first ringing current detection circuit and the second ringing current detection circuit convert ringing current signals into 800mV voltage signals through a voltage transformer ZHTPT107, amplify the signals to a 0V-3.3V voltage range required by an ADC of the CPU through operational amplifiers AD8065 and TL072, and connect to an ADC channel of the CPU for sampling.
The microprocessor CPU is STM32H743IIT6, and is connected with an output signal of an amplifier chip AD8065 of the ringing current detection circuit through an ADC channel to detect the ringing signal of the ringing end of the tested equipment; the GPIO interface is connected with a control signal pin of a telephone key matrix control circuit to control a telephone to generate off-hook, on-hook and dialing digital key signals; the EMMC is connected with the FPGA through an EMMC bus to realize communication with the FPGA; the I2C interface is connected with the anchor chip FM24CL64BG, the information such as mode configuration, test mode and the like set by a user is stored in the FM24CL64BG, and the function that the data set by the user is not lost when the system is powered down is realized; the CPU is connected with the upper computer through an RS232 interface to realize communication with the upper computer.
The FPGA chip of the programmable device is XC6SLX25-2FTG256I, is connected with a relay control pin of a speech path switching circuit by an IO port and controls the switching between a telephone line and each speech path of the tested equipment; the EMMC is connected with the CPU to realize communication with the CPU; the FPGA chip is connected with control signal pins of a first relay K1, a second relay K2, a third relay K3, a fourth relay K4, a fifth relay K5 and a sixth relay K6 to control the opening and closing of relay contacts.
The first magneto mode ringing module and the first magneto mode ringing module are both LRS15-48S75, and LRS15-48S75 generate ringing current signals required by the magneto modes.
The iron anchor chip is FM24CL64 BG.
The first voice synthesis module and the second voice synthesis module are both SYN6288, and sound insulation cotton is adopted to isolate external noise interference when the loudspeakers of the first voice synthesis module and the second voice synthesis module are connected with the receiver of the telephone.
The first voice recognition module and the second voice recognition module are both LD3320A, and sound insulation cotton is adopted to isolate external noise interference when MIC heads of the first voice recognition module and the second voice recognition module are connected with a phone horn.
The first SPC telephone exchange and two voice ports are connected with the relay K3 connected with the first telephone set and the first relay K1 shared by the voice switching circuit, the two voice ports of the second SPC telephone exchange are connected with the second relay K2 connected with the second telephone set and the fourth relay K4 shared by the voice switching circuit, and the voice number and ringing functions are provided for the tested equipment in the user and relay modes.
The first telephone line is selectively connected among the first program-controlled telephone exchange, the first telephone set, the first ringing current detection circuit, the first magneto-pattern ringing module LRS15-48275 and the first telephone line short-circuit resistor 330 omega, and is controlled by a first relay group K1, the first telephone set is selectively connected among the first program-controlled telephone exchange, the first telephone line and the first ringing current detection circuit, and is controlled by a third relay group K3, and the first ringing current detection circuit is selectively connected between the first telephone set and the first telephone line, and is controlled by a fifth relay group K5.
The second telephone line is selectively connected among the second SPC telephone exchange, the second telephone set, the second ringing current detection circuit, the second magneto-pattern ringing module LRS15-48275 and the second telephone line short-circuit resistor 330 omega, and is controlled by a second relay group K2, the second telephone set is selectively connected among the second SPC telephone exchange, the second telephone line and the second ringing current detection circuit, and is controlled by a fourth relay group K4, and the second ringing current detection circuit is selectively connected between the second telephone set and the second telephone line, and is controlled by a sixth relay group K6.
The voice ringing function is realized by simulating ringing signals in a magnet mode, a hot wire mode, a user mode and a relay mode, whether the ringing function is normal or not is detected by utilizing AD conversion, human voice is simulated by utilizing a voice synthesis technology, and the voice transmitted by the equipment to be tested is recognized by utilizing a voice recognition technology, so that the voice function is detected.
The automatic test by adopting the system comprises a signaling detection process and a voice detection process, wherein,
1) the signaling detection process comprises the following steps: selecting a signaling detection mode according to the four voice modes, configuring the voice mode of the device to be tested by the upper computer through network management software of the device to be tested, and configuring a CPU test mode of the test system through an RS232 serial port, as shown in fig. 2, specifically:
1-1) when the first tested device and the second tested device are both in a magnet mode, the CPU configures an FPGA voice circuit mode as a magnet, the FPGA controls a first relay K1 to be connected to the output end of a ringing module LRS15-48S75, a second relay K2 is connected to a 2 nd circuit K6.2 of a sixth relay, a ringing detection circuit is connected with a second telephone line, a fifth relay K5 is suspended, the FPGA controls the ringing module LRS15-48S75 to send ringing signals of 75V and 25Hz to the first telephone line, after the ringing signals are transmitted by the tested devices, ringing of 75V and 25Hz appears on the second telephone line, the second telephone line is connected with the ringing detection circuit, a voltage transformer in the ringing detection circuit can convert the ringing signals into voltage signals of 800mV, after passing through amplifier chips AD8065 and TL072, the ringing signals are converted into voltage signals of 0-3.3V to be sent to an ADC channel of the CPU, and the detection result is reported to an upper computer through a serial port, the upper computer records the test result and issues a voice channel switching instruction to the CPU, the CPU sends the switching instruction to the FPGA, the FPGA controls a relay in the voice channel switching circuit to be switched to a telephone line of the next voice channel to start testing the signaling of the next voice channel, the detection flow of ringing by second equipment and ringing by first equipment to be tested is consistent with the description, the hardware configuration is that a second relay K2 is connected to the output end of a ringing module LRS15-48S75, a first relay K1 is connected to a 2 nd relay K5.2, the ringing detection circuit is connected with the telephone line 1, and a sixth relay K6 is suspended;
1-2) when the first tested device and the second tested device are both in a hot wire mode, the CPU configures an FPGA telephone circuit mode as a hot wire, the FPGA controls a first relay K1 to be connected to a telephone line short-circuit resistor with 330 ohms to simulate an off-hook state in the hot wire mode, a second relay K2 is connected to a 2 nd relay K6.2 to enable a ringing current detection circuit to be connected with a second telephone line, a fifth relay K5 is suspended, the ringing current signal is output to the second telephone line after the second tested device detects that the first tested device is off-hook, the ringing current detection and the telephone circuit switching are the same as a magnet, the test flow of the second tested device for ringing and the first tested device for ringing is consistent with the description, the hardware is configured to connect the second relay K2 to the telephone line short-circuit resistor, connect the first relay K1 to the 2 nd relay K5.2 to enable the ringing current detection circuit to be connected with the telephone line 1, the sixth relay K6 is suspended;
1-3) when the first tested device is a user and the second tested device is a relay mode, the CPU configures an FPGA voice channel mode to be 1 for the user of the first tested device and the relay of the second tested device, the FPGA controls the second SPC telephone switchboard to be connected to a second relay K2 and a fourth relay 1K 4.1, a sixth relay 1K 6.1 is conducted, a first relay K1 is communicated with a third relay 2K 3.2, the CPU controls the first telephone to be off-hook and dial through the first telephone key matrix control circuit, the second telephone generates ringing signals after being transmitted by the tested devices through the second SPC telephone switchboard, and the ringing detection and the voice channel switching are the same as the magnet mode;
1-4) when the first tested device is in a relay second tested device user mode, the CPU configures an FPGA voice channel mode to be that the first tested device is a relay second tested device and is a user, the FPGA controls a first program-controlled switch to be connected to a first relay K1 and a 1 st relay K3.1, a first relay K5.1 is conducted, a second relay K2 is communicated with a 2 nd relay K4.2, the CPU controls a second telephone to be off-hook and dial through a second telephone key matrix control circuit, the ringing signal can be generated on a first telephone line after the ringing signal and the voice channel switching are the same as a magnet mode through the first program-controlled telephone exchange after the tested device is transmitted;
2) as shown in fig. 3 and 4, the voice detection process includes:
2-1) the magnet and the hot wire mode voice function detection method are the same, when the test system is configured in the hot wire or magnet mode, the CPU configures an FPGA voice channel mode corresponding to the hot wire or magnet mode, the FPGA controls a first relay K1 to be connected to a second relay 2K 2.2, a second relay K2 to be connected to a fourth relay 2K 4.2, a fifth relay K5 and a sixth relay K6 to be suspended, so that telephone wires at the transmitting end and the receiving end are both connected with the telephone, at the moment, an upper computer sends test data to a first voice synthesis module through an RS232 port, the first voice synthesis module synthesizes the test data into sound and outputs the sound through a loudspeaker, the loudspeaker of the first voice synthesis module is adjacent to the MIC head of the first telephone and is isolated from the outside through soundproof cotton to form a closed mute environment, voice signals are sent to a tested device through the first telephone wire to be transmitted, and form sound at the loudspeaker of the second telephone, a loudspeaker of the second telephone is adjacent to an MIC head of the second voice recognition module and is isolated from the outside by soundproof cotton to form a closed mute environment, the second voice recognition module identifies received sound information and transmits the sound information to an upper computer through an RS232 port, the upper computer software compares the sent sound test data with the received sound data to form a test conclusion, and after the test is finished, the FPGA controls a voice channel switching circuit to switch the voice to the next channel for continuous test;
2-2) when the first tested equipment is a user and the second tested equipment is a relay mode, the CPU configures an FPGA voice channel mode to be that the first tested equipment is a user and the second tested equipment is a relay, the FPGA controls the second program controlled switch to be connected to a second relay K2 and a fourth relay 1K 4.1, a sixth relay 1K 6.1 is conducted, a first relay K1 is communicated with a third relay 2K 3.2, the CPU controls the first telephone to hook up and dial through the first telephone key matrix control circuit and controls the second telephone to hook up, the subsequent sound generation and voice recognition processes are the same as the magnet mode, and after the test is finished, the FPGA controls the voice channel switching circuit to switch the voice to the next channel for continuous test;
2-3) when the first tested device is in a relay second tested device user mode, the CPU configures an FPGA voice channel mode, when the first tested device is in a relay second tested device user mode, the FPGA controls the first stored program control exchange to be connected to a first relay K1 and a 1 st relay K3.1, a 1 st relay K5.1 is conducted, a second relay K2 is communicated with a 2 nd relay K4.2, the CPU controls a second telephone to be off-hook and dial through a second telephone key matrix control circuit and controls the first telephone to be off-hook, at the moment, the upper computer sends test data to the second voice synthesis module through an RS232 port, the second voice synthesis module synthesizes the test data into sound and outputs the sound through a loudspeaker, the loudspeaker of the second voice synthesis module is adjacent to an MIC head of the second telephone and is isolated from the outside through soundproof cotton to form a closed mute environment, and the voice signal is sent to the tested device through a second telephone line for transmission, and sound is formed at the loudspeaker of the first telephone, the loudspeaker of the first telephone is adjacent to the MIC head of the first voice recognition module and is isolated from the outside by soundproof cotton, a closed mute environment is formed, the first voice recognition module recognizes the received sound information and transmits the recognition result to the upper computer through an RS232 port, the upper computer software compares the sent sound test data with the received sound data to form a test conclusion, and after the test is completed, the FPGA controls the voice channel switching circuit to switch the voice to the next channel for continuous test.

Claims (9)

1. An automatic testing system for voice function of optical transceiver is characterized by comprising a microprocessor CPU connected with an upper computer through an RS232 serial port, a first telephone key matrix control circuit, a second telephone key matrix control circuit, a programmable device FPGA chip, a first ringing current detection circuit, a second ringing current detection circuit and an iron anchor chip which are connected with the microprocessor CPU, wherein,
the FPGA chip is provided with a first telephone line which is connected with a first program-controlled switch, a first magneto-mode ring-off module and a first hot-wire mode telephone line short-circuit 330 omega resistor through a first relay K1, the first program-controlled switch is connected with a first telephone through a third relay K3, the FPGA chip is also provided with a second telephone line which is connected with a second program-controlled switch, a second magneto-mode ring-off module and a second hot-wire mode telephone line short-circuit 330 omega resistor through a second relay K2, and the second program-controlled switch is connected with a second telephone through a fourth relay K4;
the first telephone key matrix control circuit is connected with a GPIO interface of a microprocessor CPU and a first telephone key input interface, an MIC head of the first telephone is connected with a loudspeaker of a first voice synthesis module, the loudspeaker of the first telephone is connected with a first point and a static contact 1 of a fifth relay K5, a static contact 2 of a third relay K3 is connected with a telephone port 7 of a first program-controlled telephone switch and a static contact of a first relay K1, the static contact of the first relay K1 is respectively connected with a telephone port 8 of the first program-controlled telephone switch and a static contact 2 of the third relay K3, the fifth relay K5 movable contact 2, the first magneto-pattern ringing module and the first hot-wire-mode telephone line short circuit 330 omega resistor are connected, the movable contact of the first relay K1 is connected with the telephone line of the telephone circuit switching circuit, and the movable contact of the fifth relay K5 is connected with the signal input end of the first ringing current detection circuit;
the second telephone key matrix control circuit is connected with GPIO interface of the microprocessor CPU and the second telephone key input interface, MIC head of the second telephone is connected with horn of the second voice synthesis module, horn of the second telephone is connected with MIC head of the second voice recognition module, telephone line of the second telephone is simultaneously connected with movable contact of the fourth relay K4 and fixed contact 1 of the sixth relay K6, fixed contact 2 of the fourth relay K4 is connected with telephone port 7 of the second program-controlled telephone exchange and one fixed contact of the second relay K2, fixed contact of the second relay K2 is respectively connected with telephone port 8 of the second program-controlled telephone exchange, fixed contact 2 of the fourth relay K4, movable contact 2 of the sixth relay K6, second magneto-mode ringing module, second hot wire mode telephone line omega 330 resistor, and second relay K2 movable contact is connected with telephone line of the telephone circuit switching circuit, a movable contact of a sixth relay K6 is connected with a signal input end of a second ringing current detection circuit, an output signal of the second ringing current detection circuit is connected with an ADC channel of the CPU, and an upper computer is connected with RS232 interfaces of the first voice synthesis module, the second voice synthesis module, the first voice recognition module and the second voice recognition module through RS232 interfaces;
the telephone channel switching circuit is connected with the first tested device and the second tested device by adopting a group of telephone lines, and the first tested device and the second tested device which are connected by the optical fibers are simultaneously connected with the upper computer.
2. The automatic testing system for voice function of optical transceiver as claimed in claim 1, wherein said voice channel switching circuit is provided with a first circuit unit and a second circuit unit, each of the first circuit unit and the second circuit unit is composed of 30 two-way relays, two moving contacts of the 30 relays of the first circuit unit are respectively connected with A, B line of the first telephone line, the fixed contacts of different relays of the first circuit unit are respectively connected with A, B line of a certain telephone channel connected with the first device under test, two moving contacts of 30 relays of the second circuit unit are respectively connected with A, B line of the second telephone line, the fixed contacts of different relays of the second circuit unit are respectively connected with A, B line of a certain telephone channel connected with the second device under test, control pins of all relays of the first circuit unit and the second circuit unit are connected with FPGA, when the FPGA controls the opening and closing of one relay, the telephone line is connected with one telephone channel of the tested equipment connected with the relay, and the switching between the telephone line and different telephone channels of the tested equipment is realized by controlling the opening and closing of different relays.
3. The automatic testing system for voice function of optical transceiver as claimed in claim 1, wherein the first and second ring current detecting circuits are respectively provided with an ac voltage transformer ZHTPT107, an amplifying chip AD8065 and a dual channel amplifier TL072 connected in sequence, the ring current signal is connected to the input terminal of the ac voltage transformer chip ZHTPT107, the output terminal of the ac voltage transformer chip ZHTPT107 is connected to the positive terminal of the input terminal of the amplifying chip AD8065, the output signal of the AD8065 is connected to the ADC channel of the CPU, the TL072 is a high input impedance dual channel amplifier, the positive terminal of the first amplifier input terminal of the TL072 is connected to the reference voltage, the output feedback input terminal is connected to the negative terminal of the second amplifier input terminal, the positive terminal of the second amplifier input terminal is connected to the signal of the ac voltage transformer ZHTPT107 through a resistor, the output terminal of the second amplifier is connected to the negative terminal and the output terminal of the AD8065 through a resistor, and output signals of the first ringing current detection circuit and the second ringing current detection circuit are connected with an ADC channel of the CPU.
4. The system of claim 1, wherein the microprocessor CPU is STM32H743IIT 6.
5. The automatic test system for voice function of optical transceiver of claim 1, wherein the FPGA chip is XC6SLX25-2FTG 256I.
6. The system of claim 1, wherein the first magneto pattern ringing module and the first magneto pattern ringing module are LRS15-48S 75.
7. The system of claim 1, wherein the anchor chip is FM24CL64 BG.
8. The system according to claim 1, wherein the first and second speech synthesis modules are SYN6288, and sound-proof cotton is used to isolate external noise interference when the speakers of the first and second speech synthesis modules are connected to the earpiece of the telephone.
9. The system of claim 1, wherein the first and second speech recognition modules are LD3320A, and sound-proof cotton is used to isolate external noise interference when the MIC heads of the first and second speech recognition modules are connected to the phone speaker.
CN202121166081.4U 2021-05-28 2021-05-28 Automatic testing system for voice function of optical transceiver Active CN215379024U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202121166081.4U CN215379024U (en) 2021-05-28 2021-05-28 Automatic testing system for voice function of optical transceiver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202121166081.4U CN215379024U (en) 2021-05-28 2021-05-28 Automatic testing system for voice function of optical transceiver

Publications (1)

Publication Number Publication Date
CN215379024U true CN215379024U (en) 2021-12-31

Family

ID=79632038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202121166081.4U Active CN215379024U (en) 2021-05-28 2021-05-28 Automatic testing system for voice function of optical transceiver

Country Status (1)

Country Link
CN (1) CN215379024U (en)

Similar Documents

Publication Publication Date Title
CN103260124B (en) The audio testing method of mobile terminal and test macro thereof
CN101577986B (en) Mobile communication terminal
CN101072047B (en) DSLAN port fast detecting device
CN100407839C (en) Mobile phone communication automatic testing method and mobile phone automatic calling unit
CN215379024U (en) Automatic testing system for voice function of optical transceiver
CN208443947U (en) A kind of multi-functional wire of novel intelligent based on code communication
CN113206919A (en) Automatic testing system and testing method for voice function of optical transceiver
CN101645982B (en) Method and service veneer for voice terminal simulation test
JPH07307792A (en) Test/fault request accepting communication equipment
CN113645358B (en) Voice interface detection device, system and method
CN201789549U (en) Telephone interface of industrial intercom
CN207650282U (en) Intelligent nuclear phase meter
CN202309838U (en) Telephone user interface module
CN204948145U (en) Fixed line phone and debugging apparatus thereof
CN208724146U (en) Conference microphone
CN102510415A (en) Magnet telephone converter
CN117812178A (en) Device and method for arbitrarily switching based on multi-channel call links
CN101287038B (en) Device and method capable of detecting reverse polarity of subscriber circuit
CN214101472U (en) Simulation user interface automatic test system with human-computer interaction function
CN202998111U (en) Multifunctional signal tester
CN207427375U (en) A kind of Ethernet passive optical network user Multi-path synchronous tester
CN208956112U (en) Intelligent telephone
CN104159169B (en) A kind of remote speech intercom system
CN102739876A (en) Function testing device for telephone exchange
CN215769871U (en) Entrance guard indoor unit and entrance guard system

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant