CN110970948A - Charging control method and device, storage medium and split type electronic equipment - Google Patents

Charging control method and device, storage medium and split type electronic equipment Download PDF

Info

Publication number
CN110970948A
CN110970948A CN201811150920.6A CN201811150920A CN110970948A CN 110970948 A CN110970948 A CN 110970948A CN 201811150920 A CN201811150920 A CN 201811150920A CN 110970948 A CN110970948 A CN 110970948A
Authority
CN
China
Prior art keywords
equipment
charging
target
host
extension
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
CN201811150920.6A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811150920.6A priority Critical patent/CN110970948A/en
Publication of CN110970948A publication Critical patent/CN110970948A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0013Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries acting upon several batteries simultaneously or sequentially

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application discloses a charging control method, a charging control device, a storage medium and split type electronic equipment, wherein the split type electronic equipment comprises host equipment and at least one extension equipment, when the split type electronic equipment is charged, whether the host equipment is connected with an external power supply through a charging interface or not can be detected firstly, and if yes, target equipment needing to be charged is determined from the host equipment and the extension equipment. The host device is then controlled to bi-directionally communicate with the external power source to determine a target charging current that needs to be provided by the external power source. And finally, supplying the target charging current provided by the external power supply to the target device through the charging interface of the host device for charging. Therefore, the user does not need to charge the host equipment and the extension equipment respectively, and the convenience of charging the split type electronic equipment is improved.

Description

Charging control method and device, storage medium and split type electronic equipment
Technical Field
The application relates to the technical field of charging, in particular to a charging control method and device, a storage medium and split type electronic equipment.
Background
At present, a split electronic device appears in the related art, and the split electronic device is composed of a host device and at least one extension device, and the host device and the extension device can be spliced together to form a complete electronic device and can also be separated for independent use. However, in the related art, the operation of charging the split type electronic device is cumbersome.
Disclosure of Invention
The embodiment of the application provides a charging control method and device, a storage medium and a split type electronic device, which can improve the convenience of charging the split type electronic device.
In a first aspect, an embodiment of the present application provides a charging control method, which is applied to a split type electronic device, where the split type electronic device includes a host device and at least one extension device, and the charging control method includes:
detecting whether the host equipment is connected with an external power supply through a charging interface;
if yes, determining target equipment needing to be charged from the host equipment and the extension equipment;
controlling the host device to bi-directionally communicate with the external power source to determine a target charging current that needs to be provided by the external power source;
and providing the target charging current to the target equipment through the charging interface for charging.
In a second aspect, an embodiment of the present application provides a charging control apparatus, which is applied to a split type electronic device, where the split type electronic device includes a host device and at least one extension device, and the charging control apparatus includes:
the detection module is used for detecting whether the host equipment is connected with an external power supply through a charging interface;
the determining module is used for determining target equipment needing to be charged from the host equipment and the extension equipment if the charging request is positive;
a negotiation module for controlling the host device to perform bidirectional communication with the external power supply to determine a target charging current required to be provided by the external power supply;
and the charging module is used for providing the target charging current for the target equipment through the charging interface for charging.
In a third aspect, an embodiment of the present application provides a storage medium, which is applied to a split electronic device, where the split electronic device includes a host device and an extension device, and when a computer program stored in the storage medium runs on the split electronic device, the split electronic device is caused to perform the steps in the charging control method provided in any embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a split electronic device, which includes a host device and at least one extension device, and is configured to execute steps in a charging control method provided in any embodiment of the present application.
When the split type electronic equipment comprising the host equipment and the at least one extension equipment is charged, whether the host equipment is connected with an external power supply through a charging interface or not can be detected at first, and if yes, the target equipment needing to be charged is determined from the host equipment and the extension equipment. The host device is then controlled to bi-directionally communicate with the external power source to determine a target charging current that needs to be provided by the external power source. And finally, supplying the target charging current provided by the external power supply to the target device through the charging interface of the host device for charging. Therefore, the user does not need to charge the host equipment and the extension equipment respectively, and the convenience of charging the split type electronic equipment is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a first scenario of charging a split-type electronic device in an embodiment of the present application.
Fig. 2 is a schematic flowchart of a charging control method according to an embodiment of the present application.
Fig. 3 is a diagram illustrating an example of a screening interface provided by a host device in an embodiment of the present application.
Fig. 4 is another schematic flowchart of a charging control method according to an embodiment of the present application.
Fig. 5 is a schematic diagram of a second scenario of charging a split-type electronic device in an embodiment of the present application.
Fig. 6 is a schematic diagram of a third scenario of charging a split electronic device in an embodiment of the present application.
Fig. 7 is a schematic diagram of establishing a wired electrical connection between a power management chip of an extension device and a charging interface of a host device in an embodiment of the present application.
Fig. 8 is a schematic diagram of establishing a radio connection between a power management chip of an extension device and a charging interface of a host device in an embodiment of the present application.
Fig. 9 is a schematic structural diagram of a charging control device according to an embodiment of the present application.
Fig. 10 is a schematic structural diagram of a split-type electronic device provided in an embodiment of the present application.
Fig. 11 is another structural schematic diagram of a split type electronic device provided in an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
The embodiment of the application provides a charging control method, which is applied to a split type electronic device, as shown in fig. 1, the split type electronic device includes a host device and at least one extension device, and the extension device and the host device can be spliced together to form a 'complete electronic device', and can also be split to be used separately. It should be noted that the host device is separately provided with a charging interface for connecting an external power source, and the extension device may reuse the charging interface of the host device when being spliced to the host device. In this way, when the host device is connected to the external power supply through the charging interface, the slave device can obtain a charging current from the external power supply through the charging interface of the host device to perform charging, which will be described below.
In addition, wireless communication connection can be established between the host equipment and the extension equipment through respective wireless communication modules, so that data interaction between the host equipment and the extension equipment is carried out based on the wireless communication connection. The Wireless communication module includes, but is not limited to, a Wi-Fi (Wireless Fidelity) module, a bluetooth module, and the like.
For example, the host device may enable its Wi-Fi module to operate in an AP (Access Point) mode, and the extension device may enable its Wi-Fi module to operate in an STA (Station) mode, so that the extension device may establish a Wi-Fi connection with the host device.
It should be noted that the execution main body of the charging control method may be the charging control device provided in the embodiment of the present application, or a split electronic device integrated with the charging control device, where the charging control device may be implemented in a hardware or software manner.
Referring to fig. 2 and fig. 2 are schematic flow diagrams of a charging control method according to an embodiment of the present application, where the charging control method according to the embodiment of the present application is applied to a split-type electronic device, the split-type electronic device includes a host device and at least one extension device, and the following description will be made from the perspective of a charging control apparatus, where the flow of the charging control method according to the embodiment of the present application may be as follows:
101. and detecting whether the host equipment is connected with an external power supply through the charging interface.
The host equipment can be connected with the external power supply through the charging interface, so that the external power supply can directly output charging current to the charging interface of the host equipment, and the host equipment is charged or the extension equipment spliced to the host equipment is charged. Correspondingly, in the embodiment of the application, in order to charge the host device or the extension device, whether the host device is connected with an external power supply through a charging interface is firstly detected.
102. And if so, determining target equipment needing to be charged from the host equipment and the extension equipment.
If the host equipment is not connected with the external power supply through the charging interface, whether the host equipment is connected with the external power supply through the charging interface or not is continuously detected until the host equipment is connected with the external power supply through the charging interface. And if the host equipment is detected to be connected with the external power supply through the charging interface, determining target equipment needing to be charged from the host equipment and the extension equipment further according to a preset screening rule.
It should be noted that, the screening rule in the embodiment of the present application is not particularly limited, and may be set by a person skilled in the art according to actual needs.
For example, the filtering rule may be configured to perform filtering according to user selection, referring to fig. 3, the host device is provided with a filtering interface, and when the host device receives a pre-configured trigger operation for triggering the display of the filtering interface, the host device is controlled to display the filtering interface. The illustrated rectangle represents the extension devices which are identified by the host device and spliced to the host device, and the circular frame in the rectangle represents a "selection" control for selecting the corresponding device, so that the user can click any selection control to select the host device or the extension device corresponding to the selection control (or click the selection control again to cancel the selection of the host device or the extension device corresponding to the selection control). As shown in fig. 3, the screening interface shows the host device and 3 extension devices (extension device 1, extension device 2, and extension device 3, respectively) spliced to the host device, where extension device 2 has been selected by the user. At this point, the user may click the "charge" control to input a charge indication to the host device indicating that extension device 2 in the selected state is determined to be the target extension device that needs to be charged.
For another example, the screening rule may be configured to perform screening according to the remaining operating time of the device, wherein the host device may be controlled to send a time length inquiry request to each spliced extension device, where the time length inquiry request is used to inquire the remaining operating time of the extension device. Correspondingly, after receiving the time length inquiry request of the host equipment, the extension equipment predicts the residual running time length of the extension equipment according to the indication of the time length inquiry request and returns the predicted residual running time length to the host equipment. In addition, the host device is also instructed to predict the remaining operating time of the host device, so that after the host device receives the remaining operating time returned by each extension device, the device with the lowest remaining operating time of the host device and the extension devices is further determined as the target device needing to be charged.
103. The host device is controlled to bi-directionally communicate with the external power source to determine a target charging current that needs to be provided by the external power source.
In the embodiment of the application, after the target device needing to be charged is determined from the host device and the extension devices, the host device is controlled to perform bidirectional communication with the external power supply so as to determine the target charging current needing to be provided by the external power supply. How the host device performs bidirectional communication with the external power supply may be performed based on a charging protocol preconfigured by the host device and the external power supply, which is not specifically limited in the embodiment of the present application.
For example, the host device may be controlled to receive a mode inquiry request sent by the external power source through the charging interface, where the mode inquiry request is used to inquire whether to turn on the fast charging mode. Then, identifying whether the determined target equipment supports the rapid charging mode currently according to the mode inquiry request, and if the target equipment supports the rapid charging mode currently, controlling the host equipment to send a mode response message which agrees to start the rapid charging mode to the external power supply so that the external power supply determines the charging current corresponding to the rapid charging mode as the target charging current required to be provided; if the target device is identified not to support the fast charging mode currently (for example, the target device only supports the normal charging mode, or the remaining battery capacity of the target device is too high), the control host device sends a mode response message for refusing to start the fast charging mode to the external power supply, so that the external power supply determines the charging current corresponding to the normal charging mode as the target charging current required to be provided.
It should be noted that the normal charging mode (or standard charging mode) may be understood as a charging mode in which the rated charging voltage is 5V (volt) and the rated charging current is less than 2.5A (ampere). The charging speed of the fast charging mode (or called direct charging mode) is higher than that of the normal charging mode. In one embodiment, the charging current and/or charging voltage in the fast charging mode is greater than the charging current and/or charging voltage in the normal charging mode, for example, the charging current in the fast charging mode is greater than 3A, or the charging voltage in the fast charging mode is 9V, 12V, or 15V, etc.
104. And supplying the target charging current provided by the external power supply to the target device through the charging interface of the host device for charging.
Based on the above description, it can be understood by those skilled in the art that, since the external power source is directly connected to the charging interface of the host device, the target charging current provided by the external power source will be directly output to the charging interface of the host device. Accordingly, after determining that the target charging current required to be supplied by the external power supply is required, the control host device transmits a charging instruction to the external power supply instructing the external power supply to start supplying the target charging current determined before. In addition, a charging loop is established between the target device and the external power supply through the charging interface of the host device, so that the target charging current provided by the external power supply is provided for the target device to be charged through the charging interface of the host device.
For example, assuming that the split type electronic device includes a host device a, an extension device B, and an extension device C, if it is determined that the extension device C is a target device that needs to be charged, a target charging current provided by an external power supply may be provided to the extension device C through a charging interface of the host device a for charging.
By the above, when the split type electronic equipment comprising the host equipment and the at least one extension equipment is charged, whether the host equipment is connected with the external power supply through the charging interface or not can be firstly detected, and if yes, the target equipment needing to be charged is determined from the host equipment and the extension equipment. The host device is then controlled to bi-directionally communicate with the external power source to determine a target charging current that needs to be provided by the external power source. And finally, supplying the target charging current provided by the external power supply to the target device through the charging interface of the host device for charging. Therefore, the user does not need to charge the host equipment and the extension equipment respectively, and the convenience of charging the split type electronic equipment is improved.
Referring to fig. 4, fig. 4 is another schematic flow chart of a charging control method according to an embodiment of the present application, where the flow of the charging control method may be as follows:
201. and detecting whether the host equipment is connected with an external power supply through the charging interface.
The host equipment can be connected with the external power supply through the charging interface, so that the external power supply can directly output charging current to the charging interface of the host equipment, and the host equipment is charged or the extension equipment spliced to the host equipment is charged. Correspondingly, in the embodiment of the application, in order to charge the host device or the extension device, whether the host device is connected with an external power supply through a charging interface is firstly detected.
202. If yes, acquiring the residual electric quantity of the host equipment and acquiring the residual electric quantity of the extension equipment.
203. And determining the device with the lowest residual quantity in the host device and the extension device as the target device needing charging.
In the embodiment of the application, if it is detected that the host device is not connected with the external power supply through the charging interface, whether the host device is connected with the external power supply through the charging interface is continuously detected until it is detected that the host device is connected with the external power supply through the charging interface. And if the host equipment is detected to be connected with the external power supply through the charging interface, determining target equipment needing to be charged from the host equipment and the extension equipment further according to a preset screening rule.
Wherein the screening rule is set as: and taking the device with the lowest residual electric quantity in the host device and the extension devices as a target device needing charging. Therefore, in order to determine the target device to be charged, the remaining power of the host device and the remaining power of the extension device need to be obtained first. It should be noted that the remaining capacity of the host device refers to the remaining capacity of the battery in the host device, and the remaining capacity of the extension device refers to the remaining capacity of the battery in the extension device.
In order to acquire the residual electric quantity of the host equipment and the extension equipment, electric meters are respectively arranged in the host equipment and the extension equipment and used for estimating the residual electric quantity of a battery in the equipment where the electric meters are arranged.
The electricity meter may estimate the remaining capacity of the battery in the device using an open-circuit voltage method, a battery modeling method, or a coulometry method, and may also estimate the remaining capacity of the battery using other methods not listed in the embodiments of the present application, which is not limited in the embodiments of the present application.
For example, when a battery modeling method is adopted, a comparison relation table of voltage and remaining capacity is pre-established according to a discharge curve of the battery, and the comparison relation table describes a corresponding relation between the voltage of the battery and the remaining capacity of the battery. Correspondingly, when the residual capacity of the battery needs to be estimated, the voltage of the battery is measured firstly, and then the residual capacity corresponding to the voltage is inquired in the comparison relation table.
Accordingly, when the remaining power of the host device is obtained, the remaining power estimated by the fuel gauge built in the host device can be directly read. When the residual electric quantity of the extension equipment is acquired, the host equipment can be controlled to send an electric quantity acquisition request to the extension equipment through the wireless communication connection established between the host equipment and the extension equipment, and the extension equipment is instructed to return the residual electric quantity. On the other hand, when receiving a power acquisition request from the host device, the slave device reads the remaining power estimated by the fuel gauge built in itself, and returns the read remaining power to the host device through the wireless communication connection between the slave device and the host device. Therefore, the residual electric quantity of each extension device can be acquired.
After acquiring the residual electric quantity of the host device and the residual electric quantity of the extension device, further determining the device with the lowest residual electric quantity from the host device and the extension device, and determining the device with the lowest residual electric quantity as the target device needing to be charged.
For example, assuming that the split-type electronic device includes a host device a, an extension device B, and an extension device C, a represents the remaining power of the host device a, B represents the remaining power of the extension device B, and C represents the remaining power of the extension device C, if a > B > C, that is, the extension device C is the device with the lowest remaining power among the host device a, the extension device B, and the extension device C, at this time, the extension device C may be determined as the target device that needs to be charged.
204. The host device is controlled to bi-directionally communicate with the external power source to determine a target charging current that needs to be provided by the external power source.
In the embodiment of the application, after the target device needing to be charged is determined from the host device and the extension devices, the host device is controlled to perform bidirectional communication with the external power supply so as to determine the target charging current needing to be provided by the external power supply. How the host device performs bidirectional communication with the external power supply may be performed based on a charging protocol preconfigured by the host device and the external power supply, which is not specifically limited in the embodiment of the present application.
For example, the host device may be controlled to receive a mode inquiry request sent by the external power source through the charging interface, where the mode inquiry request is used to inquire whether to turn on the fast charging mode. Then, identifying whether the determined target equipment supports the rapid charging mode currently according to the mode inquiry request, and if the target equipment supports the rapid charging mode currently, controlling the host equipment to send a mode response message which agrees to start the rapid charging mode to the external power supply so that the external power supply determines the charging current corresponding to the rapid charging mode as the target charging current required to be provided; if the target device is identified not to support the fast charging mode currently (for example, the target device only supports the normal charging mode, or the remaining battery capacity of the target device is too high), the control host device sends a mode response message for refusing to start the fast charging mode to the external power supply, so that the external power supply determines the charging current corresponding to the normal charging mode as the target charging current required to be provided.
It should be noted that the normal charging mode (or standard charging mode) may be understood as a charging mode in which the rated charging voltage is 5V (volt) and the rated charging current is less than 2.5A (ampere). The charging speed of the fast charging mode (or called direct charging mode) is higher than that of the normal charging mode. In one embodiment, the charging current and/or charging voltage in the fast charging mode is greater than the charging current and/or charging voltage in the normal charging mode, for example, the charging current in the fast charging mode is greater than 3A, or the charging voltage in the fast charging mode is 9V, 12V, or 15V, etc.
205. And supplying the target charging current provided by the external power supply to the target device through the charging interface of the host device for charging.
Based on the above description, it can be understood by those skilled in the art that, since the external power source is directly connected to the charging interface of the host device, the target charging current provided by the external power source will be directly output to the charging interface of the host device. Accordingly, after determining that the target charging current required to be supplied by the external power supply is required, the control host device transmits a charging instruction to the external power supply instructing the external power supply to start supplying the target charging current determined before. In addition, a charging loop is established between the target device and the external power supply through the charging interface of the host device, so that the target charging current provided by the external power supply is provided for the target device to be charged through the charging interface of the host device.
For example, assuming that the split type electronic device includes a host device a, an extension device B, and an extension device C, if it is determined that the extension device C is a target device that needs to be charged, a target charging current provided by an external power supply may be provided to the extension device C through a charging interface of the host device a for charging.
206. In the charging process of the target device, the increased electric quantity of the target device is detected.
207. And if the increased electric quantity of the target equipment reaches the preset electric quantity, determining the target equipment needing to be charged again from the host equipment and the extension equipment.
In the process of supplying the target charging current provided by the external power supply to the target device for charging, the real-time remaining capacity of the target device may be obtained according to a preset detection period (a suitable value may be obtained by a person skilled in the art according to actual needs, for example, the detection period may be configured to be 5 minutes), and a difference between the real-time remaining capacity and the remaining capacity of the target device when the target charging current starts to be supplied to the target device (that is, the remaining capacity when the target device is determined to be the target device) is calculated, and the calculated difference is used as the increased capacity of the target device.
When the increased electric quantity of the target equipment is detected every time, judging whether the increased electric quantity of the target equipment reaches the preset electric quantity, wherein if the increased electric quantity of the target equipment does not reach the preset electric quantity, continuously outputting a target charging current output from an external power supply to a charging interface of the host equipment to the target equipment for charging, if the increased electric quantity of the target equipment reaches the preset electric quantity, switching to the step of determining the target equipment needing to be charged from the host equipment and the extension equipment, so as to re-determine the target equipment needing to be charged from the host equipment and the extension equipment, thereby charging the re-determined target equipment (specifically referring to the related description, which is not repeated here), and similarly, when the re-determined increased electric quantity of the target equipment reaches the preset electric quantity, switching to the step of determining the target equipment needing to be charged from the host equipment and the extension equipment again, so as to reciprocate.
It should be noted that, in the embodiment of the present application, the value of the preset electric quantity is not specifically limited, and may be set by a person skilled in the art according to actual needs, for example, the preset electric quantity may be set to 5% of the total electric quantity of the target device, so that when the increased electric quantity of the target device reaches 5% of the total electric quantity of the target device, the target device to be charged is redetermined from the host device and the extension device, and when the increased electric quantity of the redetermined target device reaches 5%, the target device is redetermined from the host device and the extension device again to be charged, and so on.
In one embodiment, the external power source includes an external wired power source or an external wireless power source, the charging interface includes a wired charging interface or a wireless charging interface, and the "detecting whether the host device is connected to the external power source through the charging interface" includes:
detecting whether the host equipment is connected with an external wired power supply through a wired charging interface; alternatively, the first and second electrodes may be,
whether the host equipment is connected with an external wireless power supply through a wireless charging interface is detected.
It should be noted that, in the embodiment of the present application, the charging interface may be a wired charging interface, and may also be a wireless charging interface.
The physical representation form of the wired charging interface may be a universal serial bus interface, and it should be understood that the universal serial bus interface includes, but is not limited to, a standard universal serial bus interface, a micro universal serial bus interface, a mini universal serial bus interface, and the like. When detecting whether the host device is connected with an external wired power supply through the wired charging interface, whether the universal serial bus interface serving as the wired charging interface is connected with the external device or not can be detected according to a universal serial bus protocol, and if so, device type enumeration can be performed to judge whether the external device connected with the wired charging interface is the external wired power supply (such as a wired charger) or other types of universal serial bus devices (such as a USB flash disk and the like).
The physical representation of the wireless charging interface may be a charging coil, and it should be understood that the charging coil includes, but is not limited to, a circular charging coil, an elliptical charging coil, and the like. The charging coil serving as the wireless charging interface can at least receive a wireless power signal and can also transmit the wireless power signal. When detecting whether host computer equipment is connected with external wireless power supply through the wireless interface that charges, can detect whether the charging coil that is the wireless interface that charges has connected external wireless power supply (for example, wireless charging base) according to the wireless protocol of charging of configuration in advance.
In an embodiment, the charging control method provided in the embodiment of the present application further includes:
if the host equipment is connected with the external wireless power supply and the extension equipment is determined to be the target equipment, the host equipment is disconnected from the external wireless power supply, and the extension equipment is controlled to be connected with the external wireless power supply so as to charge the extension equipment.
In this application embodiment, the extension device may also include a wireless charging interface, and except that the host device may be connected to an external wireless power supply through the wireless charging interface, the extension device may also be connected to the external wireless power supply through the wireless charging interface.
If the host device is connected with the external wireless power supply and the extension device is determined to be the target device, the host device is disconnected from the external wireless power supply, and the extension device determined to be the target device is controlled to be connected with the external wireless power supply through the wireless charging interface of the extension device. Since the target charging current required to be provided by the external power supply has been determined previously, the extension device determined as the target device can receive the target charging current provided by the external power supply through the wireless charging interface of the extension device, so as to charge the battery of the extension device.
In one embodiment, "supplying a target charging current supplied from an external power source to a target device for charging through a charging interface of a host device" includes:
if the extension equipment is determined to be the target equipment, the target charging current provided by the external power supply is provided to a power supply management chip of the extension equipment through a charging interface of the host equipment, so that the power supply management chip of the extension equipment charges a battery of the extension equipment;
and if the host device is the target device, supplying the target charging current provided by the external power supply to the power management chip of the host device through the charging interface of the host device, so that the power management chip of the host device charges the battery of the host device.
For example, referring to fig. 5, in the charging scenario shown in fig. 5, the host device includes a power management chip, a charging interface and a battery, and the slave device includes a power management chip and a battery. When the extension equipment is spliced to the host equipment, the charging interface of the host equipment is multiplexed.
If the extension device is determined to be the target device, a charging channel of a power management chip in the extension device determined to be the target device is opened, the charging current of the power management chip of the extension device to the battery is configured to be a target charging current, an external power supply is instructed to start providing the target charging current, the target charging current provided by the external power supply is received through a charging interface of the host device, and because the charging channels of the power management chips in the host device and other extension devices are not opened, the target charging current received by the charging interface is provided to the power management chip in the extension device determined to be the target device, so that the power management chip charges the battery of the extension device determined to be the target device by using the target charging current.
If the host device is determined to be the target device, a charging channel of a power management chip in the host device is opened, the charging current of the power management chip of the host device to the battery is configured to be the target charging current, the external power supply is indicated to start providing the target charging current, the target charging current provided by the external power supply is received through a charging interface of the host device, and as the charging channels of the power management chip in the extension device are not opened, the target charging current received by the charging interface is provided to the power management chip in the host device, so that the power management chip charges the battery of the host device by using the target charging current.
In one embodiment, "supplying a target charging current supplied from an external power source to a target device for charging through a charging interface of a host device" includes:
and if the host equipment is determined to be the target equipment, directly charging the battery of the host equipment by the target charging current provided by the external power supply through the charging interface of the host equipment and a charging switch.
For another example, referring to fig. 6, in the charging scenario shown in fig. 6, the host device includes a charging switch (for example, implemented by MOS transistors connected back to back), a charging interface, and a battery, and the slave device includes a power management chip and a battery. When the extension equipment is spliced to the host equipment, the charging interface of the host equipment is multiplexed.
If the extension device is determined to be the target device, a charging channel of a power management chip in the extension device determined to be the target device is opened, the charging current of the power management chip of the extension device to the battery is configured to be a target charging current, an external power supply is instructed to start providing the target charging current, the target charging current provided by the external power supply is received through a charging interface of the host device, and because the charging channels of the power management chips in the host device and other extension devices are not opened, the target charging current received by the charging interface is provided to the power management chip in the extension device determined to be the target device, so that the power management chip charges the battery of the extension device determined to be the target device by using the target charging current.
And if the target equipment of the host equipment is determined, indicating an external power supply to start providing target charging current, and switching on the charging switch, wherein the target charging current received by the charging interface directly charges the battery of the host equipment after passing through the switched-on charging switch because the charging channels of the power supply management chips in the extension equipment are not opened.
In one embodiment, a "power management chip for supplying a target charging current supplied from an external power supply to an extension device through a charging interface of a host device" includes:
and supplying the target charging current provided by the external power supply to the power management chip of the extension device in a wired mode or a wireless mode through the charging interface of the host device.
The host device and the extension device can be provided with metal connecting pieces such as elastic pieces or spring thimble connectors, and the like, so that when the extension device is spliced with the host device, the power management chip of the extension device and the charging interface of the host device can be electrically connected through the metal connecting pieces, as shown in fig. 7. Thus, when the extension device is determined as the target device, the target charging current provided by the external power supply is provided to the power management chip of the extension device in a wired manner through the charging interface of the host device and the wired electric connection of the power management chip in the extension device, so that the power management chip charges the battery in the extension device with the target charging current.
Or, both the host device and the extension device may be provided with a wireless power transmission module (where an entity display form of the wireless power transmission module is a charging coil), so that when the extension device and the host device are spliced together, the power management chip of the extension device and the charging interface of the host device can establish a radio connection through the wireless power transmission module, as shown in fig. 8. Thus, when the extension device is determined as the target device, the target charging current provided by the external power supply is wirelessly provided to the power management chip of the extension device through the wireless connection of the charging interface of the host device and the power management chip in the extension device, so that the power management chip charges the battery in the extension device with the target charging current.
In an embodiment, a charging control device is further provided, please refer to fig. 9, and fig. 9 is a schematic structural diagram of the charging control device according to the embodiment of the present application. Wherein the charging control device is applied to a split type electronic device, which may include a host device and at least one extension device, as shown in fig. 9, the charging control device includes:
the detection module 401 is configured to detect whether the host device is connected to an external power supply through a charging interface;
a determining module 402, configured to determine, if yes, a target device to be charged from the host device and the extension device;
a negotiation module 403, configured to control the host device to perform bidirectional communication with the external power supply to determine a target charging current required to be provided by the external power supply;
the charging module 404 is configured to provide a target charging current provided by an external power source to the target device through a charging interface of the host device for charging.
In an embodiment, the determining module 402 is further configured to:
acquiring the residual electric quantity of the host equipment and acquiring the residual electric quantity of the extension equipment;
and determining the device with the lowest residual quantity in the host device and the extension device as the target device needing charging.
In an embodiment, the determining module 402 is further configured to:
detecting the increased electric quantity of the target equipment in the charging process of the target equipment;
and if the increased electric quantity of the target equipment reaches the preset electric quantity, determining the target equipment needing to be charged again from the host equipment and the extension equipment.
In an embodiment, the external power source includes an external wired power source or an external wireless power source, the charging interface includes a wired charging interface or a wireless charging interface, and the detection module 401 is further configured to:
detecting whether the host equipment is connected with an external wired power supply through a wired charging interface; alternatively, the first and second electrodes may be,
whether the host equipment is connected with an external wireless power supply through a wireless charging interface is detected.
In one embodiment, the charging control apparatus further includes a connection module configured to:
if the host equipment is connected with the external wireless power supply and the extension equipment is determined to be the target equipment, the host equipment is disconnected from the external wireless power supply, and the extension equipment is controlled to be connected with the external wireless power supply so as to charge the extension equipment.
In one embodiment, the charging module 404 is configured to:
if the extension equipment is determined to be the target equipment, the target charging current provided by the external power supply is provided to a power supply management chip of the extension equipment through a charging interface of the host equipment, so that the power supply management chip of the extension equipment charges a battery of the extension equipment;
and if the host device is the target device, supplying the target charging current provided by the external power supply to the power management chip of the host device through the charging interface of the host device, so that the power management chip of the host device charges the battery of the host device.
In an embodiment, the charging module 404 is further configured to:
and if the host equipment is determined to be the target equipment, directly charging the battery of the host equipment by the target charging current provided by the external power supply through the charging interface of the host equipment and a charging switch.
In an embodiment, the charging module 404 is further configured to:
and supplying the target charging current provided by the external power supply to the power management chip of the extension device in a wired mode or a wireless mode through the charging interface of the host device.
By last knowing, the control device that charges that this application embodiment provided can be applied to split type electronic equipment, and split type electronic equipment includes host computer equipment and at least one extension equipment, when charging split type electronic equipment, can detect at first whether host computer equipment is connected with external power supply through the interface that charges, if, then determine the target device that needs to charge from host computer equipment and extension equipment. The host device is then controlled to bi-directionally communicate with the external power source to determine a target charging current that needs to be provided by the external power source. And finally, supplying the target charging current provided by the external power supply to the target device through the charging interface of the host device for charging. Therefore, the user does not need to charge the host equipment and the extension equipment respectively, and the convenience of charging the split type electronic equipment is improved.
The embodiment of the application also provides the split type electronic equipment. Referring to fig. 10, the split electronic device includes a host device and at least one extension device, the host device includes a processor, a memory and a charging interface, and the extension device includes a processor and a memory. It will be understood by those of ordinary skill in the art that the configuration shown in FIG. 10 is not intended to be limiting of a split-type electronic device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components may be used
Wherein, the host device or the extension device loads the computer program stored in the respective memory through the respective processor, and can execute the following steps:
detecting whether the host equipment is connected with an external power supply through a charging interface;
if yes, determining target equipment needing to be charged from the host equipment and the extension equipment;
controlling the host device to perform bidirectional communication with the external power supply to determine a target charging current that needs to be provided by the external power supply;
and supplying the target charging current provided by the external power supply to the target device through the charging interface of the host device for charging.
Referring to fig. 11, fig. 11 is another schematic structural diagram of a split electronic device provided in an embodiment of the present application, where the split electronic device includes a host device and at least one extension device, and the difference from the split electronic device shown in fig. 10 is that the host device and the extension device further include components such as an input unit and an output unit.
The input unit may be used to receive input numbers, character information or user characteristic information (such as fingerprints), and generate a keyboard, a mouse, a joystick, an optical or trackball signal input, etc., related to user settings and function control.
The output unit may be used to display information input by the user or information provided to the user, such as a screen, a speaker, etc.
In the embodiment of the present application, the host device or the extension device loads the computer program stored in the respective memory through the respective processor, and may perform the following steps:
detecting whether the host equipment is connected with an external power supply through a charging interface;
if yes, determining target equipment needing to be charged from the host equipment and the extension equipment;
controlling the host device to perform bidirectional communication with the external power supply to determine a target charging current that needs to be provided by the external power supply;
and supplying the target charging current provided by the external power supply to the target device through the charging interface of the host device for charging.
In one embodiment, when determining a target device to be charged from the host device and the extension device, the following steps may be performed:
acquiring the residual electric quantity of the host equipment and acquiring the residual electric quantity of the extension equipment;
and determining the device with the lowest residual quantity in the host device and the extension device as the target device needing charging.
In an embodiment, it may further be performed:
detecting the increased electric quantity of the target equipment in the charging process of the target equipment;
and if the increased electric quantity of the target equipment reaches the preset electric quantity, determining the target equipment needing to be charged again from the host equipment and the extension equipment.
In one embodiment, the external power source includes an external wired power source or an external wireless power source, the charging interface includes a wired charging interface or a wireless charging interface, and when detecting whether the host device is connected to the external power source through the charging interface, the following steps may be performed:
detecting whether the host equipment is connected with an external wired power supply through a wired charging interface; alternatively, the first and second electrodes may be,
whether the host equipment is connected with an external wireless power supply through a wireless charging interface is detected.
In an embodiment, it may further be performed:
if the host equipment is connected with the external wireless power supply and the extension equipment is determined to be the target equipment, the host equipment is disconnected from the external wireless power supply, and the extension equipment is controlled to be connected with the external wireless power supply so as to charge the extension equipment.
In one embodiment, when the target charging current provided by the external power supply is provided to the target device for charging through the charging interface of the host device, the following steps may be performed:
if the extension equipment is determined to be the target equipment, the target charging current provided by the external power supply is provided to a power supply management chip of the extension equipment through a charging interface of the host equipment, so that the power supply management chip of the extension equipment charges a battery of the extension equipment;
and if the host device is the target device, supplying the target charging current provided by the external power supply to the power management chip of the host device through the charging interface of the host device, so that the power management chip of the host device charges the battery of the host device.
In one embodiment, when the target charging current provided by the external power supply is provided to the target device through the charging interface of the host device for charging, the following steps may be further performed:
and if the host equipment is determined to be the target equipment, directly charging the battery of the host equipment by the target charging current provided by the external power supply through the charging interface of the host equipment and a charging switch.
In one embodiment, when the target charging current provided by the external power supply is provided to the power management chip of the extension device through the charging interface of the host device, the following steps may be performed:
and supplying the target charging current provided by the external power supply to the power management chip of the extension device in a wired mode or a wireless mode through the charging interface of the host device.
An embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and when the computer program runs on the split electronic device provided in the embodiment of the present application, the split electronic device is caused to execute the charging control method in any of the embodiments, for example: detecting whether the host equipment is connected with an external power supply through a charging interface; if yes, determining target equipment needing to be charged from the host equipment and the extension equipment; controlling the host device to perform bidirectional communication with the external power supply to determine a target charging current that needs to be provided by the external power supply; and supplying the target charging current provided by the external power supply to the target device through the charging interface of the host device for charging.
In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for the charging control method in the embodiment of the present application, it can be understood by those skilled in the art that all or part of the process of implementing the charging control method in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer readable storage medium and executed by at least one processor in the split type electronic device, and in the execution process, the process of the embodiment of the charging control method can be included.
In the charging control device according to the embodiment of the present application, each functional module may be integrated into one processing chip, each module may exist alone physically, or two or more modules may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The charging control method, the charging control device, the storage medium and the split-type electronic device provided by the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A charging control method is applied to a split type electronic device, and is characterized in that the split type electronic device comprises a host device and at least one extension device, and the charging control method comprises the following steps:
detecting whether the host equipment is connected with an external power supply through a charging interface;
if yes, determining target equipment needing to be charged from the host equipment and the extension equipment;
controlling the host device to bi-directionally communicate with the external power source to determine a target charging current that needs to be provided by the external power source;
and providing the target charging current to the target equipment through the charging interface for charging.
2. The charge control method according to claim 1, wherein the step of determining the target device to be charged from the host device and the extension device includes:
acquiring the residual electric quantity of the host equipment and acquiring the residual electric quantity of the extension equipment;
and determining the device with the lowest residual electric quantity in the host device and the extension device as the target device.
3. The charge control method according to claim 2, characterized by further comprising:
detecting the increased electric quantity of the target equipment in the charging process of the target equipment;
and if the increased electric quantity of the target equipment reaches the preset electric quantity, determining the target equipment needing to be charged again from the host equipment and the extension equipment.
4. The charge control method according to any one of claims 1 to 3, wherein the step of detecting whether the host device is connected to an external power supply through a charging interface includes:
detecting whether the host equipment is connected with an external wired power supply through a wired charging interface; alternatively, the first and second electrodes may be,
and detecting whether the host equipment is connected with an external wireless power supply through a wireless charging interface.
5. The charge control method of claim 4, further comprising:
if the host equipment is connected with the external wireless power supply and the extension equipment is determined to be the target equipment, the host equipment is disconnected from the external wireless power supply, and the extension equipment is controlled to be connected with the external wireless power supply so as to charge the extension equipment.
6. The charge control method according to any one of claims 1 to 3, wherein the step of supplying the target charge current to the target device through the charging interface for charging includes:
if the extension equipment is determined to be the target equipment, the target charging current is provided to a power management chip of the extension equipment through the charging interface, so that the power management chip of the extension equipment charges a battery of the extension equipment;
and if the host device is the target device, providing the target charging current to a power management chip of the host device through the charging interface, so that the power management chip of the host device charges a battery of the host device.
7. The charge control method according to any one of claims 1 to 3, wherein the step of supplying the target charge current to the target device through the charging interface for charging includes:
and if the host equipment is determined to be the target equipment, the target charging current directly charges the battery of the host equipment after passing through the charging interface and a charging switch.
8. The utility model provides a charge control device, is applied to split type electronic equipment, its characterized in that, split type electronic equipment includes host computer equipment and at least one extension equipment, charge control device includes:
the detection module is used for detecting whether the host equipment is connected with an external power supply through a charging interface;
the determining module is used for determining target equipment needing to be charged from the host equipment and the extension equipment if the charging request is positive;
a negotiation module for controlling the host device to perform bidirectional communication with the external power supply to determine a target charging current required to be provided by the external power supply;
and the charging module is used for providing the target charging current for the target equipment through the charging interface for charging.
9. A storage medium applied to a split electronic device, wherein the split electronic device comprises a host device and at least one extension device, and when a computer program stored in the storage medium is run on the split electronic device, the split electronic device is caused to execute the steps in the charging control method according to any one of claims 1 to 7.
10. A split electronic device comprising a host device and at least one extension device, the split electronic device being configured to perform the steps of the charging control method according to any one of claims 1 to 7.
CN201811150920.6A 2018-09-29 2018-09-29 Charging control method and device, storage medium and split type electronic equipment Pending CN110970948A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811150920.6A CN110970948A (en) 2018-09-29 2018-09-29 Charging control method and device, storage medium and split type electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811150920.6A CN110970948A (en) 2018-09-29 2018-09-29 Charging control method and device, storage medium and split type electronic equipment

Publications (1)

Publication Number Publication Date
CN110970948A true CN110970948A (en) 2020-04-07

Family

ID=70027488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811150920.6A Pending CN110970948A (en) 2018-09-29 2018-09-29 Charging control method and device, storage medium and split type electronic equipment

Country Status (1)

Country Link
CN (1) CN110970948A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021234231A1 (en) 2020-05-22 2021-11-25 Berneman Laurent Method for coordinated communication between at least two wireless stimulation capsules for a muscle or nerve stimulation system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070075679A1 (en) * 2005-08-30 2007-04-05 Samsung Electronics Co., Ltd. Portable terminal
CN102055039A (en) * 2009-11-04 2011-05-11 富士通株式会社 Electronic device and power source control device
CN205068816U (en) * 2015-10-29 2016-03-02 英华达(南京)科技有限公司 Double screen e -book
CN105824367A (en) * 2016-03-30 2016-08-03 联想(北京)有限公司 Electronic device
CN107624210A (en) * 2015-05-14 2018-01-23 苹果公司 Dynamic power between multiple physical ports is shared
CN108156309A (en) * 2017-01-03 2018-06-12 中兴通讯股份有限公司 A kind of terminal and its method of work
CN108599304A (en) * 2018-05-03 2018-09-28 Oppo广东移动通信有限公司 Charging box, charge control method and Related product

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070075679A1 (en) * 2005-08-30 2007-04-05 Samsung Electronics Co., Ltd. Portable terminal
CN102055039A (en) * 2009-11-04 2011-05-11 富士通株式会社 Electronic device and power source control device
CN107624210A (en) * 2015-05-14 2018-01-23 苹果公司 Dynamic power between multiple physical ports is shared
CN205068816U (en) * 2015-10-29 2016-03-02 英华达(南京)科技有限公司 Double screen e -book
CN105824367A (en) * 2016-03-30 2016-08-03 联想(北京)有限公司 Electronic device
CN108156309A (en) * 2017-01-03 2018-06-12 中兴通讯股份有限公司 A kind of terminal and its method of work
CN108599304A (en) * 2018-05-03 2018-09-28 Oppo广东移动通信有限公司 Charging box, charge control method and Related product

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021234231A1 (en) 2020-05-22 2021-11-25 Berneman Laurent Method for coordinated communication between at least two wireless stimulation capsules for a muscle or nerve stimulation system
FR3110442A1 (en) 2020-05-22 2021-11-26 Laurent Berneman Method of coordinated communication between at least two wireless stimulation capsules for a muscle or nerve stimulation system

Similar Documents

Publication Publication Date Title
US11368039B2 (en) Battery charging method and electronic device
US9899854B2 (en) Mobile terminal, master data communication device and mobile terminal charging system and method
CN105068959A (en) Terminal and charging method and apparatus for terminal with data exchange function
CN107783630A (en) Electronic installation and its control method and computer-readable recording medium
CN110970954B (en) Charging control method and device, storage medium and split type electronic equipment
CN112165143A (en) Wireless earphone charging method, device, equipment and storage medium
CN110492575B (en) Quick charging system and method for handheld device and handheld device
JP2021502042A (en) Charging device test board, test system and test method
US11462930B2 (en) Method and device for controlling charging on basis of state of battery
CN110518668A (en) For the quick charging system and method for handheld device, handheld device
KR20200058067A (en) Electronic device and method for diagonosing battery thereof
CN110970948A (en) Charging control method and device, storage medium and split type electronic equipment
CN110970950B (en) Charging control method and device, storage medium and split type electronic equipment
CN110970952B (en) Charging control method and device, storage medium and split type electronic equipment
CN114503390A (en) Method for controlling charging of battery of electronic device and electronic device thereof
CN110970953A (en) Charging control method and device, storage medium and split type electronic equipment
CN110970949A (en) Charging control method and device, storage medium and split type electronic equipment
JP2015053747A (en) Battery degradation-determining application program
CN112732351B (en) Chip compatibility configuration method and device, storage medium and electronic equipment
CN110970947B (en) Charging method, terminal and computer storage medium
KR20210102053A (en) Power supply device and method for controlling a charging voltage
CN115603391A (en) Battery pack and charging and discharging control method thereof
CN112653213A (en) Charging control method and device

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

Application publication date: 20200407

RJ01 Rejection of invention patent application after publication