1. Technical Field
The present disclosure relates to a communication device capable of automatically connecting a phone to different communication networks.
2. Description of Related Art
Integrated access devices (IADs) are popularly used for connecting a phone to different communication networks. The IADs include a voice over Internet Protocol (VoIP) interface and a public switch telephone network (PSTN) interface. A phone cable of the phone is manually connected with the VoIP interface for VoIP communication requirements, and is manually connected with the PSTN interface for PSTN communication requirements. The requirements for such manual connections are inconvenient.
The PSTN interface 10 is configured to communicate with the PSTN 200 and is electronically connected with the relay 40. The VoIP interface 20 is configured to communicate with the VoIP network 300 and is electronically connected with the relay 40. The ring signal detector 30 is configured to detect a PSTN ring signal from the PSTN 200, and is electronically connected with the PSTN interface 10 and the control unit 50. The relay 40 is electronically connected with the control unit 50.
The protection circuit 34 includes a varistor 342, a first resistor R1, a second resistor R2, and a capacitor 348. The varistor 342 is electronically connected with the output terminal 324 and the ground terminal 326 of the bridge rectifier 32. When the ring signal detector 30 receives a surge voltage, the varistor 342 may generate a short circuit to protect the ring signal detector 30. The first resistor R1 and the second resistor R2 are used to provide current limiting for the PSTN ring signal. The first resistor R1 is electronically connected in series with the second resistor R2, and is electronically connected with the varistor 342 and the output terminal 324.
The capacitor 348 is used for filtering. One terminal of the capacitor 348 is electronically connected between the first resistor R1 and the second resistor R2, and other terminal of the capacitor 348 is connected to ground. The Zener diode ZD and the capacitor 348 are electronically connected in parallel. A negative terminal of the Zener diode ZD is electronically connected with the second resistor R2, and a positive terminal of the Zener diode ZD is connected to ground. When the voltage of the PSTN ring signal exceeds a breakdown voltage of the Zener diode ZD, the Zener diode ZD is in a reverse breakdown state. As a result, voltages of two terminals of the Zener diode ZD remain constant to stabilize the voltage of the PSTN ring signal.
The trigger circuit includes a bias resistor R, a field-effect transistor (FET) Q, a power supply P, a third resistor R3, and a fourth resistor R4. The bias resistor R is electronically connected in parallel with the Zener diode ZD, and provides the FET Q with a bias voltage. The FET Q includes a gate terminal G, a source terminal S, and a drain terminal D. The gate terminal G, the bias resistor R, and the negative terminal of the Zener diode ZD are electronically connected together. The source terminal S is connected to ground. The drain terminal D is individually electronically connected with the power supply P and the control unit 50 through the third resistor R3 and the fourth resistor R4.
The voltage of the power supply P can be 3.3V, for example. The fourth resistor R4 is configured to prevent the control unit 50 from being damaged by large currents. When the PSTN ring signal flows through the Zener diode ZD, the Zener diode ZD is in a reverse breakdown state and the voltage of the Zener diode ZD remains substantially constant. As a result, the voltage of the gate terminal G exceeds the voltage of the source terminal S, and the FET Q is turned on. After the FET Q is turned on, the current flows from the drain terminal D to the source terminal S, and therefore the voltage of the drain terminal D decreases. The voltage of the drain terminal D during the FET Q is turned on is a low electric potential signal relative to that during the FET Q is turned off. The FET Q is turned off when no PSTN ring signal is received. The voltage of the drain terminal D during the FET Q is turned off is a high electric potential signal relative to that during the FET Q is turned on.
The relay 40 includes connection terminals A1-A6. The connection terminals A1 and A2 are electronically connected with the phone 400 through a voice interface (not shown). The connection terminals A3 and A4 are electronically connected with the PSTN interface 10. The connection terminals A5 and A6 are electronically connected with the VoIP interface 20.
The control unit 50 may be a central processing unit (CPU) of the communication device 100, and is electronically connected with the relay 40. The control unit 50 may detect the voltage of the drain terminal D and control the relay 40 based on the voltage of the drain terminal D. When detecting the low electric potential signal outputted from the drain terminal D, the control unit 50 connects the connection terminals A1 and A2 with the connection terminals A3 and A4. The phone 400 may be connected to the PSTN 200. When detecting the high electric potential signal outputted from the drain terminal D, the control unit 50 connects the connection terminals A1 and A2 with the connection terminals A5 and A6. The phone 400 may be connected to the VoIP network 300.
In block S1, the ring signal detector 30 determines whether the PSTN ring signal is received. If no PSTN ring signal is received, in block S2, the control unit 50 control the relay 40 to connect the phone 400 to the VoIP network 300.
If the PSTN ring signal is received, in block S3, the ring signal detector 30 triggers the low electric potential signal and transmits the low electric potential signal to the control unit 50.
In block S4, the control unit 50 controls the relay 40 to connect the phone 400 to the PSTN 200.
In block S5, the ring signal detector 30 triggers the high electric potential signal and transmits the high electric potential signal to the control unit 50 when the PSTN ring signal ends.
In block S6, the control unit 50 control the relay 40 to connect the phone 400 to the VoIP network 300, and block S1 is repeated.
The present disclosure provides a communication device to automatically connect a phone to a PSTN or a VoIP network for different requirements. Manual switching between the PSTN and the VoIP network for the phone may be avoided.
Although certain inventive embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201010242098.3 | Jul 2010 | CN | national |