CN109275051B - ONU voice function detection method and system - Google Patents

ONU voice function detection method and system Download PDF

Info

Publication number
CN109275051B
CN109275051B CN201810935469.2A CN201810935469A CN109275051B CN 109275051 B CN109275051 B CN 109275051B CN 201810935469 A CN201810935469 A CN 201810935469A CN 109275051 B CN109275051 B CN 109275051B
Authority
CN
China
Prior art keywords
onu
dtmf
voice
numbers
voice port
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
CN201810935469.2A
Other languages
Chinese (zh)
Other versions
CN109275051A (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co Ltd
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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201810935469.2A priority Critical patent/CN109275051B/en
Publication of CN109275051A publication Critical patent/CN109275051A/en
Application granted granted Critical
Publication of CN109275051B publication Critical patent/CN109275051B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • H04Q2011/0083Testing; Monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephonic Communication Services (AREA)
  • Monitoring And Testing Of Exchanges (AREA)

Abstract

The invention discloses an ONU voice function detection method and system, relating to the technical field of ONU voice detection, wherein the method comprises the following steps: entering a production test mode, judging the state of a voice port of the ONU, and carrying out corresponding detection according to the CODEC/SLIC function of the ONU; opening a DSP channel and setting DSP parameters, setting the total number of DTMF numbers to be zero, setting the mark of the DTMF number ending to be 1, and detecting the DSP channel and an ONU voice port; and reporting the detection result. The invention detects the CODEC/SLIC function, the DSP and the voice port of the ONU step by step, thereby verifying the main functions of the ONU equipment, not configuring a voice and voice server to the ONU, not being limited by the requirement of the equipment and bringing convenience to the detection work.

Description

ONU voice function detection method and system
Technical Field
The invention relates to the technical field of ONU voice detection, in particular to an ONU voice function detection method and system.
Background
The ONU can perform a basic voice service in the PON system, and needs to satisfy the above four conditions at the same time. And (3) producing the ONU in a factory mass flow production manner, and checking whether the voice function of the produced ONU is normal or not, wherein the steps are usually required to be carried out. The voice function of the ONU needs OLT hardware equipment and a voice server, and special personnel is needed to configure the voices of the OLT and the ONU, so that a large amount of manpower and material resources are required to be invested for a factory; the existing method for detecting the ONU voice function has low detection efficiency and increases time cost. When each ONU in production requires the same inspection method, the total inspection cost is quite high.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide an ONU voice function detection method and an ONU voice function detection system, wherein the method detects the CODEC/SLIC function, the DSP and the voice port of the ONU step by step, so that the main functions of ONU equipment are verified, a voice server and a voice server do not need to be configured for the ONU, the method is not limited by equipment requirements, and convenience is brought to detection work. Of course, the invention can also be used for terminals with other uplink modes of CODE/SLIC, such as xDSL gateway and ethernet uplink gateway.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows:
an ONU voice function detection method, the method comprising the steps of:
entering a production test mode, judging the state of a voice port of the ONU, and carrying out corresponding detection according to the CODEC/SLIC function of the ONU;
opening a DSP channel and setting DSP parameters, setting the total number of DTMF numbers to be zero, setting the mark of the DTMF number ending to be 1, and detecting the DSP channel and an ONU voice port;
and reporting the detection result.
On the basis of the technical scheme, the method enters a production test mode, judges the state of the voice end of the ONU and carries out corresponding detection according to the CODEC/SLIC function of the ONU, and specifically comprises the following steps:
a1, when the ONU voice port is in an on-hook state, entering the step A2; when the ONU voice port is in an off-hook state, the method goes to step A4;
a2, setting a voice port of the ONU, starting a ringing timer and a stop oscillation timer, driving the SLIC to ring and stop oscillation, and entering step A4 if the voice port of the ONU detects that a telephone is off-hook; if the voice port of the ONU does not detect that the telephone is off-hook, entering step A3;
a3, detecting the voice port of the ONU, and entering step A4 if the phone is detected to be off-hook; if the voice port of the ONU still does not detect that the telephone is off-hook, continuing the step A3;
a4, canceling ringing timer, stopping ringing timer, and sending out stopping ringing instruction to SLIC.
On the basis of the technical scheme, the method comprises the following steps of opening a DSP channel, setting DSP parameters, setting the total number of DTMF numbers to be zero, setting a DTMF key-end mark to be 1, and detecting the DSP channel and an ONU voice port, wherein the method comprises the following steps:
b1, sending a plurality of DTMF numbers to the ONU through the voice card, and turning to the step B2;
b2, saving and processing the received DTMF numbers one by one: if the received DTMF number is a preset stop number, switching to B5; otherwise, turning to B3;
b3, first, determining whether the flag indicating the end of receiving the DTMF number is 1: if the number of the received DTMF numbers is 1 and is less than the total number of the transmitted DTMF numbers, the DTMF numbers are stored, and the step B1 is switched; otherwise, entering an exception handling process, discarding the received DTMF number, and switching to step B4;
b4, waiting for the ONU voice port to report the on-hook event, when the ONU voice port detects the on-hook event, turning to the step B7, otherwise, circularly waiting in the step B4;
b5, judging whether the DTMF number receiving end mark is 1: if the number of the received DTMF numbers is 1 and is less than the total number of the transmitted DTMF numbers, storing a preset stop number, and recording the number of the currently received DTMF numbers; setting a DTMF key end mark as 0; starting a ringing timer, and circularly playing back all the received DTMF numbers by using the DSP after the ringing timer is overtime; after receiving the DTMF number played back by the DSP, the voice card connected to the ONU voice port automatically compares the DTMF number with the DTMF number sent by the voice card; go to step B6; if the mark is not 1 or the total number of the received DTMF numbers is more than or equal to the total number of the transmitted DTMF numbers, entering an exception handling process, and then turning to the step B6;
b6, when the voice port of the ONU detects the hang-up event, the step B7 is carried out, otherwise, the voice port of the ONU waits for B6 in a circulating way;
b7, issuing a stop ringing command to SLIC, issuing a command of closing DSP channel, setting all relevant data of received DTMF number to zero, indicating that receiving DTMF is finished and no longer receiving DTMF number.
On the basis of the technical scheme, the process of entering the production test mode comprises the following steps: and mounting the bottom layer detection event of the ONU as a production test mode.
On the basis of the technical scheme, after the detection result is reported, the method further comprises the following steps: exiting production test mode:
c1, if the DTMF key end mark is 0, entering the step C2;
c2, canceling ringing stop timers one by one port, and issuing port ringing stop commands; c3;
and C3, the mounting bottom layer detection event is in a normal mode, and the production test mode is exited.
The invention also discloses an ONU voice function detection system, which comprises:
the first detection unit is used for controlling the ONU to enter a production test mode, judging the state of a voice port of the ONU and carrying out corresponding detection according to the CODEC/SLIC function of the ONU;
the second detection unit is used for opening the DSP channel, setting DSP parameters, setting the total number of DTMF numbers to be zero, setting a mark of DTMF number ending to be 1, and detecting the DSP channel and the ONU voice port;
and the reporting unit is used for reporting the detection result.
On the basis of the above technical solution, the first monitoring unit specifically includes the following steps when performing detection:
a1, when the ONU voice port is in an on-hook state, entering the step A2; when the ONU voice port is in an off-hook state, the method goes to step A4;
a2, setting a voice port of the ONU, starting a ringing timer and a stop oscillation timer, driving the SLIC to ring and stop oscillation, and entering step A4 if the voice port of the ONU detects that a telephone is off-hook; if the voice port of the ONU does not detect that the telephone is off-hook, entering step A3;
a3, detecting the voice port of the ONU, and entering step A4 if the phone is detected to be off-hook; if the voice port of the ONU still does not detect that the telephone is off-hook, continuing the step A3;
a4, canceling ringing timer, stopping ringing timer, and sending out stopping ringing instruction to SLIC.
On the basis of the above technical solution, the second detecting unit, when detecting, includes the following steps:
b1, sending a plurality of DTMF numbers to the ONU through the voice card, and turning to the step B2;
b2, saving and processing the received DTMF numbers one by one: if the received DTMF number is a preset stop number, switching to B5; otherwise, turning to B3;
b3, first, determining whether the flag indicating the end of receiving the DTMF number is 1: if the number of the received DTMF numbers is 1 and is less than the total number of the transmitted DTMF numbers, the DTMF numbers are stored, and the step B1 is switched; otherwise, entering an exception handling process, discarding the received DTMF number, and switching to step B4;
b4, waiting for the ONU voice port to report the on-hook event, when the ONU voice port detects the on-hook event, turning to the step B7, otherwise, circularly waiting in the step B4;
b5, judging whether the DTMF number receiving end mark is 1: if the number of the received DTMF numbers is 1 and is less than the total number of the transmitted DTMF numbers, storing a preset stop number, and recording the number of the currently received DTMF numbers; setting a DTMF key end mark as 0; starting a ringing timer, and circularly playing back all the received DTMF numbers by using the DSP after the ringing timer is overtime; after receiving the DTMF number played back by the DSP, the voice card connected to the ONU voice port automatically compares the DTMF number with the DTMF number sent by the voice card; go to step B6; if the mark is not 1 or the total number of the received DTMF numbers is more than or equal to the total number of the transmitted DTMF numbers, entering an exception handling process, and then turning to the step B6;
b6, when the voice port of the ONU detects the hang-up event, the step B7 is carried out, otherwise, the voice port of the ONU waits for B6 in a circulating way;
b7, issuing a stop ringing command to SLIC, issuing a command of closing DSP channel, setting all relevant data of received DTMF number to zero, indicating that receiving DTMF is finished and no longer receiving DTMF number.
On the basis of the technical scheme, the process of entering the production test mode comprises the following steps: and mounting the bottom layer detection event of the ONU as a production test mode.
On the basis of the technical scheme, the system further comprises an exit reduction unit, wherein the exit reduction unit is used for exiting the production test mode after the detection result is reported, and the exit reduction unit comprises the following steps of:
c1, if the DTMF key end mark is 0, entering the step C2;
c2, canceling ringing stop timers one by one port, and issuing port ringing stop commands; c3;
and C3, the mounting bottom layer detection event is in a normal mode, and the production test mode is exited.
Compared with the prior art, the invention has the advantages that:
(1) the invention detects the CODEC/SLIC function, the DSP and the voice port of the ONU step by step, thereby verifying the main functions of the ONU equipment without complicated steps, configuring a voice and voice server to the ONU, being not limited by the requirement of the equipment and bringing convenience to the detection work.
(2) The invention adopts DTMF marking, automatic resetting and DTMF number storing technology to check the DTMF number receiving detection function and DTMF sound reproduction detection function of the DSP, thereby improving the detection efficiency and accuracy.
Drawings
Fig. 1 is a flowchart illustrating steps of an ONU voice function detecting method according to an embodiment 1 of the present invention;
fig. 2 is a flowchart illustrating a specific step of step S1 of the ONU voice function detecting method in embodiment 2 of the present invention;
fig. 3 is a flowchart illustrating a specific step of step S2 of the ONU voice function detecting method in embodiment 3 of the present invention;
fig. 4 is a flowchart of steps after a detection result is reported by an ONU voice function detection method in embodiment 4 of the present invention;
fig. 5 is a block diagram of a voice function detection system of 5ONU in the embodiment of the present invention;
fig. 6 is a block diagram of a voice function detection system of 8ONU in the embodiment of the present invention;
in the figure: 1. a first detection unit; 2. a second detection unit; 3. a reporting unit; 4. and (4) withdrawing the reduction unit.
Detailed Description
Embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
Example 1
Referring to fig. 1, an embodiment 1 of the present invention provides a method for detecting an ONU voice function, where the method includes the following steps:
s1, entering a production test mode, judging the state of the voice port of the ONU, and carrying out corresponding detection according to the CODEC/SLIC function of the ONU;
s2, opening the DSP channel and setting DSP parameters, setting the total number of DTMF numbers to be zero, setting the mark of the DTMF number ending to be 1, and detecting the DSP channel and the ONU voice port;
and S3, reporting the detection result.
In the invention, the CODEC/SLIC function, the DSP and the voice port of the ONU are detected step by step, so that the main functions of the ONU equipment are verified without complicated steps, voice and voice servers do not need to be configured to the ONU, the limitation of equipment requirements is avoided, and the detection work is facilitated.
In the embodiment of the invention, the process of entering the production test mode comprises the following steps: and mounting the bottom layer detection event of the ONU as a production test mode.
In the embodiment of the invention, the range of the DTMF keys is 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, #, and 16 DTMF key numbers;
in the embodiment of the invention, the DTMF key number 8 can only be used as the number of the end key;
in the embodiment of the invention, the total number of the non-ending key numbers is not more than 15;
the invention adopts DTMF marking, automatic resetting and DTMF number storing technology to check the DTMF number receiving detection function and DTMF sound reproduction detection function of the DSP, thereby improving the detection efficiency and accuracy.
It should be noted that SLIC is a subscriber line interface, which is an intermediate interface between CODEC and external telephone loop;
CODEC is a CODEC, which refers to a device with coding and decoding functions in digital communication;
DTMF (dual Tone Multi frequency) is composed of high frequency groups and low frequency groups, each of the high frequency groups comprises 4 frequencies, a high frequency signal and a low frequency signal are superposed to form a combined signal representing a digit, the DTMF signal has 16 codes, and the DTMF signal can be used for selectively calling a corresponding interphone.
Example 2
Referring to fig. 2, an embodiment 2 of the present invention provides a method for detecting an ONU voice function, where on the basis of embodiment 1:
entering a production test mode, judging the state of the voice end of the ONU, and carrying out corresponding detection according to the CODEC/SLIC function of the ONU, namely in step S1, the method specifically comprises the following steps:
a1, when the ONU voice port is in the on-hook state, entering the step A2; when the ONU voice port is in an off-hook state, the method goes to step A4;
a2, setting a voice port of the ONU, starting a ringing timer and a stop oscillation timer, driving the SLIC to ring and stop oscillation, and entering step A4 if the voice port of the ONU detects that a telephone is off-hook; if the voice port of the ONU does not detect that the telephone is off-hook, entering step A3;
a3, detecting the voice port of the ONU, and entering step A4 if the phone is detected to be off-hook; if the voice port of the ONU still does not detect that the telephone is off-hook, continuing the step A3;
a4, canceling ringing timer, stopping ringing timer, and sending out stopping ringing instruction to SLIC.
In the embodiment of the invention, the steps are detailed operations for detecting the CODEC/SLIC function of the ONU, firstly, the state of the ONU voice port is detected, and then, corresponding detection is carried out according to the off-hook state or the on-hook state, a1 second timer and a4 second timer are set, SLIC ringing is driven, and then, the ONU voice port is detected, thereby completing the verification of the CODEC/SLIC function;
in the embodiment of the invention, the timer is preset, and the CODEC/SLIC function of the ONU is tested, so that the CODEC/SLIC function is verified, and the detection working efficiency is improved.
In the embodiment of the present invention, the ringing timer may be set to 1 second, and the oscillation stop timer may be set to 4 seconds.
Example 3
Referring to fig. 3, an embodiment of the present invention provides a method for detecting an ONU voice function, where on the basis of embodiment 1:
opening the DSP channel and setting DSP parameters, setting the total number of DTMF numbers to be zero, setting a DTMF key-press ending mark to be 1, and detecting the DSP channel and the ONU voice port, namely the step S2 specifically comprises the following steps:
b1, sending a plurality of DTMF numbers to the ONU through the voice card, and turning to the step B2;
b2, saving and processing the received DTMF numbers one by one: if the received DTMF number is a preset stop number, switching to B5; otherwise, turning to B3;
b3, first, determining whether the flag indicating the end of receiving the DTMF number is 1: if the number of the received DTMF numbers is 1 and is less than the total number of the transmitted DTMF numbers, the DTMF numbers are stored, and the step B1 is switched; otherwise, entering an exception handling process, discarding the received DTMF number, and switching to step B4;
b4, waiting for the ONU voice port to report the on-hook event, when the ONU voice port detects the on-hook event, turning to the step B7, otherwise, circularly waiting in the step B4;
b5, judging whether the DTMF number receiving end mark is 1: if the number of the received DTMF numbers is 1 and is less than the total number of the transmitted DTMF numbers, storing a preset stop number, and recording the number of the currently received DTMF numbers; setting a DTMF key end mark as 0; starting a ringing timer, and circularly playing back all the received DTMF numbers by using the DSP after the ringing timer is overtime; synchronously outputting the played DTMF number to a serial port of the ONU; after receiving the DTMF number played back by the DSP, the voice card connected to the ONU voice port automatically compares the DTMF number with the DTMF number sent by the voice card; go to step B6; if the mark is not 1 or the total number of the received DTMF numbers is more than or equal to the total number of the transmitted DTMF numbers, entering an exception handling process, and then turning to the step B6;
b6, when the voice port of the ONU detects the hang-up event, the step B7 is carried out, otherwise, the voice port of the ONU waits for B6 in a circulating way;
b7, issuing a stop ringing command to SLIC, issuing a command of closing DSP channel, setting all relevant data of received DTMF number to zero, indicating that receiving DTMF is finished and no longer receiving DTMF number.
In the embodiment of the invention, the DSP channel is opened and the DSP parameters are set, so that the DSP channel is detected, different DTMF numbers are set, and feedback is carried out according to the received DTMF keys, thereby completing the detection of the DSP channel.
In the embodiment of the present invention, there are the following preliminary preparations: the voice port of the ONU is connected with a telephone or a voice card, when the telephone is used for testing, the relevant number is manually input and DTMF (dual tone multi frequency) voice is manually heard, if the voice card is used, the dialing and matching of keys can be automatically carried out, and the efficiency is higher;
in addition, the voice card can be connected with a PC (personal computer), and can also be connected with other equipment with a control function if necessary, wherein the PC is used for controlling the voice card and enabling the voice card to automatically dial DTMF (dual tone multi-frequency) keys and display a number matching result on a control interface;
and the voice card is connected to a voice port of the ONU so that DTMF key signals, such as 0, 1, 2, 3, 4, 5, 6, 7, 9, A, B, C, D, #, 8;
moreover, after the DTMF key number played back by the DSP is received by the voice card connected to the ONU voice port, the DTMF key number sent by the voice card is matched and compared with the DTMF key number played back by the DSP at a later stage;
in addition, the voice card display interface can prompt receipt of DTMF tones, such as 0, 1, 2, 3, 4, 5, 6, 7, #, A, B, C, D, 8.
Example 4
Referring to fig. 4, an embodiment of the present invention provides a method for detecting an ONU voice function, where on the basis of embodiment 1:
after the detection result is reported, the method also comprises the following steps: exiting production test mode:
c1, if the DTMF key end mark is 0, entering the step C2;
c2, canceling ringing stop timers one by one port, and issuing port ringing stop commands; c3;
and C3, the mounting bottom layer detection event is in a normal mode, and the production test mode is exited.
In the embodiment of the invention, after the detection result is reported, the ONU is restored, and the production test mode is exited, so that the interference on the follow-up work of the ONU is avoided.
Example 5
Referring to fig. 5, an embodiment of the present invention provides an ONU voice function detection system, where the ONU voice function detection system includes:
the first detection unit 1 is used for controlling the ONU to enter a production test mode, judging the state of a voice port of the ONU and carrying out corresponding detection according to the CODEC/SLIC function of the ONU;
the second detection unit 2 is used for opening the DSP channel, setting DSP parameters, setting the total number of DTMF numbers to be zero, setting a mark of DTMF number ending to be 1, and detecting the DSP channel and the ONU voice port;
and the reporting unit 3 is used for reporting the detection result.
In the invention, the CODEC/SLIC function, the DSP and the voice port of the ONU are detected step by step, so that the main functions of the ONU equipment are verified without complicated steps, voice and voice servers do not need to be configured to the ONU, the limitation of equipment requirements is avoided, and the detection work is facilitated.
In the embodiment of the invention, the process of entering the production test mode comprises the following steps: and mounting the bottom layer detection event of the ONU as a production test mode.
In the embodiment of the invention, the range of the DTMF keys is 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, #, and 16 DTMF key numbers;
in the embodiment of the invention, the DTMF key number 8 can only be used as the number of the end key;
in the embodiment of the invention, the total number of the non-ending key numbers is not more than 15.
Example 6
The embodiment of the invention provides an ONU voice function detection system, which is based on the embodiment 5:
when the first monitoring unit detects, the method specifically comprises the following steps:
a1, when the ONU voice port is in the on-hook state, entering the step A2; when the ONU voice port is in an off-hook state, the method goes to step A4;
a2, setting a voice port of the ONU, starting a ringing timer and a stop oscillation timer, driving the SLIC to ring and stop oscillation, and entering step A4 if the voice port of the ONU detects that a telephone is off-hook; if the voice port of the ONU does not detect that the telephone is off-hook, entering step A3;
a3, detecting the voice port of the ONU, and entering step A4 if the phone is detected to be off-hook; if the voice port of the ONU still does not detect that the telephone is off-hook, continuing the step A3;
a4, canceling ringing timer, stopping ringing timer, and sending out stopping ringing instruction to SLIC.
In the embodiment of the invention, the process of entering the production test mode comprises the following steps: and mounting the bottom layer detection event of the ONU as a production test mode.
Example 7
The embodiment of the invention provides an ONU voice function detection system, which is based on the embodiment 5:
when the second detection unit detects, the method comprises the following steps:
b1, sending a plurality of DTMF numbers to the ONU through the voice card, and turning to the step B2;
b2, saving and processing the received DTMF numbers one by one: if the received DTMF number is a preset stop number, switching to B5; otherwise, turning to B3;
b3, first, determining whether the flag indicating the end of receiving the DTMF number is 1: if the number of the received DTMF numbers is 1 and is less than the total number of the transmitted DTMF numbers, the DTMF numbers are stored, and the step B1 is switched; otherwise, entering an exception handling process, discarding the received DTMF number, and switching to step B4;
b4, waiting for the ONU voice port to report the on-hook event, when the ONU voice port detects the on-hook event, turning to the step B7, otherwise, circularly waiting in the step B4;
b5, judging whether the DTMF number receiving end mark is 1: if the number of the received DTMF numbers is 1 and is less than the total number of the transmitted DTMF numbers, storing a preset stop number, and recording the number of the currently received DTMF numbers; setting a DTMF key end mark as 0; starting a ringing timer, and circularly playing back all the received DTMF numbers by using the DSP after the ringing timer is overtime; synchronously outputting the played DTMF number to a serial port of the ONU; after receiving the DTMF number played back by the DSP, the voice card connected to the ONU voice port automatically compares the DTMF number with the DTMF number sent by the voice card; go to step B6; if the mark is not 1 or the total number of the received DTMF numbers is more than or equal to the total number of the transmitted DTMF numbers, entering an exception handling process, and then turning to the step B6;
b6, when the voice port of the ONU detects the hang-up event, the step B7 is carried out, otherwise, the voice port of the ONU waits for B6 in a circulating way;
b7, issuing a stop ringing command to SLIC, issuing a command of closing DSP channel, setting all relevant data of received DTMF number to zero, indicating that receiving DTMF is finished and no longer receiving DTMF number.
In the embodiment of the invention, the DSP channel is opened and the DSP parameters are set, so that the DSP channel is detected, different DTMF numbers are set, and feedback is carried out according to the received DTMF keys, so that the detection of the DSP channel and the ONU voice end is completed.
Example 8
Referring to fig. 6, an embodiment of the present invention provides an ONU voice function detection system, in which on the basis of embodiment 5:
the system also comprises an exit recovery unit 4, which is used for exiting the production test mode after the detection result is reported, and the exit recovery unit 4 comprises the following steps when in work:
c1, if the DTMF key end mark is 0, entering the step C2;
c2, canceling ringing stop timers one by one port, and issuing port ringing stop commands; c3;
and C3, the mounting bottom layer detection event is in a normal mode, and the production test mode is exited.
In the embodiment of the invention, after the detection result is reported, the ONU is restored, and the production test mode is exited, so that the interference on the follow-up work of the ONU is avoided.
The present invention is not limited to the above-mentioned preferred embodiments, and any other products in various forms can be obtained by anyone with the teaching of the present invention, but any changes in the shape or structure thereof, which have the same or similar technical solutions as the present invention, are within the protection scope.

Claims (6)

1. An ONU voice function detection method is characterized by comprising the following steps:
entering a production test mode, judging the state of a voice port of the ONU, and carrying out corresponding detection according to the CODEC/SLIC function of the ONU;
opening a DSP channel and setting DSP parameters, setting the total number of DTMF numbers to be zero, setting the mark of the DTMF number ending to be 1, and detecting the DSP channel and an ONU voice port;
reporting a detection result;
the method comprises the following steps of entering a production test mode, judging the state of a voice end of the ONU, and carrying out corresponding detection according to the CODEC/SLIC function of the ONU:
a1, when the ONU voice port is in an on-hook state, entering the step A2; when the ONU voice port is in an off-hook state, the method goes to step A4;
a2, setting a voice port of the ONU, starting a ringing timer and a stop oscillation timer, driving the SLIC to ring and stop oscillation, and entering step A4 if the voice port of the ONU detects that a telephone is off-hook; if the voice port of the ONU does not detect that the telephone is off-hook, entering step A3;
a3, detecting the voice port of the ONU, and entering step A4 if the phone is detected to be off-hook; if the voice port of the ONU still does not detect that the telephone is off-hook, continuing the step A3;
a4, canceling the ringing timer and stopping the ringing timer, and issuing a ringing stopping instruction to the SLIC;
opening a DSP channel and setting DSP parameters, setting the total number of DTMF numbers to be zero, setting a DTMF key-press ending mark to be 1, and detecting the DSP channel and an ONU voice port, wherein the method comprises the following steps:
b1, sending a plurality of DTMF numbers to the ONU through the voice card, and turning to the step B2;
b2, saving and processing the received DTMF numbers one by one: if the received DTMF number is a preset stop number, switching to B5; otherwise, turning to B3;
b3, first, determining whether the flag indicating the end of receiving the DTMF number is 1: if the number of the received DTMF numbers is 1 and is less than the total number of the transmitted DTMF numbers, the DTMF numbers are stored, and the step B1 is switched; otherwise, entering an exception handling process, discarding the received DTMF number, and switching to step B4;
b4, waiting for the ONU voice port to report the on-hook event, when the ONU voice port detects the on-hook event, turning to the step B7, otherwise, circularly waiting in the step B4;
b5, judging whether the DTMF number receiving end mark is 1: if the number of the received DTMF numbers is 1 and is less than the total number of the transmitted DTMF numbers, storing a preset stop number, and recording the number of the currently received DTMF numbers; setting a DTMF key end mark as 0; starting a ringing timer, and circularly playing back all the received DTMF numbers by using the DSP after the ringing timer is overtime; after receiving the DTMF number played back by the DSP, the voice card connected to the ONU voice port automatically compares the DTMF number with the DTMF number sent by the voice card; go to step B6; if the mark is not 1 or the total number of the received DTMF numbers is more than or equal to the total number of the transmitted DTMF numbers, entering an exception handling process, and then turning to the step B6;
b6, when the voice port of the ONU detects the hang-up event, the step B7 is carried out, otherwise, the voice port of the ONU waits for B6 in a circulating way;
b7, issuing a stop ringing command to SLIC, issuing a command of closing DSP channel, setting all relevant data of received DTMF number to zero, indicating that receiving DTMF is finished and no longer receiving DTMF number.
2. The detection method according to claim 1, characterized in that: the process of entering the production test mode is as follows: and mounting the bottom layer detection event of the ONU as a production test mode.
3. The detection method according to claim 1, characterized in that: after the detection result is reported, the method also comprises the following steps: exiting production test mode:
c1, if the DTMF key end mark is 0, entering the step C2;
c2, canceling ringing stop timers one by one port, and issuing port ringing stop commands; c3;
and C3, the mounting bottom layer detection event is in a normal mode, and the production test mode is exited.
4. An ONU voice function detection system, the system comprising:
the first detection unit is used for controlling the ONU to enter a production test mode, judging the state of a voice port of the ONU and carrying out corresponding detection according to the CODEC/SLIC function of the ONU;
the second detection unit is used for opening the DSP channel, setting DSP parameters, setting the total number of DTMF numbers to be zero, setting a mark of DTMF number ending to be 1, and detecting the DSP channel and the ONU voice port;
a reporting unit, configured to report the detection result;
when the first detection unit detects, the method specifically comprises the following steps:
a1, when the ONU voice port is in an on-hook state, entering the step A2; when the ONU voice port is in an off-hook state, the method goes to step A4;
a2, setting a voice port of the ONU, starting a ringing timer and a stop oscillation timer, driving the SLIC to ring and stop oscillation, and entering step A4 if the voice port of the ONU detects that a telephone is off-hook; if the voice port of the ONU does not detect that the telephone is off-hook, entering step A3;
a3, detecting the voice port of the ONU, and entering step A4 if the phone is detected to be off-hook; if the voice port of the ONU still does not detect that the telephone is off-hook, continuing the step A3;
a4, canceling the ringing timer and stopping the ringing timer, and issuing a ringing stopping instruction to the SLIC;
when the second detection unit detects, the method comprises the following steps:
b1, sending a plurality of DTMF numbers to the ONU through the voice card, and turning to the step B2;
b2, saving and processing the received DTMF numbers one by one: if the received DTMF number is a preset stop number, switching to B5; otherwise, turning to B3;
b3, first, determining whether the flag indicating the end of receiving the DTMF number is 1: if the number of the received DTMF numbers is 1 and is less than the total number of the transmitted DTMF numbers, the DTMF numbers are stored, and the step B1 is switched; otherwise, entering an exception handling process, discarding the received DTMF number, and switching to step B4;
b4, waiting for the ONU voice port to report the on-hook event, when the ONU voice port detects the on-hook event, turning to the step B7, otherwise, circularly waiting in the step B4;
b5, judging whether the DTMF number receiving end mark is 1: if the number of the received DTMF numbers is 1 and is less than the total number of the transmitted DTMF numbers, storing a preset stop number, and recording the number of the currently received DTMF numbers; setting a DTMF key end mark as 0; starting a ringing timer, and circularly playing back all the received DTMF numbers by using the DSP after the ringing timer is overtime; after receiving the DTMF number played back by the DSP, the voice card connected to the ONU voice port automatically compares the DTMF number with the DTMF number sent by the voice card; go to step B6; if the mark is not 1 or the total number of the received DTMF numbers is more than or equal to the total number of the transmitted DTMF numbers, entering an exception handling process, and then turning to the step B6;
b6, when the voice port of the ONU detects the hang-up event, the step B7 is carried out, otherwise, the voice port of the ONU waits for B6 in a circulating way;
b7, issuing a stop ringing command to SLIC, issuing a command of closing DSP channel, setting all relevant data of received DTMF number to zero, indicating that receiving DTMF is finished and no longer receiving DTMF number.
5. The detection system of claim 4, wherein: the process of entering the production test mode is as follows: and mounting the bottom layer detection event of the ONU as a production test mode.
6. The detection system of claim 4, wherein: after the detection result is reported, the system also comprises an exit recovery unit which is used for exiting the production detection mode, and the exit recovery unit comprises the following steps when in work:
c1, if the DTMF key end mark is 0, entering the step C2;
c2, canceling ringing stop timers one by one port, and issuing port ringing stop commands; c3;
and C3, the mounting bottom layer detection event is in a normal mode, and the production test mode is exited.
CN201810935469.2A 2018-08-16 2018-08-16 ONU voice function detection method and system Active CN109275051B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810935469.2A CN109275051B (en) 2018-08-16 2018-08-16 ONU voice function detection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810935469.2A CN109275051B (en) 2018-08-16 2018-08-16 ONU voice function detection method and system

Publications (2)

Publication Number Publication Date
CN109275051A CN109275051A (en) 2019-01-25
CN109275051B true CN109275051B (en) 2021-10-01

Family

ID=65153939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810935469.2A Active CN109275051B (en) 2018-08-16 2018-08-16 ONU voice function detection method and system

Country Status (1)

Country Link
CN (1) CN109275051B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111447330B (en) * 2020-03-04 2022-02-18 深圳震有科技股份有限公司 Audio fault detection method, terminal and storage medium
CN113595826A (en) * 2021-07-29 2021-11-02 芯河半导体科技(无锡)有限公司 Method for single-voice-port PON gateway equipment to carry out single-equipment voice production test
CN116225796B (en) * 2022-12-20 2023-12-08 广州芯德通信科技股份有限公司 Cross-chip-platform ONU (optical network Unit) production and measurement method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546966A (en) * 2010-12-15 2012-07-04 中兴通讯股份有限公司 Method and passive optical network terminal used for realizing subscriber line autonomous testing
CN102624585A (en) * 2012-03-14 2012-08-01 上海大亚科技有限公司 Analog conversation method based on gateway terminal equipment and voice device detection device
CN104469023A (en) * 2015-01-05 2015-03-25 北京飞音时代技术有限公司 Detection method for equipment with subscriber line interface circuit
CN105119932A (en) * 2015-09-10 2015-12-02 烽火通信科技股份有限公司 Method for realizing internal voice calls of ONU (Optical Network Unit) devices in passive optical network
CN105657194A (en) * 2016-02-17 2016-06-08 烽火通信科技股份有限公司 Method for executing voice production measurement based on single-voice hole devices

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601352B (en) * 2013-10-30 2019-02-12 华为技术有限公司 A kind of network up and down data processing method, electronic equipment and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546966A (en) * 2010-12-15 2012-07-04 中兴通讯股份有限公司 Method and passive optical network terminal used for realizing subscriber line autonomous testing
CN102624585A (en) * 2012-03-14 2012-08-01 上海大亚科技有限公司 Analog conversation method based on gateway terminal equipment and voice device detection device
CN104469023A (en) * 2015-01-05 2015-03-25 北京飞音时代技术有限公司 Detection method for equipment with subscriber line interface circuit
CN105119932A (en) * 2015-09-10 2015-12-02 烽火通信科技股份有限公司 Method for realizing internal voice calls of ONU (Optical Network Unit) devices in passive optical network
CN105657194A (en) * 2016-02-17 2016-06-08 烽火通信科技股份有限公司 Method for executing voice production measurement based on single-voice hole devices

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《基于FPGA的多通道数据采集***设计与实现》;谈良;《电子测量技术》;20180331;全文 *

Also Published As

Publication number Publication date
CN109275051A (en) 2019-01-25

Similar Documents

Publication Publication Date Title
CN109275051B (en) ONU voice function detection method and system
CN102333163B (en) External auxiliary testing apparatus, and testing system thereof and method thereof
RU2101873C1 (en) Method of continuity test of voice channel in electronic exchange systems
CN1071078C (en) Method for executing automatic calling
CN101052066B (en) Detecting method for prompting voice, voice server and prompting voice detector
CN1156135C (en) Method and apparatus for reporting status information in fixed wireless terminal
CN1984171B (en) System and method for realizing speech apparatus function test
CN102857645A (en) Method and apparatus for testing voice media gateway
CN107613147A (en) A kind of special telephone line device for intelligently switching, test system and method for testing
CN101494875A (en) Method for testing call system performance of WCDMA wireless router
US20080144518A1 (en) Method and apparatus for verifying signaling and bearer channels in a packet switched network
CN101287263A (en) Test method, system and server for relay link in exchange network
CN115580681A (en) Method for testing hardware function of analog port
CN113595826A (en) Method for single-voice-port PON gateway equipment to carry out single-equipment voice production test
CN114157761A (en) System and method for voice test of multi-channel voice gateway equipment based on router
CN201789549U (en) Telephone interface of industrial intercom
CN100499693C (en) System and method for detecting channels of resources
CN100461680C (en) Display system and method for incoming telephone number for digital program controlled user exchanger
CN105611082A (en) Network voice testing system
KR100255617B1 (en) Inter line status identification sound register method in automatic switching center
KR900003626B1 (en) Exchanger of call simulation system
KR100270681B1 (en) Method for sending central call in private exchange having a voice-mail apparatus
JP5821478B2 (en) Telephone device and telephone control method
JP3052897U (en) Channel setting test device, responder and channel setting test system
KR0161150B1 (en) Automatic stopping test in relation to call in the switching system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant