Charging switching method and electronic equipment
By setting up switch modules in electronic devices and combining temperature and power, flexible switching between wired charging and wireless charging is achieved, the problem of insufficient charging flexibility is solved and charging adaptability is improved.
Patent Information
- Application Number
- CN202210930362.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-03
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2042-08-03
AI Technical Summary
In the prior art, when electronic devices are connected to wired chargers and wireless chargers at the same time, in order to avoid safety risks, wireless charging is usually abandoned and wired charging is selected, resulting in reduced charging flexibility.
By setting the first and second switching modules in the electronic device, combining the temperature and energy storage unit power, the first functional relationship is used to control the on and off of the switching module, and flexible switching between wired charging and wireless charging is achieved.
It improves the flexibility of electronic devices between wired charging and wireless charging, and dynamically adjusts the charging method according to temperature and power to meet the charging needs in different situations.
Smart Images

Figure CN117559575B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of charging technology, and in particular to a charging switching method and electronic equipment. Background Art
[0002] With the development of wireless charging technology, electronic devices such as mobile phones and tablets are equipped with wired charging ports and wireless charging ports, so that electronic devices can be charged by wired chargers or wirelessly by wireless chargers. Typically, wireless chargers can be made in the shape of a bracket (such as a car-mounted mobile phone bracket) to facilitate users to use electronic devices while charging them through a wireless charger. However, this leads to the situation that in some application scenarios, electronic devices may be connected to both a wired charger and a wireless charger at the same time.
[0003] In related technologies, when an electronic device is connected to both a wired charger and a wireless charger simultaneously—that is, both the wired and wireless charging ports of the electronic device are capable of receiving power—to avoid the safety risks associated with simultaneous wired and wireless charging, the wireless charger is disconnected from the electronic device and wired charging is used instead. However, this approach of directly abandoning wireless charging in favor of wired charging is quite limited and reduces charging flexibility. Summary of the Invention
[0004] The present application provides a charging switching method and an electronic device, which can control the electronic device to switch between wired charging and wireless charging according to the temperature of the electronic device and the power of the energy storage unit when the electronic device is connected to a wired charger and a wireless charger at the same time, thereby improving the charging flexibility of the electronic device.
[0005] In a first aspect, a charging switching method is provided. The charging switching method is applied to an electronic device. The electronic device includes a wired charging port, a first switch module, a wireless charging port, a second switch module, and an energy storage unit. The first switch module is connected between the wired charging port and the energy storage unit, so that when the wired charging port of the electronic device is connected to the wired charger and the first switch module is turned on, the electronic device is wired charged through the wired charger. The second switch module is connected between the wireless charging port and the energy storage unit, so that when the wireless charging port of the electronic device is connected to the wireless charger and the second switch module is turned on, the electronic device is wirelessly charged through the wireless charger. The charging switching method is used to turn on one of the first switch module and the second switch module and turn off the other, thereby controlling the electronic device to perform wired charging or wireless charging. The charging switching method can be executed by a processor in the electronic device.
[0006] The charging switching method includes: when the wired charging port is connected to a wired charger and the wireless charging port is connected to a wireless charger, if the output power of the wired charger is less than the output power of the wireless charger, the processor detects the temperature of the electronic device and the power level of the energy storage unit. The processor controls one of the first switch module and the second switch module to turn on and the other to turn off based on the temperature of the electronic device, the power level of the energy storage unit, and a first functional relationship. The first functional relationship includes one or more of a constant function, a linear function, a quadratic function, and an inverse proportional function.
[0007] In the present application, when the wired charging port of an electronic device is connected to a wired charger and the wireless charging port is connected to a wireless charger, if the output power of the wired charger is less than the output power of the wireless charger, then according to the temperature of the electronic device, the power level of the energy storage unit, and the first functional relationship, one of the first switch module and the second switch module is controlled to be turned on and the other to be turned off, that is, the electronic device is controlled to perform wired charging or wireless charging. In other words, this charging switching method, when the electronic device is connected to both a wired charger and a wireless charger at the same time, can control the electronic device to switch between wired charging and wireless charging according to the temperature of the electronic device and the power level of the energy storage unit, thereby improving the charging flexibility of the electronic device.
[0008] In some embodiments, the first functional relationship is a correspondence between temperature and power level determined based on a charging speed factor and a charging heat factor. Thus, when an electronic device is connected to both a wired charger and a wireless charger, the charging switching method can control the electronic device to switch between wired and wireless charging based on the electronic device's temperature and the power level of the energy storage unit, combined with the charging speed factor and the charging heat factor, thereby improving the charging flexibility of the electronic device.
[0009] In some embodiments, the first functional relationship is used to indicate the maximum temperature allowed when using wireless charging at various power levels. In this case, the processor controls one of the first switch module and the second switch module to be turned on and the other to be turned off based on the temperature of the electronic device, the power level of the energy storage unit, and the first functional relationship. Specifically, the following steps may be included:
[0010] The processor determines the temperature corresponding to the amount of electricity in the energy storage unit in the first functional relationship as a temperature threshold. If the temperature of the electronic device is less than the temperature threshold, the processor controls the second switch module to turn on and the first switch module to turn off. If the temperature of the electronic device is greater than or equal to the temperature threshold, the processor controls the first switch module to turn on and the second switch module to turn off.
[0011] Alternatively, the processor determines the power level corresponding to the temperature of the electronic device in the first functional relationship as a power threshold. If the power level of the energy storage unit is less than the power threshold, the processor controls the second switch module to turn on and the first switch module to turn off. If the power level of the energy storage unit is greater than or equal to the power threshold, the processor controls the first switch module to turn on and the second switch module to turn off.
[0012] That is, for the same temperature of the electronic device, when the charge level of the energy storage unit is lower than the charge level corresponding to that temperature in the first functional relationship, the charging speed factor is prioritized, and thus a wireless charger with a higher output power is used to charge the energy storage unit of the electronic device. When the charge level of the energy storage unit is greater than or equal to the charge level corresponding to that temperature in the first functional relationship, the charging heat factor is prioritized, and thus a wired charging method with less heat generation is used to charge the energy storage unit of the electronic device.
[0013] In some specific embodiments, the maximum value of the power corresponding to a temperature greater than or equal to zero degrees in the first functional relationship is less than 100%. For example, the maximum value of the power corresponding to a temperature greater than or equal to zero degrees in the first functional relationship is 80%. Thus, when the temperature of the electronic device is greater than or equal to zero degrees, if the power of the energy storage unit is greater than or equal to 80%, the processor controls the first switch module to turn on and the second switch module to turn off, and the electronic device performs wired charging.
[0014] In some specific embodiments, the maximum temperature value in the first functional relationship is less than the safe operating temperature of the electronic device. For example, if the safe operating temperature of the electronic device is 75°C, the maximum temperature value in the first functional relationship may be 50°C. Thus, when the temperature of the electronic device is greater than or equal to 50°C, the processor controls the first switch module to turn on and the second switch module to turn off, and the electronic device performs wired charging.
[0015] That is, when the energy storage unit's charge level is greater than or equal to 80%, i.e., when the energy storage unit has a high charge level, priority is given to the heat generated by charging, and thus the energy storage unit of the electronic device is charged using a wired charging method that generates less heat. When the temperature of the electronic device is greater than or equal to 50°C, i.e., when the temperature of the electronic device is high, priority is given to the heat generated by charging, and thus the energy storage unit of the electronic device is charged using a wired charging method that generates less heat.
[0016] In some embodiments, before the processor controls one of the first switch module and the second switch module to turn on and the other to turn off based on the temperature of the electronic device, the power of the energy storage unit, and the first functional relationship, the charging switching method further includes the following steps:
[0017] When the wired charging port is connected to a wired charger, the wireless charging port is connected to a wireless charger, and the output power of the wired charger is less than the output power of the wireless charger, if the processor detects the temperature of the electronic device and the power level of the energy storage unit for the first time, the first corresponding relationship is determined as the first functional relationship. When the wired charging port is connected to a wired charger, the wireless charging port is connected to a wireless charger, and the output power of the wired charger is less than the output power of the wireless charger, if the processor detects the temperature of the electronic device and the power level of the energy storage unit for the first time, if the first switch module is currently in an on state and the second switch module is currently in an off state, the second corresponding relationship is determined as the first functional relationship. When the wired charging port is connected to a wired charger, the wireless charging port is connected to a wireless charger, and the output power of the wired charger is less than the output power of the wireless charger, if the processor detects the temperature of the electronic device and the power level of the energy storage unit for the first time, if the first switch module is currently in an off state and the second switch module is currently in an on state, the third corresponding relationship is determined as the first functional relationship.
[0018] Among them, the first correspondence is the correspondence between temperature and power determined based on the charging speed factor and the charging heat factor. The second correspondence and the third correspondence are both the correspondence between temperature and power determined based on the first correspondence. The maximum values of the temperatures in the second correspondence and the third correspondence are the same as the maximum values of the temperatures in the first correspondence. When the temperature is greater than zero degrees and less than the maximum temperature, the power corresponding to the same temperature in the second correspondence is less than the power corresponding to the first correspondence, and the power corresponding to the same temperature in the third correspondence is greater than the power corresponding to the first correspondence. When the temperature is less than or equal to zero degrees and the temperature is the maximum temperature, the power corresponding to the same temperature in the second correspondence and the third correspondence is the same as the power corresponding to the first correspondence.
[0019] In the charging switching method of the present application, the processor may further adjust the first functional relationship based on the physical state of the electronic device. The charging switching method of the present application is further described below from six possible adjustment methods. The following six different adjustment methods can be combined with each other.
[0020] In a first possible adjustment method, the charging switching method further includes: the processor detecting a temperature change rate of the electronic device. If the temperature change rate of the electronic device is within a preset change rate range, the processor adjusting the first functional relationship so that the power corresponding to each temperature in the first functional relationship is increased by a first preset power value. If the temperature change rate of the electronic device is not within the preset change rate range, the processor adjusting the first functional relationship so that the power corresponding to each temperature in the first functional relationship is decreased by the first preset power value.
[0021] In some specific embodiments, the processor detects the temperature change rate of the electronic device, including: when the wireless charging port is connected to a wireless charger, the processor transmits a query signal to the wireless charger, the query signal being used to query the fan speed of the wireless charger. The processor receives a feedback signal from the wireless charger, the feedback signal including the fan speed of the wireless charger. The processor determines the temperature change rate of the electronic device based on the fan speed of the wireless charger.
[0022] In other specific embodiments, the processor detects the temperature change rate of the electronic device, including: the processor detects the temperature of the electronic device at intervals of a preset time, and the processor obtains the temperature change rate of the electronic device based on the temperature of the electronic device detected in two adjacent times and the preset time.
[0023] In a second possible adjustment method, the charging switching method further includes: the processor detecting the output power of the energy storage unit within a preset time period. If the output power of the energy storage unit within the preset time period is within a preset power range, the processor adjusts the first functional relationship so that the power corresponding to each temperature in the first functional relationship is increased by a second preset power value. If the output power of the energy storage unit within the preset time period is not within the preset power range, the processor adjusts the first functional relationship so that the power corresponding to each temperature in the first functional relationship is reduced by the second preset power value.
[0024] In a third possible adjustment method, the charging switching method further includes: the processor obtaining an operating state of the display screen of the electronic device. If the operating state of the display screen of the electronic device is a screen-off state, the processor adjusting the first functional relationship so that the power corresponding to each temperature in the first functional relationship is increased by a third preset power value. If the operating state of the display screen of the electronic device is a screen-on state, the processor adjusting the first functional relationship so that the power corresponding to each temperature in the first functional relationship is decreased by the third preset power value.
[0025] In a fourth possible adjustment method, the charging switching method further includes: the processor detecting the current capacity percentage of the energy storage unit, where the current capacity percentage is obtained by dividing the current capacity of the energy storage unit by the standard capacity of the energy storage unit. The processor obtains the adjusted power corresponding to the current capacity percentage in the second functional relationship, where the second functional relationship is the correspondence between the capacity percentage and the adjusted power. The processor adjusts the first functional relationship according to the adjusted power. Among them, the adjusted power corresponding to the capacity percentage greater than the preset percentage in the second functional relationship is greater than zero. The adjusted power corresponding to the capacity percentage equal to the preset percentage in the second functional relationship is equal to zero. The adjusted power corresponding to the capacity percentage less than the preset percentage in the second functional relationship is less than zero.
[0026] In a fifth possible adjustment method, the charging switching method further includes: the processor detecting the temperature of the energy storage unit. If the temperature of the energy storage unit is within a preset temperature range, the processor adjusts the first functional relationship so that the power corresponding to each temperature in the first functional relationship is increased by a fourth preset power value. If the temperature of the energy storage unit is not within the preset temperature range, the processor adjusts the first functional relationship so that the power corresponding to each temperature in the first functional relationship is decreased by a fourth preset power value.
[0027] In a sixth possible adjustment method, the charging switching method further includes: when the wired charging port is connected to a wired charger and the wireless charging port is connected to a wireless charger, the processor detecting whether the electronic device and the wired charger have a corresponding charging protocol, and detecting whether the electronic device and the wireless charger have a corresponding charging protocol. If the electronic device and the wired charger do not have a corresponding charging protocol, and the electronic device and the wireless charger do have a corresponding charging protocol, the processor adjusting the first functional relationship so that the power corresponding to each temperature in the first functional relationship is increased by a fifth preset power value. If the electronic device and the wired charger have a corresponding charging protocol, and the electronic device and the wireless charger do not have a corresponding charging protocol, the processor adjusting the first functional relationship so that the power corresponding to each temperature in the first functional relationship is reduced by a fifth preset power value.
[0028] In a second aspect, an electronic device is provided, comprising a wired charging port, a first switch module, a wireless charging port, a second switch module, an energy storage unit, and a processor. The first switch module is connected between the wired charging port and the energy storage unit. The second switch module is connected between the wireless charging port and the energy storage unit. The processor is connected to the first switch module and the second switch module to control the on and off of the first switch module and the second switch module. When operating, the processor executes the charging switching method described in any one of the first aspects.
[0029] The technical effect obtained by the above-mentioned second aspect is similar to the technical effect obtained by the corresponding technical means in the above-mentioned first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0031] Figure 2 This is a structural diagram of a first wireless charger provided in an embodiment of the present application;
[0032] Figure 3 This is a structural diagram of a second wireless charger provided in an embodiment of the present application;
[0033] Figure 4This is a schematic diagram of an application scenario of the first electronic device provided in an embodiment of the present application;
[0034] Figure 5 This is a schematic diagram of an application scenario of a second electronic device provided in an embodiment of the present application;
[0035] Figure 6 This is a circuit structure diagram of a first electronic device provided in an embodiment of the present application;
[0036] Figure 7 is a circuit structure diagram of a second electronic device provided in an embodiment of the present application;
[0037] Figure 8 This is a flow chart of a charging switching method provided in an embodiment of the present application;
[0038] Figure 9 is a function curve diagram of the first functional relationship provided in the embodiment of the present application in a rectangular coordinate system;
[0039] Figure 10 is a function curve diagram of the second first functional relationship provided in an embodiment of the present application in a rectangular coordinate system;
[0040] Figure 11 is a function curve diagram of the third first functional relationship provided in an embodiment of the present application in a rectangular coordinate system;
[0041] Figure 12 is a function curve diagram of a first corresponding relationship in a rectangular coordinate system provided by an embodiment of the present application;
[0042] Figure 13 It is a function curve diagram of the first first correspondence relationship, the second correspondence relationship and the third correspondence relationship in a rectangular coordinate system provided in an embodiment of the present application;
[0043] Figure 14 is a function curve diagram of the fourth first functional relationship provided in an embodiment of the present application in a rectangular coordinate system;
[0044] Figure 15 is a function curve diagram of the fifth first functional relationship provided in an embodiment of the present application in a rectangular coordinate system;
[0045] Figure 16 is a schematic diagram of a switching buffer provided in an embodiment of the present application;
[0046] Figure 17 is a function curve diagram of the second first correspondence relationship, the second correspondence relationship, and the third correspondence relationship in a rectangular coordinate system provided in an embodiment of the present application;
[0047] Figure 18is a function curve diagram of the third first correspondence relationship, the second correspondence relationship, and the third correspondence relationship in a rectangular coordinate system provided in an embodiment of the present application;
[0048] Figure 19 is a function curve diagram of the sixth first functional relationship provided in an embodiment of the present application in a rectangular coordinate system;
[0049] Figure 20 is a function curve diagram of the seventh first functional relationship provided in an embodiment of the present application in a rectangular coordinate system;
[0050] Figure 21 is a function curve diagram of the eighth first functional relationship provided in an embodiment of the present application in a rectangular coordinate system;
[0051] Figure 22 is a function curve diagram of the ninth first functional relationship provided in an embodiment of the present application in a rectangular coordinate system;
[0052] Figure 23 is a function curve diagram of the first and second functional relationships provided in an embodiment of the present application;
[0053] Figure 24 This is a function curve diagram of the second second functional relationship provided in an embodiment of the present application.
[0054] The meanings of the figures are as follows:
[0055] 10. Electronic equipment;
[0056] 110, wired charging port;
[0057] 120, wireless charging port;
[0058] 130. First switch module;
[0059] 140. Second switch module;
[0060] 150. Energy storage unit;
[0061] 160, processor;
[0062] 170. Power management chip;
[0063] 180, Electricity meter;
[0064] 20. Wireless charger;
[0065] 30. Wired charger. DETAILED DESCRIPTION
[0066] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0067] It should be understood that the “multiple” mentioned in this application refers to two or more. In the description of this application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; “and / or” in this article is merely a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of this application, words such as “first” and “second” are used to distinguish between identical or similar items with basically the same functions and effects. Those skilled in the art can understand that words such as “first” and “second” do not limit the quantity and execution order, and words such as “first” and “second” do not necessarily limit them to be different.
[0068] Before explaining the charging switching method provided in the embodiment of the present application in detail, its application scenario is first described.
[0069] Figure 1 FIG. 1 is a structural diagram of an electronic device 10 provided in an embodiment of the present application. The electronic device 10 shown in the figure is a mobile phone. Figure 1 As shown, with the development of wireless charging technology, electronic devices 10 such as mobile phones and tablet computers are equipped with a wired charging port 110 and a wireless charging port 120. The wired charging port 110 can be connected to a wired charger 30, thereby allowing the electronic device 10 to be charged by the wired charger 30. The wireless charging port 120 can be connected to a wireless charger 20, thereby allowing the electronic device 10 to be charged wirelessly by the wireless charger 20. Figure 2 and Figure 3 2 is a schematic structural diagram of two wireless chargers 20 provided in an embodiment of the present application.
[0070] like Figure 2 and Figure 3 As shown, in general, the wireless charger 20 can be made into a mobile phone holder (including Figure 2 The desktop mobile phone holder shown and Figure 3 The shape of the car-mounted mobile phone holder shown in the figure makes it convenient for the user to use the electronic device 10 while charging the electronic device 10 through the wireless charger 20.
[0071] Figure 4 and Figure 5 Schematic diagram of application scenarios of two electronic devices 10 provided in the embodiment of the present application. Figure 4 and Figure 5 As shown, in some application scenarios, the electronic device 10 may be connected to the wired charger 30 and the wireless charger 20 at the same time.
[0072] When the electronic device 10 is connected to both the wired charger 30 and the wireless charger 20 at the same time, that is, both the wired charging port 110 and the wireless charging port 120 of the electronic device 10 are capable of inputting power, in order to avoid safety hazards caused by simultaneous wired charging and wireless charging, the connection between the wireless charger 20 and the electronic device 10 may be disconnected and wired charging may be used.
[0073] However, with the development of wireless charging technology, the output power of the wireless charger 20 can often reach 50W (watts) or more. For example, the output power of some common wireless chargers 20 is 50W, 80W, 100W and 120W. Therefore, in some cases, the output power of the wired charger 30 connected to the electronic device 10 is less than the output power of the wireless charger 20. In this case, if the electronic device 10 has a low battery and urgently needs to be charged quickly, it is obvious that wireless charging is more in line with user needs. Based on this, directly abandoning wireless charging and choosing wired charging is more limited and reduces charging flexibility.
[0074] To this end, an embodiment of the present application provides a charging switching method, which is applied to an electronic device 10. When the electronic device 10 is simultaneously connected to a wired charger 30 and a wireless charger 20, the method can switch between wired charging and wireless charging according to the temperature of the electronic device 10, the power of the energy storage unit 150, the charging speed factor, and the charging heat factor, thereby improving the charging flexibility of the electronic device 10.
[0075] Before explaining the charging switching method provided in the embodiment of the present application in detail, the circuit structure of the electronic device 10 to which the charging switching method provided in the embodiment of the present application is applied is first explained in detail. In each embodiment of the present application, the connection between two electronic devices refers to an electrical connection. The electrical connection here refers to a connection between two electronic devices via a wire or wirelessly, so that electrical signals can be transmitted between the two electronic devices.
[0076] Figure 6 1 is a circuit diagram of an electronic device 10 provided in an embodiment of the present application. Figure 6 As shown, the electronic device 10 includes a wired charging port 110 , a first switch module 130 , a wireless charging port 120 , a second switch module 140 and an energy storage unit 150 .
[0077] The first switch module 130 is a three-terminal switch device comprising a first terminal, a second terminal, and a control terminal, the control terminal being used to control the conduction and disconnection between the first terminal and the second terminal. The first terminal of the first switch module 130 is connected to the wired charging port 110, and the second terminal of the first switch module 130 is connected to the energy storage unit 150. In other words, the first switch module 130 is connected between the wired charging port 110 and the energy storage unit 150, so that when the wired charging port 110 of the electronic device 10 is connected to the wired charger 30 and the first switch module 130 is turned on, the electronic device 10 is wiredly charged through the wired charger 30. The wired charging port 110 can be plugged into the output terminal of the wired charger 30. The connection between the wired charging port 110 and the wired charger 30 means that the input terminal of the wired charger 30 inputs power, and the output terminal of the wired charger 30 is plugged into the wired charging port 110.
[0078] The second switch module 140 is a three-terminal switch device, which includes a first terminal, a second terminal, and a control terminal. The control terminal is used to control the conduction and shutdown between the first terminal and the second terminal. The first terminal of the second switch module 140 is connected to the wireless charging port 120, and the second terminal of the second switch module 140 is connected to the energy storage unit 150. In other words, the second switch module 140 is connected between the wireless charging port 120 and the energy storage unit 150, so that when the wireless charging port 120 of the electronic device 10 is connected to the wireless charger 20 and the second switch module 140 is turned on, the electronic device 10 is wirelessly charged through the wireless charger 20. The wireless charging port 120 can be connected to the output terminal of the wireless charger 20 by electromagnetic induction. The connection between the wireless charging port 120 and the wireless charger 20 means that the input terminal of the wireless charger 20 inputs electrical energy (that is, the wireless charger 20 is connected to a power source such as AC power), and the output terminal of the wireless charger 20 is connected to the wireless charging port 120 by electromagnetic induction.
[0079] The energy storage unit 150 is used to store electrical energy. The energy storage unit 150 refers to a battery pack in the electronic device 10, which may include multiple lithium batteries connected in series or in parallel. In the embodiment of the present application, charging the electronic device 10 refers to charging the energy storage unit 150 of the electronic device 10.
[0080] The electronic device 10 also includes a processor 160, which is connected to the control end of the first switch module 130 to control the conduction and disconnection between the first end and the second end of the first switch module 130, that is, to control the conduction and disconnection of the first switch module 130. The processor 160 is also connected to the control end of the second switch module 140 to control the conduction and disconnection between the first end and the second end of the second switch module 140, that is, to control the conduction and disconnection of the second switch module 140. The processor 160 is used to execute the charging switching method provided in the embodiment of the present application. When executing the charging switching method, the processor 160 can control one of the first switch module 130 and the second switch module 140 to be turned on and the other to be turned off, thereby controlling the electronic device 10 to perform wired charging or wireless charging.
[0081] Figure 7 1 is a circuit diagram of another electronic device 10 provided in an embodiment of the present application. Figure 7 As shown, in some embodiments, the wired charging port 110 may be a universal serial bus (USB) Type-C interface. The wireless charging port 120 may be a wireless charging coil in the electronic device 10. The processor 160 may be a system on chip (SoC) in the electronic device 10, or may simply be the central processing unit (CPU) 160 in the electronic device 10.
[0082] The first switch module 130 and the second switch module 140 may both be three-terminal switch devices composed of metal oxide semiconductor field effect transistors (MOSFETs). In some embodiments, the first switch module 130 and the second switch module 140 may both include a plurality of MOSFETs. Figure 7 In the illustrated embodiment, the first switch module 130 includes two MOSFETs, both of which are P-type MOSFETs. The drains of the two MOSFETs are connected together. The source of one of the two MOSFETs serves as the first end of the first switch module 130 and is connected to the wired charging port 110. The source of the other of the two MOSFETs serves as the second end of the first switch module 130 and is connected to the energy storage unit 150. The gates of the two MOSFETs are connected together as the control end of the first switch module 130. The structure of the second switch module 140 is the same as that of the first switch module 130 and will not be repeated here. In other embodiments, the first switch module 130 and the second switch module 140 may each include only one MOSFET.
[0083] exist Figure 7 In the illustrated embodiment, the electronic device 10 further includes a power management chip 170. The power management chip 170 is connected between the second end of the first switch module 130 and the energy storage unit 150. When the wired charging port 110 of the electronic device 10 is connected to the wired charger 30 and the first switch module 130 is turned on, the power output by the wired charger 30 can be sequentially output to the energy storage unit 150 via the wired charging port 110, the first switch module 130, and the power management chip 170. The power management chip 170 is also connected between the second end of the second switch module 140 and the energy storage unit 150. When the wireless charging port 120 of the electronic device 10 is connected to the wireless charger 20 and the second switch module 140 is turned on, the power output by the wireless charger 20 can be sequentially output to the energy storage unit 150 via the wireless charging port 120, the second switch module 140, and the power management chip 170. The power management chip 170 is also connected between the control end of the first switch module 130 and the processor 160, and between the control end of the second switch module 140 and the processor 160, so that the processor 160 can control the conduction and shutdown of the first switch module 130 and the second switch module 140 through the power management chip 170.
[0084] exist Figure 7 In the illustrated embodiment, the electronic device 10 further includes a fuel meter 180, which is used to detect the amount of power in the energy storage unit 150. The fuel meter 180 is connected to the processor 160 so that the processor 160 can control the operation of the fuel meter 180 and obtain the amount of power in the energy storage unit 150 through the fuel meter 180. In some embodiments not shown, the electronic device 10 further includes a temperature detection circuit, which is used to detect the temperature of the electronic device 10. The processor 160 is connected to the temperature detection circuit so that the processor 160 can detect the temperature of the electronic device 10 through the temperature detection circuit. The temperature of the electronic device 10 may refer to the temperature of the entire electronic device 10, or may refer to the temperature of some components (such as a CPU, SoC, etc.) in the electronic device 10.
[0085] The charging switching method provided in the embodiment of the present application is explained in detail below.
[0086] Figure 8 This is a flow chart of a charging switching method provided by an embodiment of the present application. Figure 8 As shown, the charging switching method includes the following steps S110 and S120.
[0087] S110, when the wired charging port 110 is connected to the wired charger 30 and the wireless charging port 120 is connected to the wireless charger 20, if the output power of the wired charger 30 is less than the output power of the wireless charger 20, the processor 160 detects the temperature of the electronic device 10 and the power level of the energy storage unit 150.
[0088] As previously described, the connection between the wired charging port 110 and the wired charger 30 means that power is input to the input of the wired charger 30 and the output of the wired charger 30 is plugged into the wired charging port 110. For example, the wired charger 30 may include a power adapter and a charging cable connected to the power adapter. When the power adapter of the wired charger 30 is connected to the mains power supply and the charging cable is plugged into the wired charging port 110, the wired charging port 110 and the wired charger 30 are connected. In this case, if the first switch module 130 is turned on, the wired charger 30 charges the energy storage unit 150 of the electronic device 10. Generally, the wired charger 30 includes a first control chip. When the wired charging port 110 is connected to the wired charger 30, the processor 160 of the electronic device 10 can communicate with the first control chip of the wired charger 30 via a first communication protocol and obtain the output power of the wired charger 30. That is to say, when the processor 160 can communicate with the first control chip through the first communication protocol (that is, when the first communication protocol exists), the processor 160 of the electronic device 10 can determine that the wired charging port 110 is connected to the wired charger 30, and the processor 160 can determine the output power of the wired charger 30 through communication with the first control chip.
[0089] The connection between the wireless charging port 120 and the wireless charger 20 means that the input end of the wireless charger 20 inputs electrical energy, and the output end of the wireless charger 20 is connected to the wireless charging port 120 through electromagnetic induction. For example, the wireless charger 20 may include a power adapter and an electromagnetic coil connected to the power adapter. When the power adapter of the wireless charger 20 is connected to the mains power and the electromagnetic coil is inductively connected to the wireless charging port 120, the wireless charging port 120 is connected to the wireless charger 20. In this case, if the second switch module 140 is turned on, the wireless charger 20 charges the energy storage unit 150 of the electronic device 10. Generally, the wireless charger 20 has a second control chip. When the wireless charging port 120 is connected to the wireless charger 20, the processor 160 of the electronic device 10 can communicate with the second control chip of the wireless charger 20 through a second communication protocol and obtain the output power of the wireless charger 20. That is to say, when the processor 160 can communicate with the second control chip through the second communication protocol (that is, when the second communication protocol exists), the processor 160 of the electronic device 10 can determine that the wireless charging port 120 is connected to the wireless charger 20, and the processor 160 can determine the output power of the wireless charger 20 through communication with the second control chip.
[0090] After obtaining the output power of the wired charger 30 and the output power of the wireless charger 20, the processor 160 can determine the relative magnitude of the output power of the wired charger 30 and the output power of the wireless charger 20. If the output power of the wired charger 30 is greater than or equal to the output power of the wireless charger 20, this indicates that the charging speed of the wired charger 30 is greater than or equal to the charging speed of the wireless charger 20. In this case, because wireless charging requires electromagnetic induction through an electromagnetic coil, which generates significant heat loss, the processor 160 can control the first switch module 130 to be conductive and the second switch module 140 to be disconnected, thereby enabling the wired charger 30 to charge the energy storage unit 150 of the electronic device 10. If the output power of the wired charger 30 is less than the output power of the wireless charger 20, this indicates that the charging speed of the wired charger 30 is less than that of the wireless charger 20. In this case, the advantage of wired charging is lower heat loss, but the disadvantage is slower charging speed; the advantage of wireless charging is faster charging speed and lower heat loss. Based on this, after determining that the output power of the wired charger 30 is less than the output power of the wireless charger 20, the processor 160 can detect the temperature of the electronic device 10 and the power level of the energy storage unit 150, and flexibly control the first switch module 130 to be turned on and the second switch module 140 to be turned off (i.e., wired charging) or the second switch module 140 to be turned on and the first switch module 130 to be turned off (i.e., wireless charging) according to the temperature of the electronic device 10 and the power level of the energy storage unit 150.
[0091] In some specific embodiments, detecting the temperature of the electronic device 10 may be detecting the temperature of a CPU in the electronic device 10. The processor 160 may detect the temperature of the CPU in the electronic device 10 through a temperature detection circuit, and detect the power level of the energy storage unit 150 in the electronic device 10 through the power meter 180.
[0092] S120: The processor 160 controls one of the first switch module 130 and the second switch module 140 to be turned on and the other to be turned off according to the temperature of the electronic device 10, the power of the energy storage unit 150, and the first functional relationship.
[0093] The first functional relationship is a correspondence between temperature and power that is preset in the processor 160 and determined based on the charging speed factor and the charging heat factor. After detecting the temperature of the electronic device 10 and the power of the energy storage unit 150, the processor 160 can control one of the first switch module 130 and the second switch module 140 to be turned on and the other to be turned off according to the temperature of the electronic device 10, the power of the energy storage unit 150 and the first functional relationship, that is, to control the electronic device 10 to perform wired charging or wireless charging. In other words, the processor 160 can control the electronic device 10 to perform wired charging or wireless charging in combination with the charging speed factor and the charging heat factor of the electronic device 10. Among them, the first functional relationship includes one or more of a constant function, a linear function, a quadratic function, and an inverse proportional function.
[0094] The first functional relationship can be used to indicate the maximum temperature allowed when wireless charging is used at various power levels. In this case, when the processor 160 executes step S120, it can be divided into the following two different situations:
[0095] In the first scenario, after detecting the temperature of the electronic device 10 and the charge level of the energy storage unit 150, the processor 160 may: determine the temperature corresponding to the charge level of the energy storage unit 150 in the first functional relationship as a temperature threshold. If the temperature of the electronic device 10 is less than the temperature threshold, the processor 160 controls the second switch module 140 to turn on and the first switch module 130 to turn off. Conversely, if the temperature of the electronic device 10 is greater than or equal to the temperature threshold, the processor 160 controls the first switch module 130 to turn on and the second switch module 140 to turn off.
[0096] In the second case, after detecting the temperature of the electronic device 10 and the power level of the energy storage unit 150, the processor 160 may: determine the power level corresponding to the temperature of the electronic device 10 in the first functional relationship as a power threshold. If the power level of the energy storage unit 150 is less than the power threshold, the processor 160 controls the second switch module 140 to turn on and controls the first switch module 130 to turn off. If the power level of the energy storage unit 150 is greater than or equal to the power threshold, the processor 160 controls the first switch module 130 to turn on and the second switch module 140 to turn off.
[0097] If the above step S120 (including the above two different situations) is reflected in a plane rectangular coordinate system, then step S120 may specifically include the following steps S122 to S128.
[0098] At S122 , the processor 160 establishes a rectangular coordinate system with the temperature T as the horizontal axis and the charge C as the vertical axis.
[0099] S124 , the processor 160 generates a function curve corresponding to the first functional relationship in a rectangular coordinate system, and generates coordinate points corresponding to the temperature of the electronic device 10 and the power level of the energy storage unit 150 in the rectangular coordinate system.
[0100] S126 , if the coordinate point is located in the target area, the processor 160 controls the second switch module 140 to be turned on and controls the first switch module 130 to be turned off.
[0101] S128 , if the coordinate point is not located in the target area, the processor 160 controls the first switch module 130 to be turned on and controls the second switch module 140 to be turned off.
[0102] That is to say, the processor 160 can establish a plane rectangular coordinate system with temperature as the horizontal axis and power as the vertical axis, and generate a function curve corresponding to the first functional relationship in the plane rectangular coordinate system. At the same time, based on the temperature of the electronic device 10 and the power of the energy storage unit 150 detected by the processor 160 in step S110, the processor 160 can also generate coordinate points corresponding to the temperature of the electronic device 10 and the power of the energy storage unit 150 in the plane rectangular coordinate system. The target area is the area from the horizontal axis to the function curve corresponding to the first functional relationship. If the coordinate points corresponding to the temperature of the electronic device 10 and the power of the energy storage unit 150 are located in the target area (that is, the temperature of the electronic device 10 is less than the temperature threshold, or the power of the energy storage unit 150 is less than the power threshold), the charging factor is given priority, so the second switch module 140 is controlled to be turned on, and the wireless charger 20 with greater output power is used to charge the energy storage unit 150 of the electronic device 10. If the coordinate points corresponding to the temperature of the electronic device 10 and the power level of the energy storage unit 150 are not located within the target area (including the case where the coordinate points are located on the function curve, that is, the temperature of the electronic device 10 is greater than or equal to the temperature threshold, or the power level of the energy storage unit 150 is greater than or equal to the power threshold), the charging heat factor is given priority, and thus the first switch module 130 is controlled to be turned on, and the energy storage unit 150 of the electronic device 10 is charged using a wired charging method that generates less heat.
[0103] The expression of the first functional relationship and step S120 are illustrated below from three possible implementation methods.
[0104] Example 1, Figure 9 This is a function curve diagram of a first functional relationship in a rectangular coordinate system provided by an embodiment of the present application. Figure 9 As shown, the first functional relationship can be a linear function, and the expression of the first functional relationship is:
[0105] C=-1.6T+80,0≤T≤50
[0106] The unit of temperature T is °C (Celsius), and the unit of charge C is % (percentage). The target area is the shaded area shown in the figure.
[0107] For example, when the temperature of the electronic device 10 is 30°C and the charge of the energy storage unit 150 is 30%, the second switch module 140 is turned on, and the electronic device 10 performs wireless charging. Alternatively, when the temperature of the electronic device 10 is 10°C and the charge of the energy storage unit 150 is 50%, the second switch module 140 is turned on, and the electronic device 10 performs wireless charging. When the temperature of the electronic device 10 is 40°C and the charge of the energy storage unit 150 is 25%, the first switch module 130 is turned on, and the electronic device 10 performs wired charging. Alternatively, when the temperature of the electronic device 10 is 10°C and the charge of the energy storage unit 150 is 70%, the first switch module 130 is turned on, and the electronic device 10 performs wired charging.
[0108] Example 2, Figure 10 This is a function curve diagram of another first functional relationship provided in the embodiment of the present application in a rectangular coordinate system. Figure 10 As shown, the first functional relationship can be formed by combining a constant function and an inverse proportional function, and the expression of the first functional relationship is:
[0109]
[0110] The unit of temperature T is °C (Celsius), and the unit of charge C is % (percentage). The target area is the shaded area shown in the figure.
[0111] For example, when the temperature of the electronic device 10 is 10°C and the charge of the energy storage unit 150 is 70%, the second switch module 140 is turned on, and the electronic device 10 performs wireless charging. Alternatively, when the temperature of the electronic device 10 is 40°C and the charge of the energy storage unit 150 is 16%, the second switch module 140 is turned on, and the electronic device 10 performs wireless charging. When the temperature of the electronic device 10 is 40°C and the charge of the energy storage unit 150 is 80%, the first switch module 130 is turned on, and the electronic device 10 performs wired charging. Alternatively, when the temperature of the electronic device 10 is 20°C and the charge of the energy storage unit 150 is 70%, the first switch module 130 is turned on, and the electronic device 10 performs wired charging.
[0112] It is understandable that in Figure 9 and Figure 10In the illustrated embodiment, the temperature T has a value range of less than or equal to 50 degrees Celsius. Therefore, when the temperature of the electronic device 10 is greater than or equal to 50°C, the coordinate point is definitely not located within the target area. That is, when the temperature T is greater than or equal to 50°C, i.e., when the temperature of the electronic device 10 is relatively high, the heating factor associated with charging is prioritized. Therefore, the first switch module 130 is controlled to be on, and the energy storage unit 150 of the electronic device 10 is charged using a wired charging method that generates less heat. Similarly, the charge level C has a value range of less than or equal to 80%. Therefore, when the charge level of the electronic device 10 is greater than or equal to 80%, the coordinate point is definitely not located within the target area. That is, when the charge level of the electronic device 10 is greater than or equal to 80%, i.e., when the charge level of the electronic device 10 is relatively high, the heating factor associated with charging is prioritized. Therefore, the first switch module 130 is controlled to be on, and the energy storage unit 150 of the electronic device 10 is charged using a wired charging method that generates less heat.
[0113] Example 3, Figure 11 This is another function curve diagram of the first function relationship in the rectangular coordinate system provided by the embodiment of the present application. Figure 11 As shown, the first functional relationship can be formed by combining a constant function and a linear function, and the expression of the first functional relationship is:
[0114]
[0115] The unit of temperature T is °C (Celsius), and the unit of charge C is % (percentage). The target area is the shaded area shown in the figure.
[0116] Example 3 adds the temperature T greater than or equal to -20°C and less than 0°C to Example 1. When the temperature T is in this range, if the power level of the energy storage unit 150 is less than 100%, the energy storage unit 150 is always charged by wireless charging.
[0117] According to the above example, when the temperature of the electronic device 10 is within the range of greater than or equal to 0° C. and less than or equal to 50° C., the following truth table 1 is obtained:
[0118] Table 1
[0119]
[0120] That is, in the embodiment of the present application, when the temperature is within the range of greater than or equal to 0°C and less than or equal to 50°C, the lower the temperature of the electronic device 10 (close to 0°C) or the lower the charge of the energy storage unit 150 (close to 0 charge), the greater the probability that the coordinate point is located within the target area, that is, the greater the probability of using wireless charging. The higher the temperature of the electronic device 10 (close to 50°C) or the higher the charge of the energy storage unit 150 (close to 80%), the greater the probability that the coordinate point is not located within the target area, that is, the greater the probability of using wired charging. Among them, when the temperature of the electronic device 10 is low and the charge of the energy storage unit 150 is low (the temperature of the electronic device 10 is close to 0°C and the charge of the energy storage unit 150 is close to 0), the coordinate point is definitely located within the target area and wireless charging is used. When the temperature of the electronic device 10 is high and the charge of the energy storage unit 150 is high (the temperature of the electronic device 10 is close to 50°C and the charge of the energy storage unit 150 is close to 80%), the coordinate point is definitely not located within the target area and wired charging is used. When the temperature of the electronic device 10 is low and the power of the energy storage unit 150 is high (the temperature of the electronic device 10 is close to 0°C, and the power of the energy storage unit 150 is close to 80%); or, when the temperature of the electronic device 10 is high and the power of the energy storage unit 150 is low (the temperature of the electronic device 10 is close to 50°C, and the power of the energy storage unit 150 is close to 0%), the coordinate point may be located within the target area or outside the target area, that is, wired charging or wireless charging may be used.
[0121] In the embodiment of the present application, when the temperature is greater than or equal to 0°C and less than or equal to 50°C, the maximum value of the corresponding power in the first functional relationship is less than 100%, for example, it can be 90%, 85% or 80%. Figures 9 to 11 Taking the embodiment shown as an example, when the temperature is greater than or equal to 0°C and less than or equal to 50°C, the corresponding maximum value of the power in the first functional relationship is 80%. Therefore, when the temperature of the electronic device 10 is greater than or equal to 0°C and less than or equal to 50°C, if the power of the energy storage unit 150 is greater than or equal to 80%, the coordinate point must not be located within the target area. At this time, the processor 160 controls the first switch module 130 to turn on and the second switch module 140 to turn off, and the electronic device 10 performs wired charging. At the same time, the maximum value of the temperature in the first functional relationship is less than the safe operating temperature of the electronic device 10. The safe operating temperature of the electronic device 10 means that when the temperature of the electronic device 10 is greater than the safe operating temperature, the electronic device 10 stops working. Still based on Figures 9 to 11Taking the embodiment shown as an example, the maximum temperature in the first function relationship is 50°C, and the safe operating temperature of the electronic device 10 is 75°C. Therefore, when the temperature of the electronic device 10 is greater than or equal to 50°C, the coordinate point must not be located in the target area. At this time, the processor 160 controls the first switch module 130 to be turned on and the second switch module 140 to be turned off, and the electronic device 10 is charged using a wired charging method with less heat. In addition, in the embodiment of the present application, all areas with a temperature less than 0°C are target areas. That is to say, when the temperature of the electronic device 10 is very low (less than 0°C), wireless charging is always used. This charging switching method, when the electronic device 10 is connected to the wired charger 30 and the wireless charger 20 at the same time, can switch between wired charging and wireless charging according to the temperature of the electronic device 10, the power of the energy storage unit 150, the charging speed factor and the charging heat factor, thereby improving the charging flexibility of the electronic device 10.
[0122] In the embodiment of the present application, the processor 160 may pre-store a first corresponding relationship, a second corresponding relationship, and a third corresponding relationship.
[0123] When the processor 160 is operating, the first correspondence relationship may be constantly determined as the first functional relationship. Alternatively, the processor 160 may determine one of the first, second, and third correspondence relationships as the first functional relationship based on different time periods and the states of the first switch module 130 and the second switch module 140. The following describes these two situations using two different implementations as examples.
[0124] A first implementation manner: the processor 160 always determines the first corresponding relationship as a first functional relationship. Figure 12 This is a function curve diagram of a first corresponding relationship in a rectangular coordinate system provided by an embodiment of the present application. Figure 12 As shown, the first correspondence is the correspondence between temperature and power determined based on the charging speed factor and the charging heat factor. The expression of the first correspondence is pre-stored by the processor 160. For example, the expression of the first correspondence can be:
[0125] C=-1.6T+80,0≤T≤50
[0126] The unit of temperature T is °C (Celsius), and the unit of charge C is % (percentage).
[0127] In this case, when the processor 160 determines the first corresponding relationship as the first functional relationship, the function curve graph of the first functional relationship in the rectangular coordinate system can be as follows: Figure 9As shown. When the processor 160 is working, it can detect the temperature of the electronic device 10 and the power of the energy storage unit 150 at intervals of a first preset time length (such as 2 seconds, 3 seconds or 5 seconds), and generate coordinate points corresponding to the temperature of the electronic device 10 and the power of the energy storage unit 150 in the rectangular coordinate system after each detection of the temperature of the electronic device 10 and the power of the energy storage unit 150. If the coordinate point is located in the target area, the processor 160 controls the second switch module 140 to turn on, controls the first switch module 130 to turn off, and the electronic device 10 performs wireless charging. If the coordinate point is not located in the target area, the processor 160 controls the first switch module 130 to turn on, controls the second switch module 140 to turn off, and the electronic device 10 performs wired charging.
[0128] Second implementation manner: the processor 160 determines one of the first corresponding relationship, the second corresponding relationship, and the third corresponding relationship as the first functional relationship according to different time periods and the states of the first switch module 130 and the second switch module 140 .
[0129] First, the relationship between the first correspondence, the second correspondence, and the third correspondence is explained: Figure 13 It is a function curve diagram of a first corresponding relationship, a second corresponding relationship and a third corresponding relationship in a rectangular coordinate system provided in an embodiment of the present application. Figure 13 In , curve ① is the function curve of the first corresponding relationship, curve ② is the function curve of the second corresponding relationship, and curve ③ is the function curve of the third corresponding relationship. Figure 13 As shown, the first correspondence is the correspondence between temperature and power determined based on the charging speed factor and the charging heat factor. The second and third correspondences are both the correspondences between temperature and power determined based on the first correspondence. The maximum temperature in the second and third correspondences is the same as the maximum temperature in the first correspondence. When the temperature is greater than zero degrees and less than the maximum temperature, the power corresponding to the same temperature in the second correspondence is less than the power corresponding to the first correspondence; and the power corresponding to the same temperature in the third correspondence is greater than the power corresponding to the first correspondence.
[0130] In this case, the charging switching method provided in the embodiment of the present application may further include the following step S130 after step S110 and before step S120.
[0131] S130, the processor 160 determines one of the first corresponding relationship, the second corresponding relationship, and the third corresponding relationship as a first functional relationship based on the number of times the temperature of the electronic device 10 and the power of the energy storage unit 150 are detected, the state of the first switch module 130, and the state of the second switch module 140.
[0132] When the processor 160 executes the charging switching method provided in the embodiment of the present application, it can detect the temperature of the electronic device 10 and the power level of the energy storage unit 150 at intervals of a first preset duration (e.g., 2 seconds, 3 seconds, or 5 seconds). The "number of times the temperature of the electronic device 10 and the power level of the energy storage unit 150 are detected" in step S130 refers to the number of times the processor 160 detects the temperature of the electronic device 10 and the power level of the energy storage unit 150 each time the wired charging port 110 of the electronic device 10 is connected to the wired charger 30, the wireless charging port 120 is connected to the wireless charger 20, and the output power of the wired charger 30 is less than the output power of the wireless charger 20 (hereinafter referred to as "meeting the preset condition") . In other words, each time the preset condition is met, the number of times the processor 160 detects the temperature of the electronic device 10 and the power level of the energy storage unit 150 is reset and not accumulated; and while the preset condition continues to be met, the number of times the processor 160 detects the temperature of the electronic device 10 and the power level of the energy storage unit 150 is accumulated and not reset. For example, if the connection between the electronic device 10 and the wired charger 30 and the wireless charger 20 meets the preset conditions from 13:30 to 14:00 Beijing Time on July 20, 2022, and the processor 160 detects the temperature of the electronic device 10 and the power level of the energy storage unit 150 every 5 seconds, the processor 160 first detects the temperature of the electronic device 10 and the power level of the energy storage unit 150 at 13:30 on July 20, 2022, and detects the temperature of the electronic device 10 and the power level of the energy storage unit 150 a second time at 13:30:05 on July 20, 2022, and then, from 14:00 to 14:59:59 on July 20, 2022, the preset conditions are no longer met. From 15:00 to 16:00 Beijing Time on July 20, 2022, the preset conditions are again met, and the processor 160 detects the temperature of the electronic device 10 and the power level of the energy storage unit 150 every 5 seconds. The processor 160 detects the temperature of the electronic device 10 and the power of the energy storage unit 150 for the first time at 15:00 on July 20, 2022, and detects the temperature of the electronic device 10 and the power of the energy storage unit 150 for the second time at 15:00 on July 20, 2022, 0:05.
[0133] Each time the processor 160 detects the temperature of the electronic device 10 and the power level of the energy storage unit 150, it generates a corresponding coordinate point in the rectangular coordinate system. In the embodiment of the present application, the rectangular coordinate system is fixed. For ease of description, the coordinate point corresponding to the temperature of the electronic device 10 and the power level of the energy storage unit 150 detected for the first time is referred to as the first coordinate point, the coordinate point corresponding to the temperature of the electronic device 10 and the power level of the energy storage unit 150 detected for the second time is referred to as the second coordinate point... The coordinate point corresponding to the temperature of the electronic device 10 and the power level of the energy storage unit 150 detected for the Nth time is referred to as the Nth coordinate point, where N is a positive integer.
[0134] Step S130 may specifically include the following steps S132, S134, and S136. In the charging switching method of the embodiment of the present application, S132, S134, and S136 are performed one by one, and there is no order of precedence.
[0135] S132, when the wired charging port 110 is connected to the wired charger 30, the wireless charging port 120 is connected to the wireless charger 20, and the output power of the wired charger 30 is less than the output power of the wireless charger 20, if the processor 160 detects the temperature of the electronic device 10 and the power level of the energy storage unit 150 for the first time, the first corresponding relationship is determined as a first functional relationship.
[0136] When the preset condition is met, if the processor 160 detects the temperature of the electronic device 10 and the power of the energy storage unit 150 for the first time after the preset condition is met, the first corresponding relationship is determined as a first functional relationship. In this case, the function curve of the first functional relationship in the rectangular coordinate system can be as follows: Figure 9 At this time, when the processor 160 executes step S120, it can detect the temperature of the electronic device 10 and the power of the energy storage unit 150 according to the first detection. Figure 9 The corresponding first coordinate point is generated in the rectangular coordinate system shown. If the first coordinate point is within the target area, the processor 160 controls the second switch module 140 to be turned on and the first switch module 130 to be turned off, and the electronic device 10 performs wireless charging. If the first coordinate point is not within the target area, the processor 160 controls the first switch module 130 to be turned on and the second switch module 140 to be turned off, and the electronic device 10 performs wired charging.
[0137] S134, when the wired charging port 110 is connected to the wired charger 30, the wireless charging port 120 is connected to the wireless charger 20, and the output power of the wired charger 30 is less than the output power of the wireless charger 20, if the processor 160 is not detecting the temperature of the electronic device 10 and the power level of the energy storage unit 150 for the first time, then when the first switch module 130 is currently in the on state and the second switch module 140 is currently in the off state, the second corresponding relationship is determined to be the first functional relationship.
[0138] When the preset situation is met, if the processor 160 detects the temperature of the electronic device 10 and the power of the energy storage unit 150 for the Nth time (such as the first time), and the generated Nth coordinate point is not located in the target area, the processor 160 will control the first switch module 130 to be turned on and the second switch module 140 to be turned off according to the position of the Nth coordinate point. In this case, if the processor 160 detects the temperature of the electronic device 10 and the power of the energy storage unit 150 for the N+1th time, the processor 160 will determine the second corresponding relationship as the first functional relationship. At this time, the function curve diagram of the first functional relationship in the rectangular coordinate system can be as follows: Figure 14 As shown. In this way, the area occupied by the non-target area in the rectangular coordinate system can be expanded. After step S134, when the processor 160 executes step S120, it can detect the temperature of the electronic device 10 and the power of the energy storage unit 150 for the N+1th time. Figure 14 The corresponding N+1 coordinate point is generated in the rectangular coordinate system shown. If the N+1 coordinate point is located in the target area ( Figure 14 If the (N+1)th coordinate point is not within the target area, the processor 160 controls the first switch module 130 to be turned on and the second switch module 140 to be turned off, and the electronic device 10 performs wireless charging. If the (N+1)th coordinate point is not within the target area, the processor 160 controls the first switch module 130 to be turned on and the second switch module 140 to be turned off, and the electronic device 10 performs wired charging.
[0139] S136, when the wired charging port 110 is connected to the wired charger 30, the wireless charging port 120 is connected to the wireless charger 20, and the output power of the wired charger 30 is less than the output power of the wireless charger 20, if the processor 160 is not detecting the temperature of the electronic device 10 and the power level of the energy storage unit 150 for the first time, then when the first switch module 130 is currently in the off state and the second switch module 140 is currently in the on state, the third corresponding relationship is determined to be the first functional relationship.
[0140] When the preset situation is met, if the processor 160 detects the temperature of the electronic device 10 and the power of the energy storage unit 150 for the Nth time (such as the first time), and the generated Nth coordinate point is located in the target area, the processor 160 will control the first switch module 130 to turn off and control the second switch module 140 to turn on according to the position of the Nth coordinate point. In this case, if the processor 160 detects the temperature of the electronic device 10 and the power of the energy storage unit 150 for the N+1th time, the processor 160 will determine the third corresponding relationship as the first functional relationship. At this time, the function curve diagram of the first functional relationship in the rectangular coordinate system can be as follows: Figure 15 As shown. In this way, the area occupied by the target area in the rectangular coordinate system can be expanded. After step S136, when the processor 160 executes step S120, it can detect the temperature of the electronic device 10 and the power of the energy storage unit 150 for the N+1th time. Figure 15 The corresponding N+1 coordinate point is generated in the rectangular coordinate system shown. If the N+1 coordinate point is located in the target area ( Figure 15 If the (N+1)th coordinate point is not within the target area, the processor 160 controls the first switch module 130 to be turned on and the second switch module 140 to be turned off, and the electronic device 10 performs wireless charging. If the (N+1)th coordinate point is not within the target area, the processor 160 controls the first switch module 130 to be turned on and the second switch module 140 to be turned off, and the electronic device 10 performs wired charging.
[0141] That is, compared with the first embodiment, in the second embodiment, the area between the second correspondence relationship and the third correspondence relationship is used as a switching buffer zone. Figure 16 : is a schematic diagram of a switching buffer provided in an embodiment of the present application. Among them, the area between the first corresponding relationship and the second corresponding relationship can be referred to as the first buffer zone. In the process of executing the charging switching method of the present application, if the processor 160 needs to switch from a wired charging mode to a wireless charging mode (i.e., switching from only the first switch module 130 being turned on to only the second switch module 140 being turned on), when the coordinate point is located in the first buffer zone, the wired charging mode is still adopted, that is, only the first switch module 130 is kept turned on. Similarly, the area between the first corresponding relationship and the third corresponding relationship can be referred to as the second buffer zone. In the process of executing the charging switching method of the present application, if the processor 160 needs to switch from a wireless charging mode to a wired charging mode (i.e., switching from only the second switch module 140 being turned on to only the first switch module 130 being turned on), when the coordinate point is located in the second buffer zone, the wireless charging mode is still adopted, that is, the second switch module 140 is kept turned on. In this embodiment, by setting a switching buffer zone, the electronic device 10 can be prevented from repeatedly switching between wired charging and wireless charging, thereby protecting the energy storage unit 150.
[0142] It is understandable that in the above description of the second embodiment, only the condition "when the temperature is greater than zero degrees and less than the maximum temperature" is defined. The amount of electricity corresponding to the same temperature in the second correspondence is less than the amount of electricity corresponding to the first correspondence, and the amount of electricity corresponding to the same temperature in the third correspondence is greater than the amount of electricity corresponding to the first correspondence. In some embodiments, Figure 17 This is another function curve diagram of the first corresponding relationship, the second corresponding relationship and the third corresponding relationship in the rectangular coordinate system provided by the embodiment of the present application. Figure 17 As shown, for the case where the temperature is less than or equal to zero degrees and the temperature is the maximum temperature, the amount of electricity corresponding to the same temperature in the second correspondence relationship may be less than the amount of electricity corresponding to the first correspondence relationship, and the amount of electricity corresponding to the same temperature in the third correspondence relationship may be greater than the amount of electricity corresponding to the first correspondence relationship. In other embodiments, Figure 18 This is another function curve diagram of the first corresponding relationship, the second corresponding relationship and the third corresponding relationship in the rectangular coordinate system provided by the embodiment of the present application. Figure 18 As shown, for the case where the temperature is less than or equal to zero degrees and the temperature is the maximum temperature, the power corresponding to the same temperature in the second corresponding relationship and the third corresponding relationship is the same as the power corresponding to the first corresponding relationship.
[0143] In some specific embodiments, such as Figure 18 As shown, when the temperature is less than 0°C, the expressions of the first corresponding relationship, the second corresponding relationship, and the third corresponding relationship are all:
[0144] C=100,-20≤T<0
[0145] The unit of temperature T is °C (Celsius), and the unit of charge C is %. That is, when the temperature of the electronic device 10 is less than 0°C and the charge of the energy storage unit 150 is less than 100%, the electronic device 10 is always charged by wireless charging.
[0146] It is understood that in the above description of the two different embodiments, within the temperature range greater than zero degrees and less than the maximum temperature, the first correspondence is a linear function. In other embodiments, within the temperature range greater than zero degrees and less than the maximum temperature, the first correspondence may include one or more of a constant function, a linear function, a quadratic function, and an inverse proportional function, which will not be described in detail.
[0147] In an embodiment of the present application, the processor 160 can also adjust the first functional relationship according to the physical state of the electronic device 10. The physical state here includes one or more of the following six types: (1) the temperature change rate of the electronic device 10, (2) the output power of the energy storage unit 150 within the third preset time length, (3) the working state of the display screen of the electronic device 10, (4) the current capacity percentage of the energy storage unit 150, (5) the temperature of the energy storage unit 150, and (6) the charging protocol between the electronic device 10 and the charger (including the wired charger 30 and the wireless charger 20). The following is an explanation of the adjustment method of the first functional relationship in the charging switching method of the embodiment of the present application for each physical state. The following six different adjustment methods can be combined with each other.
[0148] (1) The processor 160 adjusts the first functional relationship according to the temperature change rate of the electronic device 10.
[0149] Specifically, the wireless charger 20 is typically equipped with a fan for heat dissipation. When power is input to the input port of the wireless charger 20, or when the wireless charging port 120 is connected to the wireless charger 20, the fan operates to dissipate heat from the wireless charger 20 and the electronic device 10. In this case, the wireless charger 20 affects the temperature change rate of the electronic device 10. Based on this, the first functional relationship can be adjusted based on the temperature change rate of the electronic device 10.
[0150] In this adjustment mode, the charging switching method further includes the following steps S210 to S230.
[0151] S210 , the processor 160 detects a temperature change rate of the electronic device 10 .
[0152] The temperature change rate is used to represent the temperature change amount of the electronic device 10 within the second preset time period. In the embodiment of the present application, the processor 160 can detect the temperature change rate of the electronic device 10 through the following two different implementations.
[0153] In the first embodiment, step S210 may specifically include the following steps S211 and S212.
[0154] S211 : The processor 160 detects the temperature of the electronic device 10 at intervals of a second preset time period.
[0155] The second preset duration here may be equal to or different from the first preset duration. That is, when the processor 160 executes steps S110 to S120, it may detect the temperature of the electronic device 10 once every first preset duration (e.g., 3 seconds). When the processor 160 executes step S211, it may detect the temperature of the electronic device 10 once every second preset duration (which may be 3 seconds, 1 minute, or 3 minutes).
[0156] S212: The processor 160 obtains a temperature change rate of the electronic device 10 according to two adjacent detected temperatures of the electronic device 10 and a second preset time period.
[0157] The temperature change rate of the electronic device 10 can be a continuously changing parameter. For example, when the processor 160 executes step S211, it detects the temperature of the electronic device 10 every 3 minutes. If the processor 160 detects that the temperature of the electronic device 10 is 20°C at 10:10 Beijing time on July 20, 2022, and detects that the temperature of the electronic device 10 is 20.5°C at 10:13 Beijing time on July 20, 2022. Then the processor 160 can obtain the temperature change rate of the electronic device 10 as 0.5°C / 3min based on 20.5°C, 20°C and 3min. If the processor 160 detects that the temperature of the electronic device 10 is 20.7°C at 10:16 Beijing time on July 20, 2022, it can be obtained that the change rate of the electronic device 10 is 0.2°C / 3min.
[0158] In a second embodiment, the fan in the wireless charger 20 is connected to the second control chip in the wireless charger 20, so that the second control chip can detect the rotation speed of the fan in the wireless charger 20. In this case, step S210 may specifically include the following steps S213 to S215.
[0159] S213 , when the wireless charging port 120 is connected to the wireless charger 20 , the processor 160 transmits a query signal to the wireless charger 20 , where the query signal is used to query the fan speed of the wireless charger 20 .
[0160] As previously described, when the wireless charging port 120 is connected to the wireless charger 20, the processor 160 of the electronic device 10 can communicate with the second control chip of the wireless charger 20 via a second communication protocol. In this embodiment, the communication between the processor 160 and the second control chip can include the processor 160 transmitting a query signal to the wireless charger 20. The query signal is used to query the fan speed of the wireless charger 20.
[0161] S214 , the processor 160 receives a feedback signal returned by the wireless charger 20 , where the feedback signal includes a fan speed of the wireless charger 20 .
[0162] The feedback signal is a signal that the second control chip outputs to the processor 160 of the electronic device 10 according to the query signal after receiving the query signal. The feedback signal includes the fan speed of the wireless charger 20.
[0163] At S215 , the processor 160 determines the temperature change rate of the electronic device 10 according to the fan speed of the wireless charger 20 .
[0164] The processor 160 may pre-store a correspondence between fan speed and temperature change rate. Thus, after obtaining the fan speed of the wireless charger 20, the processor 160 can determine the temperature change rate of the electronic device 10 based on the fan speed of the wireless charger 20. In some embodiments, the correspondence between the fan speed and the temperature change rate may be a linear function, which will not be further described.
[0165] S220, if the temperature change rate of the electronic device 10 is within the preset change rate range, the processor 160 adjusts the first functional relationship so that the power corresponding to each temperature in the first functional relationship increases by a first preset power value.
[0166] S230: If the temperature change rate of the electronic device 10 is not within the preset change rate range, the processor 160 adjusts the first functional relationship so that the power corresponding to each temperature in the first functional relationship is reduced by a first preset power value.
[0167] After obtaining the temperature change rate of the electronic device 10 , the processor 160 may adjust the first functional relationship according to the temperature change rate of the electronic device 10 .
[0168] In some embodiments, the above-mentioned preset change rate range may include only one range, such as [A, +∞). In this case, if the temperature change rate of the electronic device 10 is within the preset change rate range, the processor 160 can increase the power corresponding to each temperature in the first functional relationship by the first preset power value. The first preset power value here can be, for example, 3%, 5% or 10%. In this case, Figure 9 Taking the first functional relationship shown in FIG. 1 as an example, the function curve diagram of the adjusted first functional relationship in the rectangular coordinate system can be as follows: Figure 19 、 Figure 20 or Figure 21 As shown. Among them, Figure 19 In the embodiment shown, after adjusting the first functional relationship, the maximum temperature of the first functional relationship remains unchanged, and the maximum amount of electricity corresponding to a temperature greater than or equal to zero degrees in the first functional relationship remains unchanged. Figure 20In the embodiment shown, after adjusting the first functional relationship, the maximum temperature of the first functional relationship remains unchanged, but the maximum value of the amount of electricity corresponding to the temperature greater than or equal to zero degrees in the first functional relationship increases. Figure 21 In the illustrated embodiment, after the first functional relationship is adjusted, the maximum temperature of the first functional relationship increases, and the maximum value of the electric quantity corresponding to the temperature greater than or equal to zero degrees in the first functional relationship also increases.
[0169] If the temperature change rate of the electronic device 10 is not within the preset change rate range, the processor 160 can reduce the power corresponding to each temperature in the first functional relationship by the first preset power value. Figure 9 Taking the first functional relationship shown in FIG. 1 as an example, the function curve diagram of the adjusted first functional relationship in the rectangular coordinate system can be as follows: Figure 22 That is, after adjusting the first functional relationship, the maximum temperature of the first functional relationship becomes smaller, and the maximum value of the electric quantity corresponding to the temperature greater than or equal to zero degrees in the first functional relationship also becomes smaller.
[0170] In this embodiment, the preset change rate range includes only one range. In this way, when the processor 160 adjusts the first functional relationship according to the temperature change rate of the electronic device 10, the process of adjusting the first functional relationship by the processor 160 can be simplified, thereby increasing the speed at which the processor 160 adjusts the first functional relationship.
[0171] In other embodiments, the above-mentioned preset change rate range includes multiple sub-ranges, and the first preset power value includes multiple sub-power values. For example, the preset change rate range includes a first sub-range [A, B), a second sub-range [B, D) and a third sub-range [D, +∞). The first preset power value includes a first sub-power value a corresponding to the first sub-range, a second sub-power value b corresponding to the second sub-range, and a third sub-power value d corresponding to the third sub-range. Wherein, A<B<D, and a<b<d, for example, a is 3%, b is 5%, and d is 8%. In this case, if the temperature change rate of the electronic device 10 is within the first sub-range, the processor 160 can increase the power corresponding to each temperature in the first functional relationship by a. If the temperature change rate of the electronic device 10 is within the second sub-range, the processor 160 can increase the power corresponding to each temperature in the first functional relationship by b. If the temperature change rate of the electronic device 10 is within the third sub-range, the processor 160 can increase the power corresponding to each temperature in the first functional relationship by d. The function curve diagram of the adjusted first functional relationship in the rectangular coordinate system can be as follows: Figure 19 、 Figure 20 or Figure 21 As shown, no further details are given.
[0172] If the temperature change rate of the electronic device 10 is not within the preset change rate range, the processor 160 can reduce the power corresponding to each temperature in the first functional relationship by a certain power value. The reduced first preset power value can be any one of a, b, and d. The function curve diagram of the adjusted first functional relationship in the rectangular coordinate system can be as follows: Figure 22 shown.
[0173] In this embodiment, the preset rate of change range includes multiple sub-ranges, and the first preset power value also includes multiple sub-power values. Thus, when the processor 160 adjusts the first functional relationship based on the temperature change rate of the electronic device 10, it can achieve relatively precise adjustment of the first functional relationship. This allows the processor 160 to more accurately control wired or wireless charging of the electronic device 10 based on the temperature of the electronic device 10 and the power level of the energy storage unit 150.
[0174] (2) The processor 160 adjusts the first functional relationship according to the output work of the energy storage unit 150 within the third preset time period.
[0175] Different from the first preset duration and the second preset duration, the third preset duration may be a longer period of time, for example, one day or one week.
[0176] Specifically, different users have different habits of using the electronic device 10. For example, for construction workers or artists, the frequency of use of the electronic device 10 may be low. In this case, the output power of the energy storage unit 150 within the third preset time length is small, and the energy storage unit 150 also has a small demand for electricity. For online car-hailing drivers, since they need to use navigation applications (applications, APPs) for a long time, the frequency of use of the electronic device 10 is high, and the energy storage unit 150 of the electronic device 10 may be in a high-power output state for a long time. In this case, the output power of the energy storage unit 150 within the third preset time length is large, and the energy storage unit 150 also has a large demand for electricity. Based on this, the first functional relationship can be adjusted according to the output power of the energy storage unit 150 within the third preset time length.
[0177] In this adjustment mode, the charging switching method further includes the following steps S310 to S330.
[0178] S310: The processor 160 detects the output power of the energy storage unit 150 within a third preset time period.
[0179] Taking the third preset time period of 24 hours as an example, in some embodiments, the processor 160 may detect the output power of the energy storage unit 150 within any 24-hour period, thereby obtaining the "output power of the energy storage unit 150 within the third preset time period" in step S310. In other embodiments, the processor 160 may also detect the output power of the energy storage unit 150 within multiple consecutive 24-hour periods, thereby obtaining an average output power of the energy storage unit 150 within each 24-hour period, and use this average as the "output power of the energy storage unit 150 within the third preset time period" in step S310.
[0180] S320, if the output power of the energy storage unit 150 within the third preset time period is within the preset power range, the processor 160 adjusts the first functional relationship so that the power corresponding to each temperature in the first functional relationship increases by a second preset power value.
[0181] S330, if the output power of the energy storage unit 150 within the third preset time period is not within the preset power range, the processor 160 adjusts the first functional relationship so that the power corresponding to each temperature in the first functional relationship is reduced by a second preset power value.
[0182] In some embodiments, the preset power range may include only one range, such as [E, +∞). In this case, if the "output power of the energy storage unit 150 within the third preset time period" obtained in step S310 is within the preset power range, the processor 160 can increase the power corresponding to each temperature in the first functional relationship by the second preset power value. The second preset power value here may be equal to the above-mentioned first preset power value, or it may not be equal to the above-mentioned first preset power value. For example, the second preset power value may be 3%, 5% or 8%. Figure 9 Taking the first functional relationship shown in FIG. 1 as an example, the function curve diagram of the adjusted first functional relationship in the rectangular coordinate system can be as follows: Figure 19 、 Figure 20 or Figure 21 shown.
[0183] If the output power of the energy storage unit 150 within the third preset time period obtained in step S310 is not within the preset power range, the processor 160 can reduce the power corresponding to each temperature in the first functional relationship by the second preset power value. Figure 9 Taking the first functional relationship shown in FIG. 1 as an example, the function curve diagram of the adjusted first functional relationship in the rectangular coordinate system can be as follows: Figure 22 shown.
[0184] In this embodiment, the preset power range includes only one range. Thus, when the processor 160 adjusts the first functional relationship based on the output power of the energy storage unit 150 within the third preset time period, the process of adjusting the first functional relationship by the processor 160 can be simplified, thereby increasing the speed at which the processor 160 adjusts the first functional relationship.
[0185] In other embodiments, the preset power range may also include multiple sub-ranges, and the second preset power value includes multiple sub-power values. The multiple sub-ranges of the preset power range correspond one-to-one to the multiple sub-power values of the second preset power value, so that when the "output power of the energy storage unit 150 within the third preset time length" obtained in step S310 is within any sub-range of the preset power range, the processor 160 increases the power corresponding to each temperature in the first functional relationship by the corresponding sub-power value. If the "output power of the energy storage unit 150 within the third preset time length" obtained in step S310 is not within any sub-range of the preset power range, the processor 160 reduces the power corresponding to each temperature in the first functional relationship by a certain power value. The reduced power value can be any sub-power value in the second preset power value.
[0186] In this embodiment, the preset power range includes multiple sub-ranges, and the second preset power value also includes multiple sub-power values. Thus, when the processor 160 adjusts the first functional relationship based on the output power of the energy storage unit 150 within the third preset time period, it can achieve relatively precise adjustment of the first functional relationship. This allows the processor 160 to more accurately control wired or wireless charging of the electronic device 10 based on the temperature of the electronic device 10 and the power level of the energy storage unit 150.
[0187] (3) The processor 160 adjusts the first functional relationship according to the working state of the display screen of the electronic device 10.
[0188] When executing steps S110 to S120, the processor 160 can obtain the working state of the display screen in real time and adjust the first functional relationship in real time according to the working state of the display screen. Specifically, when the working state of the display screen is the screen-on state, such as when the user uses the electronic device 10 to watch a TV series, considering that the electronic device 10 is prone to heat, the power values corresponding to each temperature in the first functional relationship can be reduced (that is, it is more inclined to adopt a wired charging method with less heat). When the working state of the display screen is the screen-off state, the power values corresponding to each temperature in the first functional relationship can be increased.
[0189] In this adjustment mode, the charging switching method further includes the following steps S410 to S430.
[0190] S410 , the processor 160 obtains the operating status of the display screen of the electronic device 10 .
[0191] The working state of the display screen of the electronic device 10 includes a screen-off state and a screen-on state. Generally, since the work of the display screen requires the support of the processor 160, the processor 160 can directly obtain the working state of the display screen of the electronic device 10 in real time.
[0192] S420, if the working state of the display screen of the electronic device 10 is the screen-off state, the processor 160 adjusts the first functional relationship so that the power corresponding to each temperature in the first functional relationship increases by a third preset power value.
[0193] S430, if the working state of the display screen of the electronic device 10 is the screen-on state, the processor 160 adjusts the first functional relationship so that the power corresponding to each temperature in the first functional relationship is reduced by a third preset power value.
[0194] The third preset power value may be equal to the first preset power value, or may be different from the first preset power value. For example, the third preset power value may be 3%, 5%, or 8%. Figure 9 As an example of the first functional relationship shown in FIG. 1 , it can be obtained that: if the current display screen is in the off state, the first functional relationship can be adjusted so that the function curve graph of the current first functional relationship in the rectangular coordinate system can be as follows: Figure 19 、 Figure 20 or Figure 21 On the contrary, if the current display screen is in the bright screen state, the first functional relationship can be adjusted so that the function curve of the current first functional relationship in the rectangular coordinate system can be as follows: Figure 22 shown.
[0195] (4) The processor 160 adjusts the first functional relationship according to the current capacity percentage of the energy storage unit 150.
[0196] Specifically, as the usage time of the electronic device 10 increases, the capacity percentage of the energy storage unit 150 of the electronic device 10 will gradually decrease. Taking the standard capacity of the energy storage unit 150 of the electronic device 10 as 4500mAh (milliampere-hours) as an example, when the electronic device 10 is first used, the capacity of its energy storage unit 150 is 4500mAh. After the electronic device 10 has been used for two years, the capacity of its energy storage unit 150 may drop to 3600mAh, which is 80% of the standard capacity. After the electronic device 10 has been used for four years, the capacity of its energy storage unit 150 may drop to 3150mAh, which is 70% of the standard capacity. Based on this, the first functional relationship can be adjusted according to the current capacity percentage of the energy storage unit 150.
[0197] It should be noted that in this adjustment method, the percentage of the current capacity of the energy storage unit 150 is not equal to the charge in steps S110 to S120. For example, when the capacity of the energy storage unit 150 is 4500mAh, if the charge value in the energy storage unit 150 is 4050mAh, the charge value of the energy storage unit 150 is 90%. If the charge value in the energy storage unit 150 is 4500mAh, the charge value of the energy storage unit 150 is 100%. When the capacity of the energy storage unit 150 drops to 3600mAh, if the charge value in the energy storage unit 150 is 3240mAh, the charge value of the energy storage unit 150 is 90%. If the charge value in the energy storage unit 150 is 3600mAh, the charge value of the energy storage unit 150 is 100%. In other words, the charge value of the energy storage unit 150 (in %) is the percentage of the charge value in the energy storage unit 150 to the current capacity of the energy storage unit 150. The current capacity percentage of the energy storage unit 150 is the percentage value of the current capacity of the energy storage unit 150 to the standard capacity of the energy storage unit 150 .
[0198] In this adjustment mode, the charging switching method further includes the following steps S510 to S530.
[0199] S510 , the processor 160 detects the current capacity percentage of the energy storage unit 150 , where the current capacity percentage is obtained by dividing the current capacity of the energy storage unit 150 by the standard capacity of the energy storage unit 150 .
[0200] The processor 160 can detect the current capacity of the energy storage unit 150 through the fuel gauge 180, and the processor 160 can store the standard capacity of the energy storage unit 150. After the processor 160 divides the current capacity of the energy storage unit 150 by the standard capacity of the energy storage unit 150, the current capacity percentage of the energy storage unit 150 can be obtained.
[0201] S520: The processor 160 obtains an adjusted power corresponding to the current capacity percentage in a second functional relationship, where the second functional relationship is a correspondence between the capacity percentage and the adjusted power.
[0202] The second functional relationship is a correspondence between capacity percentage and regulated power preset in the processor 160. After detecting the current capacity percentage of the energy storage unit 150, the processor 160 can obtain the corresponding regulated power in the second functional relationship according to the current capacity percentage.
[0203] The expression of the second functional relationship and step S520 are described below with examples from two possible implementations.
[0204] Example 1, Figure 23 This is a function curve diagram of a second functional relationship provided in an embodiment of the present application. Figure 23 As shown, the second functional relationship can be a linear function, and the expression of the second functional relationship is:
[0205] k=0.4t-32,70≤t≤100
[0206] Wherein, t is the capacity percentage, the unit is %; k is the adjusted power, the unit is %. That is to say, in this example, the second functional relationship is greater than the preset percentage (the preset percentage is Figure 23 In the second functional relationship shown, a capacity percentage of 80% corresponds to a regulated power level greater than zero; a capacity percentage equal to a preset percentage corresponds to a regulated power level equal to zero; and a capacity percentage less than the preset percentage corresponds to a regulated power level less than zero. In other embodiments, the preset percentage may also be 90%, 85%, or 75%.
[0207] according to Figure 23 As shown in the second functional relationship, when the current capacity percentage of the energy storage unit 150 obtained by the processor 160 is 100%, the corresponding adjusted power is 8%. When the current capacity percentage of the energy storage unit 150 obtained by the processor 160 is 70%, the corresponding adjusted power is -4%.
[0208] Example 2, Figure 24 This is another function curve diagram of the second function relationship provided by the embodiment of the present application. Figure 24 As shown, the second functional relationship can be a linear function, and the expression of the second functional relationship is:
[0209] 70≤t≤100
[0210] Wherein, t is the capacity percentage, in %; k is the adjusted power, in %. That is to say, in this example, when the capacity percentage is less than 100% in the second functional relationship, the adjusted power corresponding to the capacity percentage is always less than zero, and the smaller the capacity percentage, the smaller the corresponding adjusted power.
[0211] according to Figure 24 As shown in the second functional relationship, when the current capacity percentage of the energy storage unit 150 obtained by the processor 160 is 100%, the corresponding adjusted power is 0. When the current capacity percentage of the energy storage unit 150 obtained by the processor 160 is 70%, the corresponding adjusted power is -10%.
[0212] In some other embodiments, the second functional relationship includes one or more of a constant function, a linear function, a quadratic function, and an inverse proportional function. In the second functional relationship, the value range of the capacity percentage t can be (0, 100%).
[0213] S530: The processor 160 adjusts the first functional relationship according to the adjusted power.
[0214] After the processor 160 obtains the adjusted power corresponding to the current capacity percentage, it can adjust the first functional relationship according to the adjusted power obtained in step S520. For example, if the adjusted power obtained in step S520 is 8%, the processor 160 can increase the power corresponding to each temperature in the first functional relationship by 8%. The function curve of the adjusted first functional relationship in the rectangular coordinate system can be as follows: Figure 19 、 Figure 20 or Figure 21 If the adjusted power obtained in step S520 is -4%, the processor 160 can reduce the power corresponding to each temperature in the first functional relationship by 4%. The function curve of the adjusted first functional relationship in the rectangular coordinate system can be as follows: Figure 22 That is to say, taking the expression of the first functional relationship as C=-1.6T+80, 0≤T≤50 and the expression of the second functional relationship as k=0.4t-32, 70≤t≤100 as an example, the expression of the first functional relationship after adjustment can be: C Y =C+k.
[0215] For example: Figure 9 The first functional relationship shown is the first functional relationship before adjustment, taking the adjustment of power to 8% as an example. If the temperature of the electronic device 10 is 40°C and the power of the energy storage unit 150 is 20%, then before adjusting the first functional relationship, in this case, the processor 160 will control the first switch module 130 to be turned on and the second switch module 140 to be turned off, that is, the electronic device 10 adopts a wired charging method. After adjusting the first functional relationship (that is, the power corresponding to each temperature in the first functional relationship is increased by 8%), in this case, the processor 160 will control the first switch module 130 to be turned off and the second switch module 140 to be turned on, that is, the electronic device 10 adopts a wireless charging method.
[0216] by Figure 9 The first functional relationship shown is the first functional relationship before adjustment, taking the adjustment of power to -8% as an example. If the temperature of the electronic device 10 is 40°C and the power of the energy storage unit 150 is 15%, then before adjusting the first functional relationship, in this case, the processor 160 will control the first switch module 130 to be turned off and the second switch module 140 to be turned on, that is, the electronic device 10 adopts wireless charging. After adjusting the first functional relationship (that is, the power corresponding to each temperature in the first functional relationship is reduced by 8%), in this case, the processor 160 will control the first switch module 130 to be turned on and the second switch module 140 to be turned off, that is, the electronic device 10 adopts wired charging.
[0217] (5) The processor 160 adjusts the first functional relationship according to the temperature of the energy storage unit 150 .
[0218] Specifically, when the processor 160 executes steps S110 to S120, the temperature of the electronic device 10 obtained may be the temperature of the CPU in the electronic device 10. When the energy storage unit 150 of the electronic device 10 is charged by the wired charger 30 or the wireless charger 20, the energy storage unit 150 also generates heat. Based on this, the first functional relationship can be adjusted according to the temperature of the energy storage unit 150.
[0219] In this adjustment mode, the charging switching method further includes the following steps S610 to S630.
[0220] S610 , the processor 160 detects the temperature of the energy storage unit 150 .
[0221] The processor 160 may detect the temperature of the energy storage unit 150 through a temperature detection circuit, or may detect the temperature of the energy storage unit 150 through an electricity meter 180 .
[0222] S620: If the temperature of the energy storage unit 150 is within the preset temperature range, the processor 160 adjusts the first functional relationship so that the power corresponding to each temperature in the first functional relationship increases by a fourth preset power value.
[0223] S630: If the temperature of the energy storage unit 150 is not within the preset temperature range, the processor 160 adjusts the first functional relationship so that the power corresponding to each temperature in the first functional relationship is reduced by a fourth preset power value.
[0224] In some embodiments, the preset temperature range may include only one range, such as [F, +∞). In this case, if the "temperature of the energy storage unit 150" obtained in step S610 is within the preset temperature range, the processor 160 can increase the power corresponding to each temperature in the first functional relationship by a fourth preset power value. The fourth preset power value here may be equal to the above-mentioned first preset power value, or may not be equal to the above-mentioned first preset power value. For example, the fourth preset power value may be 3%, 5%, or 8%. Figure 9 Taking the first functional relationship shown in FIG. 1 as an example, the function curve diagram of the adjusted first functional relationship in the rectangular coordinate system can be as follows: Figure 19 、 Figure 20 or Figure 21 shown.
[0225] If the "temperature of the energy storage unit 150" obtained in step S610 is not within the preset temperature range, the processor 160 can reduce the power corresponding to each temperature in the first functional relationship by a fourth preset power value. Figure 9Taking the first functional relationship shown in FIG. 1 as an example, the function curve diagram of the adjusted first functional relationship in the rectangular coordinate system can be as follows: Figure 22 shown.
[0226] In this embodiment, the preset temperature range includes only one range. In this way, when the processor 160 adjusts the first functional relationship according to the temperature of the energy storage unit 150, the process of adjusting the first functional relationship by the processor 160 can be simplified, thereby increasing the speed of the processor 160 adjusting the first functional relationship.
[0227] In other embodiments, the preset temperature range may also include multiple sub-ranges, and the fourth preset power value includes multiple sub-power values. The multiple sub-ranges of the preset temperature range correspond one-to-one to the multiple sub-power values of the fourth preset power value, so that when the "temperature of the energy storage unit 150" obtained in step S610 is within any sub-range of the preset temperature range, the processor 160 increases the power corresponding to each temperature in the first functional relationship by the corresponding sub-power value. If the "temperature of the energy storage unit 150" obtained in step S610 is not within any sub-range of the preset temperature range, the processor 160 reduces the power corresponding to each temperature in the first functional relationship by a certain power value. The reduced power value can be any sub-power value in the fourth preset power value.
[0228] In this embodiment, the preset temperature range includes multiple sub-ranges, and the fourth preset power level also includes multiple sub-power levels. Thus, when the processor 160 adjusts the first functional relationship based on the temperature of the energy storage unit 150, it can achieve relatively precise adjustment of the first functional relationship. This allows the processor 160 to more accurately control wired or wireless charging of the electronic device 10 based on the temperature of the electronic device 10 and the power level of the energy storage unit 150.
[0229] (6) The processor 160 adjusts the first functional relationship according to the charging protocol between the electronic device 10 and the charger.
[0230] Specifically, after the electronic device 10 is connected to the charger, the electronic device 10 and the charger may or may not have a corresponding charging protocol. When the electronic device 10 and the charger have a corresponding charging protocol, the charger has a higher charging efficiency and a higher safety factor for the electronic device 10. Conversely, when the electronic device 10 and the charger do not have a corresponding charging protocol, the charger has a lower charging efficiency and a lower safety factor for the electronic device 10. Based on this, the first functional relationship can be adjusted according to the charging protocol between the electronic device 10 and the charger.
[0231] In this adjustment mode, the charging switching method further includes the following steps S710 to S730.
[0232] S710, when the wired charging port 110 is connected to the wired charger 30 and the wireless charging port 120 is connected to the wireless charger 20, the processor 160 detects whether a corresponding charging protocol exists between the electronic device 10 and the wired charger 30, and detects whether a corresponding charging protocol exists between the electronic device 10 and the wireless charger 20.
[0233] As previously described, when the wired charging port 110 is connected to the wired charger 30, the processor 160 of the electronic device 10 can communicate with the first control chip of the wired charger 30 via a first communication protocol. In this embodiment, the communication between the processor 160 and the first control chip also includes detecting whether the electronic device 10 and the wired charger 30 have a corresponding charging protocol. When the wireless charging port 120 is connected to the wireless charger 20, the processor 160 of the electronic device 10 can communicate with the second control chip of the wireless charger 20 via a second communication protocol. In this embodiment, the communication between the processor 160 and the second control chip also includes detecting whether the electronic device 10 and the wireless charger 20 have a corresponding charging protocol.
[0234] Typically, the charging protocols used between the electronic device 10 and the wired charger 30 include the Quick Charge (QC) protocol, the Power Delivery (PD) protocol, the Super Charge (SCP) protocol, the Fast Charger (FCP) protocol, the SuperVOOC (SuperVOOC) protocol, the Programmable Power Supply (PPS) protocol, and the Adaptive Fast Charge (AFC) protocol. The charging protocols used between the electronic device 10 and the wireless charger 20 include the Wireless Charging (QI) protocol, the Power Matters Alliance (PMA) protocol, and the Alliance for Wireless Power (A4WP) protocol.
[0235] S720, if the electronic device 10 and the wired charger 30 do not have a corresponding charging protocol, and the electronic device 10 and the wireless charger 20 have a corresponding charging protocol, the processor 160 adjusts the first functional relationship so that the power corresponding to each temperature in the first functional relationship increases by a fifth preset power value.
[0236] S730, if there is a corresponding charging protocol between the electronic device 10 and the wired charger 30, and there is no corresponding charging protocol between the electronic device 10 and the wireless charger 20, the processor 160 adjusts the first functional relationship so that the power corresponding to each temperature in the first functional relationship is reduced by a fifth preset power value.
[0237] The fifth preset power value may be equal to the first preset power value, or may be different from the first preset power value. For example, the fifth preset power value may be 3%, 5%, or 8%. Figure 9 Taking the first functional relationship shown in FIG. 1 as an example, it can be obtained that: if the electronic device 10 and the wired charger 30 do not have a corresponding charging protocol, and the electronic device 10 and the wireless charger 20 have a corresponding charging protocol, the first functional relationship can be adjusted so that the function curve of the current first functional relationship in the rectangular coordinate system can be as follows: Figure 19 、 Figure 20 or Figure 21 On the contrary, if the electronic device 10 and the wired charger 30 have a corresponding charging protocol, and the electronic device 10 and the wireless charger 20 do not have a corresponding charging protocol, the first functional relationship can be adjusted so that the function curve of the current first functional relationship in the rectangular coordinate system can be as shown. Figure 22 If the electronic device 10 has corresponding charging protocols with both the wired charger 30 and the wireless charger 20, or if the electronic device 10 has no corresponding charging protocols with both the wired charger 30 and the wireless charger 20, the first functional relationship is not adjusted.
[0238] It is understandable that in the above-mentioned adjustment method (4), it has been described that the processor 160 has pre-stored a second functional relationship corresponding to the capacity percentage and the adjusted power. In this case, when the processor 160 adjusts the first functional relationship according to the current capacity percentage of the energy storage unit 150, it can first obtain the adjusted power corresponding to the current capacity percentage of the energy storage unit 150 in the second functional relationship, and then adjust the first functional relationship according to the adjusted power. Based on this technical solution, in order to more accurately adjust the first functional relationship, those skilled in the art can easily think of:
[0239] In the above adjustment method (1), the processor 160 may also pre-store a third functional relationship corresponding to the temperature change rate and the adjustment power. In this case, when the processor 160 adjusts the first functional relationship according to the temperature change rate of the electronic device 10, it may first obtain the adjustment power corresponding to the temperature change rate of the electronic device 10 in the third functional relationship, and then adjust the first functional relationship according to the adjustment power. And,
[0240] In the above adjustment method (2), the processor 160 may also pre-store a fourth functional relationship corresponding to the output power and the regulated power. In this case, when the processor 160 adjusts the first functional relationship according to the output power of the energy storage unit 150 within the third preset time, it may first obtain the regulated power corresponding to the output power of the energy storage unit 150 within the third preset time from the fourth functional relationship, and then adjust the first functional relationship according to the regulated power. And,
[0241] In the above adjustment method (5), the processor 160 may also pre-store a fifth functional relationship corresponding to the temperature and the adjusted power. In this case, when the processor 160 adjusts the first functional relationship according to the temperature of the energy storage unit 150, it may first obtain the adjusted power corresponding to the temperature of the energy storage unit 150 from the fifth functional relationship, and then adjust the first functional relationship according to the adjusted power.
[0242] It should be noted that, as described above, processor 160 may pre-store a first correspondence, a second correspondence, and a third correspondence. During operation, processor 160 may determine one of the first correspondence, the second correspondence, and the third correspondence as the first functional relationship. Therefore, in each of the aforementioned adjustment methods, where processor 160 pre-stores the first correspondence, the second correspondence, and the third correspondence, adjustment of the first functional relationship refers to simultaneous adjustment of the first, second, and third correspondences.
[0243] In some other embodiments, the processor 160 may also switch between wired charging and wireless charging based on the user's charging habits. For example, if the processor 160 detects that the wired charging port 110 of the electronic device 10 is connected to the wired charger 30 and the wireless charging port 120 is connected to the wireless charger 20 between 00:00 and 06:30 Beijing time every day, and the output power of the wired charger 30 is less than the output power of the wireless charger 20, the processor 160 may control the second switch module 140 to be turned on and the first switch module 130 to be turned off between 00:00 and 01:00 Beijing time every day, thereby wirelessly charging the electronic device 10 through the wireless charger 20; and control the first switch module 130 to be turned on and the second switch module 140 to be turned off between 05:30 and 06:30 Beijing time every day, thereby wired charging the electronic device 10 through the wired charger 30.
[0244] For another example, when the processor 160 detects that the wired charging port 110 of the electronic device 10 is connected to the wired charger 30 and the wireless charging port 120 is connected to the wireless charger 20 from 00:00 to 06:30 Beijing time every day, and the output power of the wired charger 30 is less than the output power of the wireless charger 20, the processor 160 can then control the second switch module 140 to be turned on and the first switch module 130 to be turned off starting from 00:00 Beijing time every day, thereby wirelessly charging the electronic device 10 through the wireless charger 20; when the power level of the energy storage unit 150 reaches 80%, the processor 160 controls both the first switch module 130 and the second switch module 140 to be turned off, and the electronic device 10 stops charging; thereafter, from 05:30 to 06:30 Beijing time every day, the processor 160 controls the first switch module 130 to be turned on and the second switch module 140 to be turned off, thereby wired charging the electronic device 10 through the wired charger 30.
[0245] The charging switching method provided in the embodiment of the present application has at least the following beneficial effects:
[0246] In an embodiment of the present application, when the wired charging port 110 of the electronic device 10 is connected to the wired charger 30 and the wireless charging port 120 is connected to the wireless charger 20, if the output power of the wired charger 30 is less than the output power of the wireless charger 20, then according to the temperature of the electronic device 10, the power level of the energy storage unit 150 and the first functional relationship, one of the first switch module 130 and the second switch module 140 is controlled to be turned on and the other is turned off, that is, the electronic device 10 is controlled to perform wired charging or wireless charging. Among them, the first functional relationship is the correspondence between temperature and power level determined based on the charging speed factor and the charging heat factor. In other words, this charging switching method, when the electronic device 10 is connected to the wired charger 30 and the wireless charger 20 at the same time, can switch between wired charging and wireless charging based on the temperature of the electronic device 10, the power level of the energy storage unit 150, the charging speed factor and the charging heat factor, thereby improving the charging flexibility of the electronic device 10.
[0247] The charging switching method can also set a switching buffer zone for buffering when switching between wired charging and wireless charging, thereby preventing the electronic device 10 from repeatedly switching between wired charging and wireless charging, thereby protecting the energy storage unit 150. The charging switching method can also adjust the first functional relationship according to the physical state of the electronic device 10, that is, the first functional relationship can be optimized according to the user's usage habits, so that the first functional relationship is more compatible with the electronic device 10 with different usage methods. This charging switching method does not require additional hardware costs for electronic devices and can effectively improve product competitiveness.
[0248] The present application also provides an electronic device 10, such as Figure 6 or Figure 7 As shown, the device includes a wired charging port 110, a first switch module 130, a wireless charging port 120, a second switch module 140, an energy storage unit 150, and a processor 160. The first switch module 130 is connected between the wired charging port 110 and the energy storage unit 150. The second switch module 140 is connected between the wireless charging port 120 and the energy storage unit 150. The processor 160 is connected to the first switch module 130 and the second switch module 140 to control the on and off of the first switch module 130 and the second switch module 140. When the processor 160 is in operation, it executes the charging switching method described in any of the above embodiments.
[0249] In an embodiment of the present application, when the wired charging port 110 of the electronic device 10 is connected to the wired charger 30 and the wireless charging port 120 is connected to the wireless charger 20, if the output power of the wired charger 30 is less than the output power of the wireless charger 20, then according to the temperature of the electronic device 10, the power level of the energy storage unit 150 and the first functional relationship, one of the first switch module 130 and the second switch module 140 is controlled to be turned on and the other is turned off, that is, the electronic device 10 is controlled to perform wired charging or wireless charging. Among them, the first functional relationship is the correspondence between temperature and power level determined based on the charging speed factor and the charging heat factor. In other words, this charging switching method, when the electronic device 10 is connected to the wired charger 30 and the wireless charger 20 at the same time, can switch between wired charging and wireless charging based on the temperature of the electronic device 10, the power level of the energy storage unit 150, the charging speed factor and the charging heat factor, thereby improving the charging flexibility of the electronic device 10.
[0250] The charging switching method of the electronic device 10 can also set a switching buffer zone for buffering when switching between wired charging and wireless charging, thereby preventing the electronic device 10 from repeatedly switching between wired charging and wireless charging, thereby protecting the energy storage unit 150. The charging switching method can also adjust the first functional relationship according to the physical state of the electronic device 10, that is, the first functional relationship can be optimized according to the user's usage habits, so that the first functional relationship is more compatible with the electronic device 10 with different usage methods. This charging switching method does not require additional hardware costs for electronic devices and can effectively improve product competitiveness.
[0251] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A charging switching method, applied to electronic equipment, characterized in that: The electronic device includes a wired charging port, a first switch module, a wireless charging port, a second switch module, and an energy storage unit, wherein the first switch module is connected between the wired charging port and the energy storage unit, and the second switch module is connected between the wireless charging port and the energy storage unit. The charging switching method includes: When the wired charging port is connected to a wired charger and the wireless charging port is connected to a wireless charger, if the output power of the wired charger is less than the output power of the wireless charger, detecting the temperature of the electronic device and the power level of the energy storage unit; Controlling one of the first switch module and the second switch module to be turned on and the other to be turned off according to the temperature of the electronic device, the power of the energy storage unit and a first functional relationship; The first functional relationship is used to indicate the maximum temperature allowed when wireless charging is used at various power levels, and the controlling, based on the temperature of the electronic device, the power level of the energy storage unit, and the first functional relationship, to turn on one of the first switch module and the second switch module and turn off the other includes: Determining a temperature corresponding to the amount of electricity of the energy storage unit in the first functional relationship as a temperature threshold; If the temperature of the electronic device is lower than the temperature threshold, controlling the second switch module to be turned on and controlling the first switch module to be turned off; If the temperature of the electronic device is greater than or equal to the temperature threshold, the first switch module is controlled to be turned on and the second switch module is controlled to be turned off.
2. The charging switching method according to claim 1, wherein: The maximum value of the electric quantity corresponding to the temperature greater than or equal to zero degrees in the first functional relationship is less than 100%, and the maximum value of the temperature in the first functional relationship is less than the safe operating temperature of the electronic device.
3. The charging switching method according to claim 1, wherein: The first functional relationship includes one or more of a constant function, a linear function, a quadratic function, and an inverse proportional function.
4. The charging switching method according to claim 1, wherein: Before controlling one of the first switch module and the second switch module to be turned on and the other to be turned off according to the temperature of the electronic device, the power of the energy storage unit, and the first functional relationship, the method further includes: When the wired charging port is connected to the wired charger, the wireless charging port is connected to the wireless charger, and the output power of the wired charger is less than the output power of the wireless charger, if the temperature of the electronic device and the power level of the energy storage unit are detected for the first time, determining the first corresponding relationship as the first functional relationship; When the wired charging port is connected to the wired charger, the wireless charging port is connected to the wireless charger, and the output power of the wired charger is less than the output power of the wireless charger, if it is not the first time that the temperature of the electronic device and the power level of the energy storage unit are detected, then when the first switch module is currently in the on state and the second switch module is currently in the off state, the second corresponding relationship is determined to be the first functional relationship; When the wired charging port is connected to the wired charger, the wireless charging port is connected to the wireless charger, and the output power of the wired charger is less than the output power of the wireless charger, if it is not the first time that the temperature of the electronic device and the power level of the energy storage unit are detected, then when the first switch module is currently in the off state and the second switch module is currently in the on state, the third corresponding relationship is determined to be the first functional relationship; Among them, the first correspondence is the correspondence between temperature and power determined based on the charging speed factor and the charging heat factor, the second correspondence and the third correspondence are both the correspondence between temperature and power determined based on the first correspondence, and the maximum values of the temperatures in the second correspondence and the third correspondence are the same as the maximum value of the temperature in the first correspondence; when the temperature is greater than zero degrees and less than the maximum temperature, the power corresponding to the same temperature in the second correspondence is less than the power corresponding in the first correspondence, and the power corresponding to the same temperature in the third correspondence is greater than the power corresponding in the first correspondence.
5. The charging switching method according to claim 4, wherein: When the temperature is less than or equal to zero degrees and the temperature is the maximum temperature, the power corresponding to the same temperature in the second correspondence and the third correspondence is the same as the power corresponding to the first correspondence.
6. The charging switching method according to any one of claims 1 to 5, characterized in that: The charging switching method further includes: detecting a temperature change rate of the electronic device; If the temperature change rate of the electronic device is within a preset change rate range, adjusting the first functional relationship so that the power corresponding to each temperature in the first functional relationship increases by a first preset power value; If the temperature change rate of the electronic device is not within the preset change rate range, the first functional relationship is adjusted so that the power corresponding to each temperature in the first functional relationship is reduced by a first preset power value.
7. The charging switching method according to claim 6, wherein: Detecting the temperature change rate of the electronic device includes: When the wireless charging port is connected to the wireless charger, a query signal is transmitted to the wireless charger, wherein the query signal is used to query the fan speed of the wireless charger; receiving a feedback signal returned by the wireless charger, wherein the feedback signal includes a fan speed of the wireless charger; The temperature change rate of the electronic device is determined according to the fan speed of the wireless charger.
8. The charging switching method according to any one of claims 1 to 5, wherein: The charging switching method further includes: detecting the output power of the energy storage unit within a preset time period; If the output power of the energy storage unit within the preset time period is within the preset power range, adjusting the first functional relationship so that the power corresponding to each temperature in the first functional relationship is increased by a second preset power value; If the output power of the energy storage unit within the preset time period is not within the preset power range, the first functional relationship is adjusted so that the power corresponding to each temperature in the first functional relationship is reduced by a second preset power value.
9. The charging switching method according to any one of claims 1 to 5, wherein: The charging switching method further includes: Obtaining the operating status of the display screen of the electronic device; If the working state of the display screen of the electronic device is the screen-off state, adjusting the first functional relationship so that the power corresponding to each temperature in the first functional relationship is increased by a third preset power value; If the working state of the display screen of the electronic device is the screen-on state, the first functional relationship is adjusted so that the power corresponding to each temperature in the first functional relationship is reduced by a third preset power value.
10. The charging switching method according to any one of claims 1 to 5, characterized in that: The charging switching method further includes: detecting a current capacity percentage of the energy storage unit, where the current capacity percentage is obtained by dividing the current capacity of the energy storage unit by the standard capacity of the energy storage unit; Obtaining an adjusted power corresponding to the current capacity percentage in a second functional relationship, where the second functional relationship is a correspondence between the capacity percentage and the adjusted power; The first functional relationship is adjusted according to the adjusted power.
11. The charging switching method according to claim 10, wherein: The regulated power corresponding to the capacity percentage greater than the preset percentage in the second functional relationship is greater than zero, the regulated power corresponding to the capacity percentage equal to the preset percentage in the second functional relationship is equal to zero, and the regulated power corresponding to the capacity percentage less than the preset percentage in the second functional relationship is less than zero.
12. The charging switching method according to any one of claims 1 to 5, wherein: The charging switching method further includes: detecting the temperature of the energy storage unit; If the temperature of the energy storage unit is within a preset temperature range, adjusting the first functional relationship so that the power corresponding to each temperature in the first functional relationship increases by a fourth preset power value; If the temperature of the energy storage unit is not within the preset temperature range, the first functional relationship is adjusted so that the power corresponding to each temperature in the first functional relationship is reduced by a fourth preset power value.
13. The charging switching method according to any one of claims 1 to 5, characterized in that: The charging switching method further includes: When the wired charging port is connected to the wired charger and the wireless charging port is connected to the wireless charger, detecting whether a corresponding charging protocol exists between the electronic device and the wired charger, and detecting whether a corresponding charging protocol exists between the electronic device and the wireless charger; If the electronic device and the wired charger do not have a corresponding charging protocol, but the electronic device and the wireless charger have a corresponding charging protocol, adjusting the first functional relationship so that the power corresponding to each temperature in the first functional relationship is increased by a fifth preset power value; If the electronic device and the wired charger have a corresponding charging protocol, and the electronic device and the wireless charger do not have a corresponding charging protocol, the first functional relationship is adjusted so that the power corresponding to each temperature in the first functional relationship is reduced by a fifth preset power value.
14. A charging switching method, applied to an electronic device, characterized in that: The electronic device includes a wired charging port, a first switch module, a wireless charging port, a second switch module, and an energy storage unit, wherein the first switch module is connected between the wired charging port and the energy storage unit, and the second switch module is connected between the wireless charging port and the energy storage unit. The charging switching method includes: When the wired charging port is connected to a wired charger and the wireless charging port is connected to a wireless charger, if the output power of the wired charger is less than the output power of the wireless charger, detecting the temperature of the electronic device and the power level of the energy storage unit; Controlling one of the first switch module and the second switch module to be turned on and the other to be turned off according to the temperature of the electronic device, the power of the energy storage unit and a first functional relationship; The first functional relationship is used to indicate the maximum temperature allowed when wireless charging is used at various power levels, and the controlling, based on the temperature of the electronic device, the power level of the energy storage unit, and the first functional relationship, to turn on one of the first switch module and the second switch module and turn off the other includes: Determining the power level corresponding to the temperature of the electronic device in the first functional relationship as a power level threshold; If the power level of the energy storage unit is less than the power threshold, the second switch module is controlled to be turned on and the first switch module is controlled to be turned off; If the power level of the energy storage unit is greater than or equal to the power threshold, the first switch module is controlled to be turned on and the second switch module is controlled to be turned off.
15. An electronic device, characterized in that: The electronic device includes a wired charging port, a first switch module, a wireless charging port, a second switch module, an energy storage unit, and a processor, wherein the first switch module is connected between the wired charging port and the energy storage unit, and the second switch module is connected between the wireless charging port and the energy storage unit; The processor is connected to the first switch module and the second switch module to control the on and off of the first switch module and the second switch module; when the processor is working, it executes the charging switching method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Electronic device and method for wired or wireless charging in electronic device
EP3979458A1
Battery charge and discharge control device and method
EP3989387A1
Smart priority detection for wired and wireless charging
US20190013687A1