Nothing Special   »   [go: up one dir, main page]

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
charging
target
equipment
host device
host
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

本申请公开了一种充电控制方法、装置、存储介质及分体式电子设备,其中,分体式电子设备包括主机设备和至少一个分机设备,在对分体式电子设备进行充电时,可以首先检测主机设备是否通过充电接口与外部电源连接,若是,则从主机设备和分机设备中确定出需要充电的目标设备。然后控制主机设备与外部电源进行双向通信,以确定需要由外部电源提供的目标充电电流。最后,将外部电源提供的目标充电电流通过主机设备的充电接口提供给目标设备进行充电。由此,无需用户分别为主机设备和分机设备进行充电,提高了对分体式电子设备充电的便利性。

Figure 201811150920

The present application discloses a charging control method, device, storage medium and split electronic device, wherein the split electronic device includes a host device and at least one extension device. When charging the split electronic device, it is possible to first detect whether the host device is connected to an external power source through a charging interface. If so, the target device to be charged is determined from the host device and the extension device. Then the host device is controlled to communicate bidirectionally with the external power source to determine the target charging current that needs to be provided by the external power source. Finally, the target charging current provided by the external power source is provided to the target device through the charging interface of the host device for charging. As a result, there is no need for the user to charge the host device and the extension device separately, which improves the convenience of charging the split electronic device.

Figure 201811150920

Description

充电控制方法、装置、存储介质及分体式电子设备Charging control method, device, storage medium and split type electronic device

技术领域technical field

本申请涉及充电技术领域,具体涉及一种充电控制方法、装置、存储介质及分体式电子设备。The present application relates to the technical field of charging, and in particular, to a charging control method, a device, a storage medium, and a split-type electronic device.

背景技术Background technique

目前,相关技术中出现了分体式电子设备,这种分体式电子设备由主机设备和至少一个分机设备组成,主机设备和分机设备可以拼接在一起成为一个完整的电子设备,也可以分拆开单独使用。然而,在相关技术中,对分体式电子设备的充电操作比较繁琐。At present, a split-type electronic device has appeared in the related art. This split-type electronic device consists of a host device and at least one extension device. The host device and the extension device can be spliced together to form a complete electronic device, or they can be separated and separated separately. use. However, in the related art, the charging operation of the split-type electronic device is relatively complicated.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供了一种充电控制方法、装置、存储介质及分体式电子设备,可以提高对分体式电子设备充电的便利性。Embodiments of the present application provide a charging control method, an apparatus, 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 device is connected to an external power source through a charging interface;

若是,则从所述主机设备和所述分机设备中确定出需要充电的目标设备;If so, determine the target device that needs to be charged from the host device and the extension device;

控制所述主机设备与所述外部电源进行双向通信,以确定需要由所述外部电源提供的目标充电电流;controlling the host device to communicate bidirectionally with the external power source to determine a target charging current that needs to be provided by the external power source;

将所述目标充电电流通过所述充电接口提供给所述目标设备进行充电。The target charging current is provided to the target device for charging through the charging interface.

第二方面,本申请实施例提供了一种充电控制装置,应用于分体式电子设备,所述分体式电子设备包括主机设备和至少一个分机设备,所述充电控制装置包括:In a second aspect, an embodiment of the present application provides a charging control device, 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 device includes:

检测模块,用于检测所述主机设备是否通过充电接口与外部电源连接;a detection module for detecting whether the host device is connected to an external power source through a charging interface;

确定模块,用于若是,则从所述主机设备和所述分机设备中确定出需要充电的目标设备;a determining module, configured to determine the target device that needs to be charged from the host device and the extension device if it is;

协商模块,用于控制所述主机设备与所述外部电源进行双向通信,以确定需要由所述外部电源提供的目标充电电流;a negotiation module, configured to control 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;

充电模块,用于将所述目标充电电流通过所述充电接口提供给所述目标设备进行充电。A charging module, configured to provide the target charging current to the target device for charging through the charging interface.

第三方面,本申请实施例提供了一种存储介质,应用于分体式电子设备,所述分体式电子设备包括主机设备和分机设备,当所述存储介质中存储的计算机程序在所述分体式电子设备上运行时,使得所述分体式电子设备执行如本申请任一实施例提供的充电控制方法中的步骤。In a third aspect, an embodiment of the present application provides a storage medium, which is applied to a split-type electronic device, where the split-type electronic device includes a host device and an extension device, and when the computer program stored in the storage medium is stored in the split-type electronic device When running on the electronic device, the split-type electronic device is made to execute the steps in the charging control method provided by any embodiment of the present application.

第四方面,本申请实施例提供了一种分体式电子设备,包括主机设备和至少一个分机设备,所述分体式电子设备用于执行如本申请任一实施例提供的充电控制方法中的步骤。In a fourth aspect, an embodiment of the present application provides a split-type electronic device, including a host device and at least one extension device, and the split-type electronic device is configured to execute the steps in the charging control method provided by any embodiment of the present application .

本申请实施例在对包括主机设备和至少一个分机设备的分体式电子设备进行充电时,可以首先检测主机设备是否通过充电接口与外部电源连接,若是,则从主机设备和分机设备中确定出需要充电的目标设备。然后控制主机设备与外部电源进行双向通信,以确定需要由外部电源提供的目标充电电流。最后,将外部电源提供的目标充电电流通过主机设备的充电接口提供给目标设备进行充电。由此,无需用户分别为主机设备和分机设备进行充电,提高了对分体式电子设备充电的便利性。When charging a split-type electronic device including a host device and at least one extension device in this embodiment of the present application, it may first detect whether the host device is connected to an external power source through a charging interface, and if so, determine from the host device and the extension device that the Charging the target device. The control host device then communicates bidirectionally with the external power supply to determine the target charging current that needs to be provided by the external power supply. Finally, 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. Therefore, the user does not need to charge the host device and the extension device separately, which improves the convenience of charging the split-type electronic device.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.

图1是本申请实施例中对分体式电子设备进行充电的第一场景示意图。FIG. 1 is a schematic diagram of a first scenario of charging a split-type electronic device in an embodiment of the present application.

图2是本申请实施例提供的充电控制方法的一个流程示意图。FIG. 2 is a schematic flowchart of a charging control method provided by an embodiment of the present application.

图3是本申请实施例中主机设备提供的筛选界面的示例图。FIG. 3 is an example diagram of a screening interface provided by a host device in an embodiment of the present application.

图4是本申请实施例提供的充电控制方法的另一个流程示意图。FIG. 4 is another schematic flowchart of the charging control method provided by the embodiment of the present application.

图5是本申请实施例中对分体式电子设备进行充电的第二场景示意图。FIG. 5 is a schematic diagram of a second scenario of charging a split-type electronic device in an embodiment of the present application.

图6是本申请实施例中对分体式电子设备进行充电的第三场景示意图。FIG. 6 is a schematic diagram of a third scenario of charging a split-type electronic device in an embodiment of the present application.

图7是本申请实施例中分机设备的电源管理芯片和主机设备的充电接口之间建立有线电连接的示意图。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.

图8是本申请实施例中分机设备的电源管理芯片和主机设备的充电接口之间建立无线电连接的示意图。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.

图9是本申请实施例提供的充电控制装置的一结构示意图。FIG. 9 is a schematic structural diagram of a charging control device provided by an embodiment of the present application.

图10是本申请实施例提供的分体式电子设备的一结构示意图。FIG. 10 is a schematic structural diagram of a split-type electronic device provided by an embodiment of the present application.

图11是本申请实施例提供的分体式电子设备的另一结构示意图。FIG. 11 is another schematic structural diagram of a split-type electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

请参照图示,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Please refer to the drawings, wherein the same component symbols represent the same components, and the principles of the present application are exemplified by being implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the present application and should not be construed as limiting other specific embodiments of the present application not detailed herein.

本申请实施例提供一种充电控制方法,应用于分体式电子设备,如图1所示,该分体式电子设备包括主机设备和至少一个分机设备,分机设备可以和主机设备拼接在一起成为一个“完整的电子设备”,也可以拆分开单独使用。应当说明的是,主机设备单独设置有用于连接外部电源的充电接口,而分机设备可以在拼接至主机设备时复用主机设备的充电接口。这样,当主机设备通过充电接口与外部电源连接时,分机设备能够通过主机设备的充电接口从外部电源获取充电电流进行充电,以下将对此进行说明。The embodiment of the present 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 equipment", which can also be used separately. It should be noted that the host device is separately provided with a charging interface for connecting to an external power source, and the extension device can reuse the charging interface of the host device when splicing to the host device. In this way, when the host device is connected to the external power source through the charging interface, the extension device can obtain charging current from the external power source through the charging interface of the host device for charging, which will be described below.

此外,主机设备和分机设备之间可以通过各自的无线通信模组建立无线通信连接,从而基于该无线通信连接进行二者之间的数据交互。其中,无线通信模组包括但不限于Wi-Fi(Wireless Fidelity,无线保真)模组、蓝牙模组等。In addition, a wireless communication connection can be established between the host device and the extension device through respective wireless communication modules, so as to perform data exchange between the two based on the wireless communication connection. The wireless communication module includes, but is not limited to, a Wi-Fi (Wireless Fidelity, wireless fidelity) module, a Bluetooth module, and the like.

比如,主机设备可以使得自身的Wi-Fi模组工作于AP(Access Point,接入点)模式,分机设备可以使得自身的Wi-Fi模组工作于STA(Station,站点)模式,由此,分机设备可以与主机设备建立Wi-Fi连接。For example, the host device can make its own Wi-Fi module work in AP (Access Point, access point) mode, and the extension device can make its own Wi-Fi module work in STA (Station, station) mode, thus, The extension device can establish a Wi-Fi connection with the host device.

应当说明的是,该充电控制方法的执行主体可以是本申请实施例提供的充电控制装置,或者集成了该充电控制装置的分体式电子设备,其中,该充电控制装置可以采用硬件或者软件的方式实现。It should be noted that the executive 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, wherein the charging control device may adopt a hardware or software manner accomplish.

请参照图2,图2为本申请实施例提供的充电控制方法的流程示意图,本申请实施例提供的充电控制方法应用于分体式电子设备,该分体式电子设备包括主机设备和至少一个分机设备,以下将从充电控制装置的角度进行描述,本申请实施例提供的充电控制方法的流程可以如下:Please refer to FIG. 2 , which is a schematic flowchart of a charging control method provided by an embodiment of the present application. The charging control method provided by an embodiment of the present application is applied to a split-type electronic device, and the split-type electronic device includes a host device and at least one extension device. , the following will be described from the perspective of a charging control device. The process of the charging control method provided by the embodiment of the present application may be as follows:

101、检测主机设备是否通过充电接口与外部电源连接。101. Detect whether the host device is connected to an external power source through a charging interface.

其中,主机设备能够通过充电接口与外部电源连接,使得外部电源能够直接将能够充电电流输出至主机设备的充电接口,从而为主机设备充电或者为拼接至主机设备的分机设备充电。相应的,在本申请实施例中,为实现对主机设备或分机设备的充电,首先检测主机设备是否通过充电接口与外部电源连接。The host device can be connected to the external power supply through the charging interface, so that the external power supply can directly output the charging current to the charging interface of the host device, thereby charging the host device or charging the extension device spliced to the host device. Correspondingly, in the embodiment of the present application, in order to realize the charging of the host device or the extension device, it is first detected whether the host device is connected to the external power source through the charging interface.

102、若是,则从主机设备和分机设备中确定出需要充电的目标设备。102. If yes, determine the target device that needs to be charged from the host device and the extension device.

其中,若检测到主机设备未通过充电接口与外部电源连接,则继续检测主机设备是否通过充电接口与外部电源连接,直至检测到主机设备通过充电接口与外部电源连接。若检测到主机设备通过充电接口与外部电源连接,则进一步根据预先设置的筛选规则,从主机设备和分机设备中确定出需要充电的目标设备。Wherein, if it is detected that the host device is not connected to the external power supply through the charging interface, continue to detect whether the host device is connected to the external power supply through the charging interface until it is detected that the host device is connected to the external power supply through the charging interface. If it is detected that the host device is connected to the external power source through the charging interface, the target device that needs to be charged is further determined from the host device and the extension device according to the preset screening rule.

需要说明的是,本申请实施例对于筛选规则不做具体限制,可由本领域技术人员根据实际需要进行设置。It should be noted that the embodiments of the present application do not impose specific restrictions on the screening rules, which can be set by those skilled in the art according to actual needs.

比如,可以将筛选规则配置为根据用户选择进行筛选,请参照图3,主机设备提供有筛选界面,在主机设备接收到预先配置的触发显示筛选界面的触发操作时,控制主机设备显示该筛选界面。其中,图示矩形表示主机设备和主机设备识别到的、已拼接至主机设备的分机设备,矩形中的圆形框表示用于选中对应设备的“选择”控件,则用户可以点击任一选择控件来选中该选择控件所对应的主机设备或分机设备(还可以再次点击该选择控件以撤销对该选择控件所对应的主机设备或分机设备的选中)。如图3所示,筛选界面中展示了主机设备,以及以及拼接至主机设备的3个分机设备(分别为分机设备1、分机设备2以及分机设备3),其中,分机设备2已被用户选中。此时,用户可以点击“充电”控件来向主机设备输入充电指示,指示将处于选中状态的分机设备2确定为需要充电的目标分机设备。For example, the filtering rules can be configured to perform filtering according to user selection. Please refer to FIG. 3. The host device provides a filtering interface. When the host device receives a pre-configured trigger operation that triggers the display of the filtering interface, the host device is controlled to display the filtering interface. . Among them, the rectangle in the figure represents the host device and the extension device recognized by the host device and spliced to the host device, and the round box in the rectangle represents the "selection" control used to select the corresponding device, then the user can click any selection control to select the host device or extension device corresponding to the selection control (you can also click the selection control again to deselect the host device or extension device corresponding to the selection control). As shown in Figure 3, the screening interface displays the host device and 3 extension devices (respectively, extension device 1, extension device 2, and extension device 3) spliced to the host device. Among them, extension device 2 has been selected by the user. . At this time, the user can click the "Charge" control to input a charging instruction to the host device, indicating that the extension device 2 in the selected state is determined as the target extension device that needs to be charged.

又比如,可以将筛选规则配置为根据设备的剩余运行时长进行筛选,其中,可以控制主机设备发送时长询问请求至已拼接的各分机设备,该时长询问请求用于询问分机设备的剩余运行时长。相应的,分机设备在接收到来主机设备的时长询问请求之后,根据该时长询问请求的指示,预测自己的剩余运行时长,并将预测到的剩余运行时长返回至至主机设备。此外,还指示主机设备预测其自身的剩余运行时长,从而在主机设备接收到各分机设备返回的剩余运行时长之后,进一步将主机设备和分机设备中剩余运行时长最低的设备确定为需要充电的目标设备。For another example, the filtering rule can be configured to filter according to the remaining running time of the device, wherein the host device can be controlled to send a duration query request to each extension device that has been spliced, and the duration query request is used to query the remaining running duration of the extension device. Correspondingly, after receiving the duration query request from the host device, the extension device predicts its remaining running duration according to the indication of the duration query request, and returns the predicted remaining running duration to the host device. In addition, it also instructs the host device to predict its own remaining running time, so that after the host device receives the remaining running time returned by each extension device, it further determines the device with the lowest remaining running time among the host device and the extension device as the target that needs to be charged equipment.

103、控制主机设备与外部电源进行双向通信,以确定需要由外部电源提供的目标充电电流。103. Control the host device to perform bidirectional communication with the external power supply to determine the target charging current that needs to be provided by the external power supply.

本申请实施例中,在从主机设备和分机设备中确定出需要充电的目标设备之后,控制主机设备与外部电源进行双向通信,以确定需要由外部电源提供的目标充电电流。其中,对于主机设备如何与外部电源进行双向通信,可以基于主机设备和外部电源预先配置的充电协议进行,本申请实施例对此不做具体限制。In this embodiment of the present application, after determining the target device to be charged from the host device and the extension device, the host device is controlled to perform bidirectional communication with the external power source to determine the target charging current that needs to be provided by the external power source. Wherein, how the host device performs bidirectional communication with the external power supply may be performed based on a charging protocol preconfigured between the host device and the external power supply, which is not specifically limited in this embodiment of the present application.

示例性的,可以控制主机设备通过充电接口接收外部电源发送的模式询问请求,该模式询问请求用于询问是否开启快速充电模式。之后,根据该模式询问请求识别确定出的目标设备当前是否支持快速充电模式,若识别到目标设备当前支持快速充电模式,则控制主机设备发送同意开启快速充电模式的模式应答信息至外部电源,使得外部电源将快速充电模式对应的充电电流确定为需要提供的目标充电电流;若识别到目标设备当前不支持快速充电模式(如目标设备仅支持普通充电模式,或者目标设备的电池剩余电量过高),则控制主机设备发送拒绝开启快速充电模式的模式应答信息至外部电源,使得外部电源将普通充电模式对应的充电电流确定为需要提供的目标充电电流。Exemplarily, the host device can be controlled to receive a mode inquiry request sent by an external power source through the charging interface, where the mode inquiry request is used to inquire whether to enable the fast charging mode. After that, according to the mode inquiry request, identify whether the determined target device currently supports the fast charging mode. If it is identified that the target device currently supports the fast charging mode, the host device is controlled to send a mode response message that agrees to turn on the fast charging mode to the external power supply, so that The external power supply determines the charging current corresponding to the fast charging mode as the target charging current that needs to be provided; if it is identified that the target device does not currently support the fast charging mode (for example, the target device only supports the normal charging mode, or the remaining battery power of the target device is too high) , the host device is controlled to send a mode response message of refusing to turn on 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 that needs to be provided.

应当说明的是,普通充电模式(或称标准充电模式)可以理解为额定充电电压为5V(伏特),额定充电电流小于2.5A(安培)的充电模式。快速充电模式(或称直充充电模式)的充电速度大于普通充电模式。在一个实施例中,快速充电模式的充电电流和/或充电电压大于普通充电模式的充电电流和/或充电电压,例如,快速充电模式的充电电流大于3A,或快速充电模式的充电电压为9V、12V或15V等。It should be noted that the normal charging mode (or the standard charging mode) can be understood as a charging mode in which the rated charging voltage is 5V (volts) and the rated charging current is less than 2.5A (amperes). The charging speed of the fast charging mode (or direct charging mode) is higher than that of the ordinary 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、将外部电源提供的目标充电电流通过主机设备的充电接口提供给目标设备进行充电。104. Provide the target charging current provided by the external power source to the target device for charging through the charging interface of the host device.

基于以上描述,本领域普通技术人员可以理解的是,由于外部电源直接与主机设备的充电接口连接,那么外部电源所提供的目标充电电流将直接输出至主机设备的充电接口。相应的,在确定出需要由外部电源提供的目标充电电流之后,控制主机设备发送充电指示至外部电源,指示外部电源开始提供之前确定的目标充电电流。此外,还通过主机设备的充电接口在目标设备和外部电源之间建立充电回路,从而将外部电源提供的目标充电电流通过主机设备的充电接口提供给目标设备进行充电。Based on the above description, those skilled in the art can understand that, since the external power supply is directly connected to the charging interface of the host device, the target charging current provided by the external power supply will be directly output to the charging interface of the host device. Correspondingly, after determining the target charging current that needs to be provided by the external power source, the control host device sends a charging instruction to the external power source, instructing the external power source to start providing the previously determined target charging current. In addition, a charging loop is established between the target device and the external power source through the charging interface of the host device, so that the target charging current provided by the external power source is provided to the target device for charging through the charging interface of the host device.

比如,假设分体式电子设备包括主机设备A、分机设备B和分机设备C,若确定分机设备C为需要充电的目标设备,则可将外部电源提供的目标充电电流通过主机设备A充电接口提供给分机设备C进行充电。For example, assuming that the split-type electronic device includes host device A, extension device B, and extension device C, if it is determined that extension device C is the target device that needs to be charged, the target charging current provided by the external power supply can be provided through the charging interface of host device A to the device. Extension device C is charged.

由上可知,本申请实施例在对包括主机设备和至少一个分机设备的分体式电子设备进行充电时,可以首先检测主机设备是否通过充电接口与外部电源连接,若是,则从主机设备和分机设备中确定出需要充电的目标设备。然后控制主机设备与外部电源进行双向通信,以确定需要由外部电源提供的目标充电电流。最后,将外部电源提供的目标充电电流通过主机设备的充电接口提供给目标设备进行充电。由此,无需用户分别为主机设备和分机设备进行充电,提高了对分体式电子设备充电的便利性。It can be seen from the above that when charging a split electronic device including a host device and at least one extension device in this embodiment of the present application, it can first detect whether the host device is connected to an external power supply through a charging interface, and if so, the host device and the extension device are Identify the target device that needs to be charged. The control host device then communicates bidirectionally with the external power supply to determine the target charging current that needs to be provided by the external power supply. Finally, 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. Therefore, the user does not need to charge the host device and the extension device separately, which improves the convenience of charging the split-type electronic device.

请参照图4,图4为本申请实施例提供的充电控制方法的另一流程示意图,该充电控制方法的流程可以如下:Please refer to FIG. 4 , which is another schematic flowchart of a charging control method provided by an embodiment of the present application. The process of the charging control method may be as follows:

201、检测主机设备是否通过充电接口与外部电源连接。201. Detect whether the host device is connected to an external power source through a charging interface.

其中,主机设备能够通过充电接口与外部电源连接,使得外部电源能够直接将能够充电电流输出至主机设备的充电接口,从而为主机设备充电或者为拼接至主机设备的分机设备充电。相应的,在本申请实施例中,为实现对主机设备或分机设备的充电,首先检测主机设备是否通过充电接口与外部电源连接。The host device can be connected to the external power supply through the charging interface, so that the external power supply can directly output the charging current to the charging interface of the host device, thereby charging the host device or charging the extension device spliced to the host device. Correspondingly, in the embodiment of the present application, in order to realize the charging of the host device or the extension device, it is first detected whether the host device is connected to the external power source through the charging interface.

202、若是,则获取主机设备的剩余电量,以及获取分机设备的剩余电量。202. If yes, obtain the remaining power of the host device and obtain the remaining power of the extension device.

203、将主机设备和分机设备中剩余电量最低的设备确定为需要充电的目标设备。203. Determine the device with the lowest remaining power among the host device and the extension device as the target device that needs to be charged.

本申请实施例中,若检测到主机设备未通过充电接口与外部电源连接,则继续检测主机设备是否通过充电接口与外部电源连接,直至检测到主机设备通过充电接口与外部电源连接。若检测到主机设备通过充电接口与外部电源连接,则进一步根据预先设置的筛选规则,从主机设备和分机设备中确定出需要充电的目标设备。In the embodiment of the present application, if it is detected that the host device is not connected to the external power supply through the charging interface, it continues to detect whether the host device is connected to the external power supply through the charging interface until it is detected that the host device is connected to the external power supply through the charging interface. If it is detected that the host device is connected to the external power source through the charging interface, the target device that needs to be charged is further determined from the host device and the extension device according to the preset screening rule.

其中,筛选规则被设置为:将主机设备和分机设备中剩余电量最低的设备作为需要充电的目标设备。因此,为确定出需要充电的目标设备,需要首先获取到主机设备的剩余电量,以及获取到分机设备的剩余电量。应当说明的是,主机设备的剩余电量是指主机设备中电池的剩余电量,而分机设备的剩余电量是指分机设备中电池的剩余电量。The filtering rule is set as follows: the device with the lowest remaining power among the host device and the extension device is used as the target device that needs to be charged. Therefore, in order to determine the target device to be charged, it is necessary to obtain the remaining power of the host device and the remaining power of the extension device first. It should be noted that the remaining power of the host device refers to the remaining power of the battery in the host device, and the remaining power of the extension device refers to the remaining power of the battery in the extension device.

为实现对主机设备和分机设备剩余电量的获取,在主机设备和分机设备中分别内置有电量计,电量计用于估计其所在设备中电池的剩余电量。In order to obtain the remaining power of the host device and the extension device, a fuel gauge is built in the host device and the extension device respectively, and the fuel gauge is used to estimate the remaining power of the battery in the device where they are located.

其中,电量计可采用开路电压法、电池建模法或库伦计量法来估计其所在设备中电池的剩余电量,此外,也可采用本申请实施例未列出的其它方式来估计电池的剩余电量,本申请实施例对此不做具体限制。The fuel gauge can use the open-circuit voltage method, the battery modeling method, or the coulomb measurement method to estimate the remaining power of the battery in the device where it is located. In addition, other methods not listed in the embodiments of the present application can also be used to estimate the remaining power of the battery. , which is not specifically limited in the embodiments of the present application.

比如,在采用电池建模法时,需要预先根据电池的放电曲线,预先建立一个电压和剩余电量的对照关系表,该对照关系表描述了电池的电压和其剩余电量的对应关系。相应的,在需要估计电池的剩余电量时,首先测量到电池的电压,再在对照关系表中查询到该电压所对应的剩余电量。For example, when using the battery modeling method, it is necessary to establish a comparison table of voltage and remaining power in advance according to the discharge curve of the battery, and the comparison table describes the corresponding relationship between the voltage of the battery and its remaining power. Correspondingly, when the remaining power of the battery needs to be estimated, the voltage of the battery is first measured, and then the remaining power corresponding to the voltage is queried in the comparison table.

相应的,在获取主机设备的剩余电量时,可以直接读取主机设备内置的电量计所估计到的剩余电量。而在获取分机设备的剩余电量时,可以控制主机设备通过其与分机设备之间建立的无线通信连接,发送电量获取请求至分机设备,指示分机设备返回其剩余电量。另一方面,分机设备在接收到来自主机设备的电量获取请求时,读取自身内置的电量计所估计到的剩余电量,并将读取到的剩余电量通过其与主机设备之间的无线通信连接返回至主机设备。由此,可以获取到各分机设备的剩余电量。Correspondingly, when acquiring the remaining power of the host device, the remaining power estimated by the built-in power meter of the host device can be directly read. When obtaining the remaining power of the extension device, the host device can be controlled to send a power acquisition request to the extension device through the wireless communication connection established between it and the extension device, and instruct the extension device to return its remaining power. On the other hand, when the extension device receives a power acquisition request from the host device, it reads the remaining power estimated by its built-in power meter, and transmits the read remaining power through wireless communication with the host device. The connection is returned to the host device. Thereby, the remaining power of each extension device can be obtained.

在获取到主机设备的剩余电量,以及获取到分机设备的剩余电量之后,进一步从主机设备和分机设备中确定出剩余电量最低的设备,并将该剩余电量最低的设备确定为需要充电的目标设备。After obtaining the remaining power of the host device and the remaining power of the extension device, further determine the device with the lowest remaining power from the host device and the extension device, and determine the device with the lowest remaining power as the target device that needs to be charged .

比如,假设分体式电子设备包括主机设备A、分机设备B和分机设备C,使用a表示主机设备A的剩余电量、b表示分机设备B的剩余电量、c表示分机设备C的剩余电量,若a>b>c,也即是分机设备C为主机设备A、分机设备B和分机设备C中剩余电量最低的设备,此时,即可将分机设备C确定为需要充电的目标设备。For example, assuming that the split electronic device includes host device A, extension device B and extension device C, use a to represent the remaining power of host device A, b to represent the remaining power of extension device B, and c to represent the remaining power of 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 can be determined as the target device that needs to be charged.

204、控制主机设备与外部电源进行双向通信,以确定需要由外部电源提供的目标充电电流。204. Control the host device to perform bidirectional communication with the external power source to determine a target charging current that needs to be provided by the external power source.

本申请实施例中,在从主机设备和分机设备中确定出需要充电的目标设备之后,控制主机设备与外部电源进行双向通信,以确定需要由外部电源提供的目标充电电流。其中,对于主机设备如何与外部电源进行双向通信,可以基于主机设备和外部电源预先配置的充电协议进行,本申请实施例对此不做具体限制。In this embodiment of the present application, after determining the target device to be charged from the host device and the extension device, the host device is controlled to perform bidirectional communication with the external power source to determine the target charging current that needs to be provided by the external power source. Wherein, how the host device performs bidirectional communication with the external power supply may be performed based on a charging protocol preconfigured between the host device and the external power supply, which is not specifically limited in this embodiment of the present application.

示例性的,可以控制主机设备通过充电接口接收外部电源发送的模式询问请求,该模式询问请求用于询问是否开启快速充电模式。之后,根据该模式询问请求识别确定出的目标设备当前是否支持快速充电模式,若识别到目标设备当前支持快速充电模式,则控制主机设备发送同意开启快速充电模式的模式应答信息至外部电源,使得外部电源将快速充电模式对应的充电电流确定为需要提供的目标充电电流;若识别到目标设备当前不支持快速充电模式(如目标设备仅支持普通充电模式,或者目标设备的电池剩余电量过高),则控制主机设备发送拒绝开启快速充电模式的模式应答信息至外部电源,使得外部电源将普通充电模式对应的充电电流确定为需要提供的目标充电电流。Exemplarily, the host device can be controlled to receive a mode inquiry request sent by an external power source through the charging interface, where the mode inquiry request is used to inquire whether to enable the fast charging mode. After that, according to the mode inquiry request, identify whether the determined target device currently supports the fast charging mode. If it is identified that the target device currently supports the fast charging mode, the host device is controlled to send a mode response message that agrees to turn on the fast charging mode to the external power supply, so that The external power supply determines the charging current corresponding to the fast charging mode as the target charging current that needs to be provided; if it is identified that the target device does not currently support the fast charging mode (for example, the target device only supports the normal charging mode, or the remaining battery power of the target device is too high) , the host device is controlled to send a mode response message of refusing to turn on 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 that needs to be provided.

应当说明的是,普通充电模式(或称标准充电模式)可以理解为额定充电电压为5V(伏特),额定充电电流小于2.5A(安培)的充电模式。快速充电模式(或称直充充电模式)的充电速度大于普通充电模式。在一个实施例中,快速充电模式的充电电流和/或充电电压大于普通充电模式的充电电流和/或充电电压,例如,快速充电模式的充电电流大于3A,或快速充电模式的充电电压为9V、12V或15V等。It should be noted that the normal charging mode (or the standard charging mode) can be understood as a charging mode in which the rated charging voltage is 5V (volts) and the rated charging current is less than 2.5A (amperes). The charging speed of the fast charging mode (or direct charging mode) is higher than that of the ordinary 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、将外部电源提供的目标充电电流通过主机设备的充电接口提供给目标设备进行充电。205. Provide the target charging current provided by the external power source to the target device for charging through the charging interface of the host device.

基于以上描述,本领域普通技术人员可以理解的是,由于外部电源直接与主机设备的充电接口连接,那么外部电源所提供的目标充电电流将直接输出至主机设备的充电接口。相应的,在确定出需要由外部电源提供的目标充电电流之后,控制主机设备发送充电指示至外部电源,指示外部电源开始提供之前确定的目标充电电流。此外,还通过主机设备的充电接口在目标设备和外部电源之间建立充电回路,从而将外部电源提供的目标充电电流通过主机设备的充电接口提供给目标设备进行充电。Based on the above description, those skilled in the art can understand that, since the external power supply is directly connected to the charging interface of the host device, the target charging current provided by the external power supply will be directly output to the charging interface of the host device. Correspondingly, after determining the target charging current that needs to be provided by the external power source, the control host device sends a charging instruction to the external power source, instructing the external power source to start providing the previously determined target charging current. In addition, a charging loop is established between the target device and the external power source through the charging interface of the host device, so that the target charging current provided by the external power source is provided to the target device for charging through the charging interface of the host device.

比如,假设分体式电子设备包括主机设备A、分机设备B和分机设备C,若确定分机设备C为需要充电的目标设备,则可将外部电源提供的目标充电电流通过主机设备A充电接口提供给分机设备C进行充电。For example, assuming that the split-type electronic device includes host device A, extension device B, and extension device C, if it is determined that extension device C is the target device that needs to be charged, the target charging current provided by the external power supply can be provided through the charging interface of host device A to the device. Extension device C is charged.

206、在目标设备的充电过程中,侦测目标设备的增加电量。206. During the charging process of the target device, detect the increased power of the target device.

207、若侦测到目标设备的增加电量达到预设电量,则重新从主机设备和分机设备中确定出需要充电的目标设备。207. If it is detected that the increased power of the target device reaches the preset power level, re-determine the target device that needs to be charged from the host device and the extension device.

在将外部电源提供的目标充电电流提供给目标设备进行充电的过程中,可以按照预设的侦测周期(可由本领域普通技术人员根据实际需要取合适值,比如,可以将侦测周期配置为5分钟),获取目标设备的实时剩余电量,并计算该实时剩余电量与开始向目标设备提供目标充电电流时目标设备的剩余电量(也即是将目标设备确定为目标设备时的剩余电量)的差值,将计算得到的差值作为目标设备的增加电量。In the process of supplying the target charging current provided by the external power source to the target device for charging, a preset detection period (which can be selected by a person of ordinary skill in the art to an appropriate value according to actual needs, for example, the detection period can be configured as 5 minutes), obtain the real-time remaining power of the target device, and calculate the difference between the real-time remaining power and the remaining power of the target device when it starts to provide the target charging current to the target device (that is, the remaining power when the target device is determined as the target device). Difference, take the calculated difference as the added power of the target device.

在每次侦测到目标设备的增加电量时,判断目标设备的增加电量是否达到预设电量,其中,若目标设备的增加电量未达到预设电量,则继续将外部电源输出至主机设备的充电接口的目标充电电流提供给目标设备进行充电,若目标设备的增加电量达到预设电量,则转入执行“从主机设备和分机设备中确定出需要充电的目标设备”的步骤,以从主机设备和分机设备中重新确定出需要充电的目标设备,从而对重新确定出的目标设备进行充电(具体请参照以上相关描述,此处不再赘述),同理,在重新确定出的目标设备的增加电量达到预设电量时,再次转入执行“从主机设备和分机设备中确定出需要充电的目标设备”的步骤,如此往复。Each time the increased power of the target device is detected, it is determined whether the increased power of the target device has reached the preset power, wherein, if the increased power of the target device does not reach the preset power, the external power supply will continue to be output to the host device for charging The target charging current of the interface is provided to the target device for charging. If the increased power of the target device reaches the preset power level, then go to the step of “determining the target device that needs to be charged from the host device and the extension device” to obtain the target device from the host device. and the extension device to re-determine the target device that needs to be charged, so as to charge the re-determined target device (for details, please refer to the relevant description above, which will not be repeated here). Similarly, in the increase of the re-determined target device When the power reaches the preset power level, the process of “determining the target device that needs to be charged from the host device and the extension device” is performed again, and so on.

应当说明的是,本申请实施例对于预设电量的取值不做具体限制,可由本领域普通技术人员根据实际需要进行设置,比如,可以将预设电量设置为目标设备总电量的5%,这样,在目标设备的增加电量达到其总电量的5%时,将从主机设备和分机设备中重新确定出需要充电的目标设备,并在重新确定出的目标设备的增加电量达到5%时,再次从主机设备和分机设备中重新确定出目标设备进行充电,如此往复。It should be noted that the embodiments of the present application do not impose specific restrictions on the value of the preset power, which can be set by those of ordinary skill in the art according to actual needs. For example, the preset power may be set to 5% of the total power of the target device. In this way, when the increased power of the target device reaches 5% of its total power, the target device that needs to be charged will be re-determined from the host device and the extension device, and when the increased power of the re-determined target device reaches 5%, Re-determine the target device from the host device and the extension device for charging again, 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 "detecting whether the host device is connected to the external power source through the charging interface" includes:

检测主机设备是否通过有线充电接口与外部有线电源连接;或者,Detects whether the host device is connected to an external wired power source through a wired charging interface; or,

检测主机设备是否通过无线充电接口与外部无线电源连接。Detects whether the host device is connected to an external wireless power supply through the wireless charging interface.

应当说明的是,在本申请实施例中,充电接口可以为有线充电接口,也可以为无线充电接口。It should be noted that, in this embodiment of the present application, the charging interface may be a wired charging interface or a wireless charging interface.

其中,有线充电接口的实体展现形式可以为通用串行总线接口,应当理解的是,通用串行总线总接口包括但不限于标准通用串行总线接口、微型通用串行总线接口以及迷你通用串行总线接口等。在检测主机设备是否通过有线充电接口与外部有线电源连接时,可以按照通用串行总线协议来检测作为有线充电接口的通用串行总线接口是否连接了外部设备,若是,则可进行设备类型枚举来判断有线充电接口所连接的外部设备是否为外部有线电源(比如,有线充电器),或者为其它类型的通用串行总线设备(如U盘等)。The physical presentation form of the wired charging interface may be a universal serial bus interface. It should be understood that the universal serial bus general interface includes but is not limited to a standard universal serial bus interface, a mini universal serial bus interface, and a mini universal serial bus interface. bus interface, etc. When detecting whether the host device is connected to the external wired power supply through the wired charging interface, it can be detected according to the Universal Serial Bus protocol whether the USB interface as the wired charging interface is connected to an external device, and if so, the device type enumeration can be performed. To determine whether the external device connected to the wired charging interface is an external wired power supply (for example, a wired charger), or other types of universal serial bus devices (such as a U disk, etc.).

无线充电接口的实体展现形式可以为充电线圈,应当理解的是,充电线圈包括但不限于圆形充电线圈以及椭圆形充电线圈等。其中,作为无线充电接口的充电线圈至少能够接收无线电力信号,此外,还可以发射无线电力信号。在检测主机设备是否通过无线充电接口与外部无线电源连接时,可以按照预先配置的无线充电协议来检测作为无线充电接口的充电线圈是否连接了外部无线电源(比如,无线充电底座)。The physical representation form 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 oval charging coil, and the like. The charging coil serving as the wireless charging interface can at least receive wireless power signals, and can also transmit wireless power signals. When detecting whether the host device is connected to an external wireless power source through a wireless charging interface, it can be detected whether the charging coil serving as the wireless charging interface is connected to an external wireless power source (eg, a wireless charging base) according to a pre-configured wireless charging protocol.

在一实施方式中,本申请实施例提供的充电控制方法还包括:In one embodiment, the charging control method provided by the embodiment of the present application further includes:

若主机设备与外部无线电源连接,且确定分机设备为目标设备时,断开主机设备与外部无线电源的连接,以及控制分机设备与外部无线电源连接,以对分机设备充电。If the host device is connected to an external wireless power supply and the extension device is determined to be the target device, disconnect the host device from the external wireless power supply, and control the extension device to connect with the external wireless power supply to charge the extension device.

本申请实施例中,分机设备也可以包括无线充电接口,除了主机设备能够通过其无线充电接口与外部无线电源连接外,分机设备也可通过其无线充电接口与外部无线电源连接。In the embodiment of the present application, the extension device may also include a wireless charging interface. In addition to the host device being able to connect to an external wireless power supply through its wireless charging interface, the extension device can also be connected to an external wireless power supply through its wireless charging interface.

其中,若主机设备与外部无线电源连接,且确定分机设备为目标设备,则断开主机设备与外部无线电源的连接,此外,控制被确定为目标设备的分机设备通过其无线充电接口与外部外部无线电源连接。由于之前已经确定了需要由外部电源提供的目标充电电流,此时即可由被确定为目标设备的分机设备通过其无线充电接口接收外部电源提供的目标充电电流,从而对该分机设备的电池充电。Among them, if the host device is connected to the external wireless power supply, and the extension device is determined to be the target device, the connection between the host device and the external wireless power supply is disconnected, and in addition, the extension device determined as the target device is controlled to communicate with the external external device through its wireless charging interface. Wireless power connection. Since the target charging current that needs to be provided by the external power supply has been determined before, the extension device determined as the target device can receive the target charging current provided by the external power supply through its wireless charging interface, so as to charge the battery of the extension device.

在一实施方式中,“将外部电源提供的目标充电电流通过主机设备的充电接口提供给目标设备进行充电”包括:In one embodiment, "providing the target charging current provided by the external power source to the target device for charging through the charging interface of the host device" includes:

若确定分机设备为目标设备,则将外部电源提供的目标充电电流通过主机设备的充电接口提供给分机设备的电源管理芯片,使得分机设备的电源管理芯片为分机设备的电池充电;If it is determined that the extension device is the target device, 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, so that the power management chip of the extension device can charge the battery of the extension device;

若确实主机设备为目标设备,则将外部电源提供的目标充电电流通过主机设备的充电接口提供给主机设备的电源管理芯片,使得主机设备的电源管理芯片为主机设备的电池充电。If the host device is indeed the target device, the target charging current provided by the external power supply is provided 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.

比如,请参照图5,在图5所示的充电场景中,主机设备包括电源管理芯片、充电接口以及电池,分机设备包括电源管理芯片和电池。分机设备在拼接至主机设备时,复用主机设备充电接口。For example, please refer 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 extension device includes a power management chip and a battery. When the extension device is spliced to the host device, the charging interface of the host device is reused.

其中,若确定分机设备为目标设备,则开启被确定为目标设备的分机设备中电源管理芯片的充电通道,以及将该分机设备的电源管理芯片对电池的充电电流配置为目标充电电流,指示外部电源开始提供目标充电电流,以通过主机设备的充电接口接收到外部电源所提供的目标充电电流,由于主机设备和其它分机设备中电源管理芯片的充电通道均未开启,此时,充电接口所接收到的目标充电电流将被提供给被确定为目标设备的分机设备中的电源管理芯片,使得该电源管理芯片利用该目标充电电流对被确定为目标设备的分机设备的电池充电。Wherein, if it is determined that the extension device is the target device, the charging channel of the power management chip in the extension device determined as the target device is opened, and the charging current of the power management chip of the extension device to the battery is configured as the target charging current, indicating that the external The power supply starts to provide the target charging current to receive the target charging current provided by the external power supply through the charging interface of the host device. The obtained target charging current will be supplied to the power management chip in the extension device determined as the target device, so that the power management chip uses the target charging current to charge the battery of the extension device determined as the target device.

若确定主机设备为目标设备,则开启主机设备中电源管理芯片的充电通道,以及将主机设备的电源管理芯片对电池的充电电流配置为目标充电电流,指示外部电源开始提供目标充电电流,以通过主机设备的充电接口接收到外部电源所提供的目标充电电流,由于分机设备中电源管理芯片的充电通道均未开启,此时,充电接口所接收到的目标充电电流将被提供给主机设备中的电源管理芯片,使得该电源管理芯片利用该目标充电电流对主机设备的电池充电。If it is determined that the host device is the target device, the charging channel of the power management chip in the host device is turned on, and the charging current of the power management chip of the host device to the battery is configured as the target charging current, and the external power supply is instructed to start to provide the target charging current to pass The charging interface of the host device receives the target charging current provided by the external power supply. Since the charging channels of the power management chip in the extension device are not turned on, at this time, the target charging current received by the charging interface will be provided to the host device. The power management chip makes the power management chip charge the battery of the host device by using the target charging current.

在一实施方式中,“将外部电源提供的目标充电电流通过主机设备的充电接口提供给目标设备进行充电”包括:In one embodiment, "providing the target charging current provided by the external power source to the target device for charging through the charging interface of the host device" includes:

若确定主机设备为目标设备,则将外部电源提供的目标充电电流通过主机设备的充电接口以及一充电开关后直接为主机设备的电池充电。If it is determined that the host device is the target device, the target charging current provided by the external power source is passed through the charging interface of the host device and a charging switch to directly charge the battery of the host device.

又比如,请参照图6,在图6所示的充电场景中,主机设备包括充电开关(比如,采用背靠背连接的MOS管实现)、充电接口以及电池,分机设备包括电源管理芯片和电池。分机设备在拼接至主机设备时,复用主机设备充电接口。For another example, please refer to FIG. 6 . In the charging scenario shown in FIG. 6 , the host device includes a charging switch (for example, implemented with MOS transistors connected back-to-back), a charging interface and a battery, and the extension device includes a power management chip and a battery. When the extension device is spliced to the host device, the charging interface of the host device is reused.

其中,若确定分机设备为目标设备,则开启被确定为目标设备的分机设备中电源管理芯片的充电通道,以及将该分机设备的电源管理芯片对电池的充电电流配置为目标充电电流,指示外部电源开始提供目标充电电流,以通过主机设备的充电接口接收到外部电源所提供的目标充电电流,由于主机设备和其它分机设备中电源管理芯片的充电通道均未开启,此时,充电接口所接收到的目标充电电流将被提供给被确定为目标设备的分机设备中的电源管理芯片,使得该电源管理芯片利用该目标充电电流对被确定为目标设备的分机设备的电池充电。Wherein, if it is determined that the extension device is the target device, the charging channel of the power management chip in the extension device determined as the target device is opened, and the charging current of the power management chip of the extension device to the battery is configured as the target charging current, indicating that the external The power supply starts to provide the target charging current to receive the target charging current provided by the external power supply through the charging interface of the host device. The obtained target charging current will be supplied to the power management chip in the extension device determined as the target device, so that the power management chip uses the target charging current to charge the battery of the extension device determined as the target device.

若确定主机设备目标设备,则指示外部电源开始提供目标充电电流,并导通充电开关,由于分机设备中电源管理芯片的充电通道均未开启,此时,充电接口所接收到的目标充电电流将通过导通的充电开关后直接为主机设备的电池充电。If the target device of the host device is determined, the external power supply is instructed to start providing the target charging current, and the charging switch is turned on. Since the charging channel of the power management chip in the extension device is not turned on, at this time, the target charging current received by the charging interface will be The battery of the host device is directly charged after passing through the turned-on charging switch.

在一实施方式中,“将外部电源提供的目标充电电流通过主机设备的充电接口提供给分机设备的电源管理芯片”,包括:In one embodiment, "providing the target charging current provided by the external power supply to the power management chip of the extension device through the charging interface of the host device" includes:

将外部电源提供的目标充电电流通过主机设备的充电接口以有线方式或无线方式提供给分机设备的电源管理芯片。The target charging current provided by the external power supply is provided to the power management chip of the extension device in a wired or wireless manner through the charging interface of the host device.

其中,主机设备和分机设备均可设置弹片或弹簧顶针连接器等金属连接件,用于在分机设备与主机设备拼接在一起时,使得分机设备的电源管理芯片与主机设备的充电接口之间能够通过金属连接件建立有线电连接,如图7所示。由此,在分机设备被确定为目标设备时,外部电源提供的目标充电电流将通过主机设备的充电接口与该分机设备中电源管理芯片的有线电连接,以有线方式提供给该分机设备的电源管理芯片,使得该电源管理芯片利用目标充电电流对该分机设备中的电池充电。Among them, both the host device and the extension device can be provided with metal connectors such as shrapnel or spring thimble connectors, which are used to enable the power management chip of the extension device and the host device when the extension device and the host device are spliced together. Wired electrical connections are established through metal connectors, as shown in FIG. 7 . Therefore, when the extension device is determined as the target device, the target charging current provided by the external power supply will be electrically connected to the power management chip in the extension device through the charging interface of the host device, and the power supply of the extension device will be provided to the extension device in a wired manner. The management chip makes the power management chip use the target charging current to charge the battery in the extension device.

或者,主机设备和分机设备均可设置无线电力传输模组(其中,无线电力传输模组的实体展现形式为充电线圈),用于在分机设备与主机设备拼接在一起时,使得分机设备的电源管理芯片与主机设备的充电接口之间能够通过无线电力传输模组建立无线电连接,如图8所示。由此,在分机设备被确定为目标设备时,外部电源提供的目标充电电流将通过主机设备的充电接口与该分机设备中电源管理芯片的无线电连接,以无线方式提供给该分机设备的电源管理芯片,使得该电源管理芯片利用目标充电电流对该分机设备中的电池充电。Alternatively, both the host device and the extension device can be provided with a wireless power transmission module (wherein, the physical representation of the wireless power transmission module is a charging coil), which is used to make the power supply of the extension device when the extension device and the host device are spliced together. A wireless connection can be established between the management chip and the charging interface of the host device through the wireless power transmission module, as shown in Figure 8. Therefore, when the extension device is determined as the target device, the target charging current provided by the external power supply will be wirelessly provided to the power management chip of the extension device through the wireless connection between the charging interface of the host device and the power management chip in the extension device. chip, so that the power management chip uses the target charging current to charge the battery in the extension device.

在一实施例中,还提供了一种充电控制装置,请参照图9,图9为本申请实施例提供的充电控制装置的结构示意图。其中该充电控制装置应用于分体式电子设备,该分体式电子设备可以包括主机设备和至少一个分机设备,如图9所示,该充电控制装置包括:In an embodiment, a charging control device is also provided. Please refer to FIG. 9 , which is a schematic structural diagram of the charging control device provided by the embodiment of the present application. The charging control device is applied to a split-type electronic device, and the split-type electronic device may include a host device and at least one extension device. As shown in FIG. 9 , the charging control device includes:

检测模块401,用于检测主机设备是否通过充电接口与外部电源连接;A detection module 401, configured to detect whether the host device is connected to an external power source through a charging interface;

确定模块402,用于若是,则从主机设备和分机设备中确定出需要充电的目标设备;A determination module 402, configured to determine the target device that needs to be charged from the host device and the extension device if it is;

协商模块403,用于控制主机设备与外部电源进行双向通信,以确定需要由外部电源提供的目标充电电流;a negotiation module 403, configured to control the host device to perform bidirectional communication with an external power source to determine a target charging current that needs to be provided by the external power source;

充电模块404,用于将外部电源提供的目标充电电流通过主机设备的充电接口提供给目标设备进行充电。The charging module 404 is configured to provide the target charging current provided by the external power source to the target device for charging through the charging interface of the host device.

在一实施方式中,确定模块402还用于:In one embodiment, the determining module 402 is further configured to:

获取主机设备的剩余电量,以及获取分机设备的剩余电量;Obtain the remaining power of the host device and obtain the remaining power of the extension device;

将主机设备和分机设备中剩余电量最低的设备确定为需要充电的目标设备。Identify the device with the lowest remaining power among the host device and extension device as the target device that needs to be charged.

在一实施方式中,确定模块402还用于:In one embodiment, the determining module 402 is further configured to:

在目标设备的充电过程中,侦测目标设备的增加电量;During the charging process of the target device, detect the increased power of the target device;

若侦测到目标设备的增加电量达到预设电量,则重新从主机设备和分机设备中确定出需要充电的目标设备。If it is detected that the increased power of the target device reaches the preset power level, the target device that needs to be charged is re-determined from the host device and the extension device.

在一实施方式中,外部电源包括外部有线电源或外部无线电源,充电接口包括有线充电接口或无线充电接口,检测模块401还用于: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 detection module 401 is further configured to:

检测主机设备是否通过有线充电接口与外部有线电源连接;或者,Detects whether the host device is connected to an external wired power source through a wired charging interface; or,

检测主机设备是否通过无线充电接口与外部无线电源连接。Detects whether the host device is connected to an external wireless power source through the wireless charging interface.

在一实施方式中,充电控制装置还包括连接模块,用于:In one embodiment, the charging control device further includes a connection module for:

若主机设备与外部无线电源连接,且确定分机设备为目标设备时,断开主机设备与外部无线电源的连接,以及控制分机设备与外部无线电源连接,以对分机设备充电。If the host device is connected to an external wireless power supply and the extension device is determined to be the target device, disconnect the host device from the external wireless power supply, and control the extension device to connect with the external wireless power supply to charge the extension device.

在一实施方式中,充电模块404用于:In one embodiment, the charging module 404 is used to:

若确定分机设备为目标设备,则将外部电源提供的目标充电电流通过主机设备的充电接口提供给分机设备的电源管理芯片,使得分机设备的电源管理芯片为分机设备的电池充电;If it is determined that the extension device is the target device, 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, so that the power management chip of the extension device can charge the battery of the extension device;

若确实主机设备为目标设备,则将外部电源提供的目标充电电流通过主机设备的充电接口提供给主机设备的电源管理芯片,使得主机设备的电源管理芯片为主机设备的电池充电。If the host device is indeed the target device, the target charging current provided by the external power supply is provided 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.

在一实施方式中,充电模块404还用于:In one embodiment, the charging module 404 is also used to:

若确定主机设备为目标设备,则将外部电源提供的目标充电电流通过主机设备的充电接口以及一充电开关后直接为主机设备的电池充电。If it is determined that the host device is the target device, the target charging current provided by the external power source is passed through the charging interface of the host device and a charging switch to directly charge the battery of the host device.

在一实施方式中,充电模块404还用于:In one embodiment, the charging module 404 is also used to:

将外部电源提供的目标充电电流通过主机设备的充电接口以有线方式或无线方式提供给分机设备的电源管理芯片。The target charging current provided by the external power supply is provided to the power management chip of the extension device in a wired or wireless manner through the charging interface of the host device.

由上可知,本申请实施例提供的充电控制装置可以应用于分体式电子设备,分体式电子设备包括主机设备和至少一个分机设备,在对分体式电子设备进行充电时,可以首先检测主机设备是否通过充电接口与外部电源连接,若是,则从主机设备和分机设备中确定出需要充电的目标设备。然后控制主机设备与外部电源进行双向通信,以确定需要由外部电源提供的目标充电电流。最后,将外部电源提供的目标充电电流通过主机设备的充电接口提供给目标设备进行充电。由此,无需用户分别为主机设备和分机设备进行充电,提高了对分体式电子设备充电的便利性。It can be seen from the above that the charging control device provided in the embodiment of the present application can be applied to a split-type electronic device. The split-type electronic device includes a host device and at least one extension device. When charging the split-type electronic device, it is possible to first detect whether the host device is It is connected to the external power supply through the charging interface, and if so, the target device that needs to be charged is determined from the host device and the extension device. The control host device then communicates bidirectionally with the external power supply to determine the target charging current that needs to be provided by the external power supply. Finally, 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. Therefore, the user does not need to charge the host device and the extension device separately, which improves the convenience of charging the split-type electronic device.

本申请实施例还提供一种分体式电子设备。请参照图10,分体式电子设备包括主机设备和至少一个分机设备,主机设备包括处理器、存储器以及充电接口,分机设备包括处理器、存储器。本领域普通技术人员可以理解,图10中示出的结构并不构成对分体式电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置The embodiments of the present application also provide a split-type electronic device. Referring to FIG. 10 , the split-type 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. Those of ordinary skill in the art can understand that the structure shown in FIG. 10 does not constitute a limitation on the split-type electronic device, and may include more or less components than the one shown, or combine some components, or arrange different components

其中,主机设备或分机设备通过各自的处理器加载存储在各自存储器内的计算机程序,可以执行如下步骤:Wherein, the host device or the extension device loads the computer program stored in the respective memory through the respective processors, and can perform the following steps:

检测主机设备是否通过充电接口与外部电源连接;Detect whether the host device is connected to an external power supply through the charging interface;

若是,则从主机设备和分机设备中确定出需要充电的目标设备;If so, determine the target device that needs to be charged from the host device and the extension device;

控制主机设备与外部电源进行双向通信,以确定需要由外部电源提供的目标充电电流;control the host device to communicate bidirectionally with the external power supply to determine the target charging current that needs to be provided by the external power supply;

将外部电源提供的目标充电电流通过主机设备的充电接口提供给目标设备进行充电。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.

请参照图11,图11为本申请实施例提供的分体式电子设备的另一结构示意图,该分体式电子设备包括主机设备和至少一个分机设备,与图10所示分体式电子设备的区别在于,主机设备和分机设备还包括输入单元和输出单元等组件。Please refer to FIG. 11. FIG. 11 is another schematic structural diagram of a split-type electronic device provided by an embodiment of the application. The split-type electronic device includes a host device and at least one extension device. The difference from the split-type electronic device shown in FIG. 10 is that , the host device and the extension device also include components such as input units and output units.

其中,输入单元可用于接收输入的数字、字符信息或用户特征信息(比如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入等。The input unit can be used to receive input numbers, character information or user feature information (such as fingerprints), and generate keyboard, mouse, joystick, optical or trackball signal input 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, and the like.

在本申请实施例中,主机设备或分机设备通过各自的处理器加载存储在各自存储器内的计算机程序,可以执行如下步骤: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 processors, and can perform the following steps:

检测主机设备是否通过充电接口与外部电源连接;Detect whether the host device is connected to an external power supply through the charging interface;

若是,则从主机设备和分机设备中确定出需要充电的目标设备;If so, determine the target device that needs to be charged from the host device and the extension device;

控制主机设备与外部电源进行双向通信,以确定需要由外部电源提供的目标充电电流;control the host device to communicate bidirectionally with the external power supply to determine the target charging current that needs to be provided by the external power supply;

将外部电源提供的目标充电电流通过主机设备的充电接口提供给目标设备进行充电。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.

在一实施方式中,在从主机设备和分机设备中确定出需要充电的目标设备时,可以执行:In one embodiment, when the target device that needs to be charged is determined from the host device and the extension device, the following can be executed:

获取主机设备的剩余电量,以及获取分机设备的剩余电量;Obtain the remaining power of the host device and obtain the remaining power of the extension device;

将主机设备和分机设备中剩余电量最低的设备确定为需要充电的目标设备。Identify the device with the lowest remaining power among the host device and extension device as the target device that needs to be charged.

在一实施方式中,还可以执行:In one embodiment, it is also possible to perform:

在目标设备的充电过程中,侦测目标设备的增加电量;During the charging process of the target device, detect the increased power of the target device;

若侦测到目标设备的增加电量达到预设电量,则重新从主机设备和分机设备中确定出需要充电的目标设备。If it is detected that the increased power of the target device reaches the preset power level, the target device that needs to be charged is re-determined from the host device and the extension device.

在一实施方式中,外部电源包括外部有线电源或外部无线电源,充电接口包括有线充电接口或无线充电接口,在检测主机设备是否通过充电接口与外部电源连接时,可以执行:In one embodiment, the external power source includes an external wired power source or an external wireless power source, and the charging interface includes a wired charging interface or a wireless charging interface. When detecting whether the host device is connected to the external power source through the charging interface, the following steps may be performed:

检测主机设备是否通过有线充电接口与外部有线电源连接;或者,Detects whether the host device is connected to an external wired power source through a wired charging interface; or,

检测主机设备是否通过无线充电接口与外部无线电源连接。Detects whether the host device is connected to an external wireless power supply through the wireless charging interface.

在一实施方式中,还可以执行:In one embodiment, it is also possible to perform:

若主机设备与外部无线电源连接,且确定分机设备为目标设备时,断开主机设备与外部无线电源的连接,以及控制分机设备与外部无线电源连接,以对分机设备充电。If the host device is connected to an external wireless power supply and the extension device is determined to be the target device, disconnect the host device from the external wireless power supply, and control the extension device to connect with the external wireless power supply to charge the extension device.

在一实施方式中,在将外部电源提供的目标充电电流通过主机设备的充电接口提供给目标设备进行充电时,可以执行:In one embodiment, when the target charging current provided by the external power source is provided to the target device for charging through the charging interface of the host device, the following steps may be performed:

若确定分机设备为目标设备,则将外部电源提供的目标充电电流通过主机设备的充电接口提供给分机设备的电源管理芯片,使得分机设备的电源管理芯片为分机设备的电池充电;If it is determined that the extension device is the target device, 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, so that the power management chip of the extension device can charge the battery of the extension device;

若确实主机设备为目标设备,则将外部电源提供的目标充电电流通过主机设备的充电接口提供给主机设备的电源管理芯片,使得主机设备的电源管理芯片为主机设备的电池充电。If the host device is indeed the target device, the target charging current provided by the external power supply is provided 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 source is provided to the target device for charging through the charging interface of the host device, the following steps may be performed:

若确定主机设备为目标设备,则将外部电源提供的目标充电电流通过主机设备的充电接口以及一充电开关后直接为主机设备的电池充电。If it is determined that the host device is the target device, the target charging current provided by the external power source is passed through the charging interface of the host device and a charging switch to directly charge the battery of the host device.

在一实施方式中,在将外部电源提供的目标充电电流通过主机设备的充电接口提供给分机设备的电源管理芯片时,可以执行:In one embodiment, when the target charging current provided by the external power source is provided to the power management chip of the extension device through the charging interface of the host device, the following steps can be performed:

将外部电源提供的目标充电电流通过主机设备的充电接口以有线方式或无线方式提供给分机设备的电源管理芯片。The target charging current provided by the external power supply is provided to the power management chip of the extension device in a wired or wireless manner through the charging interface of the host device.

本申请实施例还提供一种存储介质,该存储介质存储有计算机程序,当该计算机程序在本申请实施例提供的分体式电子设备上运行时,使得该分体式电子设备执行上述任一实施例中的充电控制方法,比如:检测主机设备是否通过充电接口与外部电源连接;若是,则从主机设备和分机设备中确定出需要充电的目标设备;控制主机设备与外部电源进行双向通信,以确定需要由外部电源提供的目标充电电流;将外部电源提供的目标充电电流通过主机设备的充电接口提供给目标设备进行充电。An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program is run on the split electronic device provided by the embodiment of the present application, the split electronic device is made to execute any of the foregoing embodiments. For example, check whether the host device is connected to the external power supply through the charging interface; if so, determine the target device that needs to be charged from the host device and the extension device; control the host device and the external power source to communicate in both directions to determine The target charging current provided by the external power supply is required; 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.

在本申请实施例中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM,)、或者随机存取记忆体(Random Access Memory,RAM)等。In this embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a read only memory (Read Only Memory, ROM,), or a random access memory (Random Access Memory, RAM), or the like.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

需要说明的是,对本申请实施例的充电控制方法而言,本领域普通技术人员可以理解实现本申请实施例的充电控制方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读存储介质中,并被分体式电子设备内的至少一个处理器执行,在执行过程中可包括如充电控制方法的实施例的流程。It should be noted that, for the charging control method of the embodiment of the present application, those of ordinary skill in the art can understand that all or part of the process of implementing the charging control method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program , the computer program can be stored in a computer-readable storage medium and executed by at least one processor in the split electronic device, and the execution process can include the flow of the embodiment of the charging control method.

对本申请实施例的充电控制装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读存储介质中,譬如为只读存储器,磁盘或光盘等。For the charging control device of the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may also be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk.

以上对本申请实施例所提供的一种充电控制方法、装置、存储介质及分体式电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。A charging control method, device, storage medium, and split electronic device provided by the embodiments of the present application have been described above in detail. The principles and implementations of the present application are described with specific examples. The description is only used to help understand the method of the present application and its core idea; meanwhile, for those skilled in the art, according to the idea of the present application, there will be changes in the specific embodiment and the scope of application. In summary, The contents of this specification should not be construed as limiting the 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; or,
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, charging 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, charging 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
US12189445B2 (en) Battery charging method and electronic device
JP2020528725A (en) Mobile devices, peripheral devices, and how to charge them
US20100060233A1 (en) Charger with USB detection
CN109478176B (en) Method, device and system for identifying opposite terminal equipment by USB Type-C port equipment
CN108141056A (en) Electronic equipment, charge control method and computer readable recording medium storing program for performing
CN110492575B (en) Quick charging system and method for handheld device and handheld device
US20140070791A1 (en) Electronic device and method of electronic device for determining power source device
CN109254210B (en) Electronic equipment port type detection method and device, detection circuit and electronic equipment
US20240248125A1 (en) Method for Detecting Impedance of Charging Cable, Electronic Device, and Power Supply Device
CN107046304B (en) Wireless charging method, related equipment and system
US11462930B2 (en) Method and device for controlling charging on basis of state of battery
CN108054794A (en) Charging and discharging method and device for intelligent terminal, terminal and storage medium
US20170063105A1 (en) Charging method, charging controller and charging system
CN115425711B (en) Charging current acquisition method and device, terminal equipment and storage medium
CN112165143A (en) Wireless earphone charging method, device, equipment and storage medium
CN110970954B (en) Charging control method and device, storage medium and split type electronic equipment
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
CN105006853B (en) Method for outputting charging current and power amplifier
CN110970953A (en) Charging control method, device, storage medium and split type electronic device
CN110970952B (en) Charging control method and device, storage medium and split type electronic equipment
CN110970949A (en) Charging control method, device, storage medium and split type electronic device
CN114503390A (en) Method for controlling charging of battery of electronic device and electronic device thereof
CN112732351B (en) Chip compatibility configuration method and device, storage medium and electronic equipment
CN113162129A (en) Electronic equipment, charging method and system

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