Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
In the present embodiment, a charging and discharging method of a terminal is provided, and fig. 1 is a flowchart of a charging and discharging method of a terminal according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, detecting whether a wireless signal with a specific frequency meeting the preset signal intensity is received;
step S104, determining the current working mode of the wireless charging and discharging unit according to the wireless signal and a preset identification code, wherein the working mode is a receiving mode or a transmitting mode, and the identification code is used for distinguishing equipment to be charged and wireless charging equipment;
step S106, under the condition that the working mode is the receiving mode, wirelessly charging the self through a charging and discharging coil connected with the receiving unit; and under the condition that the working mode is the transmitting mode, wirelessly supplying power to the equipment to be charged through the charging and discharging coil connected with the transmitting unit.
Through the steps, when the wireless signal of the specific frequency meeting the preset signal strength is received, it can be considered that the equipment capable of being effectively charged or waiting for charging operation exists near the terminal, at the moment, the terminal can determine the working mode of the wireless charging and discharging unit according to the received wireless signal and the agreed identification code in advance, thereby determining whether to wirelessly charge the terminal or wirelessly supply power to the equipment to be charged, so that the terminal has the functions of wireless charging and wireless power supply, the problem that the wireless charging equipment and the wireless power supply equipment in the related technology are single in function and inconvenient for users is solved, the use flexibility of the wireless charging and discharging equipment is improved, and the user experience is improved.
As a preferred embodiment, in order to ensure the reliability of the charging and discharging device of the opposite terminal, before determining the current working mode of the wireless charging and discharging unit, the identity validity of the sender of the wireless signal may be determined; or, whether the sender of the wireless signal is within the effective range is judged. For example, whether the sender is legitimate or not can be determined by the content of the identification code carried in the wireless signal. Through the mode, the possibility that the terminal is in an abnormal condition in the charging and discharging process is reduced, for example, the condition that the terminal sends the limited electric quantity to the incorrect opposite-end device to be charged when power is supplied can be avoided, and therefore resources are saved.
The identification code in step S104 may be set by the user in advance, or may be agreed by other manners, and in specific implementation, one of the charging and discharging ends may send the identification code to the opposite end device in a wireless signal carried by the identification code. For example, the device on the side to be charged may transmit the identification code to the device on the opposite end, or the device on the side to be powered may transmit the identification code. As a preferred embodiment, the device of the active initiator of charging or power supply may also send the identification code, and after receiving the identification code, the terminal may determine, according to the identification code, whether the sender of the wireless signal is the device to be charged or the wireless charging device; under the condition that a sender of the wireless signal is the equipment to be charged, the current working mode of the wireless charging and discharging unit can be determined to be a transmitting mode; in the case that the sender of the wireless signal is the wireless charging device, it may be determined that the current operation mode of the wireless charging and discharging unit is the receiving mode. Through the mode, the terminal can conveniently adjust the working mode of the terminal according to the requirements of charging and discharging the opposite terminal equipment, and the use flexibility of the terminal is improved.
In specific implementation, only one charging and discharging coil can be arranged in the terminal, and the switching of the working mode of the wireless charging and discharging unit between the transmitting mode and the receiving mode is realized by controlling the receiving unit or the transmitting unit at the other end connected with the coil. For example, in the case that the charging and discharging coil is connected to the receiving unit (i.e., the working mode of the charging and discharging unit is the receiving mode), the receiving unit may convert the ac signal from the charging and discharging coil into a dc signal, and charge the battery of the receiving unit through the wireless charging interface; and under the condition that the charging and discharging coil is connected with the transmitting unit (namely, the working mode of the charging and discharging unit is the transmitting mode), the direct current signal from the external power supply can be converted into an alternating current signal through the transmitting unit, and the alternating current signal is transmitted to the equipment to be charged through the charging and discharging coil connected with the transmitting unit.
The alternating current signal source of the charging and discharging coil has two aspects:
in the first situation, when the terminal is used as a device to be charged and operates in a receiving mode, the ac signal is generated by other wireless charging devices, and the specific generation manner includes, but is not limited to, a forward conversion manner or a flyback conversion manner, which is common in a switching power supply, and the like, and is transmitted to the outside through a coil to which a wireless charging device (i.e., the wireless charging device) belongs, and a charging and discharging coil of the terminal receives the ac signal in an induction manner and realizes charging after ac-dc conversion by a receiving unit;
in the second case, when the terminal is used as a wireless charging device and operates in a transmitting mode, the ac signal is generated by a transmitting unit of the terminal, the specific generation mechanism is the same as the first case, the ac signal is transmitted to the outside through a charging and discharging coil of the terminal, and other devices to be charged receive the ac signal through a receiving coil of the terminal and are charged after internal ac-dc conversion processing.
The alternating current signal of the charging and discharging coil can comprise at least two frequencies, wherein the first frequency corresponds to a wireless charging or wireless power supply working mode and is the working frequency for realizing electric energy transmission; the second frequency corresponds to detection and identification of the wireless charging device and is the working frequency of interaction between the wireless charging device and the device to be charged. For example, in a normal wireless charging or wireless power supply process, the ac signal operates at the second frequency to transmit the identification code and the identity confirmation, and after the confirmation is completed, the ac signal operates at the first frequency to realize wireless power transmission. Preferably, during the period that the alternating current signal works at the first frequency, interaction can be realized through the second frequency, the states of the wireless charging device and the equipment to be charged are confirmed, the interaction process can occur at certain time intervals and is completed in a very short time, and the normal operation of wireless charging or wireless power supply is not influenced.
For example, the terminal may include an external power interface, a charging management unit, a wireless charging interface, a wireless power management unit; the external power interface may be connected to an external power source, which includes a Universal Serial Bus (USB) or an adapter; the charging management unit also comprises a charging mode detection unit which is used for identifying the charging mode and feeding back the current charging state information to the user; the wireless charging interface is connected with the charging management unit and the wireless power management unit. Wherein, the external power interface is connected with the radio power management unit, and the radio power management unit works in two modes: a receive mode and a transmit mode; when the wireless power management unit works in a sending mode, the terminal realizes the function of wireless power supply; and the wireless power management unit may further include a receiving unit, a transmitting unit, a wireless power control unit, a device identification unit, and a coil; the receiving unit is operated in a receiving mode of the radio power management unit; the transmitting unit works in a transmitting mode of the radio power management unit; the wireless power supply control unit is connected with the coil and determines whether the coil is connected with the transmitting unit or the receiving unit according to the result fed back by the equipment identification unit; the transmitting unit and the receiving unit share the same set of coils.
At the moment, when the external power supply interface does not have an external power supply and the terminal is in the effective range of the external wireless charging device, the wireless power supply management unit works in a receiving mode and is connected with the charging management unit through the wireless charging interface to realize wireless charging; and when the external power supply interface is connected with an external power supply and simultaneously connected with the wireless power supply management unit, and other legal devices to be charged exist in the effective charging range of the terminal, the wireless power supply management unit works in a sending mode, and the terminal serves as a wireless charging device to realize wireless power supply for the other legal devices to be charged.
Considering that the battery capacity of the terminal is small at present, although the battery of the terminal can be used for supplying power to the outside, in order to supplement the electric quantity of the battery of the terminal as soon as possible, the external power interface can be preferentially monitored before the current working mode of the wireless charging and discharging unit is determined; and when the external power supply interface has external power supply input and does not detect a wireless signal, entering a wired charging mode. And when the external power interface detects that the external power input is available, if the battery of the device to be charged is fully charged or the device to be charged leaves the effective charging range, entering a wired charging mode to charge the battery of the device to be charged in a wired manner. Therefore, the terminal has the functions of wired charging and wireless charging and also has the functions of wireless charging and wireless power supply, and correspondingly, the terminal comprises three states: wired charging, wireless charging, and wireless power supply. Wherein, the mode of realizing wired charging function can be: the external power supply interface is connected with the charging management unit, and when an external power supply is connected, a wired charging function is achieved.
And in the process that the terminal carries out wired charging on the self battery, if the wireless signal is received and the legal device to be charged is confirmed to exist, the self battery is not charged any more, the wireless power supply mode is switched to, and the wireless power supply is carried out on the device to be charged. Through the mode, when the condition that the equipment to be charged needs to be charged is detected, the equipment to be charged is preferentially powered, and the battery is charged after the charging is finished, so that the user experience is improved. For example, when the wireless power management unit works in the sending mode, the terminal is used as a wireless charging device and is powered by an external power supply, and at the moment, if the device identification unit confirms that a legal device to be charged exists, the terminal does not perform self charging any more and is switched to the wireless power supply mode; and when the battery of the external legal device to be charged is fully charged or leaves the effective charging range of the terminal, the terminal is switched to a wired charging mode to charge the battery of the terminal.
Corresponding to the above method, this embodiment further provides a charging and discharging terminal, which is used to implement the foregoing embodiment and preferred embodiments, and the description of the terminal is omitted for brevity. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 2 is a block diagram of a charge and discharge terminal according to an embodiment of the present invention, and as shown in fig. 2, the terminal includes: a detection module 22, a determination module 24 and a processing module 26. Each block will be described in detail below.
A detection module 22 for detecting whether a wireless signal of a specific frequency satisfying a predetermined signal strength is received; a determining module 24, coupled to the detecting module 22, configured to determine a current operating mode of the wireless charging/discharging unit according to the wireless signal and a preset identification code, where the operating mode is a receiving mode or a transmitting mode, and the identification code may be used to distinguish a device to be charged from a wireless charging device; the processing module 26 is coupled with the determining module 24 and is used for wirelessly charging the wireless charging module by a charging and discharging coil connected with the receiving unit under the condition that the determining module 24 determines that the working mode is the receiving mode; and wirelessly supplying power to the device to be charged through a charging and discharging coil connected with the transmitting unit under the condition that the determining module 24 determines that the working mode is the transmitting mode.
In this embodiment, through the above modules, when the detection module 22 receives a wireless signal with a specific frequency meeting a predetermined signal strength, it may be considered that a device capable of performing an effective charging or waiting charging operation exists near the terminal, at this time, the terminal may determine the operating mode of the wireless charging and discharging unit according to the received wireless signal and the predetermined identification code through the determination module 24, and wirelessly charge itself through the charging and discharging coil connected to the receiving unit when the operating mode is the receiving mode through the processing module 26; under the condition that the working mode is the transmitting mode, the charging and discharging coil connected with the transmitting unit is used for wirelessly supplying power to the equipment to be charged, so that the terminal can wirelessly charge the terminal through an external wireless charger, and the terminal can also become a wireless power supply device to supply power to other wireless equipment to be charged, and has the functions of wireless charging and wireless power supply. The problem of among the correlation technique wireless charging equipment and wireless power supply equipment function singleness and lead to the user inconvenient to use is solved, the flexibility that wireless charging and discharging equipment used has been improved, user experience has been promoted.
Fig. 3 is a block diagram of a charge and discharge terminal according to a preferred embodiment of the present invention, and as shown in fig. 3, the terminal may further include: a monitoring module 32 for monitoring the external power interface; and the wired charging module 34, coupled to the detection module 22 and the monitoring module 32, is configured to enter a wired charging mode when the monitoring module 32 monitors that the external power interface has an external power input and the detection module 22 does not detect a wireless signal.
The following description is made in conjunction with the preferred embodiments, which combine the above embodiments with the preferred embodiments.
In the preferred embodiment, an electronic device, in particular, a terminal device with a wireless charging function is provided. The terminal can realize the compatibility of a wired charging function and a wireless charging function and clearly indicate the current charging state to a user; meanwhile, the terminal can also realize the compatibility of wireless charging and wireless power supply, and the following description takes the terminal as a wireless charging device as an example.
In order to realize compatibility of the wired charging function and the wireless charging function, the terminal may include an external power interface, a wireless charging interface, a charging management unit, and a wireless power management unit. The external power supply interface can comprise a USB or an adapter, is consistent with a wired charging interface which is commonly used at present, and is connected with the charging management unit; the wireless charging interface receives the electric energy from the wireless power management unit and transmits the electric energy to the charging management unit; the charging management unit receives an output from an external power supply or a wireless charging unit and charges the battery of the terminal itself.
In addition, in order to realize compatibility of wireless charging and wireless power supply, the terminal can also realize compatibility and switching of wireless charging and wireless power supply through the wireless power supply management unit. The wireless power management unit is connected with the wireless charging interface and specifically comprises a receiving unit, a transmitting unit, a wireless charging and discharging control unit, an equipment identification unit and a charging and discharging coil.
For example, when the terminal works in a wireless charging mode and serves as a device to be charged, the receiving unit converts an alternating current signal from the charging and discharging coil into a direct current signal, and the direct current signal is output to the charging management unit through the wireless charging interface to charge a terminal battery; when the terminal works in a wireless power supply mode (namely a transmitting mode) and is used as a wireless charging device (also called a wireless charger), an external power supply supplies power to the terminal and stops charging a self battery; when the terminal works in a wireless power supply mode and is used as a wireless charging device, the transmitting unit converts a direct current signal from an external power supply into an alternating current signal and transmits the alternating current signal through the wireless charging and discharging coil, so that other equipment to be charged can receive and realize wireless charging.
The terminal comprises an equipment identification unit which is responsible for judging whether a legal wireless charging device or wireless equipment to be charged exists in the charging and discharging effective range of the terminal and selecting the self wireless power management state of the terminal according to the judgment result. For example, the device identification unit may send and receive a wireless detection signal at a specific frequency, the transmission signal strength of the detection signal can be received by other devices only within a certain range, meanwhile, the reception signal strength of the detection signal is only valid when other devices are within a certain range of the terminal, after the range is exceeded, both the transmission signal and the reception signal of the detection signal are no longer valid, the charging identification unit distinguishes the device to be charged or the wireless charging device according to a predetermined identification code, and confirms whether the identity of the device to be charged or the wireless charging device is legal and whether the identity of the device to be charged or the wireless charging device is within a valid range according to the received detection signal strength and feedback information.
According to the result fed back by the equipment identification unit, the wireless charging and discharging control unit in the terminal enables or closes the transmitting unit or the receiving unit, so that the charging and discharging coil is only connected with one of the transmitting unit or the receiving unit, and the terminal is switched to serve as a wireless device to be charged or a wireless power supply device (namely a wireless charger).
Through the manner provided by the preferred embodiment, the terminal can have both wireless charging and wireless power supply functions, can be used as a wireless charging device to supply power to other wireless charging devices under specific conditions, and can perform mode switching according to the actual use environment of a user, for example, the charging state of the terminal can include a wired charging mode, a wireless charging mode and a wireless power supply mode, so that the terminal has both the wired charging, wireless charging and wireless power supply functions, and can adapt to various application environments.
To achieve the different charging states described above, in an implementation, the terminal may include an external power interface, a charging management unit, a wireless charging interface, and a wireless power management unit. The charging management unit further comprises a charging mode detection unit used for feeding back the current charging state information to the user. In the wired charging mode, an external power supply (USB or adapter) supplies power to the terminal through an external power supply interface, and wired charging is completed through a charging management unit; in the wireless charging mode, the wireless power supply management unit receives power supply from an external wireless charging device, outputs the power supply to the charging management unit through the wireless charging interface, and finally the charging management unit completes wireless charging; in the wireless power supply mode, an external power supply (USB or adapter) supplies power to the wireless power management unit through the external power interface, and the wireless power management unit completes the conversion of wireless energy to realize wireless power supply to other wireless charging equipment. In addition, when the battery of the external legal device to be charged is fully charged or leaves the effective charging range of the terminal, the terminal is switched to the wired charging state of the terminal, and when the terminal works in the wireless power supply mode, the external power supply supplies power, transmits an alternating current signal to the device to be charged and stops charging of the terminal.
The present preferred embodiment will be described in further detail below with reference to the accompanying drawings.
Fig. 4 is a connection diagram of charge and discharge terminal-related modules according to a preferred embodiment of the present invention, and as shown in fig. 4, the terminal includes an external power interface 1, a wireless charging interface 2, a charging management unit 3, a wireless power management unit 4, and a terminal system 5. The charging management unit 3 further includes a charging mode detection unit 31; the external power interface 1 and the wireless charging interface 2 are respectively connected with the charging management unit 3, and the charging management unit 3 provides required electric energy in wired charging and wireless charging modes; whether in the wired charging mode or the wireless charging mode, the charging is finally completed by the charging management unit 3; the external power supply interface 1 is further connected with the wireless power supply management unit 4, when the terminal works in a wireless power supply mode and is used as a wireless charging device, the external power supply interface 1 supplies power to the wireless power supply management unit 4, the wireless power supply management unit 4 supplies power to external equipment to be charged wirelessly, the wireless power supply management unit 4 enables the external equipment to be charged to achieve a wireless charging function, and the charging mode detection unit 31 achieves monitoring of the external power supply interface 1 and the wireless charging interface 2, so that specific charging modes are identified. The following gives an important description of the radio source management unit 4: the radio power management unit 4 includes a receiving unit 41, a transmitting unit 42, a radio power control unit 43, a device identification unit 44, and a coil 45. Wherein the receiving unit 41 and the transmitting unit 42 correspond to a receiving mode and a transmitting mode of the radio source management unit 4, respectively; the device identification unit 44 is responsible for detecting and further verifying the external wireless charging device or the device to be charged, so as to determine whether the identity of the external wireless charging device or the device to be charged is legal.
Fig. 5 is a schematic diagram illustrating a switching manner among three states of wired charging, wireless charging and wireless power supplying according to a preferred embodiment of the present invention, and the following describes fig. 5 with reference to relevant modules in fig. 4.
As shown in fig. 5, the charging detection unit 3 monitors the external power source interface 1 and the wireless charging interface 2 in real time, and the device identification unit 44 detects whether there is a legal wireless device to be charged or a wireless charging apparatus at regular time. If the external power interface 1 has an input and feeds back to the terminal system 5, the terminal system 5 further checks whether the wireless power control unit 43 has a feedback.
If the wireless power supply control unit 43 has no feedback, the wired charging process is started, and the current wired charging state is fed back to the user; if the wireless power control unit 43 has feedback and receives information of an external legal device to be charged from the device identification unit 44, the terminal starts to enter a wireless power supply mode and feeds back the current wireless power supply state to the user.
If the external power interface 1 has not input, but the terminal system 5 receives the feedback from the wireless power control unit 43, and the device identification unit 44 receives the information of the external legal wireless charging apparatus, the terminal starts to enter the wireless charging mode and feeds back the current wireless charging state to the user.
For example, the device identification unit 44 sends and receives a wireless detection signal at a specific frequency, the transmitted signal strength of the detection signal can be received by other devices only within a certain range, and the received signal strength of the detection signal is valid only when other devices are within a certain range of the terminal, and after exceeding the certain range, both the transmitted signal and the received signal of the detection signal are no longer valid. The device identification unit 44 distinguishes the device to be charged or the wireless charging device according to a predetermined identification code, the identification code defines different device types and can be added with the status information of the device, and the device identification unit 44 confirms whether the identity of the device to be charged or the wireless charging device is legal and whether the identity is in a valid range according to the received detection signal strength and the feedback information.
The wireless power control unit 43 decides whether the wireless power management unit 4 operates in the reception mode or the transmission mode according to the result fed back by the device recognition unit 44, and feeds back the detection result of the device recognition unit 44 upward, so that the user can know the current wireless power management state. The coil 45 serves as an interface for wireless power transmission, and enables power transfer between the terminal and an external wireless charging device or a device to be charged, and particularly, the terminal will use the same set of coils 45 regardless of a wireless charging mode or a wireless power supply mode, and the coils 45 are located on the back of the terminal.
Fig. 6 is a schematic diagram illustrating the application of the terminal in the wired charging state according to the preferred embodiment of the present invention, as shown in fig. 6, when the terminal operates in the wired charging mode, the charging mode of the terminal is controlled by the charging management unit 3 to complete the charging process.
Fig. 7 is a schematic front view of a terminal as a device to be charged during wireless charging according to a preferred embodiment of the present invention, fig. 8 is a schematic side view of a terminal as a device to be charged during wireless charging according to a preferred embodiment of the present invention, and as shown in fig. 7 and fig. 8, when the terminal operates in a wireless charging mode, the terminal 201 is in an effective range of the wireless charging apparatus 101, and the terminal 201 and the wireless charging apparatus 101 complete identification, and the terminal 201 starts to receive power transmission from other wireless charging apparatuses for wireless charging.
Fig. 9 is a schematic front view of a terminal as a wireless power supply device during wireless charging according to a preferred embodiment of the present invention, and fig. 10 is a schematic side view of a terminal as a wireless power supply device during wireless charging according to a preferred embodiment of the present invention, and as shown in fig. 9 and fig. 10, when the terminal operates in a wireless power supply mode, the terminal 201 is used as a wireless charging device and is powered by an external power source 401, and at this time, the terminal 201 does not perform self-charging. The external wireless device to be charged 301 is placed on the back of the terminal 201, completes identification, and is wirelessly charged by the terminal 201. When the battery of the device to be charged 301 is fully charged or has left the effective charging range of the terminal 201, the terminal 201 switches to the wired charging mode to charge its battery.
In summary, in the embodiments of the present invention, when a wireless signal of a specific frequency that meets a predetermined signal strength is received, an operating mode of the wireless charging/discharging unit is determined according to the received wireless signal and a predetermined identification code, and when the operating mode is a receiving mode, the wireless charging unit wirelessly charges itself; under the condition that the working mode is the transmitting mode, the wireless power supply is carried out on the charging equipment to be charged, so that the terminal has the functions of wireless charging and wireless power supply, the problem that the user is inconvenient to use due to the fact that the wireless charging equipment and the wireless power supply equipment are single in function in the related technology is solved, the use flexibility of the wireless charging and discharging equipment is improved, and the user experience is improved.
In another embodiment, a software is provided, which is used to execute the technical solutions described in the above embodiments and the preferred embodiments.
In another embodiment, a storage medium is provided, wherein the software is stored in the storage medium, and the storage medium includes, but is not limited to, an optical disc, a floppy disc, a hard disc, a rewritable memory, and the like.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.