CN105896639B - Charging control method and electronic equipment - Google Patents

Charging control method and electronic equipment Download PDF

Info

Publication number
CN105896639B
CN105896639B CN201510037505.XA CN201510037505A CN105896639B CN 105896639 B CN105896639 B CN 105896639B CN 201510037505 A CN201510037505 A CN 201510037505A CN 105896639 B CN105896639 B CN 105896639B
Authority
CN
China
Prior art keywords
electronic device
state
terminal
connector interface
connector
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
Application number
CN201510037505.XA
Other languages
Chinese (zh)
Other versions
CN105896639A (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510037505.XA priority Critical patent/CN105896639B/en
Publication of CN105896639A publication Critical patent/CN105896639A/en
Application granted granted Critical
Publication of CN105896639B publication Critical patent/CN105896639B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention discloses a charging control method and electronic equipment, wherein the method can be applied to first electronic equipment which is provided with a connector interface, and the connector interface comprises a first terminal arranged at a first position, a second terminal arranged at a second position and detection circuits respectively connected with the first terminal and the second terminal; the detection circuit is used for generating a first signal when a connector plug of a second electronic device is inserted into the connector interface; the method comprises the following steps: when the first signal is received, acquiring the current state of the first electronic equipment; judging whether the current state is a first state or not; when the current state is determined to be the first state, controlling the first electronic device to charge the second electronic device through the connector interface; the invention does not need real-time monitoring, saves system resources and reduces the power consumption of the whole machine.

Description

Charging control method and electronic equipment
Technical Field
The invention relates to the technical field of charging control, in particular to a charging control method and electronic equipment.
Background
Many electronic devices are provided with connector interfaces, such as USB interfaces, and the electronic devices can communicate with other devices, such as a USB disk and a mobile phone, and can be charged through the connector interfaces.
In the case of an electronic device capable of charging other electronic devices through a connector interface, there is a type of electronic device that supports a fast power supply function. For this type of electronic device, the system needs to monitor a voltage change between the two terminals D +/D of the connector interface in real time to determine whether a device is inserted according to the voltage change, and when it is determined that a device is inserted, control to quickly charge the inserted device.
However, the real-time monitoring method can seriously affect the power consumption of the whole machine.
Disclosure of Invention
In view of this, the present invention provides a charging control method and an electronic device, so as to solve the technical problem that a real-time monitoring method in the prior art affects the power consumption of the whole device.
In order to achieve the purpose, the invention provides the following technical scheme:
a charging control method is applied to first electronic equipment, wherein the first electronic equipment is provided with a connector interface, and the connector interface comprises a first terminal arranged at a first position, a second terminal arranged at a second position and detection circuits respectively connected with the first terminal and the second terminal; the detection circuit is used for generating a first signal when a connector plug of a second electronic device is inserted into the connector interface;
the method comprises the following steps:
when the first signal is received, acquiring the current state of the first electronic equipment;
judging whether the current state is a first state or not;
and when the current state is determined to be the first state, controlling the first electronic equipment to charge the second electronic equipment through the connector interface.
Preferably, the obtaining of the current state of the first electronic device specifically includes:
acquiring the current state of a battery of the first electronic equipment;
the judging whether the current state is the first state specifically includes:
judging whether the current state of the battery is in a charging state or not;
wherein the current state of the battery is in the first state.
Preferably, when it is determined that the current state of the battery is in the non-charging state, before the controlling the first electronic device to charge the second electronic device through the connector interface, the method further includes:
acquiring the current electric quantity of a battery of the first electronic equipment;
and determining that the current electric quantity is larger than a preset electric quantity.
Preferably, the obtaining of the current state of the first electronic device specifically includes:
acquiring the current working state of the first electronic equipment;
the judging whether the current state is the first state specifically includes:
judging whether the current working state is a low power consumption state or not;
wherein the low power consumption state is a first state of the first electronic device.
Preferably, before the controlling the first electronic device to charge the second electronic device through the connector interface, the method further includes:
determining that the first electronic device starts a power supply mode.
An electronic device, comprising:
a connector interface; the connector interface comprises a first terminal arranged at a first position, a second terminal arranged at a second position and a detection circuit respectively connected with the first terminal and the second terminal, wherein the detection circuit is used for generating a first signal when a connector plug of a second electronic device is inserted into the connector interface;
the controller is connected with the detection circuit;
the controller is used for acquiring the current state of the first electronic equipment when receiving the first signal; judging whether the current state is a first state or not; and when the current state is determined to be the first state, controlling the first electronic equipment to charge the second electronic equipment through the connector interface.
Preferably, the first terminal and the second terminal are specifically disposed at both ends of the connector interface so as to contact a housing of a connector plug of the second electronic device when the connector plug is inserted into the connector interface.
Preferably, the controller includes:
the first controller is connected with the detection circuit and used for receiving a first signal;
a second controller; the second controller is used for acquiring the current state of the first electronic equipment and generating a second signal when the current state is determined to be the first state;
the logic circuit is respectively connected with the first controller and the second controller and is used for generating a control signal according to the first signal and the second signal;
the first controller is used for controlling the first electronic equipment to charge the second electronic equipment through the connector interface according to the control signal.
Preferably, the controller obtains a current state of the first electronic device, and determines whether the current state is a first state, specifically: the controller is used for acquiring the current state of a battery of the first electronic equipment; judging whether the current state of the battery is in a charging state or not;
wherein the current state of the battery is in the first state.
Preferably, when the controller determines that the current state of the battery is in a non-charging state, the controller is further configured to obtain a current electric quantity of the battery of the first electronic device, and determine that the current electric quantity is greater than a preset electric quantity.
Preferably, the controller obtains a current state of the first electronic device, and determines whether the current state is a first state, specifically: the controller is specifically configured to acquire a current working state of the first electronic device, and determine whether the current working state is a low power consumption state;
wherein the low power consumption state is a first state of the first electronic device.
Preferably, before the controller controls the first electronic device to charge the second electronic device through the connector interface, the controller is further configured to determine that the first electronic device starts a power supply mode.
Compared with the prior art, the embodiment of the invention discloses a charging control method which can be applied to first electronic equipment provided with a connector interface, wherein the connector interface comprises a detection circuit connected with a first terminal and a second terminal, and a first signal can be automatically generated when a connector plug is inserted into the connector interface, so that a system can determine whether to charge second electronic equipment according to the first signal generated by the detection circuit and the current state of the first electronic equipment, real-time monitoring is not needed, system resources are saved, and the power consumption of the whole machine is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a connector interface applied to a first electronic device according to an embodiment of the disclosure;
fig. 2 is a schematic flowchart of a charging control method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a charging control method according to another embodiment of the disclosure;
fig. 4 is a schematic flowchart of a charging control method according to another embodiment of the disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure;
FIG. 6 is a schematic structural diagram of a connector interface according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a connection interface according to another embodiment of the disclosure;
fig. 8 is a schematic structural diagram of an electronic device according to another embodiment of the disclosure.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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.
An embodiment of the invention discloses a charging control method, which can be applied to first electronic equipment, wherein the first electronic equipment can be a mobile phone, a tablet computer, a palm computer, a notebook computer and the like.
The first electronic device is provided with a connector interface, as shown in fig. 1, the connector interface may include: a first terminal 101A, a second terminal 101B, and a detection circuit 102;
the first terminal 101A is disposed at a first position of the connector interface, the second terminal 101B is disposed at a second position of the connector interface, and the first position and the second position are different positions on the connector interface.
It should be noted that the first terminal and the second terminal are specifically two other terminals that are disposed on the connector interface and are different from the two terminals D + and D-of the connector interface.
The detection circuit 102 is connected to the first terminal 101A and the second terminal 101B, respectively, and is capable of generating a first signal when a connector plug of a second electronic device is inserted into the connector interface.
The second electronic device may be a mobile phone, a tablet computer, a palm computer, or the like.
For example, the first terminal and the second terminal are specifically provided at both ends of the connector interface, and both the first terminal and the second terminal can contact the housing of the connector plug when the connection plug of the second electronic device is inserted into the connection interface. In conjunction with the detection circuit, the detection circuit may ground one of the terminals and take the other terminal as an output signal, for example, the first terminal is grounded and the second terminal is taken as an output signal, when no connector plug of the second electronic device is inserted into the connector interface, the output signal is at a high level, when the connector plug of the second electronic device is inserted into the connector interface, the housing of the connector plug may contact the first terminal and the second terminal, so that the two terminals are shorted, and accordingly, the output signal may be pulled down to change from the high level to the low level, that is, the first signal generated by the detection circuit when the connector plug of the second electronic device is inserted into the connector interface is at a low level.
Of course, a specific implementation manner of the above detection circuit when the connector plug of the second electronic device is inserted into the connector interface is within the protection scope of the present invention for other manners capable of generating the first signal through the cooperation of the first terminal and the second terminal when the connector plug of the second electronic device is inserted into the connector interface. For example, the first signal may also be high.
As shown in fig. 2, a charging control method may include the steps of:
step 201: when a first signal is received, acquiring the current state of first electronic equipment;
when the first signal is received, it is determined that the connector plug of the second electronic device has been inserted into the connector interface of the first electronic device, and at this time, in order to determine whether the first electronic device can charge the second electronic device, the current state of the first electronic device may be acquired.
Step 202: judging whether the current state is a first state or not;
the first state of the first electronic device is a condition that the first electronic device can provide power for the second electronic device, and therefore, whether the first electronic device can provide power for the second electronic device can be determined by judging whether the current state of the first electronic device is the first state.
Step 203: and when the current state is determined to be the first state, controlling the first electronic equipment to charge the second electronic equipment through the connector interface.
It should be noted that the first state of the first electronic device is associated with the acquired current state of the first electronic device, and may be set according to actual situations, which is not limited in the present invention.
When the first electronic device charges the second electronic device through the connector interface, the second electronic device can be charged in a quick charging mode.
In the embodiment of the invention, the first electronic equipment is provided with the connector interface, the connector interface comprises the detection circuit connected with the first terminal and the second terminal, and the first signal can be automatically generated when the connector plug is inserted into the connector interface, so that the system can determine whether to charge the second electronic equipment according to the first signal generated by the detection circuit and the current state of the first electronic equipment, real-time monitoring is not needed, system resources are saved, and the power consumption of the whole machine is reduced.
In the present invention, the first state of the first electronic device is associated with the acquired current state of the first electronic device, as a specific implementation manner:
the obtaining of the current state of the first electronic device may specifically be: the current state of a battery of the first electronic device is acquired. Correspondingly, whether the current state is the first state is judged, which may specifically be: and judging whether the current state of the battery is in a charging state or not.
The current state of the battery in the charging state represents that the battery of the first electronic device is in the first state, and the current state of the battery not in the charging state represents that the battery of the first electronic device is not in the first state. When the battery of the first electronic device is in the charging state, it indicates that the battery of the first electronic device has enough power to be provided to the second electronic device, and therefore, the first electronic device can be controlled to charge the second electronic device through the connector interface when the battery of the first electronic device is in the charging state.
On the basis that it cannot be determined whether the current amount of power stored in the battery of the first electronic device can provide enough power for the second electronic device when the battery of the first electronic device is not in the charging state, another embodiment of the present invention discloses a charging control method, as shown in fig. 3, the method may include the following steps:
step 301: when receiving the first signal, acquiring the current state of a battery of the first electronic equipment;
step 302: judging whether the current state of the battery is in a charging state;
step 303: when the current state of the battery is determined to be in a non-charging state, acquiring the current electric quantity of the battery of the first electronic device;
when the battery of the first electronic device is not in a charging state, it cannot be determined whether the current amount of power stored in the battery of the first electronic device can provide enough power for the second electronic device, and therefore, the current amount of power of the battery of the first electronic device can be acquired.
Step 304: determining that the current electric quantity is greater than a preset electric quantity;
the preset electric quantity is a standard for determining whether the current electric quantity of the battery of the first electronic device can provide enough electric energy for the second electronic device, and may be set according to an actual situation, which is not limited in the present invention. If the preset power may be 20% of the rated power of the battery, when the current power of the battery is obtained, the current power may be compared with the preset power to determine whether the current power is greater than the preset power by 20%, and when the current power is determined to be greater than the preset power, step 305 is performed.
Step 305: and controlling the first electronic equipment to charge the second electronic equipment through the connector interface.
In the embodiment of the invention, the first electronic equipment is provided with the connector interface, the connector interface comprises the detection circuit connected with the first terminal and the second terminal, and the first signal can be automatically generated when the connector plug is inserted into the connector interface, so that the system can determine whether to charge the second electronic equipment according to the first signal generated by the detection circuit and the current state of the first electronic equipment, real-time monitoring is not needed, system resources are saved, and the power consumption of the whole machine is reduced.
In the present invention, the first state of the first electronic device is associated with the acquired current state of the first electronic device, as another specific implementation:
the obtaining of the current state of the first electronic device may specifically be: and acquiring the current working state of the first electronic equipment. Correspondingly, whether the current state is the first state is judged, which may specifically be: and judging whether the current working state is a low power consumption state or not.
The first electronic device is in the low power consumption state, which indicates that the first electronic device is in the first state, and when the first electronic device is in the low power consumption state, it indicates that the first electronic device can provide electric energy to the second electronic device.
It should be noted that there are various ways to determine the current operating state of the first electronic device and determine whether the first electronic device is in the low power consumption state, and the present invention is not limited thereto. For example, state parameters related to the current working state of the first electronic device may be acquired to determine whether the first electronic device is in the low power consumption state through the state parameters, for example, the CPU usage rate of the first electronic device is acquired to determine whether the first electronic device is in the low power consumption state through the CPU usage rate.
The low power consumption state of the first electronic device may at least include that the first electronic device is in a sleep state and a power-off state.
Another embodiment of the present invention discloses a charging control method, as shown in fig. 4, the method may include the following steps:
step 401: when the first signal is received, determining that the first electronic equipment starts a power supply mode;
the first electronic device starts the power supply mode, which is one of the preconditions that the first electronic device can supply power to the second electronic device. That is, controlling the first electronic device to charge the second electronic device through the connector interface requires two conditions; one condition is that the first electronic device turns on the power mode, and the other condition is that the current state of the first electronic device is the first state.
It should be noted that, the present invention does not limit the execution sequence of determining the power supply mode of the first electronic device in step 401, that is, the power supply mode of the first electronic device may be determined before the first signal is received, or may be determined before the first electronic device is controlled to charge the second electronic device through the connector interface after the current state of the first electronic device is acquired, which may be specifically set according to an actual situation.
When the first electronic device is determined not to be in the power supply mode, it is indicated that the first electronic device cannot provide power for the second electronic device, and at this time, subsequent actions do not need to be executed.
It should be emphasized that, there are various ways for the first electronic device to start the power supply mode, for example, if a virtual key is provided on the first electronic device, when the virtual key is checked, it indicates that the first electronic device starts the power supply mode.
Step 402: acquiring the current state of the first electronic equipment;
step 403: judging whether the current state is a first state or not;
step 404: and when the current state is determined to be the first state, controlling the first electronic equipment to charge the second electronic equipment through the connector interface.
In the embodiment of the invention, the first electronic equipment is provided with the connector interface, the connector interface comprises the detection circuit connected with the first terminal and the second terminal, and the first signal can be automatically generated when the connector plug is inserted into the connector interface, so that the system can determine whether to charge the second electronic equipment according to the first signal generated by the detection circuit and the current state of the first electronic equipment, real-time monitoring is not needed, system resources are saved, and the power consumption of the whole machine is reduced.
An embodiment of the invention also discloses an electronic device, which can be a mobile phone, a tablet computer, a palm computer, a notebook computer and the like.
As shown in fig. 5, the electronic device may include: connector interface 100, controller 200;
the connector interface 100 includes a first terminal 101A, a second terminal 101B, and a detection circuit 102; wherein:
the first terminals 101A are disposed at a first position of the connector interface, and the second terminals 101B are disposed at a second position of the connector interface, where the first position and the second position are different positions of the connector interface.
The detection circuit 102 is connected to the first terminal 101A and the second terminal 101B, respectively, for generating a first signal when a connector plug of a second electronic device is inserted into the connector interface.
The controller 200 is connected to the detection circuit 102, and is configured to obtain a current state of the first electronic device when receiving the first signal; judging whether the current state is a first state or not; and when the current state is determined to be the first state, controlling the first electronic equipment to charge the second electronic equipment through the connector interface.
In the embodiment of the invention, the first electronic equipment is provided with the connector interface, the connector interface comprises the detection circuit connected with the first terminal and the second terminal, and the first signal can be automatically generated when the connector plug is inserted into the connector interface, so that the system can determine whether to charge the second electronic equipment according to the first signal generated by the detection circuit and the current state of the first electronic equipment, real-time monitoring is not needed, system resources are saved, and the power consumption of the whole machine is reduced.
In the present invention, as a specific arrangement of the first terminal and the second terminal, the first terminal and the second terminal device may be respectively arranged at both ends of the connector interface so as to contact the housing of the connector plug when the connector plug of the second electronic device is inserted into the connector interface.
In connection with the detection circuit, the detection circuit may ground one of the terminals, and the other terminal is used as an output signal, for example, the first terminal is grounded, the second terminal is used as an output signal, when no connector plug of the second electronic device is inserted into the connector interface, the output signal is at a high level, when a connector plug of the second electronic device is inserted into the connector interface, the housing of the connector plug may contact the first terminal and the second terminal, so that the two terminals are shorted, and accordingly, the output signal may be pulled down to change from the high level to the low level, that is, the first signal generated by the detection circuit when the connector plug of the second electronic device is inserted into the connector interface is at a low level.
Of course, the above is only one specific implementation manner of the detection circuit when the connector plug of the second electronic device is inserted into the connector interface, and other manners capable of generating the first signal through the cooperation of the first terminal and the second terminal when the connector plug of the second electronic device is inserted into the connector interface are within the protection scope of the present invention. For example, the first signal may also be high.
For easy understanding, taking the connector interface as a female USB connector as an example, referring to fig. 6, a schematic structural diagram of the female USB connector is shown, wherein the female USB connector includes a first terminal 101A and a second terminal 101B, which are respectively disposed at two ends of the female USB connector, and when a male USB connector is inserted into the female USB connector, the first terminal and the second terminal can contact a shell of the male USB connector.
As can be seen from fig. 6, the USB female connector further includes a D + terminal 102A and a D-terminal 102B, in the present invention, it is not necessary to use the D + terminal and the D-terminal to detect whether a device is inserted in real time, and by adding the first terminal, the second terminal, and the detection circuits respectively connected to the first terminal and the second terminal, the detection circuit can generate the first signal when a device is inserted, so as to ensure that the system can determine whether to charge the device according to the first signal and the current state of the first electronic device.
Further, a specific implementation form of the detection circuit is illustrated in an application example, referring to fig. 7, the connector interface may include a first terminal 10, a second terminal 11, and a detection circuit 102;
the detection circuit can comprise a grounding end and a resistor R; the first terminal 10 may be grounded, the second terminal 11 is connected to one end of a resistor R, and the other end of the resistor R is used for connecting to a power supply.
Specifically, when the connector plug of the second electronic device is not inserted into the connector interface of the first electronic device, the connection between the detection circuit and the second terminal is pulled to a high potential by the resistor, and the detection circuit is at a high level; when the connector plug of the second electronic device is inserted into the connector interface of the first electronic device, the housing of the second electronic device contacts the second terminal, and accordingly, the connection between the detection circuit and the second terminal is pulled to the ground and is at a low level, i.e., the first signal generated by the detection circuit is at a low level.
It should be noted that the above is only one implementation manner in which the first terminal, the second terminal and the detection circuit are matched with each other, and other manners capable of detecting the insertion of the second electronic device are within the protection scope of the present invention. As another example, the connector plug of the second electronic device may be provided with a third terminal and a fourth terminal respectively interfacing with the first terminal and the second terminal and another detection circuit respectively connected to the third terminal and the fourth terminal, and the two detection circuits may form a closed loop when the connector plug of the second electronic device is inserted into the connector interface of the first electronic device, thereby generating the first signal.
Another embodiment of the present invention further discloses an electronic device, as shown in fig. 8, the electronic device may include: connector interface 100, controller 200; wherein:
the connector interface 100 includes a first terminal 101A, a second terminal 101B, and a detection circuit 102; specifically, the first terminal 101A is disposed at a first position of the connector interface, the second terminal 101B is disposed at a second position of the connector interface, and the first position and the second position are different positions of the connector interface respectively.
The detection circuit 102 is connected to the first terminal 101A and the second terminal 101B, respectively, for generating a first signal when a connector plug of a second electronic device is inserted into the connector interface.
The controller 200 includes: a first controller 201, a second controller 202, a logic circuit 203; specifically, the method comprises the following steps:
the first controller 201 is connected to the detection circuit 102, and is configured to receive the first signal generated by the detection circuit;
the second controller is used for acquiring the current state of the first electronic equipment and generating a second signal when the current state is determined to be the first state;
the logic circuit 203 is respectively connected to the first controller 201 and the second controller 202, and may be configured to generate a control signal according to the first signal and the second signal;
it should be noted that the logic circuit 203 may specifically be a logic and gate, and may also be a logic or gate.
The first controller 201 is capable of controlling the first electronic device to charge the second electronic device through the connector interface according to the control signal.
In the embodiment of the invention, the first electronic equipment is provided with the connector interface, the connector interface comprises the detection circuit connected with the first terminal and the second terminal, and the first signal can be automatically generated when the connector plug is inserted into the connector interface, so that the system can determine whether to charge the second electronic equipment according to the first signal generated by the detection circuit and the current state of the first electronic equipment, real-time monitoring is not needed, system resources are saved, and the power consumption of the whole machine is reduced.
In the present invention, the first state of the first electronic device is associated with the acquired current state of the first electronic device, as a specific implementation manner:
the controller obtains a current state of the first electronic device, and determines whether the current state is the first state, which may specifically be: the controller is used for acquiring the current state of a battery of the first electronic equipment; judging whether the current state of the battery is in a charging state;
the current state of the battery is in a charging state which is a first state.
When the battery of the first electronic device is in the charging state, it indicates that the battery of the first electronic device has enough power to be provided to the second electronic device, and therefore, the first electronic device can be controlled to charge the second electronic device through the connector interface when the battery of the first electronic device is in the charging state.
And when the battery of the first electronic device is not in the charging state, it cannot be determined whether the current electric quantity stored by the battery of the first electronic device can provide enough electric energy for the second electronic device, based on which, when the controller determines that the current state of the battery is in the non-charging state, the controller may be further configured to obtain the current electric quantity of the battery of the first electronic device, and when the current electric quantity is determined to be greater than the preset electric quantity, control the first electronic device to charge the second electronic device through the connector interface.
In the present invention, the first state of the first electronic device is associated with the acquired current state of the first electronic device, as another specific implementation:
the controller obtains a current state of the first electronic device, and determines whether the current state is the first state, which may specifically be: the controller acquires the current working state of the first electronic equipment and judges whether the current working state is a low power consumption state or not;
the low power consumption state is a first state of the first electronic device.
When the first electronic device is in the low power consumption state, the first electronic device can provide power to the second electronic device, and therefore, when the first electronic device is determined to be in the low power consumption state, the first electronic device can be controlled to charge the second electronic device through the connector interface.
In the invention, before the controller controls the first electronic device to charge the second electronic device through the connector interface, the controller can also be used for determining that the first electronic device starts the power supply mode.
In the embodiment of the invention, the first electronic equipment is provided with the connector interface, the connector interface comprises the detection circuit connected with the first terminal and the second terminal, and the first signal can be automatically generated when the connector plug is inserted into the connector interface, so that the system can determine whether to charge the second electronic equipment according to the first signal generated by the detection circuit and the current state of the first electronic equipment, real-time monitoring is not needed, system resources are saved, and the power consumption of the whole machine is reduced.
The embodiments of the apparatuses correspond to the embodiments of the methods, and reference may be made to the embodiments of the methods for details, which are not described herein again.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (5)

1. The charging control method is applied to first electronic equipment, wherein the first electronic equipment is provided with a connector interface, and the connector interface comprises a first terminal arranged at a first position, a second terminal arranged at a second position and detection circuits respectively connected with the first terminal and the second terminal; the detection circuit is used for generating a first signal when a connector plug of a second electronic device is inserted into the connector interface; when a connection plug of the second electronic device is inserted into the connector interface, the first terminal and the second terminal are both capable of contacting a housing of the connection plug;
the method comprises the following steps:
when the first signal is received, acquiring the current state of the first electronic equipment;
judging whether the current state is a first state or not;
when the current state is determined to be the first state, controlling the first electronic device to charge the second electronic device through the connector interface;
the obtaining of the current state of the first electronic device specifically includes: acquiring state parameters related to the current working state of the first electronic equipment;
the judging whether the current state is the first state specifically includes:
judging whether the first electronic equipment is in a low power consumption state or not according to the state parameters;
wherein the low power consumption state is a first state of the first electronic device.
2. The method of claim 1, wherein before the controlling the first electronic device to charge the second electronic device through the connector interface, further comprising:
determining that the first electronic device starts a power supply mode.
3. An electronic device, comprising:
a connector interface; the connector interface comprises a first terminal arranged at a first position, a second terminal arranged at a second position and a detection circuit respectively connected with the first terminal and the second terminal, wherein the detection circuit is used for generating a first signal when a connector plug of a second electronic device is inserted into the connector interface; the first terminal and the second terminal are each capable of contacting a housing of the connector plug when the connection plug of the second electronic device is inserted into the connector interface;
the controller is connected with the detection circuit;
the controller is used for acquiring the current state of the electronic equipment when receiving the first signal; judging whether the current state is a first state or not; when the current state is determined to be the first state, controlling the electronic equipment to charge the second electronic equipment through the connector interface;
the method comprises the steps that the controller acquires the current state of the electronic equipment and judges whether the current state is a first state, and specifically comprises the following steps: the controller is specifically configured to acquire a state parameter related to a current working state of the electronic device, and determine whether the electronic device is in a low power consumption state according to the state parameter;
wherein the low power consumption state is a first state of the electronic device.
4. The electronic device of claim 3, wherein the first terminal and the second terminal are specifically disposed at both ends of the connector interface so as to contact a housing of a connector plug of the second electronic device when the connector plug is inserted into the connector interface.
5. The electronic device of claim 3 or 4, wherein the controller is further configured to determine that the electronic device is powered on before controlling the electronic device to charge the second electronic device through the connector interface.
CN201510037505.XA 2015-01-26 2015-01-26 Charging control method and electronic equipment Active CN105896639B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510037505.XA CN105896639B (en) 2015-01-26 2015-01-26 Charging control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510037505.XA CN105896639B (en) 2015-01-26 2015-01-26 Charging control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105896639A CN105896639A (en) 2016-08-24
CN105896639B true CN105896639B (en) 2020-11-20

Family

ID=56999579

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510037505.XA Active CN105896639B (en) 2015-01-26 2015-01-26 Charging control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105896639B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106685018B (en) * 2017-03-17 2020-06-23 赣州市瑞嘉达电子有限公司 Reverse charging method and device and terminal
CN107069858B (en) * 2017-03-30 2020-10-27 联想(北京)有限公司 Charging method and charging device for electronic equipment
CN106970676B (en) * 2017-05-06 2018-03-27 深圳市马汀科技有限公司 A kind of power supply for multiple power electronic equipments
CN108711662B (en) * 2018-05-22 2020-05-05 宁德时代新能源科技股份有限公司 Battery pack heating device and control method
JP2020181414A (en) * 2019-04-25 2020-11-05 レノボ・シンガポール・プライベート・リミテッド Electronic device protection apparatus and electronic device protection method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101728859A (en) * 2009-12-17 2010-06-09 中兴通讯股份有限公司 Mobile terminals and system and method for sharing batteries between same
CN102064582A (en) * 2010-12-28 2011-05-18 鸿富锦精密工业(深圳)有限公司 Terminal capable of supplying power for outside
CN102810880A (en) * 2011-05-31 2012-12-05 联想(北京)有限公司 Power supply control method, power supply control device and electronic device
CN103683350A (en) * 2012-09-13 2014-03-26 华平信息技术股份有限公司 Charging method and charging circuit of electronic equipment, and electronic equipment
WO2014179232A1 (en) * 2013-04-29 2014-11-06 Power Integrations, Inc. Usb charging with data communication
US20150145468A1 (en) * 2013-11-27 2015-05-28 Spreadtrum Communications (Shanghai) Co., Ltd. Device and chip for controlling charging, and user terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9276435B2 (en) * 2012-11-02 2016-03-01 Maishi Electronic (Shanghai) Ltd. Method and apparatus for wirelessly receiving power
CN104239240A (en) * 2013-06-11 2014-12-24 鸿富锦精密工业(深圳)有限公司 Electronic device with universal serial bus (USB) interface with integration function

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101728859A (en) * 2009-12-17 2010-06-09 中兴通讯股份有限公司 Mobile terminals and system and method for sharing batteries between same
CN102064582A (en) * 2010-12-28 2011-05-18 鸿富锦精密工业(深圳)有限公司 Terminal capable of supplying power for outside
CN102810880A (en) * 2011-05-31 2012-12-05 联想(北京)有限公司 Power supply control method, power supply control device and electronic device
CN103683350A (en) * 2012-09-13 2014-03-26 华平信息技术股份有限公司 Charging method and charging circuit of electronic equipment, and electronic equipment
WO2014179232A1 (en) * 2013-04-29 2014-11-06 Power Integrations, Inc. Usb charging with data communication
US20150145468A1 (en) * 2013-11-27 2015-05-28 Spreadtrum Communications (Shanghai) Co., Ltd. Device and chip for controlling charging, and user terminal

Also Published As

Publication number Publication date
CN105896639A (en) 2016-08-24

Similar Documents

Publication Publication Date Title
CN105896639B (en) Charging control method and electronic equipment
EP3131171B1 (en) Power adaptor, terminal and charging system
CN103618356B (en) The charging system of a kind of mobile terminal and charging method thereof
US10554060B2 (en) Systems and methods for charging via USB port
CN105576727B (en) Method, device and system for quick charging
CN107834657B (en) Charging method, terminal equipment and power adapter
EP2991156A1 (en) Method and device for performing large-current charging on intelligent terminal
CN102223439B (en) Electronic equipment with USB interface and USB communication starting method thereof
US20170005495A1 (en) Method and apparatus for charging electronic device with usb connection
KR20160030261A (en) Apparatus and method to change current limit
CN105068959A (en) Terminal and charging method and apparatus for terminal with data exchange function
CN104009265B (en) A kind of battery activated method and apparatus of mobile terminal
CN103730933A (en) Charging method and electronic devices
CN109494822B (en) Terminal equipment, charger, charging system and charging method
CN103024195A (en) Smart mobile terminal and implementation method of charging of smart mobile terminal
CN102593930A (en) Charging system of mobile terminal
CN104467109A (en) Method for supplying power to electronic equipment and electronic equipment
CN105071484B (en) A kind of charging method and device of the terminal with data exchanging function
CN109148986B (en) Charging method and device
CN106877452B (en) Charging method and charging device
CN106972558B (en) Charging control method and electronic equipment
CN113381479A (en) Charging method and device and electronic equipment
CN112311032B (en) Charging method, charging device, electronic device and storage medium
CN111431221B (en) Charging device, resistance detection method and circuit
CN105226337A (en) A kind of method and apparatus of terminal charge

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant