CN108513023B - Method for realizing analog telephone service suitable for high-speed copper wire access - Google Patents

Method for realizing analog telephone service suitable for high-speed copper wire access Download PDF

Info

Publication number
CN108513023B
CN108513023B CN201810200741.2A CN201810200741A CN108513023B CN 108513023 B CN108513023 B CN 108513023B CN 201810200741 A CN201810200741 A CN 201810200741A CN 108513023 B CN108513023 B CN 108513023B
Authority
CN
China
Prior art keywords
waveform signal
unit
telephone
hook
signal
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
CN201810200741.2A
Other languages
Chinese (zh)
Other versions
CN108513023A (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 CN201810200741.2A priority Critical patent/CN108513023B/en
Publication of CN108513023A publication Critical patent/CN108513023A/en
Application granted granted Critical
Publication of CN108513023B publication Critical patent/CN108513023B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M19/00Current supply arrangements for telephone systems
    • H04M19/02Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone
    • H04M19/04Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone the ringing-current being generated at the substations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M19/00Current supply arrangements for telephone systems
    • H04M19/02Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone
    • H04M19/023Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone by reversing the polarity of the current at the exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M19/00Current supply arrangements for telephone systems
    • H04M19/02Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone
    • H04M19/026Arrangements for interrupting the ringing current

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method for realizing analog telephone service suitable for high-speed copper wire access, which comprises the following steps: selecting a voice direct current signaling transmission path according to whether the CPE performs reverse feeding or not by using the relay as a selection switch; when the CPE is not back-fed: the standard voice direct current signaling is directly transmitted through a telephone line, controls the telephone to generate ringing, reverse polarity, stop ringing or stop reverse polarity according to the voice direct current signaling, and reports and detects the events of off-hook and on-hook of the telephone; when the CPE is back-fed: the POTS adapter module is used for converting voice direct current signaling into a waveform signal with a user-defined frequency for transmission, and controlling the telephone to generate ringing, inverting, stop ringing or inverting according to the waveform signal with the user-defined frequency, and simulating off-hook and on-hook events to be reported to the PBX. The invention successfully solves the problem that the analog voice signaling cannot be normally transmitted due to the influence of the backward feed in the G.FAST system by using the POTS adapter module, and has strong operability and flexible adaptability.

Description

Method for realizing analog telephone service suitable for high-speed copper wire access
Technical Field
The invention relates to the field of coaxial cable access in a G.FAST (high-speed copper wire access technology) system, in particular to a method for realizing analog telephone service suitable for high-speed copper wire access.
Background
Fast is a high-speed copper line access technology, designed based on short-range line usage, that can further increase line rates compared to VDSL2 vectoring technology. Fast adopts time division multiplexing (TDD) technology to allocate uplink and downlink bandwidths, has an operating frequency spectrum of 2.2M-106MHz, supports telephone line reverse feeding technology (RPF for short), and has the characteristics of high speed, compatibility, flexible bandwidth, low power consumption, expandability and easy networking. By means of the extremely-fast broadband capability provided by the G.FAST, an operator can get rid of the shackle that the optical fiber must be deployed to the home of a user originally, and the fiber-to-the-home service is easily realized, so that the service operator is helped to economically and effectively accelerate the fiber-to-the-home deployment.
Fig. 1 is an application scenario of an existing g.fast system, where a DPU (Distributed Processing Unit) is connected to a Passive Optical Network (PON) and an FXO (foreign exchange Office) interface, the PON is connected to an ODN (Optical Network Unit) and carries data (including voice traffic carried over the PON); the FXO interface is accessed to PSTN (Public switched telephone Network) to carry voice service. The DPU is connected to FXS (Foreign exchange station) interface, PHONE and CPE (Customer premise equipment) via RJ11 line. When networking deployment is performed, because the installation position of the DPU is difficult to take electricity, a feeder device is usually placed at a position near the CPE or inside the CPE in the home of an access user, and the DPU equipment is supplied with Power by the CPE, that is, by Reverse Power Feed (RPF).
In the above scenario, the POTS and the RPF share the same wire pair, so that the Telephone dc signaling cannot be transmitted through the same pair of Telephone lines.
Disclosure of Invention
The technical problem to be solved by the invention is that in the existing G.FAST system, the analog voice signaling can not be normally transmitted due to the influence of backward feeding.
In order to solve the above technical problems, the technical solution adopted by the present invention is to provide a method for implementing an analog telephone service suitable for high-speed copper wire access, including:
relays are respectively arranged in an FXO unit and an FXS unit of the POTS adapter module, and the relays are used as selection switches to select a voice direct-current signaling transmission path according to whether the CPE performs reverse feeding or not;
when the CPE is not back-fed:
the standard voice direct current signaling is directly transmitted through a telephone line, controls the telephone to generate ringing, reverse polarity, stop ringing or stop reverse polarity according to the voice direct current signaling, and reports and detects the events of off-hook and on-hook of the telephone;
when the CPE is back-fed:
the POTS adapter module is used for converting voice direct current signaling into a waveform signal with a user-defined frequency for transmission, and controlling the telephone to generate ringing, inverting, stop ringing or inverting according to the waveform signal with the user-defined frequency, and simulating off-hook and on-hook events to be reported to the PBX.
In the above method, when the CPE is not back-fed:
the relays in the FXO unit and the FXS unit are released, the direct current path is communicated, standard voice direct current signaling is directly transmitted through a telephone line, the telephone is controlled to generate ringing, reverse polarity, stop ringing or reverse polarity according to the voice direct current signaling, and the telephone is reported to detect the events of off-hook and on-hook of the telephone;
when the CPE is back-fed:
the relay in FXO unit and FXS unit is closed, the direct current path is cut off, the power feed enters POTS adapter module, the POTS adapter module converts the voice direct current signaling into waveform signal with self-defined frequency for transmission, and controls the telephone to generate ringing, reverse polarity, stop ringing or reverse polarity according to the waveform signal with self-defined frequency, and simulate the events of off-hook and on-hook to report to PBX.
In the above method, when the power feed enters the POTS adapter module, the FXO unit and the FXS unit of the POTS adapter module enter the operating state, which specifically includes:
respectively initializing an FXO unit and an FXS unit;
the FXO unit detects ringing and reverse-pole signals, converts the ringing and reverse-pole signals into waveform signals with custom frequency and transmits the waveform signals to the FXS unit; the FXS unit controls ringing, inverting, stopping ringing or inverting of the telephone according to the waveform signal of the custom frequency;
in the other direction, the FXS unit detects off-hook and on-hook signals of the telephone, converts the off-hook and on-hook signals into waveform signals with self-defined frequency and informs the signals to the FXO unit; and the FXO unit simulates off-hook and on-hook events according to the waveform signal of the user-defined frequency and reports the off-hook and on-hook events to the PBX.
In the method, the relay is a low-power-consumption relay with 12V and 36mW, and the working current is 3 mA.
In the above method, the initializing the FXO unit specifically includes the following steps:
step S11, after the FXO unit is powered on, important pin definition of GPIO is set;
step S12, setting a delay of 100ms to ensure that the set pin attribute definition takes effect;
s13, resetting a voice chip in the FXO unit;
step S14, delaying for 500 ms;
step S15, judging whether the acquired voice chip type meets the type matching requirement, if so, executing step S16; otherwise, go to step S17;
step S16, performing conventional register configuration on the voice chip through the SPI bus to ensure the normal work of the voice function;
step S17, finishing initialization;
the same principle is applied to the initialization of the FXS unit and the initialization process of the FXO unit, and the different points are that a voice chip in the FXS unit and a voice chip in the FXO unit are not of the same model, and specific values matched with register configuration are different when the chips are configured.
In the method, the generation process of the custom frequency waveform signal of the FXO unit comprises the following steps:
step S41, configuring the corresponding relationship between the first register state and the telephone event signal, which respectively is:
0x04 indicates detection of a ringing signal;
0x20 indicates detection of a reverse polarity signal;
0x00 denotes recovery status;
step S42, setting a timer, continuously reading the first register state before the timer is overtime, and judging the type of the detected telephone event signal according to the first register state value; if the read first register state is 0x04, perform step S43; if the read first register state is 0x20, execute step S44; if the read first register state is 0x00, execute step S45;
step S43, correspondingly generating a first self-defined frequency waveform signal, and then executing step S48;
step S44, correspondingly generating a second self-defined frequency waveform signal, and then executing step S48;
step S45, judging whether the last event signal is ringing or reverse polarity signal, if ringing, executing step S46; otherwise, go to step S47;
step S46, if the former event is ringing, at this time, generating a third custom frequency waveform signal indicating vibration stop, and then executing step S48;
step S47, if the previous state is reverse polarity, then a fourth self-defined frequency waveform signal indicating that reverse polarity is stopped is generated, and then step S48 is executed;
and step S48, sending the generated custom frequency waveform signal to the FXS unit.
In the method, the detection process of the self-defined frequency waveform signal of the FXS unit comprises the following steps:
step S51, setting a capture data input pin and capturing a waveform signal with a custom frequency;
step S52, judging the waveform of the captured waveform signal with the self-defined frequency, if the waveform is the first waveform signal with the self-defined frequency, executing step S53; if the signal is the second waveform signal with the custom frequency, executing the step S54; if the signal is the third waveform signal with the custom frequency, executing the step S55; if the signal is the fourth self-defined frequency waveform signal, go to step S56;
step S53, operating the telephone to ring;
step S54, operating the reversal of the telephone;
step S55, operating the telephone to stop ringing;
and step S56, operating the telephone to stop the reverse polarity.
In the method, the generation process of the custom frequency waveform signal of the FXS unit comprises the following steps:
step S61, configuring the corresponding relationship between the second register state and the telephone event signal, which respectively is:
0x10 indicates that an off-hook signal is detected;
0x00 indicates the detection of an on-hook signal;
step S62, setting a timer, continuously reading the state of the second register before the timer is overtime, and judging the type of the detected telephone event signal according to the state value of the second register; if the read second register state is 0x10, perform step S63; if the read second register state is 0x00, execute step S64;
step S63, correspondingly generating a fifth custom frequency waveform signal, and then executing step S65;
step S64, correspondingly generating a sixth custom frequency waveform signal, and then executing step S65;
and step S65, sending the generated custom frequency waveform signal to the FXO unit.
In the method, the detection process of the self-defined frequency waveform signal of the FXO unit comprises the following steps:
step S71, setting a capture data input pin and capturing a waveform signal with a custom frequency;
step S72, judging the waveform of the captured waveform signal with the self-defined frequency, if the waveform is the fifth waveform signal with the self-defined frequency, executing step S73; if the signal is the sixth custom frequency waveform signal, executing step S74;
step S73, simulating and reporting an off-hook event;
and step S74, simulating the on-hook reporting event.
In the above-mentioned method, the first step of the method,
the first custom frequency waveform signal is defined as a 0001 square wave of 41 KHz;
the second self-defined frequency waveform signal is defined as a 0010 square wave of 41 KHz;
the third self-defined frequency waveform signal is defined as a 0011 square wave of 41 KHz;
the fourth self-defined frequency waveform signal is defined as 0100 square wave of 41 KHz;
the fifth self-defined frequency waveform signal is defined as 0101 square wave of 41 KHz;
the sixth custom frequency waveform signal is defined as a 0110 square wave at 41 KHz.
The voice signaling transmission circuit is separated when the CPE has the backward feed and does not have the backward feed through the relays arranged in the FXO unit and the FXS unit, the conversion of the voice direct current signaling is realized by using the method of the POTS adapter module, the problem that the analog voice signaling influenced by the backward feed in the G.FAST system cannot be normally transmitted is successfully solved, and the voice signaling transmission circuit is suitable for the deployment of the voice service from a high-speed coaxial cable to a home, does not depend on a complex signaling standard and has strong designability; different from the standard voice signaling flow control, the management of the user telephone service can be realized only by establishing a square wave frequency signal protocol which can be carried by a line between the FXO and the FXS of the user terminal, and the method has strong operability and flexible adaptability.
Drawings
Fig. 1 is a schematic view of an application scenario of a conventional g.fast system;
FIG. 2 is a flow chart of a voice service implementation in the present invention when the CPE is not back-feeding;
FIG. 3 is a flow chart of the voice service implementation when the CPE performs backfeed in the present invention;
FIG. 4 is a flow chart of the initialization of the FXO unit in the invention;
FIG. 5 is a flow chart of a custom frequency waveform signal generation process of the FXO unit in the invention;
FIG. 6 is a flow chart of a custom frequency waveform signal detection process of the FXS unit in the invention;
FIG. 7 is a flow chart of a custom frequency waveform signal generation process of the FXS unit in the invention;
FIG. 8 is a flow chart of the custom frequency waveform signal detection process of the FXO unit of the invention.
Detailed Description
The invention realizes the conversion of voice direct current signaling by using the method of using the POTS adapter module, so that analog voice service in the G.FAST system is not influenced by feedback electrical technology.
The invention provides a method for realizing analog telephone service suitable for high-speed copper wire access, which realizes normal analog voice service in a G.FAST system by using a POTS adapter module (comprising an FXO unit and an FXS unit), and specifically comprises the following steps:
relays are respectively arranged in an FXO unit and an FXS unit of the POTS adapter module, and the relays are used as selection switches to select a voice direct-current signaling transmission path according to whether the CPE performs reverse feeding or not;
when the CPE is not back-fed:
the standard voice direct current signaling is directly transmitted through a telephone line, controls the telephone to generate ringing, reverse polarity, stop ringing or stop reverse polarity according to the voice direct current signaling, and reports and detects the events of off-hook and on-hook of the telephone;
when the CPE is back-fed:
the POTS adaptation module is used for converting voice direct current signaling into a waveform signal with a user-defined frequency for transmission, controlling a telephone to generate ringing, polarity reversal, ringing stop or polarity reversal stop according to the waveform signal with the user-defined frequency, and simulating off-hook and on-hook events to be reported to a PBX (Private Branch Exchange).
The invention realizes the realization method suitable for simulating the voice service in the backward feed state by introducing the detection and generation rule of the waveform signal of the self-defined frequency and by means of the flexibility of the detection and generation of the waveform signal of the self-defined frequency, and the control voice module chip has certain rule association with the generation mode by the detection of the waveform signal of the self-defined frequency and is realized without a complex protocol standard.
The invention is described in detail below with reference to the drawings and specific embodiments of the specification, wherein the implementation environment of the specific embodiments is a network device of an embedded Linux system.
The first embodiment.
In this embodiment, when the CPE is not back-fed:
as shown in fig. 2, the relays in the FXO unit and the FXS unit are released, the direct current path is connected, the standard voice direct current signaling is directly transmitted through the telephone line, the telephone is controlled to generate ringing, reverse polarity, stop ringing or stop reverse polarity according to the voice direct current signaling, and the off-hook and on-hook events of the telephone are reported and detected;
when the CPE is back-fed:
as shown in fig. 3, the FXO unit and the relay in the FXS unit are attracted, the dc path is disconnected, the analog voice signal (standard voice dc signaling) cannot be directly transmitted to the telephone through the telephone line, the power feeding enters the POTS adapter module, the POTS adapter module converts the voice dc signaling into the waveform signal with the user-defined frequency for transmission, and controls the telephone to generate ringing, reverse polarity, stop ringing or reverse polarity according to the waveform signal with the user-defined frequency, and the analog off-hook and on-hook events are reported to the PBX;
the relay is a 12V and 36mW low-power-consumption relay, and the working current is 3 mA.
Example two.
When the feed enters the POTS adapter module, the FXO unit and the FXS unit of the POTS adapter module enter a working state, which specifically includes:
respectively initializing an FXO unit and an FXS unit;
the FXO unit detects signals such as ringing, inverse pole and the like, converts the signals such as ringing, inverse pole and the like into a self-defined frequency waveform signal capable of avoiding the influence of backward feeding, and transmits the self-defined frequency waveform signal to the FXS unit, and the FXS unit controls ringing, inverse pole, stopping ringing or stopping inverse pole of a telephone according to the self-defined frequency waveform signal;
in the other direction, the FXS unit detects off-hook and on-hook signals of the telephone, converts the off-hook and on-hook signals into waveform signals with self-defined frequency and informs the signals to the FXO unit; and the FXO unit simulates off-hook and on-hook events according to the waveform signal of the user-defined frequency and reports the off-hook and on-hook events to the PBX.
In this embodiment, the signal generating and detecting unit is a circuit module, and can generate and detect frequency signals of 0.3K to 60K through GPIO, TIMER, and COUNTER of the single chip, and the frequency can be set through software, and the general frequency can be more than 4K.
Example three.
In this embodiment, as shown in fig. 4, initializing the FXO unit specifically includes the following steps:
step S11, after the FXO unit is powered on, important pin definition of GPIO is set;
step S12, setting a delay of 100ms to ensure that the set pin attribute definition takes effect;
s13, resetting a voice chip in the FXO unit;
step S14, delaying for 500 ms;
step S15, judging whether the acquired voice chip type meets the type matching requirement, if so, executing step S16; otherwise, go to step S17;
step S16, performing conventional register configuration on the voice chip through the SPI bus to ensure the normal work of the voice function;
step S17 ends the initialization.
The initialization of the FXS unit is similar to the initialization process of the FXO unit, and the difference is that the voice chip inside the FXS unit and the voice chip of the FXO unit are not of the same model, and there is a difference in the operation of the register when performing the chip configuration, that is, in step S16, a value matched with the register needs to be configured according to the attribute requirement of the FXS unit, so that the FXS unit can normally work.
Example four.
The following describes the generation and detection process of the self-defined frequency waveform signal of the FXO unit and the FXS unit in detail through the present embodiment.
As shown in fig. 5, in this embodiment, the process of generating the custom frequency waveform signal of the FXO unit includes the following steps:
step S41, configuring the corresponding relationship between the first register state and the telephone event signal, which respectively is:
0x04 indicates detection of a ringing signal;
0x20 indicates detection of a reverse polarity signal;
0x00 represents the recovery state.
Step S42, setting a timer, continuously reading the first register state before the timer is overtime, and judging the type of the detected telephone event signal according to the first register state value; if the read first register state is 0x04, perform step S43; if the read first register state is 0x20, execute step S44; if the read first register state is 0x00, go to step S45.
Step S43, a first custom frequency waveform signal 1 (which may be defined as 0001 square wave of 41 KHz) is generated, and then step S48 is performed.
Step S44, a second custom frequency waveform signal 2 (which may be defined as a 0010 square wave of 41 KHz) is generated, and then step S48 is performed.
Step 45, judging whether the last event signal is a ringing or a reverse polarity signal, if the last event signal is the ringing, executing step 46; otherwise, step S47 is executed.
Step S46, if the previous event was ringing, then a third custom frequency waveform signal 3 indicating vibration stop is generated, and then step S48 is performed.
Step S47, if the previous state is reverse polarity, at this time, the fourth self-defined frequency waveform signal 4 indicating that the reverse polarity is stopped is generated, and then step S48 is performed.
And step S48, sending the generated custom frequency waveform signal to the FXS unit.
As shown in fig. 6, in this embodiment, the process of detecting the custom frequency waveform signal of the FXS unit includes the following steps:
and step S51, setting a capture data input pin and capturing a waveform signal with a custom frequency.
Step S52, judging the waveform of the captured waveform signal with the self-defined frequency, if the waveform is the first waveform signal with the self-defined frequency 1, executing step S53; if the signal is the second custom-frequency waveform signal 2, executing step S54; if the signal is the third custom frequency waveform signal 3, executing step S55; if it is the fourth self-defined frequency waveform signal 4, go to step S56.
Step S53, ringing the telephone.
Step S54, the telephone is operated to reverse polarity.
Step S55, the telephone is operated to stop ringing.
And step S56, operating the telephone to stop the reverse polarity.
As shown in fig. 7, in this embodiment, the process of generating the custom frequency waveform signal of the FXS unit includes the following steps:
step S61, configuring the corresponding relationship between the second register state and the telephone event signal, which respectively is:
0x10 indicates that an off-hook signal is detected;
0x00 indicates that an on-hook signal is detected.
Step S62, setting a timer, continuously reading the state of the second register before the timer is overtime, and judging the type of the detected telephone event signal according to the state value of the second register; if the read second register state is 0x10, perform step S63; if the read second register state is 0x00, execute step S64.
Step S63, correspondingly generating the fifth custom frequency waveform signal 5, and then performing step S65.
Step S64, generating the sixth custom frequency waveform signal 6, and then executing step S65.
And step S65, sending the generated custom frequency waveform signal to the FXO unit.
As shown in fig. 8, in this embodiment, the process of detecting the custom frequency waveform signal of the FXO unit includes the following steps:
and step S71, setting a capture data input pin and capturing a waveform signal with a custom frequency.
Step S72, judging the waveform of the captured waveform signal with the self-defined frequency, if the waveform is the fifth waveform signal with the self-defined frequency 5, executing step S73; if it is the sixth custom frequency waveform signal 6, go to step S74.
And step S73, simulating and reporting an off-hook event.
And step S74, simulating the on-hook reporting event.
Example five.
In this embodiment, the waveform signal of the custom frequency is a square wave, which specifically includes:
the first custom frequency waveform signal is defined as 0001 square wave of 41 KHz;
the second self-defined frequency waveform signal is defined as 0010 square wave of 41 KHz;
the third self-defined frequency waveform signal is defined as a 0011 square wave of 41 KHz;
the fourth self-defined frequency waveform signal is defined as 0100 square wave of 41 KHz;
the waveform signal of the fifth custom frequency is defined as 0101 square wave of 41 KHz;
the sixth custom frequency waveform signal is defined as a 0110 square wave at 41 KHz.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method for realizing analog telephone service suitable for high-speed copper wire access is characterized by comprising the following steps:
relays are respectively arranged in an FXO unit and an FXS unit of the POTS adapter module, and the relays are used as selection switches to select a voice direct-current signaling transmission path according to whether the CPE performs reverse feeding or not;
when the CPE is not back-fed:
the standard voice direct current signaling is directly transmitted through a telephone line, controls the telephone to generate ringing, reverse polarity, stop ringing or stop reverse polarity according to the voice direct current signaling, and reports and detects the events of off-hook and on-hook of the telephone;
when the CPE is back-fed:
converting voice direct current signaling into a waveform signal with a user-defined frequency by using a POTS adaptation module for transmission, controlling a telephone to generate ringing, inverting, stopping ringing or inverting according to the waveform signal with the user-defined frequency, and reporting an off-hook event and an on-hook event to the PBX;
the process of generating the waveform signal with the custom frequency by the FXO unit of the POTS adaptation module comprises the following steps:
step S41, configuring the corresponding relationship between the first register state and the telephone event signal, which respectively is:
0x04 indicates detection of a ringing signal;
0x20 indicates detection of a reverse polarity signal;
0x00 denotes recovery status;
step S42, setting a timer, continuously reading the first register state before the timer is overtime, and judging the type of the detected telephone event signal according to the first register state value; if the read first register state is 0x04, perform step S43; if the read first register state is 0x20, execute step S44; if the read first register state is 0x00, execute step S45;
step S43, correspondingly generating a first self-defined frequency waveform signal, and then executing step S48;
step S44, correspondingly generating a second self-defined frequency waveform signal, and then executing step S48;
step S45, judging whether the last event signal is ringing or reverse polarity signal, if ringing, executing step S46; otherwise, go to step S47;
step S46, if the former event is ringing, at this time, generating a third custom frequency waveform signal indicating vibration stop, and then executing step S48;
step S47, if the previous state is reverse polarity, then a fourth self-defined frequency waveform signal indicating that reverse polarity is stopped is generated, and then step S48 is executed;
and step S48, sending the generated custom frequency waveform signal to the FXS unit.
2. The method of claim 1, wherein when the CPE is not back-fed:
the relays in the FXO unit and the FXS unit are released, the direct current path is communicated, standard voice direct current signaling is directly transmitted through a telephone line, the telephone is controlled to generate ringing, reverse polarity, stop ringing or reverse polarity according to the voice direct current signaling, and the telephone is reported to detect the events of off-hook and on-hook of the telephone;
when the CPE is back-fed:
the relay in FXO unit and FXS unit is closed, the direct current path is cut off, the power feed enters POTS adapter module, the POTS adapter module converts the voice direct current signaling into waveform signal with self-defined frequency for transmission, and controls the telephone to generate ringing, reverse polarity, stop ringing or reverse polarity according to the waveform signal with self-defined frequency, and simulate the events of off-hook and on-hook to report to PBX.
3. The method of claim 2, wherein when the feed enters the POTS adapter module, the FXO unit and the FXS unit of the POTS adapter module enter an operational state, comprising:
respectively initializing an FXO unit and an FXS unit;
the FXO unit detects ringing and reverse-pole signals, converts the ringing and reverse-pole signals into waveform signals with custom frequency and transmits the waveform signals to the FXS unit; the FXS unit controls ringing, inverting, stopping ringing or inverting of the telephone according to the waveform signal of the custom frequency;
in the other direction, the FXS unit detects off-hook and on-hook signals of the telephone, converts the off-hook and on-hook signals into waveform signals with self-defined frequency and informs the signals to the FXO unit; and the FXO unit simulates off-hook and on-hook events according to the waveform signal of the user-defined frequency and reports the off-hook and on-hook events to the PBX.
4. The method of claim 1, wherein the relay is a 12V, 36mW low power relay with an operating current of 3 mA.
5. The method of claim 3, wherein the initialization of the FXO unit comprises in particular the steps of:
step S11, after the FXO unit is powered on, important pin definition of GPIO is set;
step S12, setting a delay of 100ms to ensure that the set pin attribute definition takes effect;
s13, resetting a voice chip in the FXO unit;
step S14, delaying for 500 ms;
step S15, judging whether the acquired voice chip type meets the type matching requirement, if so, executing step S16; otherwise, go to step S17;
step S16, performing conventional register configuration on the voice chip through the SPI bus to ensure the normal work of the voice function;
step S17, finishing initialization;
the same principle is applied to the initialization of the FXS unit and the initialization process of the FXO unit, and the different points are that a voice chip in the FXS unit and a voice chip in the FXO unit are not of the same model, and specific values matched with register configuration are different when the chips are configured.
6. The method of claim 3, wherein the custom frequency waveform signal detection process of the FXS unit comprises the steps of:
step S51, setting a capture data input pin and capturing a waveform signal with a custom frequency;
step S52, judging the waveform of the captured waveform signal with the self-defined frequency, if the waveform is the first waveform signal with the self-defined frequency, executing step S53; if the signal is the second waveform signal with the custom frequency, executing the step S54; if the signal is the third waveform signal with the custom frequency, executing the step S55; if the signal is the fourth self-defined frequency waveform signal, go to step S56;
step S53, operating the telephone to ring;
step S54, operating the reversal of the telephone;
step S55, operating the telephone to stop ringing;
and step S56, operating the telephone to stop the reverse polarity.
7. The method of claim 3, wherein the custom frequency waveform signal generation process of the FXS unit comprises the steps of:
step S61, configuring the corresponding relationship between the second register state and the telephone event signal, which respectively is:
0x10 indicates that an off-hook signal is detected;
0x00 indicates the detection of an on-hook signal;
step S62, setting a timer, continuously reading the state of the second register before the timer is overtime, and judging the type of the detected telephone event signal according to the state value of the second register; if the read second register state is 0x10, perform step S63; if the read second register state is 0x00, execute step S64;
step S63, correspondingly generating a fifth custom frequency waveform signal, and then executing step S65;
step S64, correspondingly generating a sixth custom frequency waveform signal, and then executing step S65;
and step S65, sending the generated custom frequency waveform signal to the FXO unit.
8. The method of claim 7, wherein the custom frequency waveform signal detection process of the FXO cell comprises the steps of:
step S71, setting a capture data input pin and capturing a waveform signal with a custom frequency;
step S72, judging the waveform of the captured waveform signal with the self-defined frequency, if the waveform is the fifth waveform signal with the self-defined frequency, executing step S73; if the signal is the sixth custom frequency waveform signal, executing step S74;
step S73, simulating and reporting an off-hook event;
and step S74, simulating the on-hook reporting event.
9. The method of any one of claims 1 to 6,
the first custom frequency waveform signal is defined as a 0001 square wave of 41 KHz;
the second self-defined frequency waveform signal is defined as a 0010 square wave of 41 KHz;
the third self-defined frequency waveform signal is defined as a 0011 square wave of 41 KHz;
the fourth self-defined frequency waveform signal is defined as a 0100 square wave at 41 KHz.
10. The method according to any one of claims 7 to 8,
the fifth self-defined frequency waveform signal is defined as 0101 square wave of 41 KHz;
the sixth custom frequency waveform signal is defined as a 0110 square wave at 41 KHz.
CN201810200741.2A 2018-03-12 2018-03-12 Method for realizing analog telephone service suitable for high-speed copper wire access Active CN108513023B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810200741.2A CN108513023B (en) 2018-03-12 2018-03-12 Method for realizing analog telephone service suitable for high-speed copper wire access

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810200741.2A CN108513023B (en) 2018-03-12 2018-03-12 Method for realizing analog telephone service suitable for high-speed copper wire access

Publications (2)

Publication Number Publication Date
CN108513023A CN108513023A (en) 2018-09-07
CN108513023B true CN108513023B (en) 2020-05-05

Family

ID=63376429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810200741.2A Active CN108513023B (en) 2018-03-12 2018-03-12 Method for realizing analog telephone service suitable for high-speed copper wire access

Country Status (1)

Country Link
CN (1) CN108513023B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027822A (en) * 2016-05-12 2016-10-12 烽火通信科技股份有限公司 System and method for allowing data, reverse power feed and voice to coexist in pair of telephone wires
CN107105110A (en) * 2017-05-03 2017-08-29 烽火通信科技股份有限公司 A kind of calling-control method based on PSTN
CN107646184A (en) * 2015-05-26 2018-01-30 阿尔卡特朗讯 New broadband communication services are provided using reverse feeding

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7339924B1 (en) * 1998-09-30 2008-03-04 Cisco Technology, Inc. Method and apparatus for providing ringing timeout disconnect supervision in remote telephone extensions using voice over packet-data-network systems (VOPS)
TWI539773B (en) * 2014-03-25 2016-06-21 鴻海精密工業股份有限公司 Relay switching circuit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107646184A (en) * 2015-05-26 2018-01-30 阿尔卡特朗讯 New broadband communication services are provided using reverse feeding
CN106027822A (en) * 2016-05-12 2016-10-12 烽火通信科技股份有限公司 System and method for allowing data, reverse power feed and voice to coexist in pair of telephone wires
CN107105110A (en) * 2017-05-03 2017-08-29 烽火通信科技股份有限公司 A kind of calling-control method based on PSTN

Also Published As

Publication number Publication date
CN108513023A (en) 2018-09-07

Similar Documents

Publication Publication Date Title
EP2362626A1 (en) Telephone equipment powering a network node
EP3091723B1 (en) Service isolation processing method, device, system, dpu and network adapter
CN102075331B (en) Ethernet power supply end equipment as well as system and method thereof for realizing power supply
CN108513023B (en) Method for realizing analog telephone service suitable for high-speed copper wire access
US4488002A (en) Line control of switched network data sets
CN102510415B (en) Magnet telephone converter
KR101298409B1 (en) Call interceptor
CN104767894B (en) Network architecture, local side equipment and user side equipment thereof
CN101222554B (en) Data transmission method and port conversion equipment
CN106027822B (en) Data, reverse feeding and voice coexist in the system and method for a pair of telephone lines
CN101645982B (en) Method and service veneer for voice terminal simulation test
CN101969516A (en) Communication apparatus and control method thereof
CN201682546U (en) Conversation adapter
CN102742109B (en) Remote supply system and remote power supply
KR900000722B1 (en) Calling signal transmitting system
CN107872054B (en) System and device for preventing error connection of power over Ethernet and power over cable
CN110099177B (en) Voice detection and processing circuit of telephone
CN201063686Y (en) Program controlled exchange subscriber line signal detector
CN103647888B (en) A kind of magnetite phone communication means based on Asterisk and device
CN201854342U (en) Remote control device based on telephone ringing signals
CN208956112U (en) Intelligent telephone
CN102045464B (en) Method and device for realizing called relay in telecommunication access network
RU2292125C2 (en) System for adaptation of regular phone line for usage as local network for transferring data and voice
CN2759073Y (en) Switching circuit apparatus connected with external and internal wire mode
CN101072273B (en) Voiceless operatable telecommunication system and its correlating method

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