Electric quantity control method and device of electronic equipment, equipment and storage medium

By detecting the target charging mark and full charging voltage, the power of electronic equipment can be accurately controlled, solving the problem of uncontrollable power from after assembly to before shipment, and improving the reliability and consistency of power management and control.

CN118739488APending Publication Date: 2024-10-01SHANGHAI WINGTECH ELECTRONICS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410829753.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing technology makes it difficult to accurately control the battery power of electronic devices, especially during the period from assembly to delivery. It cannot guarantee that the product power is within the required range, and there is a risk of over-limiting or insufficient delivery power.

Method used

By detecting whether there is a target charging flag in the electronic device, the charging status is obtained, and the power is controlled according to the full charging voltage corresponding to the different charging status. The full charging voltage corresponding to the charging status before leaving the factory is the first voltage. The charging status after leaving the factory The corresponding full charging voltage is the second voltage, and the first voltage is smaller than the second voltage.

Benefits of technology

It achieves precise control of the power of electronic equipment, improves the reliability of power management and control, ensures that the power is within the required range before shipment, and reduces manpower investment and workload.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118739488A_ABST
    Figure CN118739488A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an electric quantity control method and device of electronic equipment, equipment and a storage medium. According to the technical scheme, firstly, whether a target charging flag bit exists in the electronic equipment or not is detected, a detection result is obtained, and the detection result is used for indicating that the electronic equipment is in a pre-factory charging state or a post-factory charging state; and then controlling the electric quantity of the electronic equipment according to the full charge voltage corresponding to the detection result. Wherein different detection results correspond to different full charge voltages, the full charge voltage corresponding to the charging state before delivery is a first voltage, the full charge voltage corresponding to the charging state after delivery is a second voltage, and the first voltage is smaller than the second voltage. According to the electric quantity management and control method of the electronic equipment, the corresponding full charge voltage is obtained based on the charging state of the electronic equipment, and then the electric quantity of the electronic equipment is managed and controlled, so that the reliability of electric quantity management and control can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of electronic devices, and relate to, but are not limited to, a method and apparatus, a device, and a storage medium for power control of an electronic device. Background Art

[0002] Normally, when electronic devices leave the factory, the battery needs to have a certain amount of power left to ensure that consumers can use the product directly without charging it. If the electronic device has a power display or wireless communication module, the current battery power of the electronic device can be checked through the display interface or external receiving device when it is shipped.

[0003] However, some consumer electronic devices, such as those without display devices, do not have wireless communication modules in order to save costs. In this case, the power shipment control solution can only control the power by measuring the voltage value. If the product voltage value is to be measured, it can only be done before the product is assembled on the production line. Although this method can control the power, there is still a period of time from assembly to packaging and shipment that is uncontrollable. It cannot guarantee that the power of the product is still within the power control range required for shipment before shipment, and there is still a risk of exceeding the shipment power limit.

[0004] Therefore, how to accurately control the battery power of electronic devices is an urgent problem to be solved. Summary of the invention

[0005] In view of this, the power control method, device, equipment, and storage medium of the electronic device provided in the embodiments of the present application can realize accurate control of the power of the electronic device, thereby improving the reliability of power control. The power control method, device, equipment, and storage medium of the electronic device provided in the embodiments of the present application are implemented as follows:

[0006] The power control method of an electronic device provided in an embodiment of the present application includes: detecting whether a target charging flag exists in the electronic device, and obtaining a detection result, wherein the detection result is used to indicate that the electronic device is in a pre-factory charging state or a post-factory charging state; and controlling the power of the electronic device according to a full-charge voltage corresponding to the detection result; wherein different detection results correspond to different full-charge voltages, the full-charge voltage corresponding to the pre-factory charging state is a first voltage, and the full-charge voltage corresponding to the post-factory charging state is a second voltage, and the first voltage is less than the second voltage.

[0007] In some embodiments, the power of the electronic device is managed and controlled based on the full charge voltage corresponding to the detection result, including: when the detection result is that the target charging flag exists in the electronic device, determining that the electronic device is in the pre-factory charging state; detecting the voltage of the electronic device; when the voltage of the electronic device is greater than or equal to the first voltage, determining that the electronic device has reached a full charge state, and clearing the target charging flag.

[0008] In some embodiments, the method further includes: when the detection result is that the target charging flag does not exist in the electronic device, determining that the electronic device is in the post-factory charging state; detecting the voltage of the electronic device; and when the voltage of the electronic device is greater than or equal to the second voltage and the current is less than or equal to the cut-off current, determining that the electronic device has reached a fully charged state.

[0009] In some embodiments, before detecting whether a target charging flag exists in the electronic device and obtaining a detection result, the method further includes: configuring the target charging flag when the electronic device is activated and powered on for the first time.

[0010] In some embodiments, the electronic device includes a transport mode, and the method further includes: when the electronic device is in the transport mode after leaving the factory, obtaining the transport current of the electronic device; determining the target storage time according to the mapping relationship between the total battery capacity of the electronic device, the transport current, the power corresponding to the first voltage, the preset minimum control power of the electronic device and the storage time; when the time when the electronic device is in the transport mode reaches the target storage time, outputting a power replenishment reminder message.

[0011] In some embodiments, the target storage time is determined based on a mapping relationship among the total battery capacity of the electronic device, the transport current, the power corresponding to the first voltage, the preset minimum control power of the electronic device, and the storage time, including: obtaining a target power difference based on a difference between the power corresponding to the first voltage and the preset minimum control power; obtaining the target storage time based on a ratio of the target power difference to the transport current.

[0012] In some embodiments, the electronic device also includes a charging indicator light, which is used to change from a first indication state to a second indication state when the electronic device reaches a fully charged state. The first indication state is used to indicate the charging state, and the second indication state is used to indicate the fully charged state.

[0013] The power control device of an electronic device provided in an embodiment of the present application includes: a detection module, used to detect whether a target charging flag is present in the electronic device, and obtain a detection result, wherein the detection result is used to indicate that the electronic device is in a pre-factory charging state or a post-factory charging state; a control module, used to control the power of the electronic device according to a full-charge voltage corresponding to the detection result; wherein different detection results correspond to different full-charge voltages, the full-charge voltage corresponding to the pre-factory charging state is a first voltage, and the full-charge voltage corresponding to the post-factory charging state is a second voltage, and the first voltage is less than the second voltage.

[0014] The computer device provided in the embodiment of the present application includes a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the method described in the embodiment of the present application is implemented.

[0015] The computer-readable storage medium provided in the embodiment of the present application stores a computer program thereon, and when the computer program is executed by a processor, the method provided in the embodiment of the present application is implemented.

[0016] The computer program product provided in the embodiments of the present application includes a computer program, and when the computer program is executed by a processor, the method provided in the embodiments of the present application is implemented.

[0017] In the power control method, apparatus, device, and storage medium of the electronic device provided in the embodiments of the present application, firstly, it is detected whether there is a target charging flag in the electronic device, and the detection result is obtained, and the detection result is used to indicate that the electronic device is in a pre-factory charging state or a post-factory charging state; then, the power of the electronic device is controlled according to the full charge voltage corresponding to the detection result; wherein different detection results correspond to different full charge voltages, the full charge voltage corresponding to the pre-factory charging state is a first voltage, and the full charge voltage corresponding to the post-factory charging state is a second voltage, and the first voltage is less than the second voltage. In the power control method of the electronic device of the present application, the corresponding full charge voltage is obtained based on the charging state of the electronic device, and then the power of the electronic device is controlled, which can improve the reliability of power control. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0019] Figure 1 A schematic diagram of a system architecture of an electronic device provided by an embodiment of the present application;

[0020] Figure 2A schematic diagram of an implementation flow of a method for controlling power consumption of an electronic device provided in one embodiment of the present application;

[0021] Figure 3 A schematic diagram of an implementation flow of a method for controlling power consumption of an electronic device provided in another embodiment of the present application;

[0022] Figure 4 A schematic diagram of the overall implementation process of a power control method for an electronic device provided in one embodiment of the present application;

[0023] Figure 5 A structural schematic diagram of a power control device for an electronic device provided in one embodiment of the present application;

[0024] Figure 6 A structural schematic diagram of a computer device provided for one embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.

[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0027] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0028] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0029] Normally, when electronic devices leave the factory, the battery needs to have a certain amount of power left to ensure that consumers can use the product directly without charging after purchasing it. If the electronic device has a power display or wireless communication module, the current battery power of the electronic device can be checked through the display interface or external receiving device when it is shipped, and then the battery can be recharged to within the required range according to the battery shipping requirements before shipment.

[0030] However, current electronic devices, especially consumer electronic products, have increasingly strict control over costs. In some electronic products that do not require high power display or do not display power, in order to reduce costs, a power meter is generally not used to detect the battery power. Usually, the detection voltage is used, and then the voltage is fitted to the power curve to represent the product power.

[0031] If the voltage value of the product is to be measured, it can only be done before the product is assembled on the production line. Although this method can control the power, there is still a period of time from assembly to packaging and shipment that is uncontrollable. During this period, steps such as whole-machine function testing and software version burning cannot be guaranteed that the power of the product is still within the power control range required for shipment before shipment, and there is still a risk of exceeding the shipment power limit; and for batteries that do not meet the shipment conditions, it is necessary to monitor the battery voltage in real time during recharging to avoid overcharging, and this can only be controlled after the batteries are assembled and the whole machine is assembled. It is impossible to achieve unified recharging after assembly, and there is a risk of power out of control; in addition, the power of the products shipped by the existing solution cannot be kept uniform. After the product is shipped, if it is placed in the warehouse for too long and the power is insufficient for secondary recharging, the charging power cannot be controlled. If the battery voltage is manually tested one by one for recharging during shipment, the workload is large and the manpower investment is high.

[0032] Therefore, how to accurately control the battery power of electronic devices is an urgent problem to be solved.

[0033] In view of this, an embodiment of the present application provides a method for controlling the power of an electronic device, which is applied to an electronic device, and specifically includes: detecting whether a target charging flag exists in the electronic device, and obtaining a detection result, the detection result is used to indicate that the electronic device is in a pre-factory charging state or a post-factory charging state; then, according to the full charge voltage corresponding to the detection result, the power of the electronic device is controlled; wherein different detection results correspond to different full charge voltages, the full charge voltage corresponding to the pre-factory charging state is a first voltage, and the full charge voltage corresponding to the post-factory charging state is a second voltage, and the first voltage is less than the second voltage. In the method for controlling the power of an electronic device of the present application, the corresponding full charge voltage is obtained based on the charging state of the electronic device, and then the power of the electronic device is controlled, which can improve the reliability of power control.

[0034] It should be understood that the electronic devices involved in the embodiments of the present application may be mobile phones, tablet computers, laptop computers, PDAs, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, smart screens, artificial intelligence (AI) speakers, headphones, terminals in industrial control, terminals in self-driving, terminals in remote medical surgery, terminals in smart grids, terminals in transportation safety, terminals in smart cities, terminals in smart homes, personal digital assistants (PDAs), etc., and the embodiments of the present application are not limited to this.

[0035] For example, Figure 1 A schematic diagram of the system architecture of an electronic device provided in one embodiment of the present application. Figure 1 As shown, the electronic device includes components such as a processor 110, a memory 120, a transceiver 130, a display unit 140, an input unit 150, a sensor 160, an audio circuit 170, and a power module 180.

[0036] The processor 110 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 120, and calling data stored in the memory 120, the processor 110 performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor, which mainly processes operating devices, user interfaces, and application programs, etc. Of course, other processors may also be included, which are not listed here one by one.

[0037] The memory 120 can be used to store software programs and modules. The processor 110 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 120. The memory 120 mainly includes a program storage area and a data storage area, wherein the program storage area can store operating devices, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0038] The transceiver 130 can provide wireless communication solutions for electronic devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The transceiver 130 can be one or more devices integrating at least one communication processing module, for example, an antenna and a baseband processor are integrated into the transceiver 130, or an antenna and a modem processor are integrated into the transceiver 130, etc., which are not limited here.

[0039] The display unit 140 may be used to display information input by a user or information provided to a user and various menus of the electronic device. The display unit 140 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc., which is not limited here.

[0040] The input unit 150 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the input unit 150 can collect the user's operations on or near it, and drive the corresponding connection device according to a pre-set program. In addition, the input unit 150 may include a touch panel, which can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel, the input unit 150 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of function keys (such as volume control keys, switch keys, etc.), trackballs, joysticks, etc.

[0041] The electronic device may also include at least one sensor 160, such as a gyroscope sensor, a motion sensor, and other sensors. The motion sensor may include an acceleration sensor for detecting the magnitude of acceleration in all directions, and the magnitude and direction of gravity when stationary, which may be used for applications to identify the posture of the electronic device, such as horizontal and vertical screen switching, related games, magnetometer posture calibration, etc. As for other sensors that may be configured in the electronic device, such as a pressure gauge, a barometer, a hygrometer, a thermometer, an infrared sensor, a fingerprint sensor, etc., they will not be described in detail here.

[0042] The audio circuit 170 may include a speaker and a microphone, and may provide an audio interface between a user and an electronic device. The audio circuit 170 may transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 170 and converted into audio data, and then the audio data is output to the processor 110 for processing, and then sent to another electronic device through the video circuit, or the audio data is output to the memory 120 for further processing.

[0043] The electronic device also includes a power module 180 for supplying power to various components. Optionally, the power module 180 can be logically connected to the processor 110 through a power management device, so that the power management device can manage functions such as charging, discharging, and power consumption.

[0044] Although not shown, the electronic device may further include a camera. Optionally, the camera may be located at the front or rear of the electronic device, which is not limited in the present embodiment.

[0045] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0046] In order to make the purpose and technical solution of this application clearer and more intuitive, the power control method and device, equipment, and storage medium of the electronic device provided by the embodiment of this application will be described in detail below in combination with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain this application and are not used to limit this application.

[0047] Please refer to Figure 2 , is a schematic diagram of the implementation flow of a method for controlling the power consumption of an electronic device provided by an embodiment of the present application. The method can be applied to Figure 1 The electronic equipment shown, such as Figure 2 As shown, the method may include the following steps 201 and 202:

[0048] Step 201 , detecting whether a target charging flag exists in the electronic device, and obtaining a detection result, where the detection result is used to indicate whether the electronic device is in a pre-factory charging state or a post-factory charging state.

[0049] It should be noted that the embodiments of the present application can be applied to electronic devices without display devices and wireless communication devices, but with a processor and charging functions. Of course, they can also be used in electronic devices with display devices and wireless communication devices, and the present application does not limit this.

[0050] In some embodiments, when the electronic device is assembled and powered on for the first time, a target charging flag is configured by default. The presence or absence of the target charging flag means which charging state the electronic device is in when charging. Exemplarily, when the detection result shows that the target charging flag exists in the electronic device, the electronic device is in a pre-factory charging state, and when the detection result shows that the target charging flag does not exist in the electronic device, the electronic device is in a post-factory charging state.

[0051] Optionally, the first time the electronic device is activated and powered on may be the first time the electronic device is plugged into a charger for charging, or the first time the electronic device is connected to a power source in another manner, or other manners, which are not limited in this application.

[0052] Step 202: Control the power of the electronic device according to the full charge voltage corresponding to the detection result.

[0053] Among them, different detection results correspond to different full charge voltages, the full charge voltage corresponding to the pre-shipment charging state is a first voltage, and the full charge voltage corresponding to the post-shipment charging state is a second voltage, and the first voltage is less than the second voltage. In some embodiments, when the detection result is that there is a target charging flag in the electronic device, the electronic device is in the pre-shipment charging state, and the full charge voltage corresponding to the pre-shipment charging state is the first voltage; that is, if there is a target charging flag in the electronic device, the electronic device reaches the full charge condition when charging to the first voltage, and then stops charging. When the detection result is that there is no target charging flag in the electronic device, the electronic device is in the post-shipment charging state, and the full charge voltage corresponding to the post-shipment charging state is the second voltage; that is, if there is no target charging flag in the electronic device, the electronic device reaches the full charge condition when charging to the second voltage, and then stops charging.

[0054] In some embodiments, the first voltage is less than the second voltage, and the second voltage corresponds to the maximum capacity of the battery of the electronic device. Exemplarily, assuming that the second voltage is 4.5V, the first voltage may be 4V.

[0055] In this embodiment, firstly, it is detected whether there is a target charging flag in the electronic device, and the detection result is obtained, and the detection result is used to indicate that the electronic device is in a pre-factory charging state or a post-factory charging state; then, the power of the electronic device is controlled according to the full charge voltage corresponding to the detection result; wherein different detection results correspond to different full charge voltages, the full charge voltage corresponding to the pre-factory charging state is a first voltage, and the full charge voltage corresponding to the post-factory charging state is a second voltage, and the first voltage is less than the second voltage. In the power control method of the electronic device of the present application, the corresponding full charge voltage is obtained based on the charging state of the electronic device, and then the power of the electronic device is controlled, which can ensure the consistency of the power of the electronic device and improve the reliability of power control.

[0056] Based on the above embodiments, Figure 3 A schematic diagram of the implementation flow of a method for controlling the power consumption of an electronic device provided in another embodiment of the present application is shown in FIG. Figure 3 As shown, the power control method of the electronic device may include the following steps 301 to 305:

[0057] Step 301: When the electronic device is activated and powered on for the first time, a target charging flag is configured.

[0058] In some embodiments, the first time the electronic device is activated and powered on may be the first time the electronic device is plugged into a charger for charging, or the first time the electronic device is connected to a power source in another manner, or other methods, which are not limited in this application.

[0059] In some embodiments, when the electronic device is activated and powered on for the first time, the electronic device may automatically configure the target charging flag, or may also be configured in other ways, which is not specifically limited in the present application.

[0060] Step 302 , detecting whether a target charging flag exists in the electronic device, and obtaining a detection result, where the detection result is used to indicate whether the electronic device is in a pre-factory charging state or a post-factory charging state.

[0061] In some embodiments, the presence or absence of the target charging flag bit means which charging state the electronic device is in when charging, for example, whether it is a charging state before leaving the factory or a charging state after leaving the factory.

[0062] It should be understood that the pre-factory charging state generally refers to the charging state of the electronic device when it is in the factory. Usually, the electronic device will not be charged too much in the pre-factory charging state, because if the battery power is too high, the battery chemical properties are more active, and there will be safety hazards during transportation; of course, the battery power cannot be too low, otherwise the storage time will be too short, and a reasonable power range will generally be set. The post-factory charging state usually refers to the charging state of the electronic device after it reaches the consumer. According to the consumer's needs, the electronic device can be charged to the maximum capacity of the battery to facilitate user use.

[0063] Step 303: When the detection result shows that the target charging flag is present in the electronic device, it is determined that the electronic device is in a pre-factory charging state.

[0064] Among them, different detection results correspond to different full-charge voltages, and the full-charge voltage corresponding to the charging state before leaving the factory is the first voltage.

[0065] In some embodiments, when the electronic device detects the target charging flag, it is determined that the electronic device is in a pre-factory charging state, and the full charge voltage corresponding to the pre-factory charging state is a first voltage. That is, when the electronic device is charged in the pre-factory charging state, it enters a full charge state when the first voltage is reached and charging stops.

[0066] Step 304: Detect the voltage of the electronic device.

[0067] In some embodiments, the electronic device may detect the voltage of the electronic device through its own processor or other devices with a voltage detection function.

[0068] Step 305: When the voltage of the electronic device is greater than or equal to the first voltage, determine that the electronic device has reached a fully charged state, and clear the target charging flag.

[0069] In some embodiments, the full charge voltage corresponding to the pre-factory charging state is a first voltage, so when the voltage is greater than or equal to the first voltage, the electronic device determines that the electronic device has reached a full charge state and stops charging.

[0070] Optionally, when the voltage of the electronic device is greater than or equal to the first voltage and charging stops when the full charge state is reached, the charger can be unplugged and the target charging flag can be cleared to ensure that the electronic device can only be charged to the first voltage for the first time, thereby ensuring the consistency of the entire device shipment.

[0071] In some embodiments, the electronic device also includes a charging indicator light, which is used to change from a first indication state to a second indication state when the electronic device reaches a fully charged state. The first indication state is used to indicate the charging state, and the second indication state is used to indicate the fully charged state.

[0072] For example, assuming that the first indication state is a red light and the second indication state is a green light, the charging indicator light of the electronic device is always in a red light state during the charging process. When the voltage of the electronic device is greater than or equal to the first voltage and reaches a fully charged state, the charging indicator light turns green, allowing the user to more intuitively understand the charging status of the electronic device.

[0073] In one possible implementation, when the detection result is that the target charging flag does not exist in the electronic device, it is determined that the electronic device is in a post-factory charging state, wherein different detection results correspond to different full-charge voltages, the full-charge voltage corresponding to the pre-factory charging state is a first voltage, and the full-charge voltage corresponding to the post-factory charging state is a second voltage, and the first voltage is less than the second voltage.

[0074] Further, the voltage of the electronic device is detected, and when the voltage of the electronic device is greater than or equal to the second voltage and the current is less than or equal to the cut-off current, it is determined that the electronic device has reached a fully charged state and charging is stopped.

[0075] The cut-off current here, also known as the charging cut-off current, refers to the current threshold set when the battery is fully charged to prevent the battery from being damaged by overcharging. When the charging current drops to this threshold, the charging process will stop. The cut-off current setting varies depending on factors such as the type, model and capacity of the battery, and is usually preset in advance.

[0076] In some embodiments, the electronic device further includes a charging indicator light, which is used to change from a first indication state to a second indication state when the electronic device reaches a fully charged state, the first indication state being used to indicate a charging state, and the second indication state being used to indicate a fully charged state. Exemplarily, assuming that the first indication state is a red light and the second indication state is a green light, the charging indicator light of the electronic device is always in a red light state during the charging process, and when the voltage of the electronic device is greater than or equal to the second voltage, and the current is less than or equal to the cut-off current, and the fully charged state is reached, the charging indicator light changes to a green light state, so that the user can more intuitively understand the charging status of the electronic device.

[0077] In one possible implementation, after the electronic device leaves the factory, in order to save battery power consumption, the technician will set the electronic device to a transport mode, which may also be called a shipping mode. In this mode, the battery consumption is very low and the transport current can also be measured.

[0078] Optionally, the electronic device may enter the transport mode by a user sending a command to the electronic device to put it into the transport mode, or it may be set inside the electronic device to enter the transport mode after the first charge is completed, or it may be other ways, which are not limited in this application.

[0079] In some embodiments, when the electronic device is in transport mode, the transport current of the electronic device is obtained, and then the target storage time is determined based on the mapping relationship among the total battery capacity of the electronic device, the transport current, the power corresponding to the first voltage, the preset minimum control power of the electronic device and the storage time; and then when the time when the electronic device is in transport mode reaches the target storage time, a recharge reminder message is output.

[0080] Among them, the electronic device determines the target storage time according to the mapping relationship among the total battery capacity of the electronic device, the transport current, the power corresponding to the first voltage, the preset minimum control power of the electronic device and the storage time. The implementation method is as follows: according to the difference between the power corresponding to the first voltage and the preset minimum control power, the target power difference is obtained, and then the target storage time is obtained according to the ratio of the target power difference to the transport current.

[0081] Exemplarily, assuming that the battery of the electronic device is fully charged, that is, the maximum capacity is 450mAh, the transport current is 5uA, the battery voltage 4V is the preset maximum control voltage, that is, the first voltage mentioned above, corresponding to 80% of the power, and the battery voltage 3.8V is the preset minimum control voltage, corresponding to 70% of the power, then the target storage time T = 450mAh*(80%-70%) / 5uA = 375 days = 12.5 months.

[0082] That is to say, after 12.5 months of storage, the electronic device will reach the minimum controlled power. At this time, the electronic device will output a power replenishment reminder message to remind the user that power replenishment is needed.

[0083] Optionally, the user may output the charging reminder information by flashing the charging indicator light, sounding a reminder ringtone, etc., which is not limited in this application.

[0084] Furthermore, users can recharge their electronic devices after 12.5 months. The recharging time can be calculated based on the charging speed. If it is linear charging and the charging current is 450Ma, the recharging time t = 450mAh (80% - 70%) / 450Ma = 0.1 hour = 6 minutes. In other words, users can plug in the charger and charge the electronic device for 6 minutes.

[0085] In this embodiment, when the electronic device is activated and powered on for the first time, the target charging flag is configured, and then during the charging process, the target charging flag is detected in the electronic device, and the detection result is obtained. When the detection result is that the target charging flag exists in the electronic device, it is determined that the electronic device is in a pre-factory charging state, and the voltage of the electronic device is detected. When the voltage of the electronic device is greater than or equal to the first voltage, it is determined that the electronic device has reached a full charge state, and the target charging flag is cleared; and when the detection result is that the target charging flag does not exist in the electronic device, it is determined that the electronic device is in a post-factory charging state, and the voltage of the electronic device is further detected. When the voltage of the electronic device is greater than or equal to the second voltage, and the current is less than or equal to the cut-off current, it is determined that the electronic device has reached a full charge state and charging is stopped. In the power control method of the electronic device, the charging state of the electronic device is determined by detecting the target charging flag, and then the power of the electronic device is controlled according to the full charge voltage corresponding to different charging states. In other words, the solution in the present application only requires one charging, which is more reliable in power control; and it is a unified replenishment carried out after the electronic device is assembled but before packaging, which can ensure the consistency of power of multiple electronic devices; in addition, since the first charging is unified, when the second charging is performed, it is only necessary to replenish the battery for a fixed time according to the storage time when the power is lower than the required power, thereby realizing precise control of the battery power.

[0086] Based on the above examples, please refer to Figure 4 , Figure 4 The overall implementation flow diagram of the power control method of an electronic device provided in one embodiment of the present application is as follows: Figure 4 As shown, the method may include the following steps 401 to 409:

[0087] Step 401, the electronic device system is turned on.

[0088] Step 402, configure the target charging flag.

[0089] Step 403, charging.

[0090] Step 404 , determine whether the target charging flag exists, if yes, execute step 405 , if not, execute step 408 .

[0091] Step 405 , determining whether the voltage of the electronic device is less than the first voltage, if the voltage of the electronic device is less than the first voltage, executing step 403 , otherwise, executing step 406 .

[0092] Step 406, reaching full charge state for the first time.

[0093] Step 407, end charging and clear the target charging flag.

[0094] Step 408, determine whether the voltage is less than the second voltage and whether the current is greater than the cut-off current; if the voltage of the electronic device is less than the second voltage and the current is greater than the cut-off current, execute step 403, otherwise execute step 409.

[0095] Step 409, reaching a fully charged state, and ending charging.

[0096] It should be noted that the power control method of the electronic device in this embodiment is only an example, and the specific implementation method can refer to the above Figure 2 and Figure 3 The description in the corresponding embodiments will not be repeated here in this application.

[0097] To summarize, in the power control method of an electronic device provided in the embodiment of the present application, the charging status of the electronic device is determined by detecting the target charging flag, and then the power of the electronic device is controlled according to the full charging voltage corresponding to different charging statuses, thereby achieving precise control of the battery power and improving the reliability of power control.

[0098] It should be understood that, although the steps in the above-mentioned flowcharts are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flowcharts may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0099] Based on the foregoing embodiments, an embodiment of the present application provides a power control device for an electronic device, which includes the modules included and the units included in the modules, and can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit, a microprocessor, a digital signal processor or a field programmable gate array, etc.

[0100] Figure 5 A schematic diagram of a power control device for an electronic device according to an embodiment of the present application is shown in FIG. Figure 5 As shown, the power control device 500 of the electronic device includes a detection module 501 and a control module 502, wherein:

[0101] The detection module 501 is used to detect whether a target charging flag exists in the electronic device and obtain a detection result, wherein the detection result is used to indicate that the electronic device is in a pre-factory charging state or a post-factory charging state; the control module 502 is used to control the power of the electronic device according to the full charge voltage corresponding to the detection result; wherein different detection results correspond to different full charge voltages, the full charge voltage corresponding to the pre-factory charging state is a first voltage, and the full charge voltage corresponding to the post-factory charging state is a second voltage, and the first voltage is less than the second voltage.

[0102] In some embodiments, the management and control module 502 is specifically used to: when the detection result is that the target charging flag exists in the electronic device, determine that the electronic device is in the pre-factory charging state; detect the voltage of the electronic device; when the voltage of the electronic device is greater than or equal to the first voltage, determine that the electronic device has reached a fully charged state and clear the target charging flag.

[0103] In some embodiments, the management and control module 502 is also specifically used to: determine that the electronic device is in the post-factory charging state when the detection result is that the target charging flag does not exist in the electronic device; detect the voltage of the electronic device; and determine that the electronic device has reached a fully charged state when the voltage of the electronic device is greater than or equal to the second voltage and the current is less than or equal to the cut-off current.

[0104] In some embodiments, the device further includes: a configuration module. The configuration module is used to configure the target charging flag when the electronic device is activated and powered on for the first time.

[0105] In some embodiments, the electronic device includes a transport mode, and the device further includes: an acquisition module, a determination module, and an output module. The acquisition module is used to acquire the transport current of the electronic device when the electronic device is in the transport mode after leaving the factory; the determination module is used to determine the target storage time according to the mapping relationship between the total battery capacity of the electronic device, the transport current, the power corresponding to the first voltage, the preset minimum control power of the electronic device, and the storage time; the output module is used to output a power replenishment reminder message when the time when the electronic device is in the transport mode reaches the target storage time.

[0106] In some embodiments, the determination module is specifically used to: obtain a target power difference based on the difference between the power corresponding to the first voltage and the preset minimum control power; and obtain the target storage time based on the ratio of the target power difference to the transport current.

[0107] In some embodiments, the electronic device also includes a charging indicator light, which is used to change from a first indication state to a second indication state when the electronic device reaches a fully charged state. The first indication state is used to indicate the charging state, and the second indication state is used to indicate the fully charged state.

[0108] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0109] It should be noted that in the embodiments of this application Figure 5 The division of modules in the power control device of the electronic device shown is schematic, which is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or it can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. It can also be implemented in the form of a combination of software and hardware.

[0110] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0111] The embodiment of the present application provides a computer device, which may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above method is implemented.

[0112] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.

[0113] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.

[0114] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0115] In one embodiment, the power control device of the electronic device provided in the present application can be implemented in the form of a computer program. The computer program can be used in Figure 6The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the above-mentioned device. The computer program composed of various program modules enables the processor to execute the steps in the method of each embodiment of the present application described in this specification.

[0116] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0117] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.

[0118] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.

[0119] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0120] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.

[0121] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0122] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0123] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0124] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0125] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0126] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0127] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0128] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for controlling the power of an electronic device, characterized in that: include: Detecting whether a target charging flag exists in the electronic device and obtaining a detection result, wherein the detection result is used to indicate that the electronic device is in a pre-factory charging state or a post-factory charging state; Controlling the power of the electronic device according to the full charge voltage corresponding to the detection result; Among them, different detection results correspond to different full-charge voltages, the full-charge voltage corresponding to the pre-factory charging state is a first voltage, the full-charge voltage corresponding to the post-factory charging state is a second voltage, and the first voltage is less than the second voltage.

2. The method according to claim 1, characterized in that The controlling the power of the electronic device according to the full charge voltage corresponding to the detection result includes: If the detection result is that the target charging flag bit exists in the electronic device, determining that the electronic device is in the pre-factory charging state; detecting a voltage of the electronic device; When the voltage of the electronic device is greater than or equal to the first voltage, it is determined that the electronic device reaches a fully charged state, and the target charging flag is cleared.

3. The method according to claim 2, characterized in that The method further comprises: If the detection result is that the target charging flag does not exist in the electronic device, determining that the electronic device is in the post-factory charging state; detecting a voltage of the electronic device; When the voltage of the electronic device is greater than or equal to the second voltage and the current is less than or equal to the cut-off current, it is determined that the electronic device reaches a fully charged state.

4. The method according to claim 1, characterized in that: Before detecting whether a target charging flag exists in the electronic device and obtaining a detection result, the method further includes: When the electronic device is activated and powered on for the first time, the target charging flag is configured.

5. The method according to claim 1, characterized in that: The electronic device includes a transport mode, and the method further includes: When the electronic device is in the shipping mode after leaving the factory, obtaining the shipping current of the electronic device; Determine a target storage duration according to a mapping relationship between the total battery capacity of the electronic device, the transport current, the power corresponding to the first voltage, the preset minimum control power of the electronic device, and the storage duration; When the duration of the electronic device being in the transport mode reaches the target storage duration, a power replenishment reminder message is output.

6. The method according to claim 5, characterized in that The determining the target storage duration according to a mapping relationship among the total battery capacity of the electronic device, the transport current, the power corresponding to the first voltage, the preset minimum control power of the electronic device, and the storage duration includes: Obtaining a target power difference according to a difference between the power corresponding to the first voltage and the preset minimum control power; The target storage time is obtained according to the ratio of the target power difference to the transport current.

7. The method according to claim 1, characterized in that The electronic device also includes a charging indicator light, which is used to change from a first indication state to a second indication state when the electronic device reaches a fully charged state. The first indication state is used to indicate the charging state, and the second indication state is used to indicate the fully charged state.

8. A power control device for an electronic device, characterized in that: include: A detection module, used to detect whether a target charging flag exists in the electronic device, and obtain a detection result, wherein the detection result is used to indicate that the electronic device is in a pre-factory charging state or a post-factory charging state; A control module, used to control the power of the electronic device according to the full charge voltage corresponding to the detection result; Among them, different detection results correspond to different full-charge voltages, the full-charge voltage corresponding to the pre-factory charging state is a first voltage, the full-charge voltage corresponding to the post-factory charging state is a second voltage, and the first voltage is less than the second voltage.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, wherein: When the processor executes the program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.