BACKGROUND
1. Technical Field
Embodiments of the present disclosure relate to incoming call management, and particularly to a method for forwarding incoming calls received by a communication device during the charging of a battery of the communication device.
2. Description of Related Art
When an incoming call is received by a communication device during the charging of a battery of the communication device, a user may directly answer the incoming call without disconnecting the communication device from the battery charger. However, a great amount of Electromagnetic (EM) radiation may be emitted out during the battery charging of the communication device, which may be very harmful to the user. Therefore, there is room for improvement in the art.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 illustrates a schematic block diagram of one embodiment of a communication device.
FIG. 2 illustrates a circuit diagram of one embodiment of a detection unit of the communication device of FIG. 1.
FIG. 3 illustrates a circuit diagram of another embodiment of the detection unit.
FIG. 4 shows a flowchart of one embodiment of an incoming call forwarding method of the communication device of FIG. 1.
DETAILED DESCRIPTION
The disclosure, including the accompanying drawings, is illustrated by way of example and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one”.
FIG. 1 is a schematic block diagram of one embodiment of a communication device 10. The communication device 10 includes a power supply unit 110, a power input interface 111, a call forwarding unit 130, and a detection unit 150. The power input interface 111, call forwarding unit 130, and detection unit 150 respectively connect to the power supply unit 110. The power supply unit 110 provides voltage signals for each of the power input interface 111, call forwarding unit 130, and detection unit 150. In the embodiment, the communication device 10 may be, for example, a mobile phone, a personal digital assistant, a fixed telephone, or other similar devices. FIG. 1 shows one example of the communication device 10, in other embodiments, the communication device 10 can include more or fewer components such as storage devices and processors, or have a different configuration of the components.
The power supply unit 110 may be a battery, such as a lithium battery. The power supply unit 110 is charged when an external power source, such as a power source of 12V, is connected to the power input interface 111. The power input interface 111 may be a universal serial bus (USB) interface, or other similar interface that capable of power signal transmission.
The detection unit 150 detects whether the power supply unit 110 is in a charging state when an incoming call is received by the communication device 10. The charging state indicates that the power supply unit 10 is being charged at the time when the incoming call is received. In one embodiment, as shown in FIG. 2, the detection unit 150 is powered by the power supply unit 110. The detection unit 150 includes a voltage detection circuit 151, a comparison circuit 153, and a reference voltage generation circuit 155. The voltage detection circuit 151 is electrically connected to the power input interface 111 to detect a voltage inputted from the power input interface 111. The reference voltage generation circuit 155 provides a predetermined low level voltage, such as a voltage of 0V or 0.3V. The comparison circuit 153 is electrically connected to the voltage detection circuit 151 and the reference voltage generation circuit 155, and determines whether the power supply unit 110 is in the charging state by comparing the detected voltage inputted from the power input interface 111 with the predetermined low level voltage. For example, if the detected voltage is greater than the predetermined low level voltage, the power supply unit 110 is in the charging state. Otherwise, if the detected voltage is equal to or less than the predetermined low level voltage, the power supply unit 110 is not in the charging state. Additionally, if the power supply unit 110 is in the charging state, the comparison circuit 153 generates a control signal, such as a high level signal of 5V, and outputs the control signal to the call forwarding unit 130.
In the embodiment, the voltage detection circuit 151 comprises at least one resistance to detect the voltage inputted from the power input interface 111. The comparison circuit 153 includes a comparator which includes two input ports and an output port. The voltage detection circuit 151 is connected to a positive input port of the comparator, the reference voltage generation circuit 155 is connected to a negative input port of the comparator, and the output port is configured to output the control signal to the call forwarding unit 130.
In another embodiment, as shown in FIG. 3, the detection unit 150 may be powered by an external power source 200 connected to the power input interface 111 during a charging process of the power supply unit 110. The detection unit 150 is activated only when the external power source 200 is connected to the power input interface 111. Additionally, the detection unit 150 further includes a resistor-capacitor (RC) circuit configured to filter power signals output from the external power source.
The call forwarding unit 130 forwards the incoming call to a predetermined communication device when the control signal is generated. In one embodiment, the call forwarding unit 130 may execute a call forwarding program of the communication device 10 to forward the incoming call. In particular, the call forwarding unit 130 includes a processing module 131, a storage module 133, and a setting module 135 (see FIG. 1). The setting module 135 sets identification (ID) such as a phone number of the predetermined communication device. The storage module 133 stores the ID of the communication device and the call forwarding program. The processing module 131 executes the call forwarding program to forward the incoming call to the predetermined communication device having the ID stored in the storage module 133, when the control signal is received by the call forwarding unit 130.
Referring to FIG. 4, a flowchart of one embodiment of an incoming call forwarding method of the communication device 10 of FIG. 1 is shown. Depending on the embodiment, additional steps may be added, others removed, and the ordering of the steps may be changed.
In step S100, when an incoming call is received by the communication device 10, the detection unit 150 detects whether the power supply unit 110 is in a charging state.
In step S200, when the power supply unit 110 is in the charging state and the incoming call is received, the detection unit 150 generates a control signal and outputs the control signal to the call forwarding unit 130,.
In step S300, the call forwarding unit 130 forwards the incoming call to a predetermined communication device when the control signal is received from the detection unit 150.
Although certain embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.