The ITG 10 includes a foreign exchange service (FXS) port 120, a foreign exchange office (FXO) port 122, a subscriber line interface controller (SLIC) 140, and a control system 160.
The FXS port 120 and the FXO port 122 are respectively connectable to an Internet telephony service and a central office (CO) via different wires or cables.
The SLIC 140 detects connection status of the FXS port 120. In this embodiment, the SLIC 140 is an integrated circuit (IC) for setting tip voltage and ring voltage thereof and determining connection status of the FXS port 120 by detecting a tip current and a ring current received by the SLIC 140.
The SLIC 140 includes three states, a forward active state, a reverse active state, and an open state. The forward active state indicates that the tip voltage of the SLIC 140 is greater than the ring voltage thereof. The reverse active state indicates that the tip voltage of the SLIC 140 is less than the ring voltage thereof. The open state indicates that the tip voltage of the SLIC 140 is substantially equal to the ring voltage thereof.
The SLIC 140 has an over-current protection function. When a difference between the ring current and the tip current is greater than a threshold current value, the SLIC 140 enters the open state.
The control system 160 includes an initiation control module 162, an information reading module 164, a state setting module 166, and an information generating module 168.
The initiation control module 162 initializes the SLIC 140. After initialization, the SLIC 140 operates in a forward active state. In this state, a threshold current value and a minimum current value of the tip and the ring of the SLIC 140 are successfully set, and an over-current protection function of the SLIC 140 is enabled.
The information reading module 164 reads information from the SLIC 140, to determine the connection status of the FXS port 120, and determine whether the SLIC 140 is in the open state.
The state setting module 166 sets states of the SLIC 140 by setting the tip voltage and the ring voltage thereof.
The information generating module 168 generates an error alarm when a connection error occurs. In this embodiment, the information generating module 168 includes a light emitting diode or a speaker respectively generating visible light or audible sound for notifying the subscriber.
In step S200, the initiation control module 162 initializes the SLIC 140. In detail, the initiation control module 162 enables the SLIC 140 to operate in the forward active state, sets a threshold current value and a minimum current value of the tip and the ring of the SLIC 140, and enables the over-current protection function of the SLIC 140.
In step S202, the information reading module 164 reads information from the SLIC 140.
In this exemplary embodiment, the information reading module 164 reads the tip current and the ring current of the SLIC 140 from a register of the SLIC 140.
In step S204, the information reading module 164 determines the connection status of the FXS port 120 according to the information. If the FXS port 120 is connected, the process proceeds to step S206. If the FXS port 120 is not connected, the process returns to step S202.
In this exemplary embodiment, the information reading module 164 determines the connection status of the FXS port 120 by determining whether the difference between the tip current and the ring current of the SLIC 140 is greater than the minimum current value thereof.
In step S206, the state setting module 166 enables the SLIC 140 to operate in the reverse active state, in which, the tip voltage of the SLIC 140 is less than the ring voltage thereof.
In step S208, the information reading module 164 reads information from the SLIC 140 again.
In step S210, the information reading module 164 determines whether the SLIC 140 is in the open state. If the SLIC 140 is in the open state, the process proceeds to step S212. If the SLIC 140 is not in the open state, the process proceeds to step S214.
In this exemplary embodiment, the information reading module 164 determines whether the SLIC 140 is in the open state by determining whether the tip voltage of the SLIC 140 is substantially equal to a ring voltage thereof.
In step S212, if the SLIC 140 is in the open state, the information generating module 168 generates an error alarm, to indicate that a connection error has occurred in the FXS port 120.
In this exemplary embodiment, the information generating module 168 generates the error alarm by turning on the light emitting diode for notifying the subscriber.
In step S214, the state setting module 166 enables the SLIC 140 to operate in the forward active state, the process then returns to step S202.
The ITG 10 and method for detecting connection errors thereof detect whether a connection error occurs in the FXS port 120 of the ITG 10 via the SLIC 140 and the control system 160, thereby, the connection error can be discovered immediately without causing connection error and damaging the ITG 10.
While embodiments and methods of the present invention have been described above, it should be understood that they have been presented by way of example only and not by way of limitation. Thus the breadth and scope of the present invention should not be limited by the above-described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents.
| Number | Date | Country | Kind |
|---|---|---|---|
| 095117951 | May 2006 | TW | national |