CN112688379A - Charging method, device, equipment and medium - Google Patents

Charging method, device, equipment and medium Download PDF

Info

Publication number
CN112688379A
CN112688379A CN202011445994.XA CN202011445994A CN112688379A CN 112688379 A CN112688379 A CN 112688379A CN 202011445994 A CN202011445994 A CN 202011445994A CN 112688379 A CN112688379 A CN 112688379A
Authority
CN
China
Prior art keywords
power
target
charger
color
stored
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.)
Pending
Application number
CN202011445994.XA
Other languages
Chinese (zh)
Inventor
叶雨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011445994.XA priority Critical patent/CN112688379A/en
Publication of CN112688379A publication Critical patent/CN112688379A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The embodiment of the invention provides a charging method, a charging device, equipment and a medium, wherein the method comprises the following steps: acquiring output voltage and output current of a charger, and determining target output power based on the output voltage and the output current; and controlling corresponding equipment to indicate by the corresponding indication mark according to the corresponding relation between the pre-stored power and the indication mark. According to the embodiment of the invention, the output voltage and the output current of the charger are acquired, the target output power is determined based on the output voltage and the output current, and the charger is controlled to indicate by the corresponding indication mark according to the corresponding relation between the pre-stored power and the indication mark. Therefore, the target output power is determined, the indication mark corresponding to the target output power is further determined, whether the current charging mode is the quick charging mode or not is determined through the indication mark, and user experience is improved.

Description

Charging method, device, equipment and medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a charging method, apparatus, device, and medium.
Background
With the rapid development of information technology, more and more functions can be realized by mobile terminals, which results in faster and faster power consumption of batteries of the mobile terminals, and therefore, fast charging technology is in force. In the prior art, companies such as highpass, apple, huashi, etc. have introduced a fast charging protocol based on their own platform, and have introduced mobile terminals and chargers capable of performing fast charging. However, because the quick charging protocols released by various companies are not well compatible, and a user cannot fixedly use a charger in actual use, this results in that although the mobile terminal supports quick charging, the quick charging is not performed due to incompatibility of the chargers or the reason of the charger itself, although the current charging situation can be displayed by the current part of mobile terminal manufacturers through the screen status bar and the main screen charging icon, the current quick charging can be identified by checking a specific icon only when the mobile terminal and other intelligent terminal devices are started, brightened or unlocked, the checking process is cumbersome, and the user cannot visually determine whether the mobile terminal is quickly charged, which affects the user experience.
Disclosure of Invention
The invention provides a charging method, a charging device, charging equipment and a charging medium, which are used for solving the problem that whether a mobile terminal is charged quickly or not cannot be visually identified in the prior art, so that user experience is influenced.
The invention provides a charging method, which comprises the following steps:
acquiring output voltage and output current of a charger, and determining target output power based on the output voltage and the output current;
and controlling corresponding equipment to indicate by the corresponding indication mark according to the corresponding relation between the pre-stored power and the indication mark.
Further, the controlling the corresponding device to indicate with the corresponding indicator according to the pre-stored correspondence between the power and the indicator includes:
controlling the charger to indicate by the corresponding indication mark according to the corresponding relation between the pre-stored power and the indication mark; or, according to the corresponding relation between the pre-stored power and the indication mark, the data line connected with the charger is controlled to indicate by the corresponding indication mark.
Further, the controlling the charger to indicate with the corresponding indication identifier according to the correspondence between the pre-stored power and the indication identifier includes:
and determining the target color of the signal lamp corresponding to the target output power according to the corresponding relation between the pre-stored power and the signal lamp color, and controlling the signal lamp of the charger to indicate with the target color.
Further, the controlling the data line connected to the charger to indicate with the corresponding indication mark according to the pre-stored correspondence between the power and the indication mark includes:
and determining the target color of the data line shell corresponding to the target output power according to the corresponding relation between the pre-stored power and the color of the data line shell connected with the charger, and controlling the data line shell to indicate with the target color.
Further, the determining a target color corresponding to the target output power according to a pre-stored correspondence between power and color includes:
if the target output power is not greater than a preset first power threshold, determining that a target color corresponding to the target output power is white according to a pre-stored corresponding relation between power and color;
if the target output power is greater than a preset first power threshold and less than a preset second power threshold, determining that a target color corresponding to the target output power is yellow according to a corresponding relation between pre-stored power and color, wherein the first power threshold is less than the second power threshold;
and if the target output power is not less than a preset second power threshold, determining that the target color corresponding to the target output power is red according to a pre-stored corresponding relation between power and color.
Further, the acquiring the output voltage and the output current of the charger includes:
acquiring the output voltage or the output current of the charger;
and determining the output voltage or a target output current or a target output voltage corresponding to the output current according to a pre-stored corresponding relation between the output current and the output voltage.
Further, after determining the target output power based on the output voltage and the output current, the method further comprises:
and sending the target output power to the charger, and enabling the charger to display the target output power.
The present invention provides a charging device, the device comprising:
the device comprises a determining module, a judging module and a control module, wherein the determining module is used for acquiring the output voltage and the output current of the charger and determining the target output power based on the output voltage and the output current;
and the control module is used for controlling the corresponding equipment to indicate by the corresponding indication identifier according to the corresponding relation between the pre-stored power and the indication identifier.
Further, the control module is specifically configured to control the charger to indicate with the corresponding indication identifier according to a correspondence between the pre-stored power and the indication identifier; or, according to the corresponding relation between the pre-stored power and the indication mark, the data line connected with the charger is controlled to indicate by the corresponding indication mark.
Further, the control module is specifically configured to determine a target color of the signal lamp corresponding to the target output power according to a pre-stored correspondence between power and a color of the signal lamp, and control the signal lamp of the charger to indicate with the target color.
Further, the control module is specifically configured to determine a target color of the data line housing corresponding to the target output power according to a pre-stored correspondence between power and a color of the data line housing connected to the charger, and control the data line housing to indicate with the target color.
Further, the control module is specifically configured to determine, if the target output power is not greater than a preset first power threshold, that a target color corresponding to the target output power is white according to a pre-stored correspondence between power and color; if the target output power is greater than a preset first power threshold and less than a preset second power threshold, determining that a target color corresponding to the target output power is yellow according to a corresponding relation between pre-stored power and color, wherein the first power threshold is less than the second power threshold; and if the target output power is not less than a preset second power threshold, determining that the target color corresponding to the target output power is red according to a pre-stored corresponding relation between power and color.
Further, the determining module is specifically configured to obtain an output voltage or an output current of the charger; and determining the output voltage or a target output current or a target output voltage corresponding to the output current according to a pre-stored corresponding relation between the output current and the output voltage.
Further, the apparatus further comprises:
and the sending module is used for sending the target output power to the charger so that the charger displays the target output power.
The invention provides an electronic device comprising a processor for implementing the steps of the charging method as described in any one of the above when executing a computer program stored in a memory.
The present invention provides a computer-readable storage medium storing a computer program executable by a terminal, the program, when run on the terminal, causing the terminal to perform the steps of any of the charging methods described above.
According to the embodiment of the invention, the output voltage and the output current of the charger are acquired, the target output power is determined based on the output voltage and the output current, and the charger is controlled to indicate by the corresponding indication mark according to the corresponding relation between the pre-stored power and the indication mark. Therefore, the target output power is determined, the indication mark corresponding to the target output power is further determined, whether the current charging mode is the quick charging mode or not is determined through the indication mark, and user experience is improved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced 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 to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a schematic diagram of a charging process according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a process of determining a charging state according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a charging device according to an embodiment of the present invention;
fig. 4 is an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to determine a current charging mode and improve user experience, embodiments of the present invention provide a charging method, apparatus, device, and medium.
Example 1:
fig. 1 is a schematic diagram of a charging process provided in an embodiment of the present invention, where the charging process includes the following steps:
s101: the method comprises the steps of obtaining an output voltage and an output current of a charger, and determining a target output power based on the output voltage and the output current.
The charging method provided by the embodiment of the invention is applied to electronic equipment, and the electronic equipment can be mobile terminals, tablet computers and other equipment capable of being charged.
In the embodiment of the present invention, in order to determine whether the electronic device performs fast charging, the determination may be performed according to the output power of the charger, in the embodiment of the present invention, a power management chip in the charger may obtain the output voltage and the output current of the charger in real time, and the charger is connected to the electronic device, so that the electronic device may obtain the output voltage and the output current of the charger, and may determine the target output power of the charger according to P ═ U ×, where P is the output power of the charger, U is the output voltage of the charger, and I is the output current of the charger.
S102: and controlling corresponding equipment to indicate by the corresponding indication mark according to the corresponding relation between the pre-stored power and the indication mark.
In order to determine whether the electronic device performs fast charging more conveniently, in the embodiment of the present invention, a corresponding relationship between power and an indication identifier is pre-stored in the electronic device, and the indication identifier may be a distinguishable identifier such as a text identifier and a voice identifier.
After the target output power is determined, according to the corresponding relation between the pre-stored power and the indication mark, the indication mark corresponding to the target output power is determined, and the corresponding equipment is controlled to indicate by the indication mark. The corresponding device may be a mobile terminal, a charger, or other devices capable of indicating. If the indication mark is a character mark, after the character mark corresponding to the target output power is determined, controlling the corresponding equipment to indicate by the character mark, for example, if the indication mark corresponding to the target output power is determined to be slow charging, controlling the corresponding equipment to indicate by a slow charging character; if the indication mark is a voice mark, after the voice mark corresponding to the target output power is determined, the corresponding device is controlled to indicate with the voice mark, for example, if the corresponding indication mark is slow charging after the target output power is determined, the corresponding device is controlled to emit an indication sound that the current charging state is a slow charging state.
According to the embodiment of the invention, the output voltage and the output current of the charger are acquired, the target output power is determined based on the output voltage and the output current, and the corresponding equipment is controlled to indicate by the corresponding indication identifier according to the corresponding relation between the pre-stored power and the indication identifier. Therefore, the target output power is determined, the indication mark corresponding to the target output power is further determined, whether the current charging mode is the quick charging mode or not is determined through the indication mark, and user experience is improved.
Example 2:
in order to facilitate determining whether the electronic device is performing fast charging, on the basis of the above embodiment, in an embodiment of the present invention, the controlling, according to a correspondence between the pre-stored power and the indication identifier, the corresponding device to indicate with the corresponding indication identifier includes:
controlling the charger to indicate by the corresponding indication mark according to the corresponding relation between the pre-stored power and the indication mark; or, according to the corresponding relation between the pre-stored power and the indication mark, the data line connected with the charger is controlled to indicate by the corresponding indication mark.
In the embodiment of the present invention, the corresponding device capable of indicating with the corresponding indication identifier may be a charger, or may be a data line connected to the charger, and if the corresponding device performing the indication is the charger, the indication identifier corresponding to the target output power is determined according to a correspondence between the pre-stored power and the indication identifier, and the charger is controlled to indicate with the corresponding indication identifier.
In order to facilitate determining whether the electronic device is fast-charging, on the basis of the above embodiment, in an embodiment of the present invention, the controlling the charger to indicate with a corresponding indication identifier according to a correspondence between a pre-stored power and the indication identifier includes:
and determining the target color of the signal lamp corresponding to the target output power according to the corresponding relation between the pre-stored power and the signal lamp color, and controlling the signal lamp of the charger to indicate with the target color.
In the embodiment of the present invention, in order to facilitate determining whether the electronic device is performing fast charging, a plurality of signal lamps may be disposed on the charger, where different signal lamps are used to indicate different charging states, for example, three signal lamps may be disposed, which are respectively a first signal lamp, a second signal lamp, and a third signal lamp, and indicate a slow charging state if the first signal lamp is turned on, indicate a normal charging state if the second signal lamp is turned on, and indicate a fast charging state if the third signal lamp is turned on.
Because space on the charger is limited, a multi-color indicator light may also be provided on the charger to save space, wherein different colors are used to indicate different states, and the indicator light may be an LED light.
The display color of the LED lamp may be any one of white, yellow, or red. After the target output power is determined, determining the color of a signal lamp corresponding to the target output power according to a corresponding relation between power and the color of the signal lamp pre-stored in the electronic device, and controlling the signal lamp of the charger to indicate with the target color, wherein the signal lamp of the charger can be controlled to display with the target color by sending a control instruction to the charger, the control instruction can carry color information displayed by the LED lamp, and the charger controls the LED lamp of the charger to indicate with the target color after receiving a color information control instruction carrying the color information displayed by the LED lamp. For example, after the target output power is determined, the color of the signal lamp corresponding to the target output power is determined to be red according to the corresponding relationship between the power and the color of the signal lamp, a red control command carrying an LED lamp display is sent to the charger, and after the charger receives the control command, the signal lamp of the charger is controlled to indicate red.
If the corresponding device for indicating is the data line of the charger, determining the indication identifier corresponding to the target output power according to the corresponding relation between the pre-stored power and the indication identifier, and controlling the data line to indicate with the corresponding indication identifier.
In order to facilitate determining whether the electronic device is fast-charging, on the basis of the above embodiment, in an embodiment of the present invention, the controlling the data line connected to the charger to indicate with the corresponding indication identifier according to the correspondence between the pre-stored power and the indication identifier includes:
and determining the target color of the data line shell corresponding to the target output power according to the corresponding relation between the pre-stored power and the color of the data line shell connected with the charger, and controlling the data line shell to indicate with the target color.
In the embodiment of the invention, in order to conveniently determine whether the electronic device is rapidly charged, a wire of a data line of the charger may be set as an LED wire, and the charging state of the electronic device is determined according to the light emitting color of the LED wire.
The display color of the data line of the LED wire can be any one of white, yellow or red. After the target output power is determined, according to a corresponding relation between power and the color of a data line shell pre-stored in the electronic device, the color of the data line shell corresponding to the target output power is determined, and the data line shell of the charger is controlled to indicate with the target color, wherein the data line shell of the charger can be controlled to display with the target color by sending a control instruction to the charger, the control instruction can carry color information displayed by the data line shell, and after the charger receives a color information control instruction carrying the color information displayed by the data line shell, the data line shell of the charger is controlled to indicate with the target color. For example, after the target output power is determined, the color of the data line housing corresponding to the target output power is determined to be red according to the corresponding relationship between the power and the color of the data line housing stored in the electronic device in advance, a control command carrying the red color displayed by the data line housing is sent to the charger, and after the charger receives the control command, the data line housing of the charger is controlled to be indicated in the red color.
Example 3:
in order to facilitate determining whether the electronic device is performing fast charging, on the basis of the foregoing embodiments, in an embodiment of the present invention, the determining, according to a pre-stored correspondence between power and color, a target color corresponding to the target output power includes:
if the target output power is not greater than a preset first power threshold, determining that a target color corresponding to the target output power is white according to a pre-stored corresponding relation between power and color;
if the target output power is greater than a preset first power threshold and less than a preset second power threshold, determining that a target color corresponding to the target output power is yellow according to a corresponding relation between pre-stored power and color, wherein the first power threshold is less than the second power threshold;
and if the target output power is not less than a preset second power threshold, determining that the target color corresponding to the target output power is red according to a pre-stored corresponding relation between power and color.
In the embodiment of the present invention, in order to determine whether the electronic device is performing fast charging, a first power threshold and a second power threshold are preset according to the magnitude of the output power of the charger, the output power of the charger is compared with the preset first power threshold and the preset second power threshold, a target color corresponding to the output power of the charger is further determined, and whether the electronic device is performing fast charging is further determined, where the second power threshold is greater than the first power threshold.
If different charging states are indicated through different colors of the LED lamps of the charger, in order to determine the charging state of the electronic equipment through the display colors of the LED lamps, prompt marks can be displayed at corresponding positions of the LED lamps of the charger, the prompt marks can be lightning marks, wherein the lightning marks are icons of one lightning, the current charging state of the electronic equipment is represented as a slow charging state, the current charging state of the electronic equipment is represented as two lightning icons if the LED lamps are yellow, the current charging state of the electronic equipment is represented as a common fast charging state, and the lightning marks are icons of three lightning if the LED lamps are red.
After the electronic device determines a target output power based on the acquired output voltage and output current of the charger, the target output power is compared with a first power threshold and a second power threshold which are preset, if the target output power is not greater than the first power threshold which is preset, the charging state of the electronic device is a slow charging state, if the target output power is greater than the first power threshold which is preset and less than the second power threshold which is preset, the charging state of the electronic device is a common fast charging state, and if the target output power is greater than the second power threshold which is preset, the charging state of the electronic device is a super fast charging state.
In order to display the charging state of the electronic device, different indication marks can be displayed according to different charging states. In the embodiment of the present invention, when the charging state of the electronic device is a slow charging state, the color of the LED lamp displayed in the slow charging state is set to white, when the charging state of the electronic device is a normal fast charging state, the color of the LED lamp displayed in the normal fast charging state is set to yellow, when the charging state of the electronic device is a super fast charging state, the color of the LED lamp displayed in the super fast charging state is set to red, specifically, after the output power of the charger is determined, if the target output power is not greater than a preset first power threshold, according to a correspondence between a prestored power and a signal lamp color, the target color of the signal lamp corresponding to the target output power is determined to be white, that is, the target color of the signal lamp corresponding to the electronic device in the slow charging state is determined to be white.
If the target output power is greater than a preset first power threshold and less than a preset second power threshold, determining that the target color of the signal lamp corresponding to the target output power is yellow according to a corresponding relationship between the pre-stored power and the color of the signal lamp, that is, determining that the target color of the signal lamp corresponding to the electronic device in the charging state of the ordinary quick-charging state is yellow.
If the target output power is not less than the preset second power threshold, determining that the target color of the signal lamp corresponding to the target output power is red according to the corresponding relationship between the pre-stored power and the color of the signal lamp, that is, determining that the target color of the signal lamp corresponding to the electronic device in the super fast charging state is red.
Fig. 2 is a schematic diagram of a process of determining a charging state according to an embodiment of the present invention, and the process is now described with reference to fig. 2.
After the electronic equipment acquires the output current or the output voltage of the charger, determining the target output power of the charger according to P-U-I, if a preset first power threshold is 15W and a second power threshold is 22W, comparing the determined target output power with the preset first power threshold and the preset second power threshold, and if the target output power is not greater than the preset first power threshold, namely not greater than 15W, identifying the charger as low-speed charging and controlling an LED lamp of the charger to display white; if the target output power is greater than a preset first power threshold and less than a preset second power threshold, namely greater than 15W and less than 22W, identifying that the charger is in a normal quick-charging state at the moment, and controlling an LED lamp of the charger to display yellow; and if the target output power is not less than a preset second power threshold value, namely not less than 22W, identifying the charger as a super quick-charging state at the moment, and controlling an LED lamp of the charger to display red.
If different charging states are indicated by different colors of the data line housing of the charger, in the embodiment of the present invention, in order to determine whether the electronic device is performing fast charging, it may be determined according to the magnitude of the output power of the charger, where a first power threshold and a second power threshold are preset, the output power of the charger is compared with the preset first power threshold and the preset second power threshold, and then the display color of the data line housing corresponding to the area where the output power of the charger is located is determined, and it is determined whether the electronic device is performing fast charging, where the second power threshold is greater than the first power threshold.
After the electronic device determines a target output power based on the acquired output voltage and output current of the charger, the target output power is compared with a first power threshold and a second power threshold which are preset, if the target output power is not greater than the first power threshold which is preset, the charging state of the electronic device is a slow charging state, if the target output power is greater than the first power threshold which is preset and less than the second power threshold which is preset, the charging state of the electronic device is a common fast charging state, and if the target output power is greater than the second power threshold which is preset, the charging state of the electronic device is a super fast charging state.
In order to display the charging state of the electronic device, in the embodiment of the invention, when the charging state of the electronic device is a slow charging state, the color of the correspondingly displayed data line shell in the slow charging state is set to be white, when the charging state of the electronic equipment is the ordinary fast charging state, the color of the correspondingly displayed data line shell in the ordinary quick charging state is set to be yellow, when the charging state of the electronic equipment is the super quick charging state, the color of the correspondingly displayed data line housing in the super fast-charge state is set to red, specifically, after the output power of the charger is determined, if the target output power is not greater than a preset first power threshold, and determining that the target color of the data line shell corresponding to the target output power is white according to the corresponding relation between the pre-stored power and the data line shell color, namely determining that the target color of the data line shell corresponding to the electronic equipment in the slow charging state is white.
If the target output power is greater than the preset first power threshold and less than the preset second power threshold, determining that the target color of the data line housing corresponding to the target output power is yellow according to the correspondence between the pre-stored power and the color of the data line housing, that is, determining that the target color of the data line housing corresponding to the electronic device in the ordinary quick-charging state is yellow.
If the target output power is not less than the preset second power threshold, determining that the target color of the data line shell corresponding to the target output power is red according to the corresponding relationship between the pre-stored power and the color of the data line shell, that is, determining that the target color of the data line shell corresponding to the electronic device in the super fast charging state is red.
Example 4:
in order to facilitate determining whether the electronic device is performing fast charging, on the basis of the foregoing embodiments, in an embodiment of the present invention, the acquiring the output voltage and the output current of the charger includes:
acquiring the output voltage or the output current of the charger;
and determining the output voltage or a target output current or a target output voltage corresponding to the output current according to a pre-stored corresponding relation between the output current and the output voltage.
In the embodiment of the invention, because the output current and the output voltage of the charger are matched relatively fixedly in practice, such as 5V-3A, 9V-3A, 10V-5A, 12V-3A, 20V-3.25A, etc., so that the correspondence between the output voltage and the output current can be preserved in the electronic device in advance, before determining the charging state of the electronic device according to the determined target output power, the electronic device can directly acquire the output voltage and the output current of the charger, the target output power may be determined from the obtained output voltage and output current, or any one of the output voltage and output current of the charger may be obtained, and the corresponding output current or output voltage may be determined based on a correspondence relationship between the output voltage and output current stored in the electronic device in advance, thereby determining the target output power.
Specifically, when the electronic device acquires an output voltage of the charger, the output current corresponding to the output voltage is determined based on a correspondence relationship between the output voltage and the output current stored in advance, and the target output power is calculated from P ═ U × I.
Example 5:
in order to facilitate determining whether the electronic device is performing fast charging, on the basis of the foregoing embodiments, in an embodiment of the present invention, after determining the target output power based on the output voltage and the output current, the method further includes:
and sending the target output power to the charger, and enabling the charger to display the target output power.
In the embodiment of the invention, in order to conveniently display whether the electronic equipment is rapidly charged or not, an LCD screen can be preset on the charger, and the LCD screen can display information such as output voltage, output current, output power and power consumption of the charger, so that the charging state of the electronic equipment can be determined according to the information displayed on the LCD screen. Specifically, after the electronic device determines the target output power according to the output voltage and the output current, a display instruction may be sent to the charger to control the charger to display the instruction content. The display instruction sent by the electronic device can only carry information of target output power and electric quantity because the output voltage and the output current of the charger are determined by the SOC chip of the charger, and the display instruction can also carry information of the output voltage, the output current, the target output power and the electric quantity because the electronic device acquires the output voltage and the output current of the charger.
According to the embodiment of the invention, the output voltage and the output current of the charger are acquired, the target output power is determined based on the output voltage and the output current, and the charger is controlled to indicate by the corresponding indication mark according to the corresponding relation between the pre-stored power and the indication mark. Therefore, the target output power is determined, the indication mark corresponding to the target output power is further determined, whether the current charging mode is the quick charging mode or not is determined through the indication mark, and user experience is improved.
Example 6:
fig. 3 is a schematic structural diagram of a charging device according to an embodiment of the present invention, where the charging device includes:
a determining module 301, configured to obtain an output voltage and an output current of a charger, and determine a target output power based on the output voltage and the output current;
a control module 302, configured to control a corresponding device to indicate with a corresponding indicator according to a pre-stored correspondence between power and the indicator.
In a possible implementation manner, the control module 302 is specifically configured to control the charger to indicate with a corresponding indicator according to a correspondence between a pre-stored power and the indicator; or, according to the corresponding relation between the pre-stored power and the indication mark, the data line connected with the charger is controlled to indicate by the corresponding indication mark.
In a possible implementation manner, the control module 302 is specifically configured to determine a target color of the signal lamp corresponding to the target output power according to a pre-stored correspondence relationship between power and signal lamp color, and control the signal lamp of the charger to indicate with the target color.
In a possible implementation manner, the control module 302 is specifically configured to determine a target color of the data line housing corresponding to the target output power according to a correspondence relationship between a pre-stored power and a color of the data line housing connected to the charger, and control the data line housing to indicate with the target color.
In a possible implementation manner, the control module 302 is specifically configured to determine that a target color corresponding to the target output power is white according to a pre-stored correspondence relationship between power and color if the target output power is not greater than a preset first power threshold; if the target output power is greater than a preset first power threshold and less than a preset second power threshold, determining that a target color corresponding to the target output power is yellow according to a corresponding relation between pre-stored power and color, wherein the first power threshold is less than the second power threshold; and if the target output power is not less than a preset second power threshold, determining that the target color corresponding to the target output power is red according to a pre-stored corresponding relation between power and color.
In a possible implementation, the determining module 301 is specifically configured to obtain an output voltage or an output current of a charger; and determining the output voltage or a target output current or a target output voltage corresponding to the output current according to a pre-stored corresponding relation between the output current and the output voltage.
In a possible embodiment, the apparatus further comprises:
a sending module 303, configured to send the target output power to the charger, so that the charger displays the target output power.
Example 7:
on the basis of the foregoing embodiments, some embodiments of the present invention further provide an electronic device, as shown in fig. 4, including: the system comprises a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402 and the memory 403 are communicated with each other through the communication bus 404.
The memory 403 has stored therein a computer program which, when executed by the processor 401, causes the processor 401 to perform the steps of:
acquiring output voltage and output current of a charger, and determining target output power based on the output voltage and the output current;
and controlling corresponding equipment to indicate by the corresponding indication mark according to the corresponding relation between the pre-stored power and the indication mark.
Further, the processor 401 is further configured to control the charger to indicate with a corresponding indicator according to a correspondence between the pre-stored power and the indicator; or, according to the corresponding relation between the pre-stored power and the indication mark, the data line connected with the charger is controlled to indicate by the corresponding indication mark.
Further, the processor 401 is further configured to determine a target color of the signal lamp corresponding to the target output power according to a pre-stored correspondence between power and a color of the signal lamp, and control the signal lamp of the charger to indicate with the target color.
Further, the processor 401 is further configured to determine a target color of the data line housing corresponding to the target output power according to a pre-stored correspondence between the power and a color of the data line housing connected to the charger, and control the data line housing to indicate with the target color.
Further, the processor 401 is further configured to determine, if the target output power is not greater than a preset first power threshold, that a target color corresponding to the target output power is white according to a pre-stored correspondence between power and color; if the target output power is greater than a preset first power threshold and less than a preset second power threshold, determining that a target color corresponding to the target output power is yellow according to a corresponding relation between pre-stored power and color, wherein the first power threshold is less than the second power threshold; and if the target output power is not less than a preset second power threshold, determining that the target color corresponding to the target output power is red according to a pre-stored corresponding relation between power and color.
Further, the processor 401 is further configured to obtain an output voltage or an output current of the charger;
and determining the output voltage or a target output current or a target output voltage corresponding to the output current according to a pre-stored corresponding relation between the output current and the output voltage.
Further, the processor 401 is further configured to send the target output power to the charger, so that the charger displays the target output power.
The communication bus mentioned in the above server may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 402 is used for communication between the above-described electronic apparatus and other apparatuses.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
Example 8:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program executable by an electronic device is stored, and when the program is run on the electronic device, the electronic device is caused to execute the following steps:
the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of:
acquiring output voltage and output current of a charger, and determining target output power based on the output voltage and the output current;
and controlling corresponding equipment to indicate by the corresponding indication mark according to the corresponding relation between the pre-stored power and the indication mark.
Further, the controlling the corresponding device to indicate with the corresponding indicator according to the pre-stored correspondence between the power and the indicator includes:
controlling the charger to indicate by the corresponding indication mark according to the corresponding relation between the pre-stored power and the indication mark; or, according to the corresponding relation between the pre-stored power and the indication mark, the data line connected with the charger is controlled to indicate by the corresponding indication mark.
Further, the controlling the charger to indicate with the corresponding indication identifier according to the correspondence between the pre-stored power and the indication identifier includes:
and determining the target color of the signal lamp corresponding to the target output power according to the corresponding relation between the pre-stored power and the signal lamp color, and controlling the signal lamp of the charger to indicate with the target color.
Further, the controlling the data line connected to the charger to indicate with the corresponding indication mark according to the pre-stored correspondence between the power and the indication mark includes:
and determining the target color of the data line shell corresponding to the target output power according to the corresponding relation between the pre-stored power and the color of the data line shell connected with the charger, and controlling the data line shell to indicate with the target color.
Further, the determining a target color corresponding to the target output power according to a pre-stored correspondence between power and color includes:
if the target output power is not greater than a preset first power threshold, determining that a target color corresponding to the target output power is white according to a pre-stored corresponding relation between power and color; if the target output power is greater than a preset first power threshold and less than a preset second power threshold, determining that a target color corresponding to the target output power is yellow according to a corresponding relation between pre-stored power and color, wherein the first power threshold is less than the second power threshold; and if the target output power is not less than a preset second power threshold, determining that the target color corresponding to the target output power is red according to a pre-stored corresponding relation between power and color.
Further, the acquiring the output voltage and the output current of the charger includes:
acquiring the output voltage or the output current of the charger;
and determining the output voltage or a target output current or a target output voltage corresponding to the output current according to a pre-stored corresponding relation between the output current and the output voltage.
Further, after determining the target output power based on the output voltage and the output current, the method further comprises:
and sending the target output power to the charger, and enabling the charger to display the target output power.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (16)

1. A method of charging, the method comprising:
acquiring output voltage and output current of a charger, and determining target output power based on the output voltage and the output current;
and controlling corresponding equipment to indicate by the corresponding indication mark according to the corresponding relation between the pre-stored power and the indication mark.
2. The method according to claim 1, wherein the controlling the corresponding device to indicate with the corresponding indicator according to the pre-stored correspondence between the power and the indicator comprises:
controlling the charger to indicate by the corresponding indication mark according to the corresponding relation between the pre-stored power and the indication mark; or
And controlling a data line connected with the charger to indicate with the corresponding indication mark according to the corresponding relation between the pre-stored power and the indication mark.
3. The method of claim 2, wherein the controlling the charger to indicate with the corresponding indicator according to the pre-stored correspondence between the power and the indicator comprises:
and determining the target color of the signal lamp corresponding to the target output power according to the corresponding relation between the pre-stored power and the signal lamp color, and controlling the signal lamp of the charger to indicate with the target color.
4. The method of claim 2, wherein the controlling the data line connected to the charger to indicate with the corresponding indication mark according to the pre-stored correspondence between the power and the indication mark comprises:
and determining the target color of the data line shell corresponding to the target output power according to the corresponding relation between the pre-stored power and the color of the data line shell connected with the charger, and controlling the data line shell to indicate with the target color.
5. The method according to claim 3 or 4, wherein the determining the target color corresponding to the target output power according to the pre-stored correspondence relationship between power and color comprises:
if the target output power is not greater than a preset first power threshold, determining that a target color corresponding to the target output power is white according to a pre-stored corresponding relation between power and color;
if the target output power is greater than a preset first power threshold and less than a preset second power threshold, determining that a target color corresponding to the target output power is yellow according to a corresponding relation between pre-stored power and color, wherein the first power threshold is less than the second power threshold;
and if the target output power is not less than a preset second power threshold, determining that the target color corresponding to the target output power is red according to a pre-stored corresponding relation between power and color.
6. The method of claim 1, wherein the obtaining the output voltage and the output current of the charger comprises:
acquiring the output voltage or the output current of the charger;
and determining the output voltage or a target output current or a target output voltage corresponding to the output current according to a pre-stored corresponding relation between the output current and the output voltage.
7. The method of claim 1, wherein after determining a target output power based on the output voltage and the output current, the method further comprises:
and sending the target output power to the charger, and enabling the charger to display the target output power.
8. A charging device, the device comprising:
the device comprises a determining module, a judging module and a control module, wherein the determining module is used for acquiring the output voltage and the output current of the charger and determining the target output power based on the output voltage and the output current;
and the control module is used for controlling the corresponding equipment to indicate by the corresponding indication identifier according to the corresponding relation between the pre-stored power and the indication identifier.
9. The device according to claim 8, wherein the control module is specifically configured to control the charger to indicate with the corresponding indicator according to a correspondence between the pre-stored power and the indicator; or, according to the corresponding relation between the pre-stored power and the indication mark, the data line connected with the charger is controlled to indicate by the corresponding indication mark.
10. The apparatus according to claim 9, wherein the control module is specifically configured to determine a target color of the signal lamp corresponding to the target output power according to a pre-stored correspondence relationship between power and signal lamp color, and control the signal lamp of the charger to indicate the target color.
11. The apparatus according to claim 9, wherein the control module is specifically configured to determine a target color of the data line housing corresponding to the target output power according to a pre-stored correspondence between power and a color of a data line housing connected to the charger, and control the data line housing to indicate the target color.
12. The apparatus according to claim 10 or 11, wherein the control module is specifically configured to determine, if the target output power is not greater than a preset first power threshold, that a target color corresponding to the target output power is white according to a pre-stored correspondence between power and color; if the target output power is greater than a preset first power threshold and less than a preset second power threshold, determining that a target color corresponding to the target output power is yellow according to a corresponding relation between pre-stored power and color, wherein the first power threshold is less than the second power threshold; and if the target output power is not less than a preset second power threshold, determining that the target color corresponding to the target output power is red according to a pre-stored corresponding relation between power and color.
13. The device according to claim 8, wherein the determining module is specifically configured to obtain an output voltage or an output current of the charger; and determining the output voltage or a target output current or a target output voltage corresponding to the output current according to a pre-stored corresponding relation between the output current and the output voltage.
14. The apparatus of claim 8, further comprising:
and the sending module is used for sending the target output power to the charger so that the charger displays the target output power.
15. An electronic device, characterized in that the electronic device comprises a processor for implementing the steps of the charging method according to any of claims 1-7 when executing a computer program stored in a memory.
16. A computer-readable storage medium, characterized in that it stores a computer program executable by a terminal, which when run on the terminal, causes the terminal to perform the steps of the charging method according to any one of claims 1 to 7.
CN202011445994.XA 2020-12-09 2020-12-09 Charging method, device, equipment and medium Pending CN112688379A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011445994.XA CN112688379A (en) 2020-12-09 2020-12-09 Charging method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011445994.XA CN112688379A (en) 2020-12-09 2020-12-09 Charging method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN112688379A true CN112688379A (en) 2021-04-20

Family

ID=75448770

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011445994.XA Pending CN112688379A (en) 2020-12-09 2020-12-09 Charging method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112688379A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022095690A1 (en) * 2020-11-05 2022-05-12 中兴通讯股份有限公司 Fast charging method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107069913A (en) * 2017-05-08 2017-08-18 上海传英信息技术有限公司 Charge control method, user terminal and charger
CN207994699U (en) * 2018-04-19 2018-10-19 北京微格互动科技股份有限公司 It can prompt the data line of charging rate
CN109066856A (en) * 2018-08-14 2018-12-21 Oppo广东移动通信有限公司 Electric quantity reminding method, storage medium, charging equipment and data line
CN208608752U (en) * 2018-07-16 2019-03-15 深圳市珉讯电子科技有限公司 A kind of charge indication means and the charging data line with the device
CN110061569A (en) * 2019-05-22 2019-07-26 常州联王电子有限公司 A kind of light defines the system and method for feedback product operating status
JP3225713U (en) * 2019-12-27 2020-03-26 東莞市富澤電子有限公司Dong Guan City FUZE Electronic Co., Ltd. Charging cable with lamp and voice presentation function

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107069913A (en) * 2017-05-08 2017-08-18 上海传英信息技术有限公司 Charge control method, user terminal and charger
CN207994699U (en) * 2018-04-19 2018-10-19 北京微格互动科技股份有限公司 It can prompt the data line of charging rate
CN208608752U (en) * 2018-07-16 2019-03-15 深圳市珉讯电子科技有限公司 A kind of charge indication means and the charging data line with the device
CN109066856A (en) * 2018-08-14 2018-12-21 Oppo广东移动通信有限公司 Electric quantity reminding method, storage medium, charging equipment and data line
CN110061569A (en) * 2019-05-22 2019-07-26 常州联王电子有限公司 A kind of light defines the system and method for feedback product operating status
JP3225713U (en) * 2019-12-27 2020-03-26 東莞市富澤電子有限公司Dong Guan City FUZE Electronic Co., Ltd. Charging cable with lamp and voice presentation function

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022095690A1 (en) * 2020-11-05 2022-05-12 中兴通讯股份有限公司 Fast charging method and device

Similar Documents

Publication Publication Date Title
US11368039B2 (en) Battery charging method and electronic device
CN110166994B (en) Data time-sharing transmission interoperability method, system, mobile terminal and storage medium
CN108132401A (en) Charge abnormal detection method, device, storage medium and mobile terminal
CN105677420A (en) Method and device for interface pin configuration
CN104657188A (en) Startup control method and device and electronic equipment
CN108599290A (en) A kind of charge protection method, device, terminal device and storage medium
CN105071484B (en) A kind of charging method and device of the terminal with data exchanging function
CN112744102B (en) Vehicle charging control method and device, vehicle and storage medium
CN107885683A (en) A kind of current test method of terminal and terminal
JP2017531339A (en) Method and apparatus for interconnecting smart terminals and in-vehicle terminals
CN112688379A (en) Charging method, device, equipment and medium
CN116701168A (en) Peripheral interface testing method, device, equipment and storage medium
CN106972558B (en) Charging control method and electronic equipment
CN110970954B (en) Charging control method and device, storage medium and split type electronic equipment
CN106300252A (en) A kind of electrical leakage detecting method, device and terminal unit
CN115333196A (en) Mobile energy storage power supply quick charging method, system, equipment and storage medium
CN111897252B (en) Load detection method, system and equipment
CN114168482A (en) Test method of vehicle control unit
CN113934661A (en) Electronic equipment, control method, device and medium
CN105912084A (en) Information processing method and electronic equipment
CN110970948A (en) Charging control method and device, storage medium and split type electronic equipment
CN106292977B (en) A kind of adapter recognition methods and terminal
CN110989814A (en) Server protection method, device and equipment
CN213182738U (en) Multi-mode USB interface circuit of electric vehicle intelligent liquid crystal instrument
CN109617175A (en) Mobile terminal charger detects control method, mobile terminal and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210420