Auto-swap call box device and method for automatically swapping line connection
An auto-swap call box device for VoIP telephony and a method of automatically swapping line connection, in which the control module of the call box controls a subscriber line interface circuit module, a line interface module, and a switch module to sequentially detect the electrical signal of a first phone line socket and the electrical signal of a second phone line socket, so as to set a first sense logic value and a second sense logic value, based on which by the control module the line connections to the first and the second phone line socket are routed.
Latest F3 Incorporation Patents:
1. Field of the Invention
The present invention relates to VoIP telephony. More particularly, the present invention relates to an auto-swap call box device for VoIP telephony and method for automatically swapping line connection.
2. Description of Related Art
As technology advances, traditional telephones have gradually been replaced by VoIP (Voice over Internet Protocol) phones. A typical VoIP phone operates by connecting to a computer, and requires the use of a microphone and speakers electrically connected to the computer for conversation.
Traditionally, VoIP phones require a microphone to pick up and transmit sound, and a set of speakers to broadcast the audio remotely received, causing great inconvenience to users accustomed to the traditional phone operation. Thus, this issue has been addressed by the emergence of VoIP phones on the market with the shape of mobile phones and built-in microphone and speakers. However, these types of Internet phone must be purchased at an extra cost, thus giving rise to economic burden; do not put existing traditional phones to effective use; and take up additional space.
Therefore, VoIP call boxes have been provided on the market to allow traditional phones to be connected to computers, thus making effective use of existing traditional phones to place calls and transmit voice over Internet.
The traditional phone 11 is electrically connected to phone line socket 133 through phone line 151. PSTN 12 is electrically connected to phone line socket 134 through phone line 152. Call box 13 is electrically connected to the computer device 14 via USB (Universal Serial Bus) interface. The computer device 14 can further connect to the Internet to establish VoIP calls with a remote user.
Generally speaking, the telephone company is configured with a SLIC module on one of its ends that generates voltage levels to the traditional telephone, and the traditional telephone is configured with a DAA module to correspond with the SLIC module of the telephone company, such that the user on the Internet can emulate telephone calls using the DAA module, and receive VoIP calls via the SLIC module.
In order for traditional phone 11 to receive VoIP calls made by a remote user on the Internet, the call box 13 needs to be implemented with the SLIC module 131. Also, to correspond with the SLIC module on the end of the telephone company, the call box 13 needs to be implemented with the DAA module 132.
The SLIC module 131 is electrically connected to phone line socket 133, for establishing electrical connection between phone line socket 133 and traditional telephone 11 via telephone line 151. DAA module 132 is electrically connected to phone line socket 134, for establishing electrical connection between phone line socket 134 and PSTN 12 via phone line 152.
However, both the phone lines 151 and 152 for respectively connecting to traditional telephone 11 and PSTN 12 have standard RJ-11 jacks. Consequently, a user is likely to be mistaken while plugging in the jacks of phone lines 151 and 152 to the respective phone line sockets 133 and 134. For instance, the user can erroneously plug the jack of phone line 151 to which connected traditional phone 11 into phone line socket 134, and the jack of phone line 152 to which connected PSTN 12 into phone line socket 133.
Since phone line socket 133 is electrically connected to SLIC module 131, the traditional telephone 11 must be plugged to the designated phone line socket 133 via phone line 151. Similarly, since phone line socket 134 is electrically connected to DAA module 131, PSTN 12 must be connected to the designated phone line socket 134 via phone line 152. Any wrongful connection may lead to the malfunctioning of traditional phone 11, or even the damaging of the internal workings of call box 13.
Therefore, it is desirable to provide a method for automatically swapping line connection to prevent damages to the VoIP call box caused by wrongly connection.
SUMMARY OF THE INVENTIONAn object of the present invention is to provide an auto-swap call box device for VoIP telephony and method for automatically swapping line connection, for preventing the malfunctioning of a traditional phone due to the erroneous connection of phone lines.
Another object of the present invention is to provide an auto-swap call box device for VoIP telephony and method for automatically swapping line connection, for preventing the damaging to the internal workings of the VoIP call box due to the erroneous connection of phone lines.
According to one aspect, the present invention which achieves these objects relates to a method for automatically swapping line connection, applied to a device electrically connected to a traditional phone and a PSTN (Public Switched Telephone Network) respectively. The device includes a first phone line socket and a second phone line socket. The method begins by first connecting a first phone line to which connected the traditional phone to the first phone line socket, and connecting a second phone line to which connected the PSTN to the second phone line socket. Then, a step is performed to detect the electrical signals at the first phone line socket, for obtaining a first determined result and setting a first sense logic value based thereon. A step is subsequently performed to detect the electrical signals at the second phone line socket, for obtaining a second determined result and setting a second sense logic value based thereon. Finally, the connection to the first phone line socket and the second phone line socket is routed based on the first sense logic value and the second sense logic value.
According to another aspect, the present invention which achieves these objects relates to an auto-swap call box device for VoIP telephony, which is electrically connected to a traditional phone and a PSTN. The VoIP call box includes a first phone line socket, a second phone line socket, a switch module, a line interface module, a subscriber line interface circuit module, and a control module. The switch module is electrically connected to the first phone line socket and the second phone line socket respectively. The line interface module is electrically connected to the switch module. The subscriber line interface circuit module is electrically connected to the switch module. The control module is electrically connected respectively to the switch module, the line interface module, and the subscriber line interface circuit module. When the first phone line socket and the second phone line socket are electrically connected (randomly) to a first phone line to which connected the traditional phone and to a second phone line to which connected the PSTN, the control module controls the subscriber line interface circuit module, the line interface module, and the switch module to sequentially detect the electrical signals at the first and second phone line socket, so as to set a first sense logic value and a second sense logic value. The control module then accurately routes the line connection to the first and the second phone line socket based on the first and second sense logic value. The call box is thus able to operate normally through this method of automatically swapping line connection.
Other objects, advantages, and novel features of the invention will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings.
Under normal operation, traditional phone 21 is electrically connected to the call box 23 via plugging phone line 251 with an RJ-11 jack into the first phone line socket 231. Similarly, under normal operations, PSTN 22 is electrically connected to call box 23 by plugging phone line 252 with an RJ-11 jack into the second phone line socket 232. In this embodiment, call box 23 is further electrically connected to computer device 24 via a USB connection 253. Still, in other embodiments, call box 23 can be electrically connected to computer device 24 via other interfaces such as IEEE 1394. Of course, computer device 24 in this embodiment is further connected to the Internet allowing the placement of VoIP calls by traditional phone 21 through call box 23 and computer device 24.
The first phone line socket 231 and second phone line socket 232 are electrically connected to switch module 233. Switch module 233 is further electrically connected to SLIC module 234 and LI module 235, respectively. Control module 236 is electrically connected to SLIC module 234, LI module 235, switch module 233, and monitor module 237 respectively, such that control module 236 controls the switch module 233 to route the line connection to first phone line socket 231 and second phone line socket 232. Thus, under normal circumstances, phone line 251 to which connected traditional phone 21 can be electrically connected with phone line 252, to which connected PSTN 22.
Below shows detailed illustration of how auto line connection routing is achieved according to a preferred embodiment of the invention.
In the embodiment of the invention, SLIC module 234 is to detect the voltage at first phone line socket 231 via the line voltage-sensing unit (not shown) within SLIC module 234, and determine whether the detected voltage is greater than a predetermined voltage value. The predetermined voltage value is preferably 18 volts, or may be of a different value depending on the internal circuit design of call box 23.
If the voltage at first phone line socket 231 is less than the predetermined voltage value, then the first sense logic value (RJ11A_LVS_VALID) is set to “0” (step S320). Given the nature that traditional phone 21 does not provide voltage and the SLIC module on one end of PSTN 22 provides 48V of voltage, the first sense logic value is set to “0”—when the detected voltage at first phone line socket 231 is less than the predetermined voltage value (e.g. 18V)—so as to equivalently represent that the connection is currently established between first phone line socket 231 and phone line 251 of traditional phone 21.
If the voltage at phone line socket 231 is greater than the predetermined voltage value, then the first sense logic value (RJ11A_LVS_VALID) is set to “1” (step S325), for representing that the connection is currently established between first phone line socket 231 and phone line 252 to which connected PSTN 22.
In addition to determining the voltage at first phone line socket 231, SLIC module 234 further determines the polarity of the voltage at first phone line socket 231, and sets a voltage polarity value based on the determined voltage polarity.
Then, control module 236 controls switch module 233 such that first phone line socket 231 and LI module 235 are electrically connected to each other, and second phone line socket 232 and SLIC module 234 are electrically connected to each other. Thus, SLC module 234 can then detect the electrical signals at the second phone line socket 232, and compare the detected electrical signal with the predetermined electrical signal value (step S330), for obtaining a second determined result, and set a second sense logic value based on the second determined result. In the embodiment of the invention, SLIC module 234 is to detect the voltage at second phone line socket 232, and determine whether the detected voltage is greater than the predetermined voltage value (e.g. 18V) (step S330).
If the voltage at second phone line socket 232 is less than the predetermined voltage value, then the second sense logic value (RJ11B_LVS_VALID) is set to “0” (step S335), for representing the connection established between second phone line socket 232 and phone line 251 to which connected traditional phone 21.
If the voltage at second phone line socket 232 is greater than the predetermined voltage value, then the second sense logic value (RJ11B_LVS_VALID) is set to “1” (step S340), for representing the connection established between second phone line socket 232 and phone line 252 to which connected PSTN 22.
At this time, SLIC module 234 also determines the polarity of the voltage at second phone line socket 232, and sets a voltage polarity value based on the determined voltage polarity.
After the SLIC module 234 determines the voltage at first phone line socket 231 and second phone line socket 232, control module 236 then can controls switch module 233 based on the first sense logic value and the second sense logic value, such that first phone line socket 231 and second phone line socket 232 can be routed to the correct line connections. That is, regardless of whether being plugged into first phone line socket 231 or second phone line socket 232, the phone line 251 connected with traditional phone 21 can be made to electrically connect with SLIC module 234 via the routing of switch module 233. Similarly, regardless of whether being plugged into first phone line socket 231 or second phone line socket 232, phone line 252 connected with PSTN 22 can also be made to electrically connect with LI module 235 via the routing of switch module 233 (step S345). After completing the initial electrical connection between the modules within call box 23 and the phone line sockets 231 and 232, the user can then readily place VoIP calls via traditional phone 21. Also, after the correct line connection has been established, under the normal circumstance (under power standby mode), regardless of whether being connected to first phone line socket 231 or second phone line socket 232, phone line 251 can be electrically connected to phone line 252 to which connected PSTN 22, such that the user can readily use traditional phone 22 to place regular calls to the PSTN 22. During this operation, the phone line 252 of PSTN 22 is also electrically connected to LI module 235. Of course, control module 236 can also configure the phone line 251 such that regardless of whether being connected to first phone line socket 231 or second phone line socket 232, phone line 251 can be electrically connected to SLIC module, such that the user can readily place VoIP calls using the traditional phone 21. During this operation, the phone line 252 of PSTN 22 is also electrically connected to LI module 235.
Further in details, when the first sense logic value is set to “1” and the second sense logic value to “0”, first phone line socket 231 is electrically connected to phone line 252 to which connected PSTN 22, and second phone line socket 232 is electrically connected to phone line 251 to which connected traditional phone 21. Based on the first sense logic value and the second sense logic value, control module 236 is able to obtain knowledge of the line connection of the first phone line socket 231 and second phone line socket 232. Control module 236 then controls switch module 233 to route the line connections, such that first phone line socket 231 is electrically connected with LI module 235, and second phone line socket 232 is electrically connected with first phone line socket 231. Thus, under normal circumstances, a regular call can then readily be made by traditional phone 21 to PSTN 22. Similarly, control module 236 can also control switch module 233 to route line connections, such that first phone line socket 231 is electrically connected with LI module 235 and second phone line socket 232 is electrically connected with SLIC module. Thus, under normal circumstances, a VoIP call can then readily be made by traditional phone 21 under the correct line connections.
Similarly, when the first sense logic value is set to “0” and the second sense logic value to “1”, first phone line socket 231 is electrically connected to phone line 251 to which connected traditional phone 21, and second phone line socket 232 is electrically connected to phone line 252 to which connected PSTN 22. Based on the first sense logic value and the second sense logic value, control module 236 is able to obtain knowledge of the line connection of the first phone line socket 231 and second phone line socket 232. Control module 236 then controls switch module 233 to route the line connections, such that first phone line socket 231 is electrically connected with second phone line socket 232 and second phone line socket 232 is electrically connected with LI module 235, or such that the first phone line socket 231 is electrically connected with SLIC module 234 and second phone line socket 232 is electrically connected with LI module 235, thus completing the correct auto line connection routing.
Of course, if the first and second sense logic values do not satisfy the above-mentioned conditions, then only partial functions of call box 23 are provided based on the two sense logic values, or the functions of call box 23 are terminated and the call box 23 is rebooted.
In more details, when the first sense logic value is set to “0” and the second sense logic value as “0”, either one of first phone line socket 231 and second phone line socket 232 is connected with phone line 251 of traditional phone 21, and the other remaining phone line socket is left unplugged. After the control module 236 obtains knowledge of the respective line connections of first phone line socket 231 and second phone line socket 232, SLIC module 234 can make traditional phone 21 ring so as to determine the phone line socket electrically connected thereto. Control module 236 then controls switch module 233 to execute phone line connection routing such that SLIC module 234 is electrically connected to the phone line socket connected with traditional phone 21, and such that call box 23 and its VoIP application software can only place or receive VoIP calls, and no PSTN calls. Preferably, VoIP application software is installed in computer device 24. For instance, when first phone line socket 231 is connected to phone line 251 of traditional phone 21 and second phone line socket 232 is left unplugged, then traditional phone 21 is configured so as to only place and receive VoIP calls via call box 23 and computer device 24.
Similarly, when the first sense logic value is set to “1” and the second sense logic value is set to “1”, first phone line socket 231 and second phone line socket 232 are both connected to phone line 252 of PSTN 22. After control module 236 obtains knowledge of the respective connections of first phone line socket 231 and second phone line socket 232, the VoIP application software responsively terminates all functions of call box 23 and causes it to reboot while also informing the user of operational error. For instance, VoIP application software informs the user that the phone line sockets must be respectively connected to traditional phone 21 and PSTN 22 in order to ensure complete and accurate operation of call box 23.
In addition, monitor module 237 of call box 23 is electrically connected with control module 236 such that monitor module 237 periodically informs the control module 236 to control the switch module 233 to route the line connections when call box 23 is not engaged in a call. Then, one of SLIC module 234, LI module 235, and software installed on computer device 24 is used to determine whether the respective status of the electrical signals at the phone line sockets 231 and 232 has changed. The first and second sense logic value are then again set, and based on the first and second sense logic values control module 236 controls switch module 233 to route the line connections to first and second phone line sockets 231 and 232. Whence, the call box 23 can operate normally in the way it is designed. In more details, after completing the initial electrical connection of the phone line sockets 231 and 232 with the modules within call box 23, the monitor module 237 periodically, such a in an interval of two seconds, and when call box 23 is not engaged in a call, triggers the control module 236 to detect whether the respective status at phone line sockets 231 and 232 has changed (step S350, S355), such as being changed from connected to disconnected, or from disconnected to connected etc. When the status has indeed changed, control module 236 is triggered to control the switch module 233 to execute the correct line connection routing, such as in accordance with the process shown in
As know from above, the invention utilizes SLIC module and LI module to sequentially detect the electrical signals (voltage, current, or frequency composition) at the first phone line socket and the electrical signals (voltage, current, or frequency composition) at the second phone line socket, so as to determine whether the voltage at the first phone line socket and the voltage at the second phone line socket are greater than the predetermined voltage value, or whether a current or dial tone is present. Thereafter, a first sense logic value and a second sense logic value are set. The line connection of the first and second phone line socket can thus be determined based on the first and second sense logic values, thus successfully providing: auto line connection routing, partial functions of the call box, or terminating of all functions and rebooting of the call box.
Although the present invention has been explained in relation to its preferred embodiment, it is to be understood that many other possible modifications and variations can be made without departing from the spirit and scope of the invention as hereinafter claimed.
Claims
1. A method of automatically swapping line connection, applied to a device electrically connected to a traditional phone and a PSTN (Public Switched Telephone Network) respectively, the device comprising a first phone line socket and a second phone line socket, the method comprising the steps of:
- (A) plugging a first phone line to which connected the traditional phone into the first phone line socket, and plugging a second phone line to which connected the PSTN into the second phone line socket;
- (B) detecting electrical signals at the first phone line socket, for obtaining a first determined result and setting a first sense logic value based thereon;
- (C) detecting electrical signals at the second phone line socket, for obtaining a second determined result and setting a second sense logic value based thereon; and
- (D) swapping the line connection to the first phone line socket and the second phone line socket based on the first sense logic value and the second sense logic value.
2. The method as claimed in claim 1, wherein the first determined result in step (B) is obtained by detecting whether the voltage at the first phone line socket is greater than a predetermined voltage value; the second determined result in step (C) is obtained by detecting whether the voltage at the second phone line socket is greater than the predetermined voltage value.
3. The method as claimed in claim 2, wherein step (B) further comprises setting the first sense logic value to a first predetermined value if the voltage at the first phone line socket is greater than the predetermined voltage value, for representing the connection established between the first phone line socket and the second phone line to which connected the PSTN.
4. The method as claimed in claim 2, wherein step (B) further comprises setting the first sense logic value to a second predetermined value if the voltage at the first phone line socket is less than the predetermined voltage value, for representing the connection established between the first phone line socket and the first phone line to which connected the traditional phone.
5. The method as claimed in claim 2 further comprising setting the second sense logic value to a first predetermined value if the voltage at the second phone line socket is greater than the predetermined voltage value in step (C), for representing the connection established between the second phone line socket and the second phone line to which connected the PSTN.
6. The method as claimed in claim 2 further comprising setting the second sense logic value to a second predetermined value if the voltage at the second phone line socket is less than the predetermined voltage value in step (C), for representing the connection established between the second phone line socket and the first phone line to which connected the traditional phone.
7. The method as claimed in claim 2, wherein step (B) further comprises determining the polarity of the voltage at the first phone line socket, and setting a first voltage polarity value.
8. The method as claimed in claim 2, wherein step (C) further comprises determining the polarity of the voltage at the second phone line socket, and setting a second voltage polarity value.
9. The method as claimed in claim 2, wherein the predetermined voltage value is 18 volts.
10. The method as claimed in claim 2 further comprising:
- (E) periodically detecting whether the status at the first and the second phone line socket has changed, and if yes, re-performing step (B) to route the first and the second phone line to the correct line connection.
11. The method as claimed in claim 1, wherein the first determined result is obtained in step (B) by detecting whether current exists at the first phone line socket; the second determined result is obtained in step (C) by detecting whether current exists at the second phone line socket.
12. The method as claimed in claim 1, wherein the first determined result is obtained in step (B) by detecting whether dial tones exist at the first phone line socket; the second determined result is obtained in step (C) by detecting whether dial tones exist at the second phone line socket.
13. An auto-swap call box device for VoIP telephony, electrically connected to a traditional phone and a PSTN respectively, the call box device comprising:
- a first phone line socket;
- a second phone line socket;
- a switch module, electrically connected to the first phone line socket and the second phone line socket respectively;
- a line interface module, electrically connected to the switch module;
- a subscriber line interface circuit module, electrically connected to the switch module; and
- a control module, electrically connected to the switch module, the line interface module, and the subscriber line interface circuit module respectively,
- wherein the control module controls the subscriber line interface circuit module, the line interface module, and the switch module to sequentially detect the electrical signal at the first phone line socket and the electrical signal at the second phone line socket when the first phone line socket and the second phone line socket are electrically connected to a first phone line to which connected the traditional phone and to a second phone line to which connected the PSTN, so as to set a first sense logic value and a second sense logic value, based on which by the control module the line connections to the first and the second phone line socket are routed.
14. The auto-swap call box device as claimed in claim 13, wherein the control module controls the subscriber line interface circuit module to sequentially determine whether the voltage at the first phone line socket and the voltage at the second phone line socket are greater than a predetermined voltage value, so as to set the first sense logic value and the second sense logic value respectively.
15. The auto-swap call box device as claimed in claim 14, wherein the control module controls the switch module to electrically connect the first phone line socket with the subscriber line interface circuit module, such that the subscriber line interface circuit module is used to determine whether the voltage at the first phone line socket is greater than the predetermined voltage value, for obtaining a first determined result and setting the first sense logic value based on the first determined result.
16. The auto-swap call box device as claimed in claim 15, wherein the first sense logic value is set to a first predetermined value if the voltage at the first phone line socket is greater than the predetermined voltage value, for representing the connection established between the first phone line socket and the second phone line to which connected the PSTN.
17. The auto-swap call box device as claimed in claim 15, wherein the first sense logic value is set to a second predetermined value if the voltage at the first phone line socket is less than the predetermined voltage value, for representing the connection established between the first phone line socket and the first phone line to which connected the traditional phone.
18. The auto-swap call box device as claimed in claim 14, wherein the control module controls the switch module to electrically connect the second phone line socket with the subscriber line interface circuit module, such that the subscriber line interface circuit module is used to determine whether the voltage at the second phone line socket is greater than the predetermined voltage value, for obtaining a second determined result and setting the second sense logic value based on the second determined result.
19. The auto-swap call box device as claimed in claim 18, wherein the second sense logic value is set to a first predetermined value if the voltage at the second phone line socket is greater than the predetermined voltage value, for representing the connection established between the second phone line socket and the second phone line to which connected the PSTN.
20. The auto-swap call box device as claimed in claim 18, wherein the second sense logic value is set to a second predetermined value if the voltage at the second phone line socket is less than the predetermined voltage value, for representing the connection established between the second phone line socket and the first phone line to which connected the traditional phone.
21. The auto-swap call box device as claimed in claim 14, wherein under the correct line connection, the line interface module is electrically connected to the second phone line socket, and the second phone line socket is electrically connected to the second phone line to which connected the PSTN.
22. The auto-swap call box device as claimed in claim 14 further comprising:
- a monitor module, electrically connected to the control module, for triggering the control module to periodically detect whether the status at the first and the second phone line socket has changed when the call box is not engaged in a call, and triggering the control module to control the switch module to route the first and second phone line socket to the correct line connection when the status has indeed changed.
23. The auto-swap call box device as claimed in claim 22, wherein the monitor module triggers the control module to detect via the subscriber line interface circuit module whether the voltages at the first and the second phone line socket have changed, or via the LI module whether dial tones or current exists at the first and the second phone line socket.
24. The auto-swap call box device as claimed in claim 14 further comprising:
- a monitor module, coupled to the first phone line socket and the second phone line socket, for detecting in real time whether the status at the first and the second phone line sockets has changed when the call box is not engaged in a call, and controlling the switch module to route the first and second phone line socket to correct line connections when the status has indeed changed.
25. The auto-swap call box device as claimed in claim 13, wherein the control module controls the line interface module to sequentially determine whether current exists at the first phone line socket and the second phone line socket, so as to set the first sense logic value and the second sense logic value.
26. The auto-swap call box device as claimed in claim 13, wherein the control module controls the line interface module to sequentially determine whether dial tones exist at the first phone line socket and the second phone line socket, so as to set the first sense logic value and the second sense logic value.
Type: Application
Filed: Aug 10, 2006
Publication Date: Nov 15, 2007
Applicant: F3 Incorporation (Hsinchu)
Inventors: Wi-Sheng Ou Yang (Taipei City), Yin-Kun Huang (Jhubei City), Kuan-Hsi Chen (Hsinchu City)
Application Number: 11/501,711
International Classification: H04M 1/00 (20060101); H04M 9/00 (20060101);