|
Description  |
|
|
BACKGROUND OF THE
INVENTION
Many telephone systems have a computer data port which is used to provide information relating to the usage of the telephone system. Most PBXs or key telephone systems have an RS-232 serial port through which are output records of the details of
each telephone call which occurred on the telephone system. These call detail records may be collected in a computer system and evaluated to determine telephone usage, make price estimations for telephone usage, provide a means to independently verify a
telephone billing, and provide reports of telephone usage so as to enable better management of the telephone system, and many other uses.
A mobile cellular telephone does not have a computer data port from which such call detail records can be collected. The cellular telephone company can provide, on a monthly basis, a detailed accounting of the telephone usage. However, the user
of the mobile cellular telephone is not able to independently verify the usage of the cellular telephone or perform other analysis of the usage of the cellular telephone as can be done with conventional PBX and key telephone systems.
When a rental car is equipped with a cellular telephone, cellular telephone usage may need to be determined in order for the rental agency to accurately bill the rental customer for the usage of the cellular telephone. It is .inconvenient and
impractical for the rental agency to wait for the end of the month to receive the cellular telephone usage report from the cellular telephone company, and then from that report charge the rental customer for the usage of the cellular telephone. The
cellular telephone usage must be able to be known quickly and accurately so that the rental agency can correctly charge the rental customer for the usage of the cellular telephone. If a cellular telephone by itself is rented, then usage of the cellular
telephone may also need to be monitored so that proper rental rates can be calculated by the rental aqency.
Cellular telephones exist which have an adaptor which converts the cellular telephone handset output from the cellular transceiver into a simulated telephone line which is compatible with common public switched telephone network compatible
equipment. Although this adaptor allows commonly available telephone equipment to be connected to the cellular telephone, it does not provide a computer data port which generates call detail records so that the usage of the cellular telephone can be
monitored. A practical means of monitoring the usage of a mobile cellular telephone and providing information relating to the usage of the cellular telephone is needed.
Since a cellular telephone has airtime charges which are incurred whenever the telephone is used, both for outbound and incoming calls, the usage of the cellular telephone for both incoming and outbound calls must be monitored. A system to
monitor cellular telephone usage must record the date and time of the start of any telephone call, either incoming to the cellular telephone or outbound from the cellular telephone, the duration of the telephone call, an indication that a particular call
was incoming or outbound, and any digits which were dialed to place an outbound cellular telephone call. This information is needed in order to accurately monitor cellular telephone usage. In the case of a telephone which is rented and for which a
billing must be created based upon usage of the cellular telephone, the bill for the rental customer can be calculated based upon this information. This information must also be known if a printout or computer record which provides a record of the
cellular telephone usage is to be created.
A practical means of monitoring cellular telephone usage is needed in order to provide a means by which the usage of the cellular telephone can quickly and easily be determined, so that evaluation or billing based upon the usage of the cellular
telephone can practically be accomplished.
SUMMARY OF THE INVENTION
It is an object of the invention to provide a means to interface to a cellular telephone which has a simulated telephone line adaptor and monitor the usage of the cellular telephone.
It is a further object of the invention to provide a means to generate and collect call detail records based upon the usage of the cellular telephone, where such records contain the date and time of the start of any cellular telephone call, an
indication of an incoming or an outbound telephone call, information relating to the dialed digits used to place an outbound telephone call, and information relating to the duration of the cellular telephone call.
It is a still further object of the invention to provide a means to transfer the call detail records to a computer system for evaluation of the cellular telephone usage.
As shown in the detailed description of the invention, the present invention provides a means to interface to a simulated telephone line from an adaptor connected to the cellular telephone, provides a means to generate and collect call detail
records indicative of the usage of the cellular telephone, and also provides a means to transfer the call detail records to a computer for evaluation of the cellular telephone usage. The invention provides these function in a practical manner which
allows quick, accurate evaluation of the usage of the cellular telephone, and also provides these means in such a fashion that the evaluation of the cellular telephone usage can be performed in a manner which is tailored to the needs of the user of the
invention.
Briefly, the invention consists of interface circuitry and a microprocessor with a memory which generates and stores in the memory of the microprocessor call detail records relating to the usage of the cellular telephone. The invention is
constructed such that the interface circuitry, the microprocessor, and the memory are connected to the mobile cellular telephone for the generation and collection of the call detail records, providing a mobile unit. A removable memory device, which can
be a static RAM, a magnetic disk, or other removable memory device is used. The removable memory device is removed and then used with a stationary unit which includes a computer which reads information from the memory device, thereby transferring the
call detail records to a computer for evaluation. In the detailed description of the invention the removable section of the device which includes the microprocessor memory also includes the microprocessor and the interface circuitry. However, the
invention could also be constructed to use a removable section of the device in which the microprocessor memory only is removed, leaving the interface circuitry and the microprocessor connected to the cellular telephone, as when a magnetic disk is used
as the memory device.
Alternative embodiments of the invention are also disclosed in which the call detail record information is transferred to a computer via a cable, a modem, and a radio link. Each of these embodiments comprises a mobile unit which generates and
collects the call record detail information, a communications interface for transferring the call record detail information, and a stationary unit which is used to evaluate the call record detail information.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 shows a cellular telephone system used with the invention.
FIG. 2 shows the invention with a memory which can be connected to a computer.
FIG. 3 is a schematic diagram of the call record generation and storage module.
FIG. 4 is a flow chart describing the generation and storage in the memory of the call detail records.
FIG. 5 shows the memory, the microprocessor, the interface circuitry and a communications means connected to the computer.
FIG. 6 shows a first alternative embodiment with the computer having output ports and an input port for reading call detail records from a memory.
FIG. 7 shows a second alternative embodiment with the computer having a disk drive for reading call detail records from a removable magnetic disk, where the call detail records were recorded on the magnetic disk by the call record generation and
collection device and the removable magnetic disk was removed from the call detail record generation and collection device and placed into the disk drive.
FIG. 8 provides a block diagram of the DS2250T microcontroller module.
FIGS. 9A and 9B show the invention being used in a vehicle with a cellular transceiver.
FIG. 10 shows a third alternative embodiment in which a cable is used to transfer the call detail information from the mobile unit to the stationary unit.
FIG. 11 shows a fourth alternative embodiment in which a modem is used with the cellular transceiver to transfer the call detail information from the mobile unit to the stationary unit.
FIG. 12 shows a fifth alternative embodiment in which a radio link is used to transfer the call detail information from the mobile unit to the stationary unit.
DETAILED DESCRIPTION OF THE INVENTION
The invention comprises a mobile unit which generates and collects call detail record information relating to the usage of a cellular transceiver, a stationary unit which evaluates the call detail record information, and a communications
interface which transfers the call detail record information from the mobile unit to the stationary unit. The communications interface may be a cable, a radio link, a data modem for transferring data via the cellular transceiver, or a serial
communications link which transfers the call detail record information to the stationary unit from a memory which is removable from the mobile unit. Other communications interfaces which may be used with removable memories are also described, including
interfaces which utilize input/output ports or a disc drive to transfer the call detail record information from a removable memory to the stationary unit.
As shown in FIG. 1, the cellular transceiver 100 is provided with an adaptor 102 which provides a simulated telephone line 104 compatible with a standard telephone device 106 which would ordinarily connect to a telephone line connected to the
public switched telephone network. Such adaptor 102 may be a "CelJack" from Telular Inc, Wilmette, Ill., or other such adaptor. Alternatively, the cellular transceiver 100 may be equipped with such an adaptor manufactured as a part of the cellular
transceiver, as described in U.S. Pat. No. 4,959,851 by Francis Tobolski, Jr. et al.
The simulated telephone line 104 may be connected to a standard telephone 106, a public switched telephone network compatible modem, a facsimile machine, or a cordless telephone. The adaptor 102 may provide, in addition to the ringing voltage
and a standard DC telephone loop, dial tone signals and other audio signals which are usually employed when the public switched telephone system is used. Telephones, modems, and facsimile machines which are capable of connection to the public switched
telephone system can be used with a cellular telephone when such an adaptor 102 is used with the cellular transceiver 1 The simulated telephone line 104 tip 108 and ring 110 signal lines (see FIG. 3) carry the audio, the ringing .voltage, and the DC loop
current as found on a public switched telephone network telephone line.
The tip 108 and ring 110 signal lines of the simulated telephone line 104 are connected to one or more RJ-11C jacks 112-114 which provide the connections between the adaptor 102 and the telephone devices which the user of the cellular system
wishes to have connected to the cellular transceiver. Additionally, the tip and ring signals of the simulated telephone line 104 from the adaptor 102 are connected, by cable 228, to interface circuitry 116. The microprocessor 118, through the use of
the interface circuitry 116, monitors the tip 108 and ring 110 signal lines so as to detect on-hook and off-hook conditions of the telephone devices connected to the simulated telephone line 104, monitors the tip 108 and ring 110 signals so as to detect
the ring voltage provided on the simulated telephone line 104 by the adaptor 102, and monitors the tip 108 and ring 110 signal lines to detect any dialed digits from any of the telephone devices connected to the simulated telephone line 104, in the
following manner.
The interface circuitry 116 consists of a voltage divider 120, an analog-to-digital converter 122, and a dual-tone multi-frequency (DTMF) detector 124. The voltage divider 120 is used to connect the interface circuitry 116 to the tip 108 and
ring 110 signal lines. When all of the telephone devices connected to the simulated telephone 104 are on-hook, there will typically be a DC voltage of about 10 to about 48 volts between the tip 108 and ring 110 signal lines. The value of the on-hook
voltage will vary with the particular adaptor 102 used and the number of devices connected to the simulated telephone line 104. As shown in FIG. 3, the first section 126 of the voltage divider 120 is connected so that the positive tip signal on the tip
108 signal line is at one end of the first section 126 of the voltage divider 120, and the negative ring signal on the ring 110 signal line is connected to the other end of the first section 126 of the voltage divider 120. On occasion, the polarity of
the simulated telephone line 104 signals may be reversed. If the polarity of the simulated 104 telephone line signals is unknown, then a full-wave bridge (not shown) may be used between the tip 108 and ring 110 signal lines, and the positive and
negative outputs of the bridge used in the place of the tip and ring signals, in the manner well practised in the field.
The first section 126 of the voltage divider 120 divides the voltage present between the tip 108 and ring 110 signal lines. When the voltage on the simulated telephone line 104 varies, the voltage present at the output of the first section 126
of the voltage divider 120 will vary with the voltage present on the simulated telephone line 104. The voltage-divider 120 consists of 6 resistors 129-134 in three sections 126-128 arranged as shown in FIG. 3. The first two resistors 129 and 130,
connected between the tip 108 and ring 110 signal lines, divide the voltage between the tip and ring signals. The large values of these resistors 129 and 130 provide a large resistance to current flow across the tip 108 and ring 110 signal lines of the
simulated telephone line 104, so that the simulated telephone line 104 is not brought into an off-hook condition by the connection of the interface circuitry 116 to the simulated telephone line 104. The remaining four resistors 131-134 are all of equal
value. The second section 127 and the third section 128 of the voltage divider 120 each divide the voltage output 256 from the first section 126 of the voltage divider 120 by two. Two sections are used so that the loading of the output of each section
does not affect the output of the other section.
The junction point 160 of the two resistors 133 and 134 is buffered by one op amp stage 136 of a quad op amp. The op amp used is an LM324, commonly available from a number of manufacturers. The junction point 148 of the two resistors 131 and
132 is connected to the first input 138 of a comparator 140 consisting of another stage of the quad op amp, three resistors 142-144 and a transistor 146. The resistor divider junction point 148 which is connected to the first input 138 of the comparator
140 has a capacitor 150 connected between the junction point 148 and the circuit ground 152 so as to provide a single-pole low-pass filter. This low-pass filter removes the audio from the signal provided to the comparator 140, and further serves to
smooth out slight fluctuations in the DC voltage provided to the comparator 140. If this capacitor 150 is too small, the audio signal is applied to the comparator 140 which may result in false detection of a return to the on-hook condition during a
phone call. If this capacitor 150 is too large, then the response time of the comparator 140 is too slow, and short on-hook or off-hook conditions may not be recognized, or the capacitor 150 may suppress the ringing voltage presented to the comparator
first input 138 so as to not allow it to swing very far when the ringing signal is applied. The capacitor 150 presently used is a 0.01 microfarad capacitor, used with 470K resistors for the resistor divider resistors 131 and 132.
Each of the junction points 148 and 160 of the second 127 and third 128 resistor divider sections has a diode 154 and 156, respectively, connected with its anode at the junction points as is 160 and its cathode at the positive supply 158. This
ensures that the voltage present at the voltage divider junction points 148 and 160 Will never exceed the positive supply voltage by more than the voltage drop across the diode 154 or 156. In this fashion the op amp inputs 162 and 163, of the comparator
140 and the op amp 136, respectively, are protected from any potential positive voltage levels that would exceed the positive supply 158 by more than 0.6 volts. The op-amp inputs 162 and 163 are also each protected from large negative voltage levels by
a separate diode 164 and 165, respectively, connected with its cathode on the junction point 148 or 160 and its anode connected to the circuit ground 152. A negative voltage present at the resistor divider junction points 148 or 160 would cause current
to flow through the diodes 164 and 165 connected to the ground 152 as these diodes 164 and 165 would now be forward-biased. The tip 108 signal line of the simulated telephone line 104 may be passed through a diode of type 1N4001 (not shown) before it is
presented to the voltage divider 120 so that an improper connection of the interface circuitry 116 to the simulated telephone line 104 will result in no significant current flow through the voltage divider 120 since such a diode would be reverse-biased.
The analog-to-digital converter 122 consists of a R-2R resistor ladder 166 (see FIG. 3) connected to port pins 168 controlled by the microprocessor 118, and the comparator 140. The microprocessor 118, under control of its program 170, provides a
series of digital values to be presented on the port pins 168 connected to the R-2R resistor ladder 166. This provides a simple digital-to-analog function in the fashion well known to those skilled in the art. The analog voltage generated by this
simple digital-to-analog converter is presented to the second input 172 of the comparator 140. The comparator output 174 will be in one state when the analog voltage presented to the second input 172 of the comparator 140, developed by the simple
digital-to-analog converter, is greater than the voltage provided to the first input 138 of the comparator 140, which is connected to the third section 128 of the voltage divider 120. When the voltage at the first input 138 of the comparator 140 is
greater than the voltage provided to the second input 172 of the comparator 140, then the comparator output 174 will change state.
Under control of its program 170, the microprocessor 118 presents a series of digital values to the R2R resistor ladder 166 which are used to generate a ramp voltage at the second input 172 of the comparator 140. To generate the ramp voltage at
the comparator input 172, the value output to the simple digital-to-analog converter on the port pins 168 starts at a hexidecimal value of 00H, and is incremented by one until the microprocessor program 170 stops the ramp voltage generation or the value
reaches a hexidecimal value of 3FH. The comparator output 174 is monitored by the microprocessor 118. When the comparator output 174 changes state such as to indicate that the voltage at the second input 172 of the comparator 140 is greater than the
voltage at the first input 138 of the comparator 140, then the microprocessor program 170 stores in the memory 178 of the microprocessor 118 the digital value which is presently provided on the port pins 168 to the R-2R resistor ladder 166, and stops
generation of the ramp voltage. In this fashion the analog-to-digital converter function of the invention is provided. The microprocessor 118 is thereby capable of monitoring the voltage level of the simulated telephone lines 104. It should be noted
that alternatively a single integrated circuit analog-to-digital converter (not shown) could be used in the invention. A single integrated circuit analog-to-digital converter was not used since the interface circuitry 116 could be constructed with a
minimum of integrated circuits through the use of a single IC package which contained a quad op amp.
The voltage divider junction point 160 from the second section 127 of the voltage divider 120 is buffered by one stage of the quad op-amp 136 and is capacitively coupled to a low-pass filter 180 comprising the third stage op amp 182 of the quad
op amp, two resistors 184 and 185, and a Capacitor 186 in a circuit well known and understood by a person skilled in the art. This low-pass filter 180 uses a reference voltage 188 developed at one-half of the power supply voltage of the quad op-amp.
The output from the low-pass filter 180 is capacitively coupled to a DTMF decoder IC 192. This low-pass filter 180 is used to prevent high-frequency signals from being coupled to the input 194 of the DTMF decoder IC 192. The DTMF decoder IC 192 is a
CS204 manufactured by Crystal Semiconductor. The DTMF decoder IC 192 translates dual-tone-multi-frequency tones into a four-bit binary signal 196 which is coupled to the microprocessor 118 by input port 198. The DTMF decoder IC 192 also provides a data
available (DAV) signal line 200 which is coupled to the microprocessor 118 by input port 198.
Detection of the on-hook and off-hook conditions of the simulated telephone line 104 is accomplished by monitoring the voltage level of the simulated telephone line 104 in the fashion described above. When all telephone devices that are
connected to the simulated telephone line 104 are on-hook, or when no telephone devices are connected to the simulated telephone line 104, the DC voltage of the simulated telephone line 104 is in the range of about 10 to about 48 volts. When any of the
telephone devices goes off-hook the DC voltage of the simulated telephone line 104 drops, usually to a voltage level of around 5 volts. The microprocessor 118, under control of its program 170, is continually monitoring the voltage present on the
simulated telephone line 104 through the analog-to-digital converter 122. The program 170 detects the drop in the simulated telephone line voltage and uses the detection of the drop in the simulated telephone line voltage to determine when one of the
telephone devices connected to the simulated telephone line 104 has gone off-hook. The program 170 also detects a rise in the simulated telephone line voltage and uses the detection of the rise in the simulated telephone line voltage to determine when
one of the telephone devices connected to the simulated telephone line 104 has gone on-hook. Transitions which last for more than one-half second from the on-hook to off-hook state, or from the off-hook to on-hook state are considered valid transitions. The one-half second time period ensures that noise on the simulated telephone line 104 does not produce false on-hook and off-hook transitions.
The on-hook voltage of the simulated telephone line 104 is determined by reading the voltage on the simulated phone line 104 for one second and averaging the voltage level. This function is performed by the microprocessor 118 whenever the
microprocessor is reset, as when the microprocessor first starts to run. The average voltage level is stored in the memory 178 of the microprocessor 118 as the nominal on-hook voltage for the simulated telephone line 104. If the voltage level on the
simulated telephone line 104 is less than 8 volts when the microprocessor 118 is attempting to determine the nominal on-hook voltage level, then the microprocessor 118 waits until the voltage level has exceeded 8 volts, and then waits another one-half
second before beginning the operation of averaging the samples of the voltage level on the simulated telephone line 104. This avoids the microprocessor 118 determining the nominal on-hook voltage while any telephone device is off-hook, which would
provide an incorrect nominal on-hook voltage.
The ringing voltage on the simulated telephone line 104 is detected in a similar manner to the on-hook and off-hook conditions. The ringing voltage is an AC voltage which is superimposed upon the DC voltage present on the simulated telephone
line 104. This ringing voltage is usually in the range of 40 to 100 volts, with a frequency of from 20 to 40 hertz. The monitoring of the voltage on the simulated telephone line 104 by the microprocessor 118 allows the microprocessor 118 to detect the
ringing voltage. This is accomplished by monitoring the simulated telephone line 104 voltage for transitions of the voltage above and below the on-hook voltage level. When a transition both above and below the on-hook voltage level is detected, the
microprocessor 118 determines that a ringing signal is being applied to the simulated telephone line 104.
The microprocessor 118 looks for transitions of the simulated telephone line 104 voltage which exceed a few volts above and below the nominal on-hook voltage in order to detect a ring. This is accomplished by requiring the simulated telephone
line 104 voltage to exceed the voltage of the nominal on-hook voltage plus a few volts in order for a transition above the on-hook voltage to be detected. The voltage of the nominal on-hook voltage minus a few volts is used as the lower threshold.
These thresholds can be set by variables stored in the memory 178 of the microprocessor 118. By comparing the voltages read by the analog-to-digital converter 122 to the threshold values stored in memory 178, the microprocessor 118 can determine if the
voltage on the simulated telephone line 104 is above or below each of the ring-detect thresholds. By changing the value of the threshold variables different detection schemes can be employed so as to require a larger or smaller level of the ringing
signal in order for a ring to be recognized.
The ringing signal on the simulated telephone line 104 is typically applied for 2 seconds, with a 4 second time period between applications of the ringing voltage. The gaps between the rings of the telephone line can be detected by the
microprocessor 118 by observation of the lack of transitions of the simulated telephone line 104 above and below the ringing voltage threshold levels for a given time period. This is used to detect the number of rings which occurred before a telephone
device 106 is taken off-hook in response to an incoming telephone call.
The ringing voltage that is applied may be superimposed upon an on-hook DC voltage which is larger than the usual on-hook DC voltage of the simulated telephone line 104. In this case the monitoring of the simulated telephone line 104 voltage can
still detect the ringing signal, as the ringing voltage will cause the simulated telephone line 104 voltage to rise above and fall below the nominal on-hook voltage due to the large voltage of the ringing signal.
The microprocessor 118 may also monitor the simulated telephone line 104 for a condition in which the voltage on the simulated telephone line drops below a predetermined threshold, in order to determine that the cellular transceiver 100 has been
turned off. The simulated telephone line 104 may be monitored, through the analog-to-digital converter 122, for a reading of below 1 volt. The microprocessor 118, may then terminate the monitoring of the off-hook condition as it has been determined
that the cellular transceiver has been turned off. Such monitoring prevents the condition of the cellular transceiver being turned off as being detected as an off-hook condition.
The signals from the DTMF decoder IC 192 are presented to input port 198 of the microprocessor 118. The microprocessor 118 collects any dialed digits based upon the state of the four-bit signal 196 which corresponds to the binary value of the
dialed digit, and upon the DAV signal 200 supplied by the DTMF decoder IC 192. When the microprocessor 118 detects a rising edge of the DAV signal 200, the microprocessor 118 reads the four-bit binary value presented by the DTMF decoder IC 192. The
dialed digit information is stored in the memory 178 of the microprocessor 118, so that the dialed digit information can be used to create a call detail record.
As shown in FIG. 8, the microprocessor 118 used is contained in a DS2250T module 202 manufactured by Dallas Semiconductor. The DS2250T module 202 is a microcontroller module which contains an 8031-compatible microprocessor comprising
microprocessor 118, a real-time clock 206, a backup battery 208, 8K of static RAM comprising memory 178, and a watchdog timer and other circuitry 212 to provide a battery-backed memory of program and data. Port pins 214 are available for inputs and
outputs in the fashion well understood to one skilled in the art.
The real-time clock 206 of the DS2250T module 202 allows the microprocessor 118 to accurately determine the date and time at which a telephone call was initiated. This is done by reading the real-time clock 206 at the point in time when a
transition from an on-hook to an off-hook condition of the simulated telephone line 104 is detected. The date and time information which is read from the real-time clock 206 at this point in time is stored in the memory 178 of the microprocessor 118.
The battery-backed RAM memory 178 provides the memory for the microprocessor 118. The battery-backed RAM memory 178 is also used to store the program 170 for the microprocessor 118, although the microprocessor program 170 could be stored outside
the DS2250T module 202 in an optional separate memory 216.
The microprocessor 118, under control of its program 170, uses the analog-to-digital converter 122 to analyze the state of the simulated phone line 104, and also detects any dialed digits from the signals 196 and 200 provided by the DTMF detector
IC 192, and generates and stores in its memory 178 call detail records which contain information relating to the date and time at which a call was placed or an incoming call was received, any digits dialed when an outbound call was placed, and other
desired information. These records are stored in the memory 178 of the microprocessor 118 so that they can be retrieved at an appropriate time and analyzed to provide information concerning the use of the cellular transceiver 100.
The monitoring of the simulated telephone line 104 is performed by a timer interrupt set to interrupt the microprocessor 118 about 300 times a second. The interrupt routine in response to this timer interrupt reads the voltage on the simulated
telephone line 104 through the use of the analog-to-digital converter 122 and determines if the simulated telephone line 104 is in an on-hook, off-hook, or ringing condition. The interrupt routine updates variables stored in the microprocessor memory
178 indicative of the status of the simulated telephone line 104, so that the microprocessor program 170 can branch based on these variables which reflect the status of the simulated telephone line 104.
These variables include a ring counter (shown as block 418 in FIG. 4). The ring counter is incremented each time that a ring is detected. The incrementing of the ring counter occurs in the gap between the applications of the ringing voltage.
However, if the simulated telephone line 104 goes off-hook during a ringing voltage application, then the ring counter is also incremented when the off-hook condition is detected. If the simulated telephone line 104 remains on-hook for the duration of
the ringing signal application, and the gaps between the rings, and the simulated telephone line 104 further remains in an on-hook condition for 10 seconds after the last application of the ringing voltage, then the ring counter is cleared as no
telephone devices were taken off-hook in response to the application of the ringing voltage. The clearing of the ring counter prevents a falsely high count of the number of detected rings when the simulated telephone line 104 enters a ringing state the
next time.
The ring counter may be used by the program 170 to determine if a call is incoming or outbound. If the ring counter is not zero when the simulated telephone line 104 goes off-hook, then the call is determined to be an incoming call and the
number of rings in the ring counter variable may be stored in the memory 178 of the microprocessor 118 as a part of the call detail record to show the number of rings which occurred before a telephone call was answered. When the simulated telephone line
104 goes off-hook, and after the microprocessor program 170 has determined if the call is incoming or outbound, then the ring counter is cleared to prepare it for the next application of the ringing voltage by the next incoming call.
FIG. 4 presents a flow chart diagram of the steps taken to generate call detail records for both incoming and outbound calls. The generation of a call record for an incoming telephone call consists of detecting the ringing of the simulated
telephone line 104 (blocks 402-414), detecting the change of state from an on-hook to an off-hook condition (blocks 400 and 408), recording the date and time of the transition from the on-hook to off-hook condition (block 416), detecting a transition
back to the on-hook state from the off-hook state (block 424), and the storing in the microprocessor memory 178 information reflecting the date and time of the transition from the on-hook state to the off-hook state (block 416) along with the duration of
time for which the telephone device remained off-hook or the date and time at which the transition is made back to the on-hook condition from an off-hook condition (block 426), along with an indication that a telephone call was incoming (block 420).
These steps are performed by the microprocessor 118 through the use of the analog-to-digital converter 122 to detect the on-hook and off-hook states and the ringing signal, and through the use of the real-time clock 206 to accurately determine the date
and time of the start and end of the telephone call, as described above. The call record information is stored in the memory 178 of the microprocessor 118 for retrieval at a later time.
When the microprocessor 118 detects a transition from the on-hook to off-hook condition (blocks 400 and 408) the date and time of the transition are stored in the microprocessor memory 178. The ring counter variable is read (block 418), and, if
not zero, the number of rings is stored as a part of the call record (block 420), along with an indication in the call record which shows that the call is an incoming call (block 420). The microprocessor 118 then monitors the simulated telephone line
104 and waits for the transition from the off-hook condition back to the on-hook condition (block 424). When this occurs, the microprocessor 118 reads the real-time clock 206 and stores the time at which this transition occurred (block 426). The call
detail record now has been recorded in the memory 178 of the microprocessor 118, and contains the date and time of the initiation of the call, an indication that a call was incoming and how many rings occurred before the call was answered, and the date
and time of the end of the call. This information provides the usage information for the cellular transceiver 100 when an incoming call is received.
The generation of a call record for an outbound telephone call consists of the detection of the transition from an on-hook to an off-hook condition (block 400), recording the date and time of the transition from the on-hook to the off-hook state
(block 416), recording the dialed digits used to place the telephone call (block 438), monitoring the voltage on the simulated telephone line 104 and detecting the transition from an off-hook state to an on-hook state (block 432), recording the date and
time of the transition back to the on-hook state from the off-hook state (block 436), and the storage in the microprocessor memory 178 information reflecting the date and time of the transition from the on-hook state to the off-hook state (block 416)
along with the duration of time for which the telephone remained off-hook or the date and time at which the transition from the off-hook state to the on-hook state is made (block 436), and further storing in the microprocessor memory 178 information
relating to the dialed digits used to place the telephone call (block 438). As shown above, each of these steps can be accomplished through the use of the analog-to-digital converter 122 and the DTMF decoder IC 192 when coupled with the microprocessor
118 and its memory 178. As in the generation of the call record for the incoming call, the outbound call record generation uses the analog-to-digital converter 122 to detect the transitions to the on-hook and off-hook states. However, the ring counter
variable will indicate that the call is outbound by the ring counter variable having a value of zero (block 418).
The microprocessor 118 monitors the simulated telephone line 104 for the transition from the off-hook state to the on-hook state (block 432), while also monitoring the DAV signal line 200 from the DTMF decoder IC 192 (block 434) and collecting
and storing in its memory any digits which are dialed (block 438). When the microprocessor 118 detects the transition back to the on-hook state (block 432), the date and time of the transition is read from the real-time clock 206 and is stored in the
call detail..record -(block 436). This provides a call detail record which contains the date and time of the initiation of an outbound call, any dialed digits used to place the telephone call, and the date and time of the termination of the outbound
telephone call. This provides the usage information for when the cellular transceiver 100 is used for an outbound call.
As illustrated in FIG. 9A and FIG. 9B, the invention is constructed so as to be plac | | |