Method and apparatus for electronic payphone open switch interval management

Abstract: Control apparatus for a line operated telephone is described. This control circuitry is designed to be primarily telephone line powered and to not employ a large capacitor for storing power to sustain the circuitry during open switch intervals in which the telephone line is not powered. Rather, the present circuitry includes a telephone line monitoring circuit for sensing a power down condition, a processing means such as a microprocessor with an associated power down program for storing process status at a time just prior to power down and for resetting the processing at the appropriate place upon power up, and low power state monitoring latches for monitoring important events, such as an on hook condition, coin collection and refund operations occurring during an open switch interval. In combination, a low power operation is achieved primarily utilizing a regularly interrupted source, the phone lines, and requiring only a small battery to power the low power monitoring state monitoring latches.

Description: Field Of The Invention This invention relates to control apparatus for line operated telephones. More particularly, this invention relates to a low power control apparatus for a coin operated telephone which primarily draws its power for operation from the phone lines even though line power is typically removed during a number of events in the course of a typical payphone call. Background Of The Invention Coin operated telephone stations are interfaced with a central office by a two wire loop circuit. When the handset is lifted off the hook, the central office supplies a very small DC loop current, typically 23 mA minimum, which is available to the coin operated telephone for use as a source of power. This source of power, however, is interrupted during a number of events in the course of a typical payphone call. It is important for a local station such as a payphone to be able to operate in spite of such power interruptions or open switch intervals ("OSI"). Where alternate sources of power are not available, it is critical to be able to operate from the line power even though that power will be interrupted several times during each call. In the past, line powered phones have used large capacitors to provide a supply of stored power which is used to power control electronics during open switch intervals. In one such phone, an approximately 100,000 microfarad (uF) storage capacitor is employed. The open switch intervals vary according to the control switching system in use at the central office. For older switching systems, open switch intervals are typically 350 milliseconds (ms) but under certain conditions can extend up to 600 ms. In fact, under worst case conditions, such intervals have been measured to last as long as 4 seconds. To address these OSI conditions, large capacitors, sometimes called super caps have been employed. Usage of large capacitors, however, may result in a number of unsatisfactory effects. For example, in order to initially charge large capacitors from the phone lines, many seconds are required. Consequently, if the large capacitor is not sufficiently charged when the payphone customer picks up the receiver, an initial dial tone will be delayed until the capacitor is adequately charged. The delayed dial tone is a source of confusion to the customer and may result in lost sales if the user assumes the phone is dead and hangs up because no dial tone is immediately heard. To try to avoid this problem, one phone employing a large capacitor trickle charges that capacitor while the phone is on hook. On hook, this phone draws about 1.6 milliamperes (mA) to charge its capacitor. While this arrangement allows the capacitor to be fully charged when the phone is taken off hook, thereby eliminating the delayed dial tone, it violates certain existing on hook current specifications which limit the on hook current to a maximum of approximately 1 microampere (µA). Besides not meeting these specifications, an arrangement requiring a relatively large on hook current at some point becomes impractical, as the current available from the central station which provides the line power is limited. US-A- 4625078 discloses, in accordance with the preamble of Claim 16, a microcomputer controlled coin telephone capable of storing status information over an open switch interval and restoring that information after that interval. In one aspect, the present invention provides a method of managing the operation of a phone line powered coin operated telephone when phone line power is interrupted as a result of an open switch interval, comprising the steps of: monitoring an occurrence of an open switch interval; initiating upon the detection of an open switch interval a power down sequence for a control processing means comprising a microcontroller, said control processing means controlling the operation of the coin operated telephone; storing hardware and software status information in nonvolatile memory during the power down sequence following detection of the open switch interval to store a status of the control processing means at the time of the open switch interval; monitoring, for the entire duration of the open switch interval, information concerning at least one condition subject to change during the open switch interval with at least one battery powered low power consuming latch circuit; and initiating upon detection of the end of the open switch interval a power up sequence for resuming processing by the control processing means by returning the control processing means to said status at the time of the open switch interval, and by taking into account any information monitored during the open switch interval. In another aspect, the present invention provides the method with the preceding features further comprising the step of completing the power down sequence by putting the microcontroller in a reset condition. An apparatus implementing these methods is also provided according to the present invention. Other preferred features of the invention are disclosed in the subclaims, with advantages which will be apparent from the following description. Description Of The Drawings FIG. 1 illustrates a coin operated telephone connected to a central office by a two wire loop circuit; FIG. 2 is a block diagram of a low power control in accordance with a preferred embodiment of the present invention; FIG. 3 illustrates in block form a variety of supply circuits controllably connected to the coin operated telephone of FIG. 1 by an electronic control office switching circuit; FIG. 4 is a schematic diagram of a hook switch latch circuit; FIG. 5 is a schematic diagram of collect and refund latch circuits; FIG. 6 is a schematic diagram of a line power monitor circuit; and FIG. 7 is a program design language description of power down and reset logic. Detailed Description FIG. 1 shows a coin operated phone 2 which is connected to a central office 4 by two wires, the phone lines, which are referred to as the tip 6 and ring 8 lines. As shown in FIG. 1, phone 2 includes a handset 10 having a mouthpiece 11 and an earpiece 12, which are connected by a handle 13. The phone 2 also includes a keypad 14, a coin slot 16, and a coin return slot 18. When not in use by a customer, the handset 10 sits in a cradle 19 depressing a spring loaded switch 20, the hook switch. When the handset 10 is in the position shown in FIG. 1, hook switch 20 and phone 2 are then in their "on hook" position. When handset 10 is lifted out of cradle 19, hook switch 20 is no longer depressed, and hook switch 20 and phone 2 are then in their "off hook" position. As is well known and will be briefly discussed in conjunction with the discussion of FIG. 2 below, the central office 4 applies various D.C. voltage amplitudes and polarities on the tip 6 and ring 8 relative to one another or to ground as the case may be, from which the phone 2 generates it operational power when handset 10 is off hook. As has been previously described in United States Application Serial Number 199,129, filed on May 26, 1988 (corresponding to EP-A-0 343 966) and assigned to the assignee of the present invention, the varying DC voltages and AC ringing voltage are interpreted by the phone 2 as providing operational commands for controlling its operation. When handset 10 is on hook, the phone 2 draws no power from the tip 6 or ring 8. The phone 2 does, however, perform status monitoring in its standby state using a small amount of power from a relatively small internal battery. To originate a call, a customer picks up handset 10 thereby releasing the hook switch 20 from its depressed position. The phone 2 enters its off hook state, and begins to draw power from the tip 6 and ring 8 to process the call. Next, the customer inserts a sufficient number of coins into the coin slot 16 to cover the cost of the call and dials the number he wishes to call using keypad 14. The dialed number is transmitted to central office 4 which connects the call. The customer's money is collected by phone 2 when a collect signal from the central office 4 is received. The customer completes his call and then hangs up. Referring to FIG. 2 of the drawings, a block diagram of a low power control circuit 50 is illustrated. A line interface circuit 55 comprising a ground lifting relay circuit 160 and an off hook detector circuit 190 connects the tip 6 and ring 8 lines from the central office 4 to a power supply circuit 230. The ground lifting relay circuit 160 also serves to selectively connect the tip and ring lines 6 and 8 to a coin totalizer control circuit 350 comprising a totalizer relay circuit 355, a coin supervisor detector circuit 360, a coin relay circuit 365 and a first coin bypass circuit 370. The interconnection of a coin acceptor 30 which is responsible for accepting and validating coins deposited in coin slot 16 of FIG. 1 is also represented in FIG. 2. The coin acceptor 30 directs accepted coins to a standard coin telephone escrow bucket (not shown). This escrow bucket holds the coins in escrow until completion of the time period for which the coins were deposited and then collects them based on commands from the central office 4 and resulting control signals produced by totalizer control circuit 350. Coin acceptor 30 provides output signals to processing element 100 and in return receives operational control inputs from the processing element 100. Processing element 100 is shown in FIG. 2 as comprising a real time clock 102, memory 104 and a microcontroller 110. Returning to the power supply circuit 230, that circuit is shown in FIG. 2 as having outputs connected to a gate solenoid power circuit 250, a DC power supply circuit 260, and an audio network 380. More specifically, power supply 230 provides power to a standard DTMF keypad which is presently preferred for use as the keypad 14 of FIG. 1, a DTMF decode circuit 395 and a speech network 390. With the exception of the limited functions powered from battery 511 which is part of a monitor system 510, the power supply circuit 230 in conjunction with control signals from processing element 100 controls the provision of all power for the low power controller 50. Power for operating a coin routing gate for controlling the routing of coins within the coin acceptor 30 is provided through power supply 230, to the gate solenoid power supply 250, and from there to the coin routing gate. Power for all the digital electronic components requiring a DC supply is provided through supply 230 to the DC power supply 260. When the audio network 380 is powered up, it provides the phone 2 with the capability of transmitting and receiving speech and audio tone signals. These signals are transmitted and received as AC voltages on the tip 6 and ring 8 which are offset by the DC voltage applied by the central office 4. The processing element 100 through its single microcontroller 110 controls all the operations of phone 2 including audio network 380, coin acceptor 30, and power supply 230. Microcontroller 110 also records the status of the phone 2 and has the capability of initiating communications during the standby mode if that status warrants it. Audio network 380 comprises a large number of interconnected blocks under the control of microcontroller 110. More specifically, the speech network 390 is connected to the DTMF decode circuit 395 and the DTMF keypad 14. Further, the speech network 390 is also connected to a coin tone generator 320, a DTMF generator 321, an audio balance circuit 480, a first switch 405, and notch filter circuit 470. The DTMF decode circuit 395, the coin tone generator 320 and the DTMF generator 321 are in turn connected to a modem circuit 400. Modem circuit 400 is also connected to the first switch 405 and a second switch 420. The notch filter circuit 470 is connected through a low pass filter (LPF) circuit 415 to the second switch 420. The second switch 420 is also connected to a microphone in the mouthpiece 11 which is part of the handset 10. First switch 405 is connected to a level adjust circuit 410 which is in turn connected to an ear piece 12 which is part of the handset 10. Handset 10 is further connected to a handset detector circuit 430. The DTMF decode circuit 395, the coin tone generator 320, the DTMF generator 321, the modem 400, the first and second switches 405 and 420, the level adjust 410, the handset detector 430, and the notch filter circuit 470 are all further connected to microcontroller 110 and the monitor system 510. As its name implies, the monitor system 510 monitors the status of the phone 2. Typically monitor system 510 draws its power from power supply 230 which is energized by power from the tip 6 and ring 8 lines when the handset 10 if off hook. Consequently, normal operational power for monitor circuit 520 is provided from the phone line. Having now introduced the various blocks of low power controller 50, the cooperation of those blocks to the extent relevant to the present invention will be discussed below following a brief discussion of how open switch intervals arise as a result of the control switching occurring in a typical Bell System central office. Turning to FIG. 3 of the drawings, the phone 2 is again shown as in FIG. 1 connected to the central office 4 by tip and ring lines 6 and 8 respectively. In FIG. 3, however, the central office 4 is shown in greater detail in order to illustrate how open switch intervals occur and why no or insufficient power is available to phone 2 on the tip and ring lines 6 and 8 during OSI. The central office 4 includes a switching control 40, such as the No. 1 ESS (Electronic Switching System) manufactured by Western Electric. Switching control 40 controllably switches the tip and ring lines 6 and 8 so that a plurality of different function control supply modules can be connected one at a time to the tip and ring lines 6 and 8 at the appropriate times. Each supply module connects a bank of batteries V BATT through its own voltage adjusting circuitry to the tip and ring lines when that module is switched into operation by switching control 40. By way of example, FIG. 3 shows a DTMF decoder supply module 41, a trunk supply module 42, a high and wet list supply module 43, an audible ringing supply module 44, an off hook ringing supply module 45 and a coin supervisory supply module 46 which are all controllably switched by switching control 40 at appropriate times. Each of the supply modules 41-46 includes a respective pair of switches 41a, 41b; 42a, 42b; 43a, 43b; 44a, 44b; 45a, 45b; and 46a, 46b. These switches are controlled by the switching control 40 to control which one of the supply modules 41-46 is connected to the tip and ring lines 6 and 8. Consequently, the DC voltage supplied to the phone 2 is controlled by whatever supply module is connected at that time. "Break before make" switching is used to control the switching from one supply module to another. This means that one module is disconnected before the next module is connected. Consequently, each time a module is switched, there is an interruption of the DC voltage connected to the phone 2 during the interval in which a first module is disconnected and before a second module is connected. For a typical call from a payphone, such as phone 2, open switch intervals may occur as follows. After the receiver 13 is taken off the hook, an open switch interval will follow. Then, the DTMF decoder supply module 41 is switched in by the switching control 40 in order to allow the customer to dial the digits of the number he desires to reach. An open switch interval follows the disconnection of the DTMF decoder supply module 41 until the coin supervisory supply module 46 is switched in to determine if an adequate amount of money has been inserted. Another open switch interval also precedes the switching of the audible ringing supply module 44 which causes the call to ring through. An open switch interval precedes connection of the trunk supply module 42 which allows voice communication once the called party has answered the call. Further open switch intervals precede collect and refund coin signals supplied by the coin supervisory control module 46. Finally, the user hangs up at the completion of the call. Other coin operated telephone related open switch intervals occur whenever an operator comes on line, and whenever coin collect, coin return, coin present test or initial rate test operations are performed. These operations are multiple switched events, that have OSI associated with them. Each time the phone 2 is connected to the coin supervisory supply module 46, or disconnected from the coin supervisory supply module 46 there is an open switch interval. While the above discussion does not illustrate all the possible ways in which an open switch interval can arise, it both illustrates the frequency with which such intervals may occur in a typical call, and the magnitude of the problem addressed by the present invention. Open switch intervals also occur on the phone lines connected to the telephones of ordinary consumers. Consequently, while the present invention is directed to solving the problems faced in a coin operated telephone environment where it is highly desirable to operate utilizing line power as the primary source of power, the principles of the present invention are applicable to any phones which are primarily line powered. In order to address the OSI problem, it is necessary to detect open switch intervals, power down the bulk of the control circuitry during each such interval, maintain in memory the state of processing of the control circuitry at the time processing is interrupted by an open switch interval so that processing can later resume at the proper point, it is necessary to monitor using very small amounts of power, changes of conditions during OSI which are deemed to be particularly important, and finally, it is further necessary to be able to properly process the above information. In the present invention a number of events are monitored even in the on hook condition through the use of battery operated electronic latches. Specifically, the state of the hook switch 20, as well as the occurrences of a collect or a refund operation are monitored. These conditions are particularly important since if they occur during an open switch interval, phone 2 is expected to reset differently than if they had not occurred. In the presently preferred embodiment, open switch intervals are detected by a line monitoring circuit 60 shown in FIG 6. This circuit 60 gives the microcontroller 110 warning that the power has been removed and a minimum amount of time (typically about 200 ms for a control circuit in accordance with the preferred embodiment of the present invention) remains to prepare for power down. This 200 ms power down time is a result of a relatively small capacitor (1000 uF) in the power supply circuit 230. The system then proceeds to save its present status along with the state of the key hardware outputs in nonvolatile memory 104. When the open switch interval is over and power is returned to the tip and ring lines, the microcontroller 110 comes out of its reset condition and recreates its pre-OSI status by recalling the stored status information from memory. Additionally, battery powered latches 70 and 80 (FIGS. 4 & 5) are checked to determine if the switch hook 20 returned to the on hook position or if the collect or refund signals indicate that either of these conditions has occurred during the OSI. The appropriate actions are then taken by microcontroller 110. Using smart power down logic coupled with the step of saving status information for important events during power down assures that the phone is correctly reset to the state it was in upon power down and that status changes during the open switch interval are appropriately handled. This control arrangement is capable of correct operation regardless of the length of time the open switch interval lasts, or the phase of the call the OSI occurs in. Further, this control arrangement only requires a small power storing capacitor to provide adequate power for the system to save the status information in nonvolatile memory. Referring to FIG 4, a presently preferred hook switch latch circuit 72 is shown. The hook switch latch circuit 72 is part of battery powered latch 70 which includes two latch circuits. The central part of latch 70 is latch U16, which is a CMOS circuit supplied by a battery V batt . The latch U16 also serves to monitor a coin box switch which is not shown. The coin box switch monitors the coin box, and its details are well known and not part of the present invention. In its ready state, the voltages at the HYST2 and SET2 inputs of latch U16 are determined by resistors R53, R54 and R55. Latch U16 operates in a manner to switch its output OUT2 low (approximately 0 volts) if the HYST2 input is below the SET2 input. The output OUT2 remains low until the SET2 input is raised to the battery level V batt . In the event the switch hook 20 is changed to the on hook condition, the signal on the Hook Switch line goes low thus pulling the HYST2 input low as that input is connected through resistor R60 to the Hook Switch line. This low at the HYST2 input causes the OUT2 output of latch U16 to go low thus storing an indication that the switch 20 has been closed. In other words, latch U16 stores the information that the phone has been hung up during an OSI. When power is returned after the OSI, the output OUT2 is monitored to determine if the switch hook 20 was on hook or not during the open switch interval. If it was, then the microcontroller 110 causes the STATE RESET 1 line to go low, turning "on" transistor Q5 through base resistor R4. When transistor Q5 is on, the SET2 input of latch U16 is raised to essentially V batt . This input voltage resets the latch U16 and brings the output OUT2 high again so that latch U16 is ready to detect a change of state during the next OSI. FIG. 5 shows a refund latch circuit 82 which works exactly as the hook switch circuit 72 described above except that it is triggered by a refund signal indicative of the occurrence of a refund operation. FIG. 5 also shows a collect circuit 84 which works similar to the hook switch and refund latches 72 and 82 except that the HYST1, SET1 signals for collect circuit 84 are the reverse sense as the HYST2 and SET2 signals. That is, the output OUT1 signal is brought low when HYST1 is brought to essentially V batt and the OUT1 signal is reset when the SET1 signal is brought essentially to 0 volts (low). When a collect signal is applied on a COLLECT line connected through resistor R12 to the base of transistor Q11, the transistor Q11 is turned on thereby bringing the HYST1 input high (i.e., to V batt ) thus causing output OUT1 to go low. The state reset signal from the microcontroller 110 on STATE RESET 2 line brings the SET1 input signal low (approximately 0 volts) to reset output OUT1 of latch U15 when the microcontroller 110 returns from the open switch interval. Both of the latches U15 and U16 described above are packages containing two latches in the package. While several preferred battery-powered latch circuits are shown in FIGS. 4 and 5 and described above, it should be recognized that additional such latches may be designed to monitor any other condition deemed particularly worthy of monitoring during an open switch interval. FIG. 6 illustrates a presently preferred line power monitoring circuit 60. The current through the line (tip to ring) is measured through a resistor R29. If the current falls below a predetermined threshold determined by resistors Rb, Rc, Rd and Re, then the output of comparator U28 changes level indicating the power loss condition. The output signal from comparator U28 is connected to the microcontroller 110 which responds by initiating its power down sequence. The presently preferred power down sequence is shown in FIG. 7 in a Program Design Language description which is written for the 80C31 microprocessor.

Claims: A method of managing the operation of a phone line powered coin operated telephone (2) when phone line power is interrupted as a result of an open switch interval, comprising the steps of: monitoring an occurrence of an open switch interval; initiating upon the detection of an open switch interval a power down sequence for a control processing means (100) comprising a microcontroller (110), said control processing means (100) controlling the operation of the coin operated telephone (2); storing hardware and software status information in nonvolatile memory (104) during the power down sequence following detection of the open switch interval to store a status of the control processing means (100) at the time of the open switch interval; monitoring, for the entire duration of the open switch interval, information concerning at least one condition subject to change during the open switch interval with at least one battery powered low power consuming latch circuit (70,80); and initiating upon detection of the end of the open switch interval a power up sequence for resuming processing by the control processing means (100) by returning the control processing means (100) to said status at the time of the open switch interval, and by taking into account any information monitored during the open switch interval. The method of claim 1 wherein one condition subject to change which is monitored is a change in status of a hook switch (20) of the coin operated telephone. The method of claim 1 or claim 2 wherein one condition subject to change which is monitored is an occurrence of a coin collection operation. The method of any preceding claim wherein one condition subject to change which is monitored is an occurrence of a coin refund operation. The method of any preceding claim wherein information concerning a plurality of conditions subject to change during the open switch interval are monitored by a plurality of battery powered low power consuming latch circuits (70,80). The method of any preceding claim wherein the conditions subject to change comprise a change in status of a hook switch (20) of the coin operated telephone, an occurrence of a coin collection operation and an occurrence of a coin refund operation. The method of any preceding claim further comprising the step of completing the power down sequence by putting the microcontroller (110) in a reset condition. The method of any preceding claim further comprising the step of monitoring the status of the phone line for occurrence of an open switch interval and for the end of the open switch interval with a line power monitoring circuit (60). The method of claim 8 further comprising the step of warning the control processing means (100) that the phone line power has been removed and that a minimum amount of time remains to initiate the power down sequence. The method of claim 9 wherein the amount of time to initiate the power down sequence is approximately 200 milliseconds. The method of claim 8 further comprising the step of informing the control processing means (100) that power has been returned so that the power up sequence will be initiated. The method of claim 5 further comprising the step of monitoring a condition subject to change when the telephone (2) is on hook by utilising at least one battery powered latch (70,80). The method of claim 5 further comprising the step of monitoring information concerning a plurality of conditions subject to change during the power down sequence by utilising said plurality of battery powered latches (70,80). A method according to any preceding claim, further comprising retrieving and utilizing the coin operated telephone status information in said nonvolatile memory (104) to resume the phone call at the point at which phone line power was interrupted. The method of any preceding claim further comprising the step of: storing an indication that said at least one condition subject to change has changed during the open switch interval. An apparatus for managing the operation of a phone line powered coin operated telephone (2) when line power is interrupted as a result of an open switch interval, comprising: status monitoring means (60) for monitoring an occurrence of an open switch interval and the return of power after the occurrence of an open switch interval; nonvolatile memory (104) for storing a set of status information indicative of status of the coin operated telephone (2); a control processing means (100) for controlling operation of the coin operated telephone, said control processing means (100) comprising a microcontroller (104) connected to the status monitoring means (60) and the nonvolatile memory (104), and; means for initiating a power down sequence for the control processing means (100) upon detection of the occurrence of an open switch interval; characterized by: at least one battery powered low power consuming latch circuit (70,80) for monitoring at least one condition subject to change during the occurrence of an open switch interval and having an output indicative of said at least one condition; said microcontroller (104) being connected to the output of the battery powered low power consuming latch (70,80); means for storing said set of status information in the nonvolatile memory (104) when the occurrence of an open switch interval is detected by said status monitoring means (60); means for initiating a sequence for resuming processing by the control processing means (100), said resuming of processing taking into account said set of status information and the output of said at least one battery powered latch (70,80). The apparatus of claim 16 further comprising means for resetting the microcontroller (110) upon completion of the power down sequence. The apparatus of claim 16 or claim 17 wherein the status monitoring means comprises a line power monitor circuit (60). The apparatus of any of claims 16 to 18 wherein the control processing means further comprises a real time clock (102). The apparatus of any of claims 16 to 19 wherein said at least one condition is the status of a hook switch (20) of the coin operated telephone. The apparatus of any of claims 16 to 20 wherein said at least one condition is the occurrence of a coin collection operation. The apparatus of any of claims 16 to 21 wherein at least one condition is the occurrence of a coin refund operation. The apparatus of any of claims 16 to 22 wherein a plurality of battery powered latch circuits (70,80) monitor a plurality of events that are subject to change during an open switch interval. The apparatus of any one of claims 16 to 23 wherein no phone line power is drawn by the telephone when the telephone is on-hook. Apparatus according to any of claims 16 to 24 further comprising means for retrieving and utilizing the coin telephone status information in said nonvolatile memory (104) to resume a phone call at the point at which phone line power was interrupted. The apparatus of claim 25 further comprising: means (70,80) for storing an indication that said at least one condition subject to change has changed during the open switch interval. The apparatus of any one of claims 17 to 26 wherein the control processing means (100) causes at least one software internal variable to be stored in the nonvolatile memory (104) as part of the power down sequence.

Inventors: HUDIS SCOTT, PRUDEN BENNY JOE, WISNIK HOWARD, HUDIS, SCOTT, PRUDEN, BENNY JOE, WISNIK, HOWARD
Applicants: MARS INC, MARS INCORPORATED
Application year: 1989
Main classification: H04M17
IPC codes: H04M19, H04M1, H04M17