CN110783984B - Charging cartridge, charging control method thereof, and readable storage medium - Google Patents
Charging cartridge, charging control method thereof, and readable storage medium Download PDFInfo
- Publication number
- CN110783984B CN110783984B CN201911058142.2A CN201911058142A CN110783984B CN 110783984 B CN110783984 B CN 110783984B CN 201911058142 A CN201911058142 A CN 201911058142A CN 110783984 B CN110783984 B CN 110783984B
- Authority
- CN
- China
- Prior art keywords
- charging
- mode
- box
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 230000006698 induction Effects 0.000 claims description 17
- 230000008569 process Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000003993 interaction Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 1
- 230000005672 electromagnetic field Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
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 to the wireless charging and the 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 of the charging box with low priority is disconnected, so that the charging current of the charging box is reduced to be overlarge, and the battery is protected.
Description
Technical Field
The present invention relates to the field of headphones technologies, and in particular, to a charging control method and apparatus for a charging box, and a readable storage medium.
Background
At present, as the wireless earphone is convenient to use, the wired earphone is gradually replaced, and common wireless earphone includes a Bluetooth earphone, an infrared earphone, a 2.4G wireless earphone and the like. The wireless earphone needs to be charged when in use, so a charging box specially used for charging the wireless earphone is generated.
In the prior art, the battery of the charging box is generally charged by one of wireless charging or wired charging. And two kinds of charging equipment are connected into the charging box simultaneously or another kind of charging equipment is connected into the charging box in the using process of one kind of charging equipment, so that the charging current of the charging box is overlarge, and the battery of the charging box is burnt.
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 overlarge and the battery of the charging box is burnt out due to the fact that the existing charging box is connected with two kinds of charging equipment.
In order to achieve the above object, the present invention provides a charging control method of a charging box, where the charging box includes a box body, an induction coil disposed in the box body, and a USB interface disposed on the box body, and a controller and a battery electrically connected to the controller are further disposed 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, the controller is provided with a wired charging interface and a wireless charging interface for connecting a charging device, before the step of charging the charging box in the current charging mode of the charging box in the wired charging mode and the wireless charging mode, the method further includes:
acquiring the level of the wired charging interface and the level of the wireless charging interface;
and determining the current charging mode of the charging box according to the level.
Optionally, the step of determining the current charging mode of the charging cartridge according to the level includes:
when the levels of the wireless charging interface and the wired charging interface are both high, 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 values of the levels 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 re-detecting the levels of the wireless charging interface and the wired charging interface;
and when the levels of the wireless charging interface and the wired charging interface which are detected again are both high levels, controlling the charging box to charge in a charging mode with high charging priority in a wired charging mode and a 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 and the level of the wired charging interface is low, determining that the charging box charges in the wireless charging mode;
and when the level of the wireless charging interface is low and the level of the wired charging interface is high, determining that the charging box charges in the wired charging mode.
Optionally, the wired charging mode includes a two-core charging mode and a four-core charging mode.
In addition, in order to achieve the above object, the present invention also proposes a charging cartridge including a memory, a processor, and a charging control program of the charging cartridge stored on the memory and executable on the processor, the charging control program of the charging cartridge implementing the steps of the charging control method of the charging cartridge as described above when executed by the processor.
In addition, in order to achieve the above object, the present invention also proposes a readable storage medium having stored thereon a charge control program of a charge cartridge, which when executed by a processor, implements the steps of the charge control method of a charge cartridge 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 to the wireless charging and the 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 of the charging box with low priority is disconnected, so that the charging current of the charging box is reduced to be overlarge, and the battery is protected.
Drawings
In order to more clearly illustrate the technical solutions of embodiments or examples of the present invention, the drawings that are required to be used in the embodiments or examples of the present invention will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the drawings without inventive efforts for those skilled in the art.
FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart of a charging control method of the charging box according to a first embodiment of the present invention;
fig. 3 is a flowchart of a charging control method of a charging box according to a second embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The main solutions of the embodiments of the present invention are: 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 or wired charging. And two kinds of charging equipment are connected into the charging box simultaneously or another kind of charging equipment is connected into the charging box in the using process of one kind of charging equipment, so that the charging current of the charging box is overlarge, and the battery of the charging box is burnt.
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 to the wireless charging and the 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 of the charging box with low priority is disconnected, so that the charging current of the charging box is reduced to be overlarge, and 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 the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), a remote controller, and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., a memory), such as disk storage. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the structure of the terminal shown in fig. 1 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, 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 cartridge.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background 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 a charge control program of the charge cartridge 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 a charge control program of the charge cartridge stored in the memory 1005, and further perform the following operations:
acquiring the level of the wired charging interface and the level of the wireless charging interface;
and determining the current charging mode of the charging box according to the level.
Further, the processor 1001 may call a charge control program of the charge cartridge stored in the memory 1005, and further perform the following operations:
when the levels of the wireless charging interface and the wired charging interface are both high, 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 values of the levels of the wireless charging interface and the wired charging interface are both low levels.
Further, the processor 1001 may call a charge control program of the charge cartridge stored in the memory 1005, and further perform the following operations:
controlling the charging box to disconnect charging and re-detecting the levels of the wireless charging interface and the wired charging interface;
and when the levels of the wireless charging interface and the wired charging interface which are detected again are both high levels, controlling the charging box to charge in a charging mode with high charging priority in a wired charging mode and a wireless charging mode.
Further, the processor 1001 may call a charge control program of the charge cartridge stored in the memory 1005, and further perform the following operations:
when the level of the wireless charging interface is high and the level of the wired charging interface is low, determining that the charging box charges in the wireless charging mode;
and when the level of the wireless charging interface is low and the level of the wired charging interface is high, determining that the charging box charges in the wired charging mode.
Further, the processor 1001 may call a charge control program of the charge cartridge stored in the memory 1005, and further perform the following operations:
the wired charging mode includes a two-core charging mode and a four-core charging mode.
The embodiment of the invention provides a charging control method of a charging box.
Referring to fig. 2, fig. 2 is a flowchart illustrating 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;
s20, controlling the charging box to disconnect the charging of the target charging mode.
In an embodiment, 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 the charging box further comprises a battery arranged in the box body and a controller electrically connected with the battery, the induction coil is electrically connected with the battery, and the USB interface is electrically connected with the battery.
Specifically, the induction coil is connected with the battery in a circuit mode, and the USB interface is connected with the battery in a circuit mode. The circuit is integrated in the controller, that is, the induction coil and the USB interface are respectively connected with the circuit on the controller, and the controller is connected with the battery through the circuit, so that the induction coil and the USB interface are indirectly connected with the battery, and the battery is subjected to induction charging or wired charging.
Alternatively, the battery may be inductively charged in cooperation with an induction coil inside the wireless charging apparatus through an induction coil provided in the case, wherein the above-described induction charging charges the battery by applying power to a charging plate including the induction coil and using an induction current generated in the induction coil included in the battery of the charging case due to an electromagnetic field generated from the induction coil located inside the charging plate.
Alternatively, the battery may be wired charged by connecting a wired charging device into the USB interface, where the wired charging device may include an adapter, a terminal, etc., where the terminal includes a computer, a mobile charger, a power distribution box, etc., without limitation. That is, the charging cartridge in this embodiment may charge the battery using a wireless charging device or a wired charging device.
Further, the current charging mode of the charging box is a wired charging mode and a wireless charging mode, and the charging includes three cases: and simultaneously accessing the wireless charging equipment and the wired charging equipment, or accessing the wireless charging equipment after accessing the wired charging equipment, or accessing the wired charging equipment after accessing the wireless charging equipment. Because the battery of the charging box of the embodiment cannot 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 used for charging, so that the excessive 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 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 the 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 set charging priority low is set as the target charging mode, and the target charging mode is turned off. That is, in this embodiment, the charging box is charged in the charging mode with a high charging priority, so that the charging current of the charging box is reduced; in addition, the charging priority of the charging mode is higher, namely, when the charging box is charged, the charging mode is the optimal charging mode of the charging box, so that resources can be saved, and efficient charging can be realized.
Further, controlling the charging cartridge to disconnect the charging of the target charging mode includes three cases: when the charging box is connected into a wired charging mode and a wireless charging mode at the same time, directly disconnecting the charging of a target charging mode with low charging priority; or the charging box is connected into the wired charging mode and then connected into the wireless charging mode, when the charging priority of the wired charging mode is high, the wireless charging mode connected into the charging box after disconnection, and when the charging priority of the wireless charging mode is high, the wired charging mode connected into the charging box first is disconnected; or the charging box is connected into the wireless charging mode and then connected into the wired charging mode, when the charging priority of the wired charging mode is high, the wireless charging mode which is connected into the charging box firstly is disconnected, and when the charging priority of the wireless charging mode is high, the wired charging mode which is connected into the charging box after the disconnection is disconnected.
Optionally, the charging priority of the wireless charging mode set in advance in this embodiment is higher than the charging priority of the wired charging mode, that is, the optimal charging mode of the charging box in this embodiment is the wireless charging mode. Of course, in other embodiments, the charging priority of the preset wired charging mode is higher than the charging priority of the wireless charging mode, which is not limited herein.
In an embodiment of the present invention, the charging control method of the charging cartridge 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 to the wireless charging and the 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 of the charging box with low priority is disconnected, so that the charging current of the charging box is reduced to be overlarge, and the battery is protected.
Further, referring to fig. 3, a second embodiment of the present invention is proposed based on the first embodiment, in which, before S10, the charging control method of the charging cartridge further includes:
s30, acquiring the level of the wired charging interface and the level of the wireless charging interface;
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 to a charging device, where the charging device includes the wired charging device and the wireless charging device as described in the above embodiment. In this embodiment, whether the charging box has wired charging equipment access or not may be determined by the level of the wired charging interface, and whether the charging box has wireless charging equipment access or not may be determined by the level of the wireless charging interface. 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, 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 values of the levels of the wireless charging interface and the wired charging interface are both low.
Further, when the level of the wireless charging interface is a high level and the level of the wired charging interface is a low level, determining that the charging box charges in the wireless charging mode; and when the level of the wireless charging interface is low and the level of the wired charging interface is high, determining that the charging box charges in the wired charging mode. It is understood that only when the level of the wireless charging interface and the level of the wired charging interface are both high, the target charging mode with low priority in the wired charging mode and the wireless charging mode need to be acquired, and when a single charging mode is adopted, the target charging mode does not need to be acquired.
Because the STM32F0 series chip is adopted by the controller, and the chip is in a single-thread working mode, namely an interrupt function is arranged in the controller and is used for interrupting the current processing operation of the controller, for example, the current processing operation of the controller is used for controlling the charging box to charge, namely the interrupt function can control the charging box to break the charging, and the level of the wireless charging interface and the level of the wired charging interface can be re-detected; and when the levels of the wireless charging interface and the wired charging interface which are detected again are both high levels, controlling the charging box to charge in a charging mode with high charging priority in a wired charging mode and a wireless charging mode.
Specifically, the current charging mode of the charging box is determined according to the level, for example, when the current charging mode is determined to be a wired charging mode and a wireless charging mode and charging is performed simultaneously, at this time, the charging of the charging box is interrupted by an interruption function, and the levels of the wireless charging interface and the wired charging interface are re-detected, so that the accuracy of the level detection is ensured. Of course, if only one type of charging equipment is connected, for example, if the wired charging equipment is connected, the level of the wired charging interface will be pulled up, the level of the wireless charging interface will not change, at this time, the interruption of the wired charging interface can be triggered by the interruption function, the level of the wired charging interface is obtained again in the interruption processing program, and at this time, the connected charging equipment is determined to be the wired charging equipment when the wired charging interface is high level and the wireless charging interface is low level again; or if the wireless charging device is connected, the level of the wireless charging interface will be pulled up, the level of the wired charging interface will not change, at this time, the interruption of the wireless charging interface can be triggered by the interruption function, the level of the wireless charging interface is obtained again in the interruption processing program, and when the wireless charging interface is high level and the wired charging interface is low level, at this time, the connected charging device is judged to be the wireless charging device.
Further, the wired charging mode includes a two-core charging mode and a four-core charging mode. Wherein the controller is further provided with a data interface configured to enable data interaction of the charging cartridge with the wired charging device. I.e. the wired charging mode may determine the two-wire charging mode or the four-wire charging mode by the level state of the data interface.
Specifically, the level state of a data interface of the controller is obtained; and confirming the type of the wired charging mode according to the level state. When the level state is 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 at 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 four-core 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 a charging device such as a computer terminal, a power strip, or a mobile power supply with a charging interface.
Specifically, when determining the four-core wire charging mode of the type of the wired charging mode, the device descriptor may be generated by reading the address of the connected wired charging device and according to the read address of the wired charging device, and returned to the controller to distinguish the direct charging device or other external devices through the device descriptor. For example, when the device descriptor is "0", the wired charging device is a direct charging device, i.e., the wired charging device is an adapter charging device; when the device descriptor is "1", 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 with a charging interface. Or when the device descriptor is "1", the wired charging device is a direct charging device, i.e. 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 with a charging interface.
Further, the charging current of the wireless charging mode is 0.4A, and the charging current corresponding to the two-core charging mode is set to 0.08A, i.e. the charging current of the two-core charging mode is smaller than the charging current of the wireless charging mode.
Further, when the wired charging mode is the four-core wire charging mode and the current temperature is in a first temperature interval, the charging current of the four-core wire charging mode is the same as the charging current of the wireless charging mode; that is, 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 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; that is, 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 0.08A.
Further, the first temperature interval is 15 ℃ to 43 ℃, the second temperature interval is 3 ℃ to 14 ℃, wherein the first temperature interval and the second temperature interval comprise end point values (3 ℃, 14 ℃, 15 ℃ and 43 ℃), namely the temperature value in the first temperature interval is larger than the temperature value in the second temperature interval, and the first temperature interval and the second temperature interval are both sub-intervals of the preset temperature interval.
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; and determining the current charging mode of the charging box according to the level. The level of the wired charging interface and the level of the wireless charging interface can determine whether the charging box is charged in a wired charging mode and a wireless charging mode, so that the charging box is controlled to be charged in a 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 stable and efficient switching of the charging modes is realized; and the charging of the charging mode with low priority is disconnected to reduce the excessive charging current of the charging box, thereby protecting the battery.
The invention also proposes a charging cartridge comprising: the charging control program of the charging box is executed by the processor to realize the steps of the charging control method of the charging box according to the embodiment.
The present invention also proposes a readable storage medium having stored thereon a charging control program of a charging cartridge, which when executed by a processor implements the steps of the charging control method of the charging cartridge according to any of the above embodiments.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a cloud server or a network device, etc.) to perform the method of 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
Claims (7)
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;
controlling the charging box to disconnect the charging of the target charging mode;
the wired charging mode comprises a two-core wire charging mode and a four-core wire charging mode, and the charging current of the two-core wire charging mode is smaller than that of the wireless charging mode;
when the wired charging mode is the four-core wire charging mode and the current temperature is in a first temperature interval, the charging current of the four-core wire charging mode is the same as the charging current of the wireless charging mode;
when the wired charging mode is the four-core wire charging mode and the current temperature is in a second temperature interval, the charging current of the four-core wire charging mode is the same as the charging current of the two-core wire charging mode;
the temperature value in the first temperature interval is larger than the temperature value in the second temperature interval, and the first temperature interval and the second temperature interval are sub-intervals of a preset temperature interval.
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 current charging mode of the charging box is the wired charging mode and the wireless charging mode, the charging control method further comprises:
acquiring the level of the wired charging interface and the level of the wireless charging interface;
and determining the current charging mode of the charging box according to the level.
3. The charge control method of a charge cartridge according to claim 2, wherein the step of determining a current charge mode of the charge cartridge according to the level comprises:
when the levels of the wireless charging interface and the wired charging interface are both high, 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 values of the levels of the wireless charging interface and the wired charging interface are both low levels.
4. The charge control method of a charge cartridge according to claim 3, wherein after the step of determining a current charge mode of the charge cartridge according to the level, the charge control method of the charge cartridge further comprises:
controlling the charging box to disconnect charging and re-detecting the levels of the wireless charging interface and the wired charging interface;
and when the levels of the wireless charging interface and the wired charging interface which are detected again are both high levels, controlling the charging box to charge in a charging mode with high charging priority in a wired charging mode and a wireless charging mode.
5. The charging control method of the charging cartridge 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 the charging cartridge further comprises:
when the level of the wireless charging interface is high and the level of the wired charging interface is low, determining that the charging box charges in the wireless charging mode;
and when the level of the wireless charging interface is low and the level of the wired charging interface is high, determining that the charging box charges in the wired charging mode.
6. A charging box, characterized in that the charging box comprises a memory, a processor and a charging control program of the charging box stored on the memory and capable of running on the processor, and the charging control program of the charging box realizes the steps of the charging control method of the charging box according to any one of claims 1-5 when being executed by the processor.
7. A readable storage medium, wherein a charging control program of a charging cartridge is stored on the readable storage medium, and the charging control program of the charging cartridge realizes the steps of the charging control method of the charging cartridge according to any one of claims 1 to 5 when executed by a processor.
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 CN110783984A (en) | 2020-02-11 |
| CN110783984B true 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 |
|---|---|
| CN110783984A (en) | 2020-02-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10778018B2 (en) | Charging protection method and apparatus | |
| EP3131171B1 (en) | Power adaptor, terminal and charging system | |
| EP3200311B1 (en) | Method and device for controlling charging and electronic device | |
| US20150145468A1 (en) | Device and chip for controlling charging, and user terminal | |
| JP2023532115A (en) | Charging circuit and charging cable | |
| EP3506050B1 (en) | Electronic device with usb cable type detection and control method thereof | |
| CN110768332B (en) | Charging cartridge, charging control method thereof, and readable storage medium | |
| JP5005845B2 (en) | Electronics | |
| KR20190136690A (en) | Electronic device comprsing control circuits controlling switchs connected to charging circuit | |
| EP2991156A1 (en) | Method and device for performing large-current charging on intelligent terminal | |
| CN111163388B (en) | Management method and device for charging path of Bluetooth headset and readable storage medium | |
| KR20210014925A (en) | Electronic device and method of controlling frequency interference thereof | |
| KR20200101096A (en) | Electronic device for controlling wireless charging and method for controlling thereof | |
| CN108988415A (en) | Fast charge method, power supply adaptor and mobile terminal | |
| EP3537560A1 (en) | Method for determining charger, and related device and system | |
| US11977618B2 (en) | Electronic device and control method | |
| KR20210014356A (en) | Electronic device for preventing damage of usb device and operating method thereof | |
| CN106532876A (en) | Power supply control method and device and computer equipment | |
| JP2006099354A (en) | Data transfer control device and data transfer control method | |
| KR20190005643A (en) | Electronic device supporting usb power delivery standard and a method of charging the electronic device | |
| CN106712178A (en) | Charging processing method and terminal | |
| US20170018940A1 (en) | Power adapter and terminal | |
| CN110783984B (en) | Charging cartridge, charging control method thereof, and readable storage medium | |
| CN108321900A (en) | Terminal charging control method and terminal | |
| US10481576B2 (en) | Method and device for implementing connection control |
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 |