Device charging method, device heating method, device, medium and product
By setting up parallel power supply components in the aerosol device and disconnecting the current path between the charging components and the heating elements, the problem that existing devices cannot be charged and heated at the same time is solved, and the function of heating while charging is realized, improving user experience and safety.
Patent Information
- Application Number
- CN202510016316.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-03
- Publication Date
- 2025-05-13
AI Technical Summary
Existing aerosol devices cannot be charged and heated at the same time, which affects the user's user experience.
By setting a plurality of parallel power supply components in the electronic device, and when a heating command is detected, the current path between the power supply component selected during charging and the heating element is turned off, thereby realizing the function of heating while charging.
It ensures the temperature stability of the power supply components being charged, improves the safety of use during heating, and realizes the charging and heating function of the aerosol device, improving the user experience.
Smart Images

Figure CN119995080A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of electric energy storage technology, and in particular relates to a charging method for a device, a heating method for a device, a device, a medium and a product. Background Art
[0002] Aerosol devices can generate aerosols without completely burning the object to be heated, thereby reducing the content of harmful substances generated when the object to be heated is completely burned. Therefore, aerosol devices have become the first choice for most users, which requires aerosol devices to further enhance the user experience.
[0003] However, for the sake of safety and circuit design, current aerosol devices often use heating priority or charging priority mode to reduce voltage fluctuations during use, stabilize the heating power of the aerosol device, and reduce the probability of failure of the aerosol device. However, this setting cannot meet the user's needs for heating while charging, affecting the user's experience.
[0004] Therefore, how to enable the aerosol device to achieve the functions of simultaneous heating and charging has become a technical problem that urgently needs to be solved. Summary of the invention
[0005] The embodiments of the present application provide a charging method for a device, a heating method for a device, a device, a medium and a product, which can solve the problem of how to enable an aerosol device to achieve simultaneous heating and charging.
[0006] In a first aspect, an embodiment of the present application provides a device charging method, which is applied to an electronic device, wherein the electronic device includes a heating element and a plurality of power supply components, wherein the power supply components are connected in parallel, and each power supply component is connected to the heating element, and the method includes:
[0007] When the electronic device is in a charging state, determining a first power supply component to be charged from a plurality of power supply components;
[0008] charging the first power supply component and disconnecting the current path between the first power supply component and the heating element when a heating instruction is detected;
[0009] In response to the heating instruction, determining a second power supply component to be discharged from the plurality of power supply components;
[0010] The second power supply component is controlled to discharge to the heating element so that the heating element heats the object to be heated in the electronic device.
[0011] In some embodiments, determining a second power supply component to be discharged from a plurality of power supply components includes:
[0012] Obtain the remaining power of each power supply component;
[0013] Compare the remaining power of each;
[0014] The power supply component corresponding to the largest remaining power is determined as the second power supply component.
[0015] In some embodiments, determining a first power supply component to be charged from a plurality of power supply components includes:
[0016] Obtain the remaining power of each power supply component;
[0017] Compare the remaining power of each;
[0018] The power supply component corresponding to the smallest remaining power is determined as the first power supply component.
[0019] In some embodiments, the method further comprises:
[0020] During charging of the first power supply component, detecting a charging temperature of the first power supply component during the charging process;
[0021] When the charging temperature is greater than a preset temperature value, the charging current of the first power supply component is reduced.
[0022] In some embodiments, the method further comprises:
[0023] During charging of the first power supply component, detecting an electrical parameter of the first power supply component during charging, the electrical parameter including at least one of a charging current, a charging power or a charging voltage;
[0024] When the electrical parameters meet the preset conditions, the charging operation of the first power supply component is suspended, and an alarm message is generated and output, wherein the alarm message is used to indicate that the first power supply component is operating abnormally. The preset conditions include that when at least one of the electrical parameters meets one of the following conditions, it is determined that the first power supply component is operating abnormally: the charging current is greater than the preset current value, the charging voltage is greater than the first preset voltage value, and the charging power is greater than the preset power value.
[0025] In some embodiments, the target device further includes a charging component, and before determining a first power supply component to be charged from the multiple power supply components, the method further includes:
[0026] Based on a preset time interval, detecting a current voltage of the charging component;
[0027] When the current voltage is greater than or equal to the second preset voltage value, it is determined that the electronic device is in a charging state.
[0028] In a second aspect, an embodiment of the present application provides a device heating method, which is applied to an electronic device, wherein the electronic device includes a heating element and a plurality of power supply components, wherein the power supply components are connected in parallel, and each power supply component is connected to the heating element, and the method includes:
[0029] When the electronic device is in a heating state, determining a third power supply component to be discharged from a plurality of power supply components;
[0030] Controlling the third power supply component to discharge to the heating element so that the heating element heats the object to be heated in the electronic device;
[0031] When it is detected that the electronic device is in a charging state, determining a fourth power supply component to be charged from a plurality of power supply components;
[0032] When the fourth power supply component is connected to the heating element, the current path between the fourth power supply component and the heating element is disconnected, and the fourth power supply component is charged.
[0033] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic device implements a charging method for a device as described in any one of the embodiments of the first aspect or a heating method for a device as described in any one of the embodiments of the second aspect.
[0034] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the charging method of the device described in any embodiment of the first aspect or the heating method of the device described in any embodiment of the second aspect.
[0035] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program. When the computer program is executed, the charging method of the device described in any embodiment of the first aspect or the heating method of the device described in any embodiment of the second aspect is executed.
[0036] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0037] A plurality of parallel power supply components are arranged in the electronic device, and each power supply component is connected to a heating element. When the electronic device is in a charging state, one of the plurality of power supply components is selected for charging. When a heating instruction is detected, the current path between the power supply component selected during charging and the heating element is disconnected to avoid the discharge of the power supply component being charged to the heating element, thereby ensuring the temperature stability of the power supply component being charged and ensuring the safety of use of the electronic device when it is heated. When a heating instruction is detected, another power supply component is selected from the plurality of power supply components to discharge the heating element. In this way, by charging one power supply component while using another power supply component to discharge to the heating element, the function of charging and heating of an electronic device, such as an aerosol device, is realized, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0039] Figure 1 is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0040] Figure 2 It is a flow chart of a charging method for a device provided in an embodiment of the present application;
[0041] Figure 3 It is a workflow diagram of a charging method for a device in an application scenario of an embodiment of the present application;
[0042] Figure 4 It is a flow chart of another device charging method provided in the embodiment of the present application;
[0043] Figure 5 It is a flow chart of another device charging method provided in the embodiment of the present application;
[0044] Figure 6 is a structural schematic diagram of another electronic device provided in an embodiment of the present application;
[0045] Figure 7 It is a structural schematic diagram of a charging device of a device provided in an embodiment of the present application;
[0046] Figure 8 A schematic structural diagram of a heating device of a device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0048] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0049] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0050] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0051] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0052] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0053] Figure 1 is a schematic diagram of the structure of an electronic device suitable for the implementation of the present application, such as Figure 1 As shown, the electronic device includes a processor, a heating element and a plurality of power supply components ( Figure 1 In the figure, power supply components 1 to n are used to represent the power supply components, each of which is connected in parallel and each of which is connected to a heating element.
[0054] The electronic device may be an aerosol device, a heat-not-burn atomization device, or an electric heater, etc., which are electronic products that need to increase their own temperature through a heating element. In the embodiment of the present application, an aerosol device is taken as an example. The heating element may be a resistive heating device, an electromagnetic heating device, or an infrared heating device, which is not specifically limited in the embodiment of the present application. The power supply component may be a combination of a power supply and a control switch, and the power supply may be a battery or a solar cell, which is not specifically limited in the embodiment of the present application. The switch may be an electronic switch such as a transistor or a relay, and the transistor may be a triode (Thyristor), a metal-oxide-semiconductor field-effect transistor (Metal-Oxide-Semiconductor Field-Effect Transistor, MOSFET) or an insulated-gate bipolar transistor (Insulated-Gate Bipolar Transistor, IGBT), and the embodiment of the present application does not specifically limit the type of electronic switch.
[0055] Each power supply assembly is used to discharge electricity to the heating element through a current path between the heating element and the heating element;
[0056] A processor is used to, when the electronic device is in a charging state, determine a first power supply component to be charged from multiple power supply components; charge the first power supply component and, when a heating instruction is detected, disconnect the current path between the first power supply component and a heating element; in response to the heating instruction, determine a second power supply component to be discharged from multiple power supply components; and control the second power supply component to discharge to the heating element so that the heating element heats the object to be heated in the electronic device.
[0057] In some embodiments, continue to refer to Figure 1 , the electronic device also includes a charging component, and the charging component is connected to each power supply component;
[0058] The processor is also used to detect the current voltage of the charging component based on a preset time interval; when the current voltage is greater than or equal to a second preset voltage value, determine that the electronic device is in a charging state.
[0059] In some embodiments, the electronic device further includes a display screen, which is used to display operating parameters of the electronic device, and the operating parameters include at least one of the heating power, remaining power or heating temperature of the electronic device.
[0060] The charging method of the device in the embodiment of the present application is described in detail below.
[0061] Figure 2 is a flow chart of a device method provided in an embodiment of the present application, the method is applied to an electronic device, the electronic device includes a heating element and a plurality of power supply components, the power supply components are connected in parallel, and each power supply component is connected to the heating element, such as Figure 2 The method shown comprises the following steps:
[0062] Step S101: when the electronic device is in a charging state, a first power supply component to be charged is determined from a plurality of power supply components.
[0063] The electronic device can detect the voltage or current of its own charging component. When the voltage exceeds a certain threshold or the current exceeds a certain threshold, it can be determined that the electronic device is in a charging state. Alternatively, the electronic device can read the charging status flag data from a specific register. When the charging status standard data is a preset value, it can be determined that the electronic device is in a charging state.
[0064] When the electronic device determines that it is in a charging state, the electronic device can select one from multiple power supply components as the first power supply component. For example, the electronic device can obtain the charging level corresponding to each power supply component, and use the power supply component with the highest charging level as the first power supply component. Alternatively, the electronic device can also default to giving priority to a certain power supply component as the first power supply component.
[0065] In one implementation, the electronic device further includes a charging component, and before determining a first power supply component to be charged from the multiple power supply components, further includes:
[0066] Based on a preset time interval, detecting a current voltage of the charging component;
[0067] When the current voltage is greater than or equal to the second preset voltage value, it is determined that the electronic device is in a charging state.
[0068] The preset time interval can be 10 milliseconds (ms) or 15 ms, etc., which can be set by the user, and the embodiments of the present application do not impose any specific restrictions. The charging component is the charging integrated circuit (IC) of the electronic device itself, and the charging IC can be a charging management chip or a charging circuit. The second preset voltage value can be 4.2 volts (V), 4.5V or 5V, and the embodiments of the present application do not impose any specific restrictions.
[0069] It can be understood that the electronic device can also determine whether the current voltage has increased based on the detected historical voltage. If it has increased, it can also be determined that the electronic device is in a charging state.
[0070] The electronic device periodically detects whether the current voltage of the charging component is greater than or equal to the second preset voltage value, so as to quickly determine whether the current electronic device is in a charging state, thereby providing a data basis for the subsequent realization of the simultaneous charging and heating functions of the electronic device.
[0071] In one implementation, determining a first power supply component to be charged from a plurality of power supply components includes:
[0072] Obtain the remaining power of each power supply component;
[0073] Compare the remaining power of each;
[0074] The power supply component corresponding to the smallest remaining power is determined as the first power supply component.
[0075] Multiple power supply components correspond to the same battery type. A voltage-to-electricity correspondence relationship may be pre-stored in the electronic device, and the voltage-to-electricity correspondence relationship includes the remaining power corresponding to multiple output voltages. When the electronic device is in a charging state, it can detect the current output voltage of each power supply component, and determine the remaining power of the power supply component corresponding to the current output voltage in the voltage-to-electricity correspondence relationship, and then compare the remaining power of each power supply component, and determine the power supply component corresponding to the smallest remaining power as the first power supply component.
[0076] In the above technical solution, the remaining power of each power supply component is compared to prioritize the one with less remaining power among multiple power supply components as the first power supply component to be charged, so as to ensure that the power supply component with less remaining power is charged first. It is ensured that the power of multiple power supply components is always at a relatively close level, so that multiple power supply components provide stable power to the heating element, and the probability of the "barrel effect" between multiple power supply components is reduced, thereby ensuring the performance of each power supply component in the electronic device. It can also reduce the occurrence of low-power power supply components in electronic devices working frequently, thereby balancing the service life of the power supply components, reducing the probability of users replacing power supply components, and improving the user experience.
[0077] Step S102, charging the first power supply component, and disconnecting the current path between the first power supply component and the heating element when a heating instruction is detected.
[0078] The electronic device will control its own charging component to charge the first power supply component. During the charging process of the first power supply component, the user can press the heating button of the electronic device, or touch the touch screen of the electronic device or insert the object to be heated into the electronic device to turn on the heating function of the electronic device. At this time, the electronic device can detect the heating instruction, and the electronic device will open the current path between the first power supply component and the heating element to avoid the first power supply component discharging the heating element while charging. In this way, the current and temperature of the first power supply component during charging can be reduced, thereby improving the safety of charging.
[0079] In one implementation, each power supply component includes a power supply and a control switch connected in series, and the control switch is also connected to the heating element. When a heating instruction is detected, the electronic device can detect whether the first control switch in the first power supply component is disconnected, and if the first control switch is closed, the first control switch is disconnected, thereby disconnecting the current path between the first power supply component and the heating element.
[0080] It should be noted that when the electronic device is charging the first power supply component, it will also detect the charging voltage of the first power supply component, and when the charging voltage reaches the charging cut-off voltage (for example, 4.2V or 5V, etc.) corresponding to the first power supply component, it is determined that the first power supply component is fully charged. If the current voltage of the charging component is still greater than or equal to the second preset voltage value at this time, that is, the electronic device is still in a charging state, the electronic device will charge the remaining power supply components except the first power supply component among the multiple power supply components based on the order of the remaining power from small to large.
[0081] For example, the electronic device includes a power supply component A and a power supply component B. After the electronic device completes charging the power supply component A, if the electronic device is still in a charging state, the electronic device continues to charge the power supply component B.
[0082] Step S103 , in response to the heating instruction, determining a second power supply component to be discharged from a plurality of power supply components.
[0083] The electronic device determines another power supply component other than the first power supply component from the plurality of power supply components as the second power supply component to be discharged.
[0084] In one implementation, determining a second power supply component to be discharged from a plurality of power supply components includes: obtaining the remaining power of each power supply component; comparing the remaining power of each power supply component; and determining the power supply component corresponding to the largest remaining power as the second power supply component. The electronic device compares the remaining power of each power supply component to prioritize the one with the largest remaining power among the plurality of power supply components as the second power supply component to be discharged, thereby ensuring that the power supply component with the largest remaining power is discharged preferentially. It ensures that the power of the plurality of power supply components is always at a relatively close level, reduces the probability of the "barrel effect" between the plurality of power supply components, thereby balancing the service life of the power supply components, and reduces the probability of users replacing the power supply components, thereby improving the user experience.
[0085] Step S104, controlling the second power supply component to discharge to the heating element, so that the heating element heats the object to be heated in the electronic device.
[0086] The electronic device can conduct the current path between the second power supply component and the heating element, so that the second power supply component discharges to the heating element, so that the heating element heats the object to be heated in the electronic device.
[0087] In one implementation, the electronic device can detect whether the second control switch between the second power supply in the second power supply component and the heating element is closed. If not, the second control switch is closed to conduct the current path between the second power supply and the heating element, thereby causing the second power supply to discharge to the heating element, so that the heating element heats the object to be heated in the electronic device.
[0088] In one application scenario, such as Figure 3 As shown, taking the electronic device as an aerosol device as an example, a backup battery can be added to the aerosol device before the aerosol device leaves the factory. Specifically, the placement of the backup battery and related circuits can be determined based on the circuit structure and hardware design in the aerosol device. Specifically, a switch is connected in series with the backup battery (an example of a power supply component), and another switch is connected in series with the original battery (an example of another power supply component). The circuit where the backup battery is located is connected in parallel with the circuit where the original battery is located and then electrically connected to the heating element. A battery protection circuit related to the backup battery can also be added to the aerosol device to complete the process. Figure 3 The step of adding a backup battery to the structure or hardware design.
[0089] In order to ensure that the aerosol device can work normally after leaving the factory, the corresponding software tools are required to configure the functional modules of the aerosol device before leaving the factory, such as the battery switching module, heating module, motor vibration module, screen display module and charging module. The heating module is used to control the heating element to heat the object to be heated, and the motor vibration module is used to control the vibration of the aerosol device; the screen display module is used to control the display screen to display the working parameters or alarm information of the aerosol device; the charging module is used to charge the backup battery and the original battery; the battery switching module is used to determine the battery to be discharged from the original battery and the backup battery when the heating instruction is detected, and control the uncharged battery to output power to the heating element.
[0090] When the user uses the aerosol device, the user can wake up the aerosol device by pressing the power button of the aerosol device, so that the aerosol device exits the standby dormant state. Figure 3 After the aerosol device is turned on, it can collect the voltage of its own charging integrated circuit (IC, an example of a charging component) every 10 milliseconds (an example of a preset time interval) and determine whether the voltage of the charging IC rises, that is, Figure 3 In the process, the charging IC voltage is detected to see if it rises.
[0091] When the aerosol device determines that the voltage of the charging IC rises, it means that the aerosol device is in a charging state. In other words, the aerosol device is already charging, and the aerosol device can default to normal charging of the original battery (an example of charging the first power supply component). During the charging process, the user can cut off the heating function of the aerosol device by pressing a button, touching the screen, or adding an object to be heated. At this time, the aerosol device detects the heating instruction and determines that the original battery is charging. The aerosol device can automatically switch to the backup battery (an example of a power source in the second power supply component) output through the battery switching module, that is, when the heating instruction is detected, the current path between the first power supply component and the heating element is disconnected, and the second power supply component to be discharged is determined from multiple power supply components. Specifically, the switch between the original battery and the heating element can be turned off by the battery switching module, and the switch between the backup battery and the heating element can be closed, and the backup battery can supply power to the heating element to heat the object to be heated.
[0092] When the aerosol device determines that the voltage of the charging IC has not risen, the aerosol device determines that it is not in a charging state. If a heating instruction is detected at this time, the original battery output can be used by default. Specifically, the battery switching module can be used to close the switch between the original battery and the heating element, and the switch between the backup battery and the heating element can be turned off.
[0093] In an embodiment of the present application, a plurality of parallel power supply components are provided in the electronic device, and each power supply component is connected to a heating element. When the electronic device is in a charging state, one of the plurality of power supply components is selected for charging. And when a heating instruction is detected, the current path between the power supply component selected during charging and the heating element is disconnected to avoid the discharge of the power supply component being charged to the heating element, thereby ensuring the temperature stability of the power supply component being charged, and ensuring the safety of use of the electronic device when heating. And when a heating instruction is detected, another power supply component is selected from the plurality of power supply components to discharge the heating element. In this way, by charging one power supply component while using another power supply component to discharge to the heating element, the function of charging and heating of an electronic device, such as an aerosol device, is realized, thereby improving the user experience.
[0094] Figure 4 is a schematic diagram of a heating method of a device provided in an embodiment of the present application, such as Figure 4 The method shown comprises the following steps:
[0095] Step S201: when the electronic device is in a heating state, a third power supply component to be discharged is determined from a plurality of power supply components.
[0096] The electronic device can obtain the remaining power corresponding to each of the multiple power supply components, and use the power supply component with the largest remaining power as the third power supply component.
[0097] Step S202: Control the third power supply component to discharge to the heating element, so that the heating element heats the object to be heated in the electronic device.
[0098] The electronic device can conduct the current path between the third power supply component and the heating element, thereby discharging the heating element, so that the heating element heats the object to be heated.
[0099] Step S203: when it is detected that the electronic device is in a charging state, a fourth power supply component to be charged is determined from a plurality of power supply components.
[0100] During heating of the object to be heated, if the electronic device detects that the electronic device is still in a charging state, it can determine the power supply component with the smallest remaining power as the fourth power supply component from the remaining power supply components except the third power supply component.
[0101] Step S204: when the fourth power supply component is connected to the heating element, disconnect the current path between the fourth power supply component and the heating element, and charge the fourth power supply component.
[0102] If the fourth power supply component is connected to the heating element, the control switch between the power supply in the fourth power supply component and the heating element is disconnected, thereby disconnecting the current path between the fourth power supply component and the heating element, and controlling the charging component to charge the fourth power supply component. If the fourth power supply component is disconnected from the heating element, the fourth power supply component is directly charged.
[0103] Understandably, Figure 2 In the embodiment shown, the function of heating the aerosol device while charging is realized when the aerosol device is in a charging state. Figure 4 In the embodiment shown, the function of heating and charging the aerosol device is realized when the aerosol device is in a heating state. The processing flow of the two is similar, and reference can be made to Figure 2 Steps S101 to S104 in the illustrated embodiment are not described in detail herein.
[0104] In the embodiment of the present application, when an electronic device, such as an aerosol device, is in a heating state, a power supply component for discharging a heating element can be preferentially determined from multiple power supply components to achieve heating of the object to be heated. During the heating of the object to be heated, if it is also detected that the electronic device is in a charging state, another power supply component can be determined from multiple power supply components for charging, thereby achieving the purpose of heating and charging at the same time and improving the user experience.
[0105] Figure 5 is a flow chart of another device charging method provided in an embodiment of the present application, such as Figure 5 As shown, the method includes:
[0106] Step S301, during the process of charging the first power supply component, detecting the charging temperature of the first power supply component during the charging process.
[0107] A thermistor is provided between each power supply component and the heating element. In the embodiment of the present application, the thermistor is a negative temperature coefficient thermistor (NTC) as an example. During the charging process of the first power supply component, the electronic device can collect the current resistance value of the thermistor connected to the first power supply component in real time, and search for the temperature corresponding to the current resistance value from the preset temperature-resistance correspondence relationship, and the found temperature is used as the charging temperature of the first power supply component. The temperature-resistance correspondence relationship includes the temperatures corresponding to different resistance values of the thermistor.
[0108] Step S302, when the charging temperature is greater than a preset temperature value, reducing the charging current of the first power supply component.
[0109] The preset temperature may be 35 degrees Celsius (℃), 40℃ or 45℃, etc., and may be specifically determined based on the charging power of the electronic device and the ambient temperature of the environment in which the electronic device is located. When the charging temperature is greater than the preset temperature, the electronic device will control its own charging component to reduce the charging current to the first power supply component, thereby achieving the purpose of reducing the charging current if the charging temperature is too high during charging, reducing the probability of a sharp increase in the charging temperature during charging, thereby reducing the probability of power supply component failure, achieving over-temperature protection, and improving charging safety. Alternatively, the electronic device may control the charging component to intermittently charge the first power supply component, for example, pausing charging for 5 seconds (s) every 5 minutes (min) of charging, thereby reducing the charging temperature of the first power supply component and improving charging safety.
[0110] In one implementation, the method further includes the following steps (1) to (2):
[0111] Step (1), during the process of charging the first power supply component, detecting the electrical parameters of the first power supply component during the charging process.
[0112] The electrical parameter includes at least one of a charging current, a charging power or a charging voltage. During the charging process of the first power supply component, the electronic device can detect the electrical parameter of the first power supply component through its own charging component.
[0113] Step (2), when the electrical parameters meet the preset conditions, suspending the charging operation of the first power supply component, and generating and outputting an alarm message.
[0114] Among them, the alarm information is used to indicate that the first power supply component is operating abnormally. The preset conditions include that when at least one of the electrical parameters satisfies one of the following conditions, it is determined that the first power supply component is operating abnormally: the charging current is greater than the preset current value, the charging voltage is greater than the first preset voltage value, and the charging power is greater than the preset power value.
[0115] When the electrical parameters meet the preset conditions, the charging component is controlled to suspend the charging operation of the power supply component in the first power supply component, generate and display alarm information, and control at least one of the vibrator, indicator light, sound device and display screen to output the alarm information to remind the user that the first power supply component currently being charged is working abnormally, so that the user can take maintenance measures. The detection of the working status of the power supply component when charging and the abnormality reminder provide a good user experience.
[0116] In one implementation, the method further includes: detecting the remaining power of each power supply component based on a specified time interval; and generating and outputting a prompt message when the remaining power of at least one power supply component is less than a preset power value.
[0117] The prompt information is used to indicate that at least one power supply component in the electronic device is low on power. The preset power value may be 5% (or 15%) of the full power of the first power supply component, which may be set at will and is not specifically limited in the embodiment of the present application.
[0118] The specified time interval can be specifically determined based on the working state of the electronic device. For example, when the electronic device detects that it is in a heating state, a shorter time interval (for example, 15s or 10s, etc.) can be determined as the specified time interval. When the electronic device is detected to be in a dormant state, a longer time interval (for example, 3min or 5min, etc.) can be determined as the first specified time interval. Then, the remaining power of each power supply component is detected based on the specified time interval. When the remaining power of at least one power supply component is less than the preset power value, a prompt message is generated, and at least one of the vibrator, indicator light, sound device and display screen is controlled to output the prompt message to remind the user that the device needs to be charged. In this way, by detecting the remaining power of each power supply component in the electronic device, a prompt message can be generated and output in time when the power supply component is low on power, so as to remind the user to charge the electronic device for a good user experience.
[0119] In the embodiment of the present application, during the charging process, the charging current is adjusted in time or charging is suspended by detecting the electrical parameters of the charging thermometer of the first power supply component being charged, thereby ensuring the safety of the charging process.
[0120] Figure 6 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 6As shown, the electronic device 6 of this embodiment includes: at least one processor 60 ( Figure 6 Only one is shown in the figure) a processor, a memory 61, and a computer program 62 stored in the memory 61 and executable on the at least one processor 60, and when the processor 60 executes the computer program 62, the steps in any of the above-mentioned method embodiments are implemented.
[0121] The electronic device 6 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The electronic device may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will appreciate that Figure 6 It is only an example of the electronic device 6 and does not constitute a limitation on the electronic device 6. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0122] The processor 60 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0123] In some embodiments, the memory 61 may be an internal storage unit of the electronic device 6, such as a hard disk or memory of the electronic device 6. In other embodiments, the memory 61 may also be an external storage device of the electronic device 6, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 6. Further, the memory 61 may also include both an internal storage unit of the electronic device 6 and an external storage device. The memory 61 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory 61 may also be used to temporarily store data that has been output or is to be output.
[0124] Corresponding to the charging method of the device described in the above embodiment, Figure 7 A structural block diagram of a charging device of a device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0125] Reference Figure 7 The device is applied to an electronic device, wherein the electronic device includes a heating element and a plurality of power supply components, wherein the power supply components are connected in parallel and each power supply component is connected to the heating element. The device includes:
[0126] A first determining module 710 is used to determine a first power supply component to be charged from multiple power supply components when the electronic device is in a charging state;
[0127] A first charging module 720 is used to charge the first power supply component and disconnect the current path between the first power supply component and the heating element when a heating instruction is detected;
[0128] A second determining module 730 is used to determine a second power supply component to be discharged from a plurality of power supply components in response to a heating instruction;
[0129] The first control module 740 is used to control the second power supply component to discharge to the heating element, so that the heating element heats the object to be heated in the electronic device.
[0130] In some embodiments, the second determining module is further configured to:
[0131] Obtain the remaining power of each power supply component;
[0132] Compare the remaining power of each;
[0133] The power supply component corresponding to the largest remaining power is determined as the second power supply component.
[0134] In some embodiments, the first determining module is further configured to:
[0135] Obtain the remaining power of each power supply component;
[0136] Compare the remaining power of each;
[0137] The power supply component corresponding to the smallest remaining power is determined as the first power supply component.
[0138] In some embodiments, the apparatus further comprises:
[0139] A detection module, used for detecting a charging temperature of the first power supply component during the charging process of the first power supply component;
[0140] The reduction module is used to reduce the charging current of the first power supply component when the charging temperature is greater than a preset temperature value.
[0141] In some embodiments, the apparatus further comprises:
[0142] The detection module is further used to detect an electrical parameter of the first power supply component during the charging process, wherein the electrical parameter includes at least one of a charging current, a charging power or a charging voltage;
[0143] The pause module is used to pause the charging operation of the first power supply component and generate and output alarm information when the electrical parameters meet the preset conditions. The alarm information is used to indicate that the first power supply component is operating abnormally. The preset conditions include that when at least one of the electrical parameters meets one of the following conditions, it is determined that the first power supply component is operating abnormally: the charging current is greater than the preset current value, the charging voltage is greater than the first preset voltage value, and the charging power is greater than the preset power value.
[0144] In some embodiments, the electronic device further comprises a charging component, the device further comprising:
[0145] The detection module is further used to detect the current voltage of the charging component based on a preset time interval;
[0146] The fifth determination module is used to determine that the electronic device is in a charging state when the current voltage is greater than or equal to the second preset voltage value.
[0147] Corresponding to the charging method of the device described in the above embodiment, Figure 8 A structural block diagram of a heating device of an apparatus provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0148] Reference Figure 8 The device is applied to an electronic device, wherein the electronic device includes a heating element and a plurality of power supply components, wherein the power supply components are connected in parallel and each power supply component is connected to the heating element. The device includes:
[0149] A third determining module 810 is used to determine a third power supply component to be discharged from multiple power supply components when the electronic device is in a heating state;
[0150] The second control module 820 is used to control the third power supply component to discharge to the heating element so that the heating element heats the object to be heated;
[0151] A fourth determining module 830 is used to determine a fourth power supply component to be charged from multiple power supply components when it is detected that the electronic device is in a charging state;
[0152] The second charging module 840 is used to disconnect the current path between the fourth power supply component and the heating element when the fourth power supply component is connected to the heating element, and charge the fourth power supply component.
[0153] It can be understood that the charging device of the device and the heating device of the device are both integrated in the electronic device, so that the electronic device can execute the method in any of the above embodiments.
[0154] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0155] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0156] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0157] An embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0158] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0159] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0160] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0161] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0162] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0163] The embodiments described above 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, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for charging a device, characterized in that: Applied to an electronic device, the electronic device includes a heating element and a plurality of power supply components, each of the power supply components is connected in parallel, and each of the power supply components is connected to the heating element, the method includes: When the electronic device is in a charging state, determining a first power supply component to be charged from the multiple power supply components; charging the first power supply component and, when a heating instruction is detected, disconnecting a current path between the first power supply component and the heating element; In response to the heating instruction, determining a second power supply component to be discharged from the plurality of power supply components; The second power supply component is controlled to discharge to the heating element, so that the heating element heats the object to be heated in the electronic device.
2. The method according to claim 1, characterized in that The step of determining a second power supply component to be discharged from the plurality of power supply components comprises: Obtaining the remaining power of each power supply component; comparing the remaining power; The power supply component corresponding to the largest remaining power is determined as the second power supply component.
3. The method according to claim 1 or 2, characterized in that The step of determining a first power supply component to be charged from the plurality of power supply components comprises: Obtaining the remaining power of each power supply component; comparing the remaining power; The power supply component corresponding to the smallest remaining power is determined as the first power supply component.
4. The method according to claim 3, characterized in that The method further comprises: During charging of the first power supply component, detecting a charging temperature of the first power supply component during the charging process; When the charging temperature is greater than a preset temperature value, the charging current of the first power supply component is reduced.
5. The method according to claim 4, characterized in that The method further comprises: During charging of the first power supply component, detecting an electrical parameter of the first power supply component during charging, wherein the electrical parameter includes at least one of a charging current, a charging power or a charging voltage; When the electrical parameters meet the preset conditions, the charging operation of the first power supply component is suspended, and an alarm message is generated and output, wherein the alarm message is used to indicate that the first power supply component is operating abnormally, and the preset conditions include determining that the first power supply component is operating abnormally when at least one of the electrical parameters meets one of the following conditions: the charging current is greater than a preset current value, the charging voltage is greater than a first preset voltage value, and the charging power is greater than a preset power value.
6. The method according to claim 1, characterized in that The electronic device further includes a charging component, and before determining a first power supply component to be charged from the multiple power supply components, the electronic device further includes: Based on a preset time interval, detecting a current voltage of the charging component; When the current voltage is greater than or equal to a second preset voltage value, it is determined that the electronic device is in the charging state.
7. A method for heating a device, characterized in that: Applied to an electronic device, the electronic device includes a heating element and a plurality of power supply components, each of the power supply components is connected in parallel, and each of the power supply components is connected to the heating element, the method includes: When the electronic device is in a heating state, determining a third power supply component to be discharged from the plurality of power supply components; Controlling the third power supply component to discharge to the heating element so that the heating element heats the object to be heated in the electronic device; In the case where it is detected that the electronic device is in a charging state, determining the fourth power supply component to be charged from the multiple power supply components; When the fourth power supply component is connected to the heating element, the current path between the fourth power supply component and the heating element is disconnected, and the fourth power supply component is charged.
8. An electronic device, characterized in that: The electronic device comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic device implements the charging method of the device as described in any one of claims 1 to 6 or the heating method of the device as described in claim 7.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the charging method of the device according to any one of claims 1 to 6 or the heating method of the device according to claim 7 is implemented.
10. A computer program product, characterized in that The invention comprises a computer program, which, when being executed, enables the charging method of the device as claimed in any one of claims 1 to 6 or the heating method of the device as claimed in claim 7 to be executed.