CN110783984A - Charging box, charging control method thereof and readable storage medium - Google Patents
Charging box, charging control method thereof and readable storage medium Download PDFInfo
- Publication number
- CN110783984A CN110783984A CN201911058142.2A CN201911058142A CN110783984A CN 110783984 A CN110783984 A CN 110783984A CN 201911058142 A CN201911058142 A CN 201911058142A CN 110783984 A CN110783984 A CN 110783984A
- Authority
- CN
- China
- Prior art keywords
- charging
- box
- mode
- wired
- interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 230000006698 induction Effects 0.000 claims description 15
- 230000008569 process Effects 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000003993 interaction Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000005672 electromagnetic field Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0029—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J50/00—Circuit arrangements or systems for wireless supply or distribution of electric power
- H02J50/10—Circuit arrangements or systems for wireless supply or distribution of electric power using inductive coupling
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J50/00—Circuit arrangements or systems for wireless supply or distribution of electric power
- H02J50/80—Circuit arrangements or systems for wireless supply or distribution of electric power involving the exchange of data, concerning supply or distribution of electric power, between transmitting devices and receiving devices
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/007—Regulation of charging or discharging current or voltage
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The invention provides a charging box, a charging control method thereof and a readable storage medium, wherein the charging control method of the charging box comprises the following steps: when the current charging mode of the charging box is a wired charging mode and a wireless charging mode for charging, acquiring a target charging mode with low charging priority in the wired charging mode and the wireless charging mode; the charging box is controlled to disconnect the charging of the target charging mode, namely, in the embodiment, after the charging box is connected with wireless charging and wired charging, the priority is preset by comparing the two charging modes, so that the charging mode of the charging box is switched stably and efficiently, and the charging current of the charging box is reduced by disconnecting the charging of the charging mode with low priority, so that the battery is protected.
Description
Technical Field
The invention relates to the technical field of earphones, in particular to a charging control method and device of a charging box and a readable storage medium.
Background
At present, because the wireless earphones are convenient to use, the wireless earphones have gradually replaced wired earphones, and common wireless earphones comprise Bluetooth earphones, infrared earphones, 2.4G wireless earphones and the like. The wireless earphone needs to be charged when in use, so the charging box specially used for charging the wireless earphone is produced.
In the prior art, the battery of the charging box is generally charged by one of wireless charging and wired charging. And two kinds of charging equipment are connected to the charging box at the same time or another kind of charging equipment is connected to the charging box in the using process of the charging equipment, so that the charging current of the charging box is overlarge, and the battery of the charging box is burnt out.
Disclosure of Invention
The invention mainly aims to provide a charging box, a charging control method thereof and a readable storage medium, which solve the problem that the charging current of the charging box is too large and the battery of the charging box is burnt out due to the fact that two kinds of charging equipment are connected into the conventional charging box.
In order to achieve the above object, the present invention provides a charging control method for a charging box, wherein the charging box comprises a box body, an induction coil arranged in the box body, and a USB interface arranged on the box body, wherein a controller and a battery electrically connected to the controller are also arranged in the box body, the induction coil is electrically connected to the battery, and the USB interface is electrically connected to the battery; the charging control method of the charging box comprises the following steps:
when the current charging mode of the charging box is a wired charging mode and a wireless charging mode for charging, acquiring a target charging mode with low charging priority in the wired charging mode and the wireless charging mode;
and controlling the charging box to disconnect the charging of the target charging mode.
Optionally, a wired charging interface and a wireless charging interface for connecting a charging device are provided on the controller, and before the step of charging the current charging mode of the charging box in the wired charging mode and the wireless charging mode, the method further includes:
acquiring the levels of the wired charging interface and the wireless charging interface;
determining a current charging mode of the charging box according to the level.
Optionally, the step of determining the current charging mode of the charging box according to the level comprises:
when the levels of the wireless charging interface and the wired charging interface are both high levels, the current charging mode of the charging box is confirmed to be a wired charging mode and a wireless charging mode for charging, wherein the initial level values of the wireless charging interface and the wired charging interface are both low levels.
Optionally, after the step of determining the current charging mode of the charging box according to the level, the charging control method of the charging box further includes:
controlling the charging box to disconnect charging, and detecting the levels of the wireless charging interface and the wired charging interface again;
and when the re-detected levels of the wireless charging interface and the wired charging interface are both high levels, controlling the charging box to charge in a charging mode with high charging priority in the wired charging mode and the wireless charging mode.
Optionally, after the step of obtaining the levels of the wired charging interface and the wireless charging interface, the charging control method of the charging box further includes:
when the level of the wireless charging interface is high level and the level of the wired charging interface is low level, determining that the charging box is charged in the wireless charging mode;
and when the level of the wireless charging interface is low level and the level of the wired charging interface is high level, determining that the charging box is charged in the wired charging mode.
Optionally, the wired charging mode includes a two-wire charging mode and a four-wire charging mode.
In addition, in order to achieve the above object, the present invention further provides a charging box, which includes a memory, a processor, and a charging control program of the charging box stored on the memory and operable on the processor, wherein the charging control program of the charging box, when executed by the processor, implements the steps of the charging control method of the charging box as described above.
Further, to achieve the above object, the present invention also proposes a readable storage medium having stored thereon a charging control program of a charging box, which when executed by a processor, implements the steps of the charging control method of the charging box as described above.
The invention provides a charging box, a charging control method thereof and a readable storage medium, wherein the charging control method of the charging box comprises the following steps: when the current charging mode of the charging box is a wired charging mode and a wireless charging mode for charging, acquiring a target charging mode with low charging priority in the wired charging mode and the wireless charging mode; the charging box is controlled to disconnect the charging of the target charging mode, namely, in the embodiment, after the charging box is connected with wireless charging and wired charging, the priority is preset by comparing the two charging modes, so that the charging mode of the charging box is switched stably and efficiently, and the charging current of the charging box is reduced by disconnecting the charging of the charging mode with low priority, so that the battery is protected.
Drawings
In order to more clearly illustrate the embodiments or exemplary technical solutions of the present invention, the drawings used in the embodiments or exemplary descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a charging control method of the charging box according to a first embodiment of the invention;
fig. 3 is a flowchart illustrating a charging control method for a charging box according to a second embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: when the current charging mode of the charging box is a wired charging mode and a wireless charging mode for charging, acquiring a target charging mode with low charging priority in the wired charging mode and the wireless charging mode; and controlling the charging box to disconnect the charging of the target charging mode.
In the prior art, the battery of the charging box is generally charged by one of wireless charging and wired charging. And two kinds of charging equipment are connected to the charging box at the same time or another kind of charging equipment is connected to the charging box in the using process of the charging equipment, so that the charging current of the charging box is overlarge, and the battery of the charging box is burnt out.
The embodiment of the invention provides a solution, when the current charging mode of the charging box is a wired charging mode and a wireless charging mode for charging, a target charging mode with low charging priority in the wired charging mode and the wireless charging mode is obtained; the charging box is controlled to disconnect the charging of the target charging mode, namely, in the embodiment, after the charging box is connected with wireless charging and wired charging, the priority is preset by comparing the two charging modes, so that the charging mode of the charging box is switched stably and efficiently, and the charging current of the charging box is reduced by disconnecting the charging of the charging mode with low priority, so that the battery is protected.
As shown in fig. 1, fig. 1 is a schematic diagram of a hardware operating environment of a terminal according to an embodiment of the present invention.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display (Display), an input unit such as a Keyboard (Keyboard), a remote controller, and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (such as a non-volatile memory), such as a disk memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the terminal shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system and a charging control program of the charging box.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the charging control program of the charging box stored in the memory 1005, and perform the following operations:
when the current charging mode of the charging box is a wired charging mode and a wireless charging mode for charging, acquiring a target charging mode with low charging priority in the wired charging mode and the wireless charging mode;
and controlling the charging box to disconnect the charging of the target charging mode.
Further, the processor 1001 may call the charging control program of the charging box stored in the memory 1005, and also perform the following operations:
acquiring the levels of the wired charging interface and the wireless charging interface;
determining a current charging mode of the charging box according to the level.
Further, the processor 1001 may call the charging control program of the charging box stored in the memory 1005, and also perform the following operations:
when the levels of the wireless charging interface and the wired charging interface are both high levels, the current charging mode of the charging box is confirmed to be a wired charging mode and a wireless charging mode for charging, wherein the initial level values of the wireless charging interface and the wired charging interface are both low levels.
Further, the processor 1001 may call the charging control program of the charging box stored in the memory 1005, and also perform the following operations:
controlling the charging box to disconnect charging, and detecting the levels of the wireless charging interface and the wired charging interface again;
and when the re-detected levels of the wireless charging interface and the wired charging interface are both high levels, controlling the charging box to charge in a charging mode with high charging priority in the wired charging mode and the wireless charging mode.
Further, the processor 1001 may call the charging control program of the charging box stored in the memory 1005, and also perform the following operations:
when the level of the wireless charging interface is high level and the level of the wired charging interface is low level, determining that the charging box is charged in the wireless charging mode;
and when the level of the wireless charging interface is low level and the level of the wired charging interface is high level, determining that the charging box is charged in the wired charging mode.
Further, the processor 1001 may call the charging control program of the charging box stored in the memory 1005, and also perform the following operations:
the wired charging mode includes a two-wire charging mode and a four-wire charging mode.
The embodiment of the invention provides a charging control method of a charging box.
Referring to fig. 2, fig. 2 is a schematic flow chart of a charging control method of a charging box according to a first embodiment of the present invention.
The embodiment provides a charging control method of a charging box, which comprises the following steps:
s10, when the current charging mode of the charging box is a wired charging mode and a wireless charging mode for charging, acquiring a target charging mode with low charging priority in the wired charging mode and the wireless charging mode;
and S20, controlling the charging box to disconnect the charging of the target charging mode.
In an embodiment, the charging box includes a box body, an induction coil disposed in the box body, and a USB interface disposed on the box body, wherein the charging box further includes a battery disposed in the box body and a controller electrically connected to the battery, the induction coil is electrically connected to the battery, and the USB interface is electrically connected to the battery.
Specifically, the induction coil is connected with the battery in a circuit manner, and the USB interface is connected with the battery in a circuit manner. The circuit is integrated in the controller, that is, the induction coil and the USB interface are respectively connected to a circuit on the controller, and the controller is connected to a battery through the circuit, so that the induction coil and the USB interface are indirectly connected to the battery, thereby performing induction charging or wired charging on the battery.
Alternatively, the battery may be inductively charged by applying power to a charging pad including the induction coil through the induction coil provided in the case in cooperation with the induction coil inside the wireless charging apparatus, and the battery may be charged by using an induced current generated in the induction coil included in the battery of the charging box due to an electromagnetic field generated from the induction coil located inside the charging pad.
Alternatively, the battery may be charged by connecting a wired charging device to the USB interface, wherein the wired charging device may include an adapter, a terminal, and the like, and wherein the terminal includes a computer, a mobile charger, a distribution box, and the like, without limitation. That is, in this embodiment, the charging box may use a wireless charging device or a wired charging device to charge the battery.
Further, the current charging mode of the charging box is a wired charging mode and a wireless charging mode, and the charging comprises three conditions: the wireless charging device and the wired charging device are accessed simultaneously, or the wireless charging device is accessed after the wired charging device is accessed, or the wired charging device is accessed after the wireless charging device is accessed. Because the battery of the charging box of the embodiment can not bear large-current charging, namely, in the charging process of the charging box, only any one of wireless charging equipment or wired charging equipment can be adopted for charging, so that the overlarge charging current of the charging box is reduced, and the battery of the charging box is protected.
Further, when the current charging mode of the charging box is a wired charging mode and a wireless charging mode for charging, a target charging mode with a low charging priority in the wired charging mode and the wireless charging mode is obtained; and when the target charging mode is acquired, controlling the charging box to disconnect the charging of the target charging mode. The charging priority is a charging priority preset by a user, for example, the preset charging priority is that the charging priority of the wired charging mode is higher than the charging priority of the wireless charging mode, or the preset charging priority may also be that the charging priority of the wired charging mode is lower than the charging priority of the wireless charging mode. At this time, the charging mode with the low charging priority set is set as the target charging mode, and the target charging mode is turned off. That is, in the embodiment, the charging box is charged in the charging mode with high charging priority, so that the charging current of the charging box is reduced; moreover, the charging mode has higher charging priority, namely, when the charging box is charged, the charging mode is the optimal charging mode of the charging box, so that the resources can be saved, and the efficient charging is realized.
Further, controlling the charging box to disconnect the charging of the target charging mode includes three cases: when the charging box is simultaneously connected into a wired charging mode and a wireless charging mode, the charging of a target charging mode with low charging priority is directly disconnected; or the charging box is connected with the wired charging mode and then connected with the wireless charging mode, when the charging priority of the wired charging mode is high, the wireless charging mode is connected after disconnection, and when the charging priority of the wireless charging mode is high, the wired charging mode which is connected firstly is disconnected; or the charging box is connected with the wired charging mode after being connected with the wireless charging mode, when the charging priority of the wired charging mode is high, the wireless charging mode which is connected in advance is disconnected, and when the charging priority of the wireless charging mode is high, the wired charging mode which is connected in after disconnection is disconnected.
Optionally, the charging priority of the preset wireless charging mode of this embodiment is higher than the charging priority of the wired charging mode, that is, the optimal charging mode of the charging box of this embodiment is the wireless charging mode. Of course, in other embodiments, the charging priority of the preset wired charging mode is higher than that of the wireless charging mode, and is not limited herein.
In an embodiment of the present invention, the charging control method of the charging box includes the steps of: when the charging box is charged in a wired charging mode and a wireless charging mode, a target charging mode with low charging priority in the wired charging mode and the wireless charging mode is obtained; the charging box is controlled to disconnect the charging of the target charging mode, namely, in the embodiment, after the charging box is connected with wireless charging and wired charging, the priority is preset by comparing the two charging modes, so that the charging mode of the charging box is switched stably and efficiently, and the charging current of the charging box is reduced by disconnecting the charging of the charging mode with low priority, so that the battery is protected.
Further, referring to fig. 3, a second embodiment of the present invention is proposed based on the first embodiment, and in this embodiment, before S10, the charging control method of the charging box further includes:
s30, acquiring the levels of the wired charging interface and the wireless charging interface;
and S40, determining the current charging mode of the charging box according to the level.
In an embodiment, the controller is provided with a wired charging interface and a wireless charging interface for connecting a charging device, wherein the charging device includes the wired charging device and the wireless charging device as described in the above embodiments. Whether the charging box has wired charging equipment to access can be judged through the level of the wired charging interface in the embodiment, and whether the charging box has wireless charging equipment to access can be judged through the level of the wireless charging interface. That is, in this embodiment, the levels of the wired charging interface and the wireless charging interface are obtained, and after the levels of the wired charging interface and the wireless charging interface are obtained, the current charging mode of the charging box is determined according to the levels.
Further, the levels include a high level and a low level. In this embodiment, the high level is 3.3V, and the low level is 0V.
Further, when the levels of the wireless charging interface and the wired charging interface are both high levels, it is determined that the current charging mode of the charging box is a wired charging mode and a wireless charging mode for charging, wherein the initial level values of the wireless charging interface and the wired charging interface are both low levels.
Further, when the level of the wireless charging interface is high level and the level of the wired charging interface is low level, determining that the charging box is charged in the wireless charging mode; and when the level of the wireless charging interface is low level and the level of the wired charging interface is high level, determining that the charging box is charged in the wired charging mode. It can be understood that the target charging mode with low priority in the wired charging mode and the wireless charging mode only needs to be acquired when the levels of the wireless charging interface and the wired charging interface are both high, and when a single charging mode is adopted, the target charging mode does not need to be acquired.
Because the controller adopts an STM32F0 serial chip, and the chip is in a single-thread working mode, that is, an interrupt function is set in the controller, and the interrupt function is used for interrupting the current processing operation of the controller, for example, the current processing operation of the controller is to control the charging box to charge, that is, the interrupt function can control the charging box to disconnect charging, and re-detect the levels of the wireless charging interface and the wired charging interface; and when the re-detected levels of the wireless charging interface and the wired charging interface are both high levels, controlling the charging box to charge in a charging mode with high charging priority in the wired charging mode and the wireless charging mode.
Specifically, the current charging mode of the charging box is determined according to the level, for example, when it is determined that the current charging mode is a wired charging mode and a wireless charging mode for charging simultaneously, at this time, the charging of the charging box is interrupted through an interrupt function, and the levels of the wireless charging interface and the wired charging interface are re-detected, so as to ensure the accuracy of the level detection. Certainly, if only one charging device is accessed, for example, if the wired charging device is accessed, the level of the wired charging interface is pulled high, and the level of the wireless charging interface is not changed, at this time, the interruption of the wired charging interface can also be triggered through an interruption function, the level of the wired charging interface is obtained again in an interruption processing program, and when the wired charging interface is confirmed to be at a high level and the wireless charging interface is at a low level again, at this time, the accessed charging device is determined to be the wired charging device; or, if the wireless charging device is connected, the level of the wireless charging interface is pulled high, the level of the wired charging interface does not change, at this time, the interruption of the wireless charging interface can be triggered through an interruption function, the level of the wireless charging interface is acquired again in an interruption processing program, and when the wireless charging interface is confirmed to be at a high level and the wired charging interface is at a low level again, the connected charging device is determined to be the wireless charging device.
Further, the wired charging mode includes a two-wire charging mode and a four-wire charging mode. The controller is further provided with a data interface which is configured to realize data interaction between the charging box and the wired charging device. Namely, the wired charging mode can determine the two-core charging mode or the four-core charging mode through the level state of the data interface.
Specifically, the level state of a data interface of the controller is acquired; and confirming the type of the wired charging mode according to the level state. When the level state is a low level, no data interaction exists between the charging box and the wired charging equipment, namely the type of the wired charging mode is a two-core wire charging mode; when the level state is a high level, at this time, there is data interaction between the charging box and the wired charging device, that is, at this time, the type of the wired charging mode is a quad charging mode. Of course, in this embodiment, when the type of the wired charging mode is a two-core charging mode or a four-core charging mode, a direct charging device or other external charging devices may be used for charging, where the direct charging device may be an adapter charging device, and the other external charging devices may be charging apparatuses such as a computer terminal, a power strip, and a mobile power supply having a charging interface.
Specifically, when the type quad line charging mode of the wired charging mode is determined, a device descriptor may be generated by reading an address of an accessed wired charging device and according to the read address of the wired charging device, and the device descriptor may be returned to the controller, so as to distinguish a direct charging device or other external devices by the device descriptor. For example, when the device descriptor is "0", the wired charging device is a direct charging device, that is, the wired charging device is an adapter charging device; when the device descriptor is "1", the wired charging device is another external charging device, that is, the wired charging device is a charging device such as a computer terminal, a power strip, a mobile power supply and the like having a charging interface. Or when the device descriptor is "1", the wired charging device is a direct charging device, that is, the wired charging device is an adapter charging device; when the device descriptor is "0", the wired charging device is other external charging devices, that is, the wired charging device is a charging device such as a computer terminal, a power strip, a mobile power supply and the like having a charging interface.
Further, the charging current in the wireless charging mode is 0.4A, and the charging current corresponding to the two-core charging mode is set to 0.08A, that is, the charging current in the two-core charging mode is smaller than the charging current in the wireless charging mode.
Further, when the wired charging mode is the four-core charging mode and the current temperature is in a first temperature interval, the charging current of the four-core charging mode is the same as the charging current of the wireless charging mode; namely, when the wired charging mode is the four-core charging mode and the current temperature is in the first temperature interval, the charging current corresponding to the four-core charging mode is set to be 0.4A.
Further, when the wired charging mode is the four-core charging mode and the current temperature is in a second temperature interval, the charging current of the four-core charging mode is the same as the charging current of the two-core charging mode; namely, when the wired charging mode is the four-core charging mode and the current temperature is in the second temperature interval, the charging current corresponding to the four-core charging mode is set to be 0.08A.
Further, the first temperature range is 15 ℃ to 43 ℃, the second temperature range is 3 ℃ to 14 ℃, wherein the first temperature range and the second temperature range comprise end values (3 ℃, 14 ℃, 15 ℃ and 43 ℃), that is, the temperature value in the first temperature range is greater than the temperature value in the second temperature range, and the first temperature range and the second temperature range are both sub-ranges of the preset temperature range.
Further, when the wired charging mode is the four-core wire charging mode, the current temperature exceeds a first temperature interval, namely the current charging current of the four-core wire charging mode is interrupted, the current temperature is obtained again, whether the current temperature is higher than 43 ℃ or lower than 15 ℃ is judged, if the current temperature is higher than 43 ℃, the operation of interrupting charging is maintained, and if the current temperature is lower than 15 ℃, the charging current of the four-core wire charging mode is switched to 0.08A.
Further, when the wired charging mode is the four-core wire charging mode, the current temperature exceeds a second temperature interval, namely the current charging current of the four-core wire charging mode is interrupted, the current temperature is obtained again, whether the current temperature is higher than 14 ℃ or lower than 3 ℃ is judged, if the current temperature is lower than 3 ℃, the operation of interrupting charging is maintained, and if the current temperature is higher than 14 ℃, the charging current of the four-core wire charging mode is switched to 0.4A.
In the embodiment of the invention, the levels of the wired charging interface and the wireless charging interface are obtained; determining a current charging mode of the charging box according to the level. Whether the charging box is charged in a wired charging mode or a wireless charging mode can be determined through the levels of the wired charging interface and the wireless charging interface, so that the charging box is controlled to be charged in the charging mode with high charging priority in the wired charging mode and the wireless charging mode, the charging box is automatically switched to the charging mode with high charging priority, and the charging mode is stably and efficiently switched; and the charging of the charging mode with low priority is cut off to reduce the overlarge charging current of the charging box, thereby protecting the battery.
The present invention also proposes a charging box comprising: a memory, a processor and a charging control program of a charging box stored on the memory and operable on the processor, the charging control program of the charging box, when executed by the processor, implementing the steps of the charging control method of the charging box as described in the above embodiments.
The present invention also proposes a readable storage medium having stored thereon a charging control program of a charging box, which when executed by a processor implements the steps of the charging control method of the charging box as described in any of the above embodiments.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g., a mobile phone, a computer, a cloud server, or a network device) to execute the method according to the embodiments of the present invention.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (8)
1. The charging control method of the charging box is characterized in that the charging box comprises a box body, an induction coil arranged in the box body and a USB interface arranged on the box body, a controller and a battery electrically connected with the controller are also arranged in the box body, the induction coil is electrically connected with the battery, and the USB interface is electrically connected with the battery; the charging control method of the charging box comprises the following steps:
when the current charging mode of the charging box is a wired charging mode and a wireless charging mode for charging, acquiring a target charging mode with low charging priority in the wired charging mode and the wireless charging mode;
and controlling the charging box to disconnect the charging of the target charging mode.
2. The charging control method of the charging box according to claim 1, wherein the controller is provided with a wired charging interface and a wireless charging interface for connecting a charging device, and before the step of charging the charging box in the wired charging mode and the wireless charging mode, the method further comprises:
acquiring the levels of the wired charging interface and the wireless charging interface;
determining a current charging mode of the charging box according to the level.
3. The charging control method of a charging box according to claim 2, wherein the step of determining the current charging mode of the charging box according to the level comprises:
when the levels of the wireless charging interface and the wired charging interface are both high levels, the current charging mode of the charging box is confirmed to be a wired charging mode and a wireless charging mode for charging, wherein the initial level values of the wireless charging interface and the wired charging interface are both low levels.
4. A charging control method of a charging box according to claim 3, wherein after the step of determining the current charging mode of the charging box according to the level, the charging control method of the charging box further comprises:
controlling the charging box to disconnect charging, and detecting the levels of the wireless charging interface and the wired charging interface again;
and when the re-detected levels of the wireless charging interface and the wired charging interface are both high levels, controlling the charging box to charge in a charging mode with high charging priority in the wired charging mode and the wireless charging mode.
5. The charging control method of a charging box according to claim 2, wherein after the step of acquiring the levels of the wired charging interface and the wireless charging interface, the charging control method of a charging box further comprises:
when the level of the wireless charging interface is high level and the level of the wired charging interface is low level, determining that the charging box is charged in the wireless charging mode;
and when the level of the wireless charging interface is low level and the level of the wired charging interface is high level, determining that the charging box is charged in the wired charging mode.
6. The charging control method of a charging box according to claim 1, wherein the wired charging mode includes a two-wire charging mode and a four-wire charging mode.
7. A charging box characterized by comprising a memory, a processor, and a charging control program of the charging box stored on the memory and executable on the processor, the charging control program of the charging box realizing the steps of the charging control method of the charging box according to any one of claims 1 to 6 when executed by the processor.
8. A readable storage medium, characterized in that the readable storage medium has stored thereon a charging control program of a charging box, which when executed by a processor implements the steps of the charging control method of the charging box according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911058142.2A CN110783984B (en) | 2019-10-30 | 2019-10-30 | Charging cartridge, charging control method thereof, and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911058142.2A CN110783984B (en) | 2019-10-30 | 2019-10-30 | Charging cartridge, charging control method thereof, and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110783984A true CN110783984A (en) | 2020-02-11 |
CN110783984B CN110783984B (en) | 2023-11-07 |
Family
ID=69388567
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911058142.2A Active CN110783984B (en) | 2019-10-30 | 2019-10-30 | Charging cartridge, charging control method thereof, and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110783984B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101707384A (en) * | 2009-11-25 | 2010-05-12 | 中兴通讯股份有限公司 | System and method compatible for wired charging and wireless charging |
CN106532867A (en) * | 2016-12-30 | 2017-03-22 | 宇龙计算机通信科技(深圳)有限公司 | Charging circuit and mobile terminal |
CN106786907A (en) * | 2016-12-26 | 2017-05-31 | 广东欧珀移动通信有限公司 | A charging circuit, method and terminal |
WO2018129977A1 (en) * | 2017-01-13 | 2018-07-19 | 广东欧珀移动通信有限公司 | Charging control method and apparatus, storage medium, and computer device |
CN108879836A (en) * | 2018-06-27 | 2018-11-23 | 广州酷狗计算机科技有限公司 | A kind of bluetooth headset and its control method of charging |
CN109462262A (en) * | 2018-11-09 | 2019-03-12 | 歌尔科技有限公司 | A kind of wireless headset charging method, system and charging box and storage medium |
CN209088554U (en) * | 2018-07-26 | 2019-07-09 | 深圳市天道兴科技有限公司 | A kind of novel radio earphone charging box |
CN209419288U (en) * | 2019-03-28 | 2019-09-20 | 歌尔科技有限公司 | The system and wearable electronic of compatible for wired charging and wireless charging |
-
2019
- 2019-10-30 CN CN201911058142.2A patent/CN110783984B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101707384A (en) * | 2009-11-25 | 2010-05-12 | 中兴通讯股份有限公司 | System and method compatible for wired charging and wireless charging |
CN106786907A (en) * | 2016-12-26 | 2017-05-31 | 广东欧珀移动通信有限公司 | A charging circuit, method and terminal |
CN106532867A (en) * | 2016-12-30 | 2017-03-22 | 宇龙计算机通信科技(深圳)有限公司 | Charging circuit and mobile terminal |
WO2018129977A1 (en) * | 2017-01-13 | 2018-07-19 | 广东欧珀移动通信有限公司 | Charging control method and apparatus, storage medium, and computer device |
CN108879836A (en) * | 2018-06-27 | 2018-11-23 | 广州酷狗计算机科技有限公司 | A kind of bluetooth headset and its control method of charging |
CN209088554U (en) * | 2018-07-26 | 2019-07-09 | 深圳市天道兴科技有限公司 | A kind of novel radio earphone charging box |
CN109462262A (en) * | 2018-11-09 | 2019-03-12 | 歌尔科技有限公司 | A kind of wireless headset charging method, system and charging box and storage medium |
CN209419288U (en) * | 2019-03-28 | 2019-09-20 | 歌尔科技有限公司 | The system and wearable electronic of compatible for wired charging and wireless charging |
Also Published As
Publication number | Publication date |
---|---|
CN110783984B (en) | 2023-11-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11368039B2 (en) | Battery charging method and electronic device | |
US20200195019A1 (en) | Electronic device, method of controlling charging by electronic device, and method of supplying power by power supply device | |
EP3131171B1 (en) | Power adaptor, terminal and charging system | |
US20140300321A1 (en) | Method for controlling charging of electronic device, and electronic device and charging device supporting the same | |
EP3506050B1 (en) | Electronic device with usb cable type detection and control method thereof | |
CN110768332A (en) | Charging box, charging control method thereof and readable storage medium | |
EP2991156A1 (en) | Method and device for performing large-current charging on intelligent terminal | |
CN106412293B (en) | Foreign matter detection method and device and terminal equipment | |
KR20190136690A (en) | Electronic device comprsing control circuits controlling switchs connected to charging circuit | |
EP3771987B1 (en) | Electronic device for preventing damage of usb device and operating method thereof | |
KR20210014925A (en) | Electronic device and method of controlling frequency interference thereof | |
US11977618B2 (en) | Electronic device and control method | |
KR20200101096A (en) | Electronic device for controlling wireless charging and method for controlling thereof | |
CN104461952A (en) | An interface sharing method and terminal | |
CN106786904A (en) | Charging selection method, device and charging equipment | |
CN106532876A (en) | Power supply control method and device and computer equipment | |
CN106712178A (en) | Charging processing method and terminal | |
JP6387775B2 (en) | Portable electronic devices | |
CN110783984B (en) | Charging cartridge, charging control method thereof, and readable storage medium | |
CN108321900A (en) | Terminal charging control method and terminal | |
CN110797985A (en) | Coil switching method, device, storage medium and electronic device | |
EP3629428B1 (en) | Method and apparatus for changing impedance of terminal included in connector | |
CN108767606B (en) | Adapter, charging method, and computer-readable storage medium | |
CN112119566A (en) | Power supply method, device, system and storage medium | |
CN109768594B (en) | Charging method, terminal and charging component |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |