CN116667268A - Method for preventing triggering over-current protection and electronic equipment - Google Patents

Method for preventing triggering over-current protection and electronic equipment Download PDF

Info

Publication number
CN116667268A
CN116667268A CN202211617718.6A CN202211617718A CN116667268A CN 116667268 A CN116667268 A CN 116667268A CN 202211617718 A CN202211617718 A CN 202211617718A CN 116667268 A CN116667268 A CN 116667268A
Authority
CN
China
Prior art keywords
power supply
mode
short
circuit fault
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211617718.6A
Other languages
Chinese (zh)
Other versions
CN116667268B (en
Inventor
李晨希
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211617718.6A priority Critical patent/CN116667268B/en
Priority claimed from CN202211617718.6A external-priority patent/CN116667268B/en
Publication of CN116667268A publication Critical patent/CN116667268A/en
Application granted granted Critical
Publication of CN116667268B publication Critical patent/CN116667268B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H3/00Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection
    • H02H3/02Details
    • H02H3/05Details with means for increasing reliability, e.g. redundancy arrangements
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H3/00Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection
    • H02H3/006Calibration or setting of parameters
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H3/00Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection
    • H02H3/08Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection responsive to excess current
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H3/00Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection
    • H02H3/08Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection responsive to excess current
    • H02H3/087Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection responsive to excess current for dc applications
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H3/00Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection
    • H02H3/08Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection responsive to excess current
    • H02H3/093Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection responsive to excess current with timing means

Landscapes

  • Emergency Protection Circuit Devices (AREA)
  • Direct Current Feeding And Distribution (AREA)

Abstract

The application provides a method for preventing triggering overcurrent protection and electronic equipment, wherein the method comprises the following steps: powering up the power supply according to a set first mode, wherein the first mode is any one mode of a plurality of modes, and the plurality of modes correspond to different current thresholds; after triggering the overcurrent protection function of the power supply, determining a second mode from the plurality of modes, wherein a current threshold value corresponding to the second mode is higher than a current threshold value corresponding to the first mode; updating the first mode into the second mode, and continuously executing the step of powering up the power supply according to the set first mode until the overcurrent protection function of the power supply is not triggered. Therefore, when the overcurrent protection function of the power supply is triggered, the mode of the power supply is adjusted, the overcurrent protection triggered by the power supply is avoided as much as possible, and the use experience of a user is ensured.

Description

Method for preventing triggering over-current protection and electronic equipment
Technical Field
The application belongs to the technical field of power supplies, and particularly relates to a method for preventing triggering over-current protection and electronic equipment.
Background
In electronic devices, power sources typically include peripheral power sources and system power sources. The external power supply can supply power for electronic elements such as a camera, a loudspeaker, a microphone, a flash lamp, a display screen, a radar and the like in the electronic equipment. The system power supply may power electronic components such as processors, memory, etc. in the electronic device.
Currently, in the case that the load current exceeds a current threshold corresponding to the operation mode of the power supply, the electronic device may trigger an over-current protection (over current protection, OCP) function of the power supply to avoid power supply damage.
However, after the electronic device triggers the OCP function of the power supply, the electronic device may restart or the electronic component may not be used normally, which affects the use experience of the user. For example, after the electronic device triggers the OCP function of the power supply, the camera will not be able to take a picture.
Disclosure of Invention
The application provides a method for preventing triggering of overcurrent protection and electronic equipment, and aims to avoid power supply triggering of overcurrent protection in the electronic equipment as much as possible.
In a first aspect, the present application provides a method for preventing triggering of an over-current protection, comprising:
powering up the power supply according to a set first mode, wherein the first mode is any one mode of a plurality of modes, and the plurality of modes correspond to different current thresholds;
after triggering an overcurrent protection function of a power supply, determining a second mode from a plurality of modes, wherein a current threshold value corresponding to the second mode is higher than a current threshold value corresponding to the first mode;
updating the first mode into the second mode, and continuously executing the step of powering up the power supply according to the set first mode until the overcurrent protection function of the power supply is not triggered.
In the method, the power supply is powered on according to the set first mode, after the overcurrent protection function of the power supply is triggered, the power supply is not directly powered off, the second mode is determined from the modes, the first mode is updated to be the second mode, and the step of powering on the power supply according to the set first mode is continuously executed until the overcurrent protection function of the power supply is not triggered.
Therefore, after the overcurrent protection function of the power supply is triggered, the mode of the power supply is adjusted, the overcurrent protection triggered by the power supply is avoided as much as possible, and the use experience of a user is ensured.
With reference to the first aspect, in certain implementations of the first aspect, after triggering an over-current protection function of the power supply, determining the second mode from the plurality of modes includes:
after triggering an overcurrent protection function of the power supply, determining a first mode as a current mode of the power supply;
and when the level corresponding to the current mode of the power supply is smaller than the highest level corresponding to the modes, determining a mode which is one level higher than the current mode of the power supply in the modes as the second mode.
In the method, after the overcurrent protection function of the power supply is triggered, the current mode of the power supply can be determined, and the mode of the power supply is gradually adjusted to the highest level from the mode of one level higher than the current mode, namely, the mode of one level higher than the current mode is adjusted step by step, so that the condition that the power consumption of the electronic equipment is caused due to the fact that the level of the mode of one-time adjustment is too high is avoided. With reference to the first aspect, in certain implementations of the first aspect, the method further includes:
When the level corresponding to the current mode of the power supply is equal to the highest level corresponding to the modes, recording the first time number, wherein the first time number is the total time number for triggering the overcurrent protection function of the power supply;
and powering down the power supply.
In the method, when the grade corresponding to the current mode of the power supply is equal to the highest grade corresponding to the modes, the first times are recorded, the power supply is powered down, and when the grade of the current mode is the highest grade, the overcurrent protection function of the power supply is triggered, the mode with the higher grade cannot be adjusted any more, the power supply can be powered down directly, and the power supply is prevented from being damaged.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes:
when the first time number is greater than or equal to the preset times, determining that the power supply has short circuit fault;
and storing a short-circuit fault identifier of the power supply in a first register of the power supply, wherein the short-circuit fault identifier of the power supply is used for indicating that the power supply has an over-short-circuit fault.
In the method, when the first time number is greater than or equal to the preset times, it is determined that the power supply has a short circuit fault, that is, the power supply is powered on according to the highest-level mode, and when the number of times of triggering the overcurrent protection is greater than or equal to the preset times, it is determined that the power supply hardware has a short circuit fault indeed.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes:
when the overcurrent protection function of the power supply is not triggered, a first mode of powering up the power supply is stored in a second register of the power supply.
The power supply is electrified according to the set first mode, the overcurrent protection function of the current is not triggered, the load current value of the power supply does not exceed the current threshold corresponding to the first mode, at the moment, the first mode is stored in the second register of the power supply, and the power supply is conveniently electrified according to the set first mode directly next time.
With reference to the first aspect, in certain implementation manners of the first aspect, before powering up the power supply according to the set first mode, the method further includes:
obtaining short-circuit fault data of a power supply, wherein the short-circuit fault data of the power supply are used for indicating whether the power supply has an over-short-circuit fault or not;
when the short-circuit fault data of the power supply indicate that the power supply has no short-circuit fault, determining a third mode from the plurality of modes, wherein the grade corresponding to the third mode is the lowest grade corresponding to the plurality of modes;
the third mode is determined as the first mode.
In the method, since the level corresponding to the third mode is the lowest level corresponding to the plurality of modes, the corresponding current threshold is the lowest current threshold corresponding to the plurality of modes, and when the mode with the lowest level is determined as the first mode, the power supply is electrified according to the set first mode, the voltage of the electronic equipment is unchanged, the current threshold is reduced, the power consumption is reduced, and the effect of saving electricity can be achieved.
With reference to the first aspect, in certain implementations of the first aspect, the short circuit fault data of the power supply includes: short circuit fault identification of a power supply; the method further comprises the steps of:
determining whether a short-circuit fault identifier of the power supply is stored in a first register of the power supply;
when a short circuit fault identifier of the power supply is stored in a first register of the power supply, determining that short circuit fault data of the power supply indicate that the power supply has an excessive short circuit fault;
and when the short-circuit fault identification of the power supply is not stored in the first register of the power supply, determining that the short-circuit fault data of the power supply indicate that the power supply has not failed in short-circuit.
In the method, whether the power supply has the over-short circuit fault can be rapidly determined by whether the short circuit fault identifier is stored in the first register.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes:
when the short-circuit fault data of the power supply indicates that the power supply has an excessive short-circuit fault, the power supply is not powered on.
When the power supply has an over-short circuit fault, the power supply is not electrified, the over-current protection is not triggered any more, and the problem that the electronic equipment cannot be used due to restarting and the like caused by electrifying the electronic equipment again is avoided.
With reference to the first aspect, in certain implementations of the first aspect, the plurality of modes are determined according to a load condition and a load capacity of the power supply.
In a second aspect, the present application provides an apparatus for preventing triggered over-current protection, the apparatus for implementing triggered over-current protection being used to implement the method for preventing triggered over-current protection in the first aspect and any one of the possible designs of the first aspect.
Specifically, the device for preventing triggering of overcurrent protection comprises: the device comprises a power-on module, a determination module and an updating module.
The power-on module is used for powering on the power supply according to a set first mode, wherein the first mode is any one mode of a plurality of modes, and the plurality of modes correspond to different current thresholds;
the determining module is used for determining a second mode from the plurality of modes after triggering the overcurrent protection function of the power supply, wherein the current threshold value corresponding to the second mode is higher than the current threshold value corresponding to the first mode;
and the updating module is used for updating the first mode into the second mode and continuously executing the step of powering on the power supply according to the set first mode until the overcurrent protection function of the power supply is not triggered.
With reference to the second aspect, in certain implementations of the second aspect, the determining module is specifically configured to:
After triggering the overcurrent protection function of the power supply, determining the current mode of the power supply according to the current threshold value corresponding to the power supply when the overcurrent protection function of the power supply is triggered;
and when the level corresponding to the current mode of the power supply is smaller than the highest level corresponding to the multiple modes, determining a mode which is one level higher than the current mode of the power supply in the multiple modes as the second mode.
With reference to the second aspect, in certain implementations of the second aspect, the determining module is specifically configured to:
when the level corresponding to the current mode of the power supply is equal to the highest level corresponding to the modes, recording the first time number, wherein the first time number is the total time number for triggering the overcurrent protection function of the power supply;
and powering down the power supply.
With reference to the second aspect, in certain implementations of the second aspect, the determining module is specifically configured to:
when the first time number is greater than or equal to the preset times, determining that the power supply has short circuit fault;
and storing a short-circuit fault identifier of the power supply in a first register of the power supply, wherein the short-circuit fault identifier of the power supply is used for indicating that the power supply has an over-short-circuit fault.
With reference to the second aspect, in certain implementations of the second aspect, the determining module is specifically configured to:
When the overcurrent protection function of the power supply is not triggered, a first mode of powering up the power supply is stored in a second register of the power supply.
With reference to the second aspect, in certain implementation manners of the second aspect, the apparatus further includes an acquisition module, configured to:
obtaining short-circuit fault data of a power supply, wherein the short-circuit fault data of the power supply are used for indicating whether the power supply has an over-short-circuit fault or not;
when the short-circuit fault data of the power supply indicate that the power supply has no short-circuit fault, determining a third mode from the plurality of modes, wherein the grade corresponding to the third mode is the lowest grade corresponding to the plurality of modes;
the third mode is determined as the first mode.
With reference to the second aspect, in some implementations of the second aspect, the acquiring module is specifically configured to determine whether a short-circuit fault identifier of the power supply is stored in a first register of the power supply;
when a short circuit fault identifier of the power supply is stored in a first register of the power supply, determining that short circuit fault data of the power supply indicate that the power supply has an excessive short circuit fault;
and when the short-circuit fault identification of the power supply is not stored in the first register of the power supply, determining that the short-circuit fault data of the power supply indicate that the power supply has not failed in short-circuit.
With reference to the second aspect, in certain implementations of the second aspect, the acquiring module is specifically configured to:
when the short-circuit fault data of the power supply indicates that the power supply has an excessive short-circuit fault, the power supply is not powered on.
With reference to the second aspect, in certain implementations of the second aspect, the plurality of modes are determined according to a load condition and a load capacity of the power supply.
In a third aspect, the present application provides an electronic device comprising: the system power supply, the peripheral power supply, the first electronic component and the second electronic component, wherein the system power supply is used for supplying power to the first electronic component, the peripheral power supply is used for supplying power to the second electronic component, and the overcurrent protection processing module is used for executing the method for preventing the triggering of the overcurrent protection in any one of the possible designs of the first aspect and the first aspect so as not to trigger the overcurrent protection function of the system power supply and/or the peripheral power supply.
In a fourth aspect, the present application provides an electronic device comprising a processor; the computer code or instructions in the memory, when executed by the processor, cause the electronic device to perform the method of the first aspect and any one of the possible designs of the first aspect to prevent triggering of the over-current protection.
In a fifth aspect, the present application provides an electronic device comprising one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored on the memory, which when executed by the one or more processors, cause the electronic device to perform the method of preventing triggering of over-current protection of the first aspect and any of the possible designs of the first aspect.
In a sixth aspect, the present application provides a chip system comprising a processor for invoking and running a computer program from a memory, such that an electronic device on which the chip system is installed performs the method of preventing triggering of over-current protection of the first aspect and any of the possible designs of the first aspect.
In a seventh aspect, the present application provides a computer readable storage medium comprising a computer program which, when run on an electronic device, causes the electronic device to perform the method of preventing triggering of over-current protection of the first aspect and any of the possible designs of the first aspect.
In an eighth aspect, the present application provides a computer program product for causing a computer to perform the method of the first aspect and any one of the possible designs of the first aspect for preventing triggering of an over-current protection when the computer program product is run on the computer.
It will be appreciated that the advantages of the second to eighth aspects may be found in the relevant description of the first aspect, and are not repeated here.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 3 is a flow chart of a method for preventing triggering of over-current protection according to an embodiment of the present application;
FIG. 4 is a flow chart of a method for preventing triggering of over-current protection according to an embodiment of the present application;
FIG. 5 is a flow chart of a method for preventing triggering of over-current protection according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an apparatus for preventing triggering of over-current protection according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. Wherein, in the description of the embodiments of the present application, unless otherwise indicated, "/" means or, for example, a/B may represent a or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, in the description of the embodiments of the present application, "plurality" means two or more than two.
The terms "first," "second," "third," and the like, are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first", "a second", or a third "may explicitly or implicitly include one or more such feature.
The electronic equipment has an overcurrent protection (over current protection, OCP) function, so that the power supply damage can be avoided, and the reliability and the stability of the system can be improved.
After the electronic device triggers the OCP function of the power supply, the electronic device may restart or the electronic component may not be used normally.
Each power supply of the electronic equipment corresponds to a plurality of modes, the modes correspond to different grades, and the modes correspond to different current thresholds.
Each power supply of the electronic equipment is provided with one mode of a plurality of modes, and the electronic equipment can trigger the OCP function of the power supply when the load current exceeds the current threshold corresponding to the working mode of the power supply as the working mode.
Generally, the level of the working mode of the power supply is lower, the corresponding current threshold is lower, the OCP function of the power supply is easier to trigger, and the electronic equipment is more likely to restart or the electronic element cannot be used normally.
The application can provide a method for preventing triggering over-current protection, a device for preventing triggering over-current protection, electronic equipment, a chip system, a computer readable storage medium and a computer program product, which can relatively easily trigger an OCP function of a power supply in consideration of lower grade of the working mode of the power supply, and can power up the power supply, after triggering the OCP function of the power supply, the power supply is not powered down, but the working mode of the power supply is adjusted, and the power is re-electrified until the OCP function of the power supply is not triggered.
Therefore, the mode of the power supply is adjusted, the power supply is prevented from triggering overcurrent protection as far as possible, the stability of the electronic equipment is improved, and the use experience of a user is ensured.
The method for preventing the triggering of the overcurrent protection can be applied to electronic equipment.
For example, the electronic device may be a cell phone, tablet computer, wearable device, in-vehicle device, notebook computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (personal digital assistant, PDA), etc.
For convenience of description, fig. 1 illustrates an electronic device 100 as an example of a mobile phone.
As shown in fig. 1, in some embodiments, the electronic device 100 may include a first electronic component, a second electronic component, a system power supply 111, and a peripheral power supply 112.
In some embodiments, the first electronic component includes a processor 101 or the like.
In some embodiments, the second electronic component includes a communication module 102, a display 103, a camera 104, and the like.
The processor 101 may include one or more processing units, for example: the processor 101 may include an application processor (application processor, AP), a modem processor, a graphics processor, an image signal processor (image signal processor, ISP), a controller, a memory, a video stream codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors 101.
The controller may be a neural hub and command center of the electronic device 100. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 101 for storing instructions and data.
In some embodiments, the memory in the processor 101 is a cache memory. The memory may hold instructions or data that has just been used or recycled by the processor 101. If the processor 101 needs to reuse the instruction or data, it may be called directly from memory. Repeated accesses are avoided and the latency of the processor 101 is reduced, thus improving the efficiency of the system.
In some embodiments, the processor 101 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The communication module 102 may include an antenna 1, an antenna 2, a mobile communication module, and/or a wireless communication module.
The display screen 103 may display images or videos in the human-computer interaction interface.
The camera 104 may be used to capture images or record video.
As shown in fig. 1, in some embodiments, the second electronic component may also include a sensor 105. The second electronic component may also include an internal memory 106, an external memory interface 107, a USB interface 108, etc. The electronic device may also include a charge management module 109, a battery 110, and the like.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The charge management module 109 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger.
In some wired charging embodiments, the charging management module 109 may receive a charging input of a wired charger through the USB interface 108.
In some wireless charging embodiments, the charge management module 109 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 109 may also supply power to the electronic device 100 through the system power source 111 and the peripheral power source 112 while charging the battery 110.
The system power supply 111 and the peripheral power supply 112 are used to connect the battery 110, the charge management module 109 and the processor 101. The system power supply 111 receives input from the battery 110 and/or the charge management module 109 to power the first electronic component. The peripheral power supply receives input from the battery 110 and/or the charge management module 109 to power the second electronic component. The system power supply 111 may also be used to monitor battery capacity, battery cycle times, battery health (leakage, impedance) and other parameters.
The external memory interface 107 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 101 via an external memory interface 107 to implement data storage functions. For example, files such as music, video streams, etc. are stored in an external memory card.
The internal memory 106 may be used to store computer executable program code that includes instructions. The processor 101 executes instructions stored in the internal memory 106 to thereby perform various functional applications and data processing of the electronic device 100. The internal memory 106 may include a stored program area and a stored data area.
The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 106 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash memory (universal flash storage, UFS), and the like.
The sensor module 103 in the electronic device 100 may include components such as image sensors, touch sensors, pressure sensors, gyroscopic sensors, barometric pressure sensors, magnetic sensors, acceleration sensors, distance sensors, proximity sensors, ambient light sensors, fingerprint sensors, temperature sensors, bone conduction sensors, etc. to enable sensing and/or acquisition of different signals.
Optionally, the electronic device 100 may also include other peripheral devices such as a mouse, keys, indicator lights, keyboard, speakers, microphone, etc.
The keys include a start key, a volume key, etc. The keys may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The indicator may be an indicator light, which may be used to indicate a change in state of charge and charge, or may be used to indicate a message, missed call, notification, etc.
It is to be understood that the structure illustrated in the present embodiment does not constitute a specific limitation on the electronic apparatus 100.
In other embodiments, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Fig. 2 is a schematic diagram of an electronic device according to an embodiment of the application. When the eye movement data processing method provided by the embodiment of the present application is applied to the electronic device 100 shown in fig. 1, software in the electronic device 100 may be divided into an application layer 201, a hardware abstraction layer (Hardware Abstraction Layer, HAL) 202 and a driver layer 203 as shown in fig. 2.
The application layer 201 may have a plurality of applications installed therein, and may include a camera application (camera application) for implementing a photographing function.
The camera application program refers to a computer program running on an operating system and capable of executing a photographing task. When the format of the camera application is android application package (Android application package, APK) format, the camera application may run on the android operating system.
In the embodiment of the present application, the camera application may be an application having a photographing function. For example, an application program with a function of sharing short video may be used as the camera application program in the embodiment of the present application if the application program has a shooting function.
The hardware abstraction layer 202 is software located between the operating system kernel and the hardware circuitry, and is typically used to abstract the hardware to implement the interaction of the operating system with the hardware circuitry at the logic level. In an embodiment of the present application, the hardware abstraction layer 202 may include a camera hardware abstraction layer (camera Hardware Abstraction Layer, camera HAL) that enables camera applications to interact with the image sensor at a logical layer.
The driver layer 203 may have a plurality of drivers for driving hardware operations installed therein.
It should be noted that, the application layer 201, the hardware abstraction layer 202, and the driver layer 203 may also include other contents, which are not specifically limited herein.
Based on the above description of the scenario, the electronic device is taken as an example, and the method for preventing triggering over-current protection provided by the embodiment of the application is described in detail with reference to the accompanying drawings and application scenario.
Referring to fig. 3, fig. 3 is a flow chart illustrating a method for preventing triggering of over-current protection according to an embodiment of the application.
As shown in fig. 3, the method for preventing triggering over-current protection provided by the present application may include:
s101, powering up the power supply according to the set first mode.
The first mode is any one of a plurality of modes, the plurality of modes correspond to different current thresholds, and the plurality of modes correspond to different levels.
For example, the plurality of modes is 7 modes, which are mode 1, mode 2, mode 3, mode 4, mode 5, mode 6, and mode 7, respectively.
Correspondingly, the level of mode 1 is 1, the level of mode 2 is 2, the level of mode 3 is 3, the level of mode 4 is 4, the level of mode 5 is 5, the level of mode 6 is 6, and the level of mode 7 is 7.
The current thresholds corresponding to the 7 modes are:
the current threshold corresponding to the mode 1 is 50mA, the current threshold corresponding to the mode 2 is 100mA, the current threshold corresponding to the mode 3 is 150mA, the current threshold corresponding to the mode 4 is 200mA, the current threshold corresponding to the mode 5 is 250mA, the current threshold corresponding to the mode 6 is 300mA, and the current threshold corresponding to the mode 7 is 350mA.
The current threshold value corresponding to each mode is not particularly limited in the present application.
The first mode may be any one of the 7 modes described above.
For example, when the first mode is mode 1, the electronic device may power up the power supply according to mode 1.
In addition, the system power supply may include multiple power supplies, and the peripheral power supply may include multiple power supplies.
The power supply can be any power supply in the system power supply or any power supply in the peripheral power supply.
For example, the power supply may be a peripheral power supply that supplies power to a camera in the electronic device.
In some embodiments, the load current conditions of each power supply of the system power supply or the peripheral power supply may be different, and some power supplies have larger load current and some power supplies have smaller load current, so that the electronic device can associate multiple modes for each power supply according to the load condition and the load carrying capacity of the power supply, and is convenient to set a corresponding mode according to the load condition of the power supply.
When the power supply is a peripheral power supply for supplying power to a camera in the electronic equipment, the load is the camera, the output current of the camera is 40mA, then the current threshold value of the overcurrent protection corresponding to the power supply for supplying power to the camera can be 50mA, and the load carrying capacity of the power supply is low.
When the power supply is a peripheral power supply for supplying power to a display screen in the electronic equipment, the load is the display screen, the output current of the display screen is 180mA, then the current threshold value of the overcurrent protection corresponding to the power supply for supplying power to the display screen can be 200mA, and the load carrying capacity of the power supply is general.
If the power supply is a system power supply for supplying power to a processor in the electronic equipment, the load is the processor, the output current of the processor is 345mA, then the current threshold value of the overcurrent protection corresponding to the power supply for supplying power to the processor can be 350mA, and the load carrying capacity of the power supply is higher.
Therefore, the electronic equipment can be used for associating a plurality of modes with different current thresholds for each power supply, so that the modes can meet the overcurrent protection requirements of different power supplies.
In addition, when the electronic equipment powers on the power supply according to the set first mode, the current threshold corresponding to the overcurrent protection function of the electronic equipment triggering the power supply is the current threshold corresponding to the first mode.
For example, when the first mode is a mode 1 with a level 1, and when the current threshold corresponding to the mode 1 with a level 1 is 50mA, the electronic device may trigger the OCP function of the power supply when the load current exceeds 50mA, and the electronic device may not trigger the OCP function of the power supply when the load current does not exceed 50 mA.
S102, after triggering an overcurrent protection function of the power supply, determining a second mode from the plurality of modes.
The current threshold corresponding to the second mode is higher than the current threshold corresponding to the first mode.
In some embodiments, the second mode is a higher level mode than the first mode.
When the level of the second mode is higher than the level of the first mode, the current threshold may be increased by one level with the level of the second mode.
Assuming that the plurality of modes are 7 modes, the first mode is mode 1 with a level 1, and the current threshold corresponding to mode 1 with a level 1 is 50mA.
Then, after the electronic device powers up the power supply according to the mode 1 and triggers the overcurrent protection function of the power supply, the electronic device may determine a mode one level higher than the level of the mode 1, for example, the mode 2, from among the 7 modes, since the mode 1 is the lowest level mode.
In other embodiments, the second mode is a mode that is higher than any one level of the first mode.
The level of the second mode may be determined according to the current threshold corresponding to the first mode, and the current threshold of the second mode may be greater than the current threshold of the first mode.
Assuming that the plurality of modes are 7 modes, the first mode is mode 1 with a level 1, and the current threshold corresponding to mode 1 with a level 1 is 50mA.
Then, after the electronic device powers up the power supply according to the mode 1 and triggers the overcurrent protection function of the power supply, the electronic device may determine a mode higher than the mode 1 by two levels, for example, a mode 3, from the 7 modes because the mode 1 is the lowest level mode.
It can be seen that after triggering the over-current protection function of the power supply, the electronic device does not power down the power supply, but re-determines the power-up mode.
And S103, updating the first mode into the second mode, and continuously executing S101 until the overcurrent protection function of the power supply is not triggered.
Based on S102, after determining the second mode from the plurality of modes, the electronic device may update the first mode to the second mode, and continue to perform the step of powering up the power supply according to the set first mode.
After triggering the over-current protection of the power supply, the electronic device may determine a second mode from the plurality of modes, update the first mode to the second mode, and execute S101-S103 in a loop until the over-current protection function of the power supply is not triggered.
Assuming that the first mode is a mode 1 with a level of 1, the second mode is a mode 2 with a level of 2, the current threshold corresponding to the mode 1 is 50mA, and the current threshold corresponding to the mode 2 is 100mA.
The electronic equipment powers on the power supply according to the mode 1, the load current exceeds 50mA of the power supply, and after the OCP function of the power supply is triggered, the electronic equipment can determine the mode 2 with the grade of 2 from a plurality of modes, and the mode 1 is updated to be the mode 2.
And the electronic equipment continues to electrify the power supply according to the mode 1, at the moment, the current threshold of the power supply is 100mA, the load current does not exceed 100mA of the power supply, and the OCP function of the power supply is not triggered.
Therefore, the electronic equipment is powered on according to the first mode, after the overcurrent protection function of the power supply is triggered, the electronic equipment can be prevented from being directly powered off for protection, the problem that the electronic equipment cannot be used due to restarting and the like is avoided, and a second mode except the first mode is determined from the multiple modes, and the electronic equipment is powered on again until the overcurrent protection function of the power supply is not triggered by the electronic equipment.
The method for preventing the triggering of the over-current protection comprises the steps that the electronic equipment powers on a power supply according to the set first mode, determines the second mode from a plurality of modes after triggering the over-current protection function of the power supply, updates the first mode into the second mode, and continues to execute the step of powering on the power supply according to the set first mode until the electronic equipment does not trigger the over-current protection function of the power supply. Therefore, after the overcurrent protection function of the power supply is triggered, the electronic equipment does not directly power down the power supply, but rather determines the power-up mode of the power supply again, so that the level of the power-up mode of the power supply is improved, the corresponding current threshold is improved, and the load current is not easy to exceed the current threshold. Therefore, after the overcurrent protection function of the power supply is triggered, the overload capacity of the electronic equipment is improved, so that the overcurrent protection fault of the electronic equipment is repaired, the overcurrent protection function of the power supply is prevented from being triggered as much as possible, the stability of the electronic equipment is improved, and the use experience of a user is ensured.
Based on the description of the embodiment shown in fig. 3 above, when the electronic device determines the second mode from among the plurality of modes after triggering the overcurrent protection function of the power supply, the electronic device may determine step by step from a mode higher than the first mode by one step according to the level of each mode.
Next, a detailed implementation procedure of the method for preventing triggering of the over-current protection according to the present application will be described with reference to fig. 4.
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for preventing triggering of an over-current protection according to an embodiment of the application.
As shown in fig. 4, the method for preventing triggering over-current protection provided by the present application may include:
s201, powering up the power supply according to the set first mode.
The implementation of S201 is similar to that of S101 in the embodiment shown in fig. 3, and will not be described herein.
S202, judging whether to trigger an overcurrent protection function of the power supply.
After the overcurrent protection function of the power supply is not triggered each time, the electronic device can execute S203; after triggering the over-current protection function of the power supply, the electronic device may execute S204.
And S203, when the overcurrent protection function of the power supply is not triggered, storing a first mode for powering up the power supply currently in a second register of the power supply.
The electronic equipment powers on the power supply according to the set first mode, does not trigger an overcurrent protection function of the power supply, and indicates that the load current of the power supply does not exceed a current threshold corresponding to the first mode.
Therefore, the electronic equipment can store the first mode of powering on the power supply in the second register of the power supply, so that the electronic equipment can power on the power supply directly according to the set first mode at the next time.
For example, when the electronic device powers on the power supply of the camera according to the first mode and does not trigger the overcurrent protection function of the power supply of the camera, the electronic device can store the first mode in the second register of the power supply of the camera, so that the electronic device can power on the power supply of the camera according to the first mode in the process of using the camera next time by a user.
S204, after triggering the overcurrent protection function of the power supply, determining the first mode as the current mode of the power supply.
Typically, the current mode of the power supply is the first mode in S201.
The electronic equipment powers on the power supply according to the set first mode, and after the overcurrent protection function of the power supply is triggered, the mode of the power supply can be determined to be the current mode of the power supply when the overcurrent protection function of the power supply is triggered, so that preparation is made for determining whether to update the current mode according to the grade corresponding to the current mode.
In addition, in the whole process, the process of powering up the power supply by the electronic device according to the set first mode and the process of acquiring the current mode of the power supply are not the same process, so that the electronic device can determine the current mode of the power supply after triggering the overcurrent protection function of the power supply in order to ensure the effectiveness.
S205, judging whether the current mode is the highest-level mode in the modes.
When the level corresponding to the current mode of the power supply is less than the highest level corresponding to the plurality of modes, the electronic device may execute S206; when the level corresponding to the current mode of the power supply is equal to the highest level corresponding to the plurality of modes, the electronic device may perform S207.
S206, when the level corresponding to the current mode of the power supply is smaller than the highest level corresponding to the modes, determining a mode which is one level higher than the current mode of the power supply in the modes as a second mode.
Let the plurality of modes be 7 modes, namely mode 1, mode 2, mode 3, mode 4, mode 5, mode 6 and mode 7, respectively, and the current mode is mode 1. The level of mode 1 is 1, the level of mode 2 is 2, the level of mode 3 is 3, the level of mode 4 is 4, the level of mode 5 is 5, the level of mode 6 is 6, and the level of mode 7 is 7.
Then, the mode one level higher than the level of the mode 1 is the mode 2, and the electronic device may determine the mode 2 as the second mode.
The electronic device determines a mode which is one level higher than the current mode of the power supply in the multiple modes as the second mode, so that the situation that the power consumption of the electronic device is caused by the fact that the level of the mode which is adjusted at one time is too high can be avoided.
S207, when the level corresponding to the current mode of the power supply is equal to the highest level corresponding to the modes, recording the first times.
The first time is the total time for triggering the overcurrent protection function of the power supply.
Let the plurality of modes be 7 modes, namely mode 1, mode 2, mode 3, mode 4, mode 5, mode 6 and mode 7, respectively, the highest level of the mode 7 corresponding to the mode being 7.
When the current mode of the power supply is mode 7, the electronic device may record a total number of times that the over-current protection function of the power supply is triggered.
That is, the electronic device can record the total number of times the power supply is powered on in the highest-level mode, triggering the overcurrent protection function.
Thus, the electronic device may record the first number of times as 1 when it is determined for the first time that the level corresponding to the current mode of the power supply is equal to the highest level corresponding to the plurality of modes.
The electronic device may record the first number as 2 when the second time determines that the level corresponding to the current mode of the power supply is equal to the highest level corresponding to the plurality of modes.
It can be seen that when the level corresponding to the current mode of the power supply is equal to the highest level corresponding to the plurality of modes, the electronic device cannot adjust the mode of the higher level any more, and the electronic device can not redefine the second mode from the plurality of modes.
In some embodiments, when the first number is greater than or equal to the preset number, it is determined that the power supply has a short circuit fault, and a short circuit fault identification of the power supply is stored in a first register of the power supply.
The short-circuit fault identification of the power supply is used for indicating that the power supply has an over-short-circuit fault.
The preset times are preset, and can be set according to actual conditions.
For example, the preset number of times may be 5 times.
Assume that the preset number of times is 5.
Then, the electronic device may determine that the power supply has a short circuit fault when the first number of times is 5, and store a short circuit fault identification of the power supply in a first register of the power supply.
The first time number indicates the number of times that the power supply triggers over-current protection when the electronic equipment powers on the power supply according to the mode with the highest grade.
The electronic equipment powers on the power supply according to the mode with the highest grade, and when the number of times of triggering over-current protection by the power supply is greater than or equal to the preset number of times, the electronic equipment can determine that the power supply has indeed generated a short circuit fault.
Therefore, the situation that the electronic equipment judges that the power supply hardware has a short circuit fault due to the fact that the instantaneous current of the load of the power supply is too large when the electronic equipment powers on the power supply according to the mode with the highest grade can be avoided.
S208, powering down the power supply.
When the level corresponding to the current mode of the power supply is equal to the highest level corresponding to the modes, the electronic equipment records the first times and powers down the power supply.
When the level of the current mode is the highest level, the electronic equipment also triggers the overcurrent protection function of the power supply, and at the moment, the electronic equipment can not adjust the mode with the higher level any more, and can directly power down the power supply.
S209, updating the first mode into the second mode, and continuing to execute S201 until the overcurrent protection function of the power supply is not triggered.
The implementation of S201 is similar to that of S103 in the embodiment shown in fig. 3, and will not be described herein.
In the application, when the overcurrent protection function of the power supply is not triggered, the first mode for powering on the power supply is stored in the second register of the power supply, so that the electronic equipment can conveniently power on the power supply according to the first mode stored in the second register next time.
After the overcurrent protection function of the power supply is triggered, the current mode of the power supply can be determined, when the level corresponding to the current mode of the power supply is smaller than the highest level corresponding to the modes, the mode higher than the current mode of the power supply by one level in the modes is determined to be the second mode, and the electronic equipment starts to adjust from the mode higher than the current mode by one level, so that the condition that the power consumption of the electronic equipment is caused due to the fact that the level of the mode adjusted at one time is too high is avoided.
In addition, after the electronic equipment triggers the overcurrent protection function of the power supply, the current mode of the power supply can be determined, when the grade corresponding to the current mode of the power supply is equal to the highest grade corresponding to a plurality of modes, the first times are recorded, the power supply is powered down, and the power supply is powered up according to the highest grade mode.
Based on the description of fig. 3 and 4 above, the electronic device may determine the mode with the smallest rank as the first mode before powering up the power supply in the set first mode.
Next, a detailed implementation procedure of the method for preventing triggering of the over-current protection according to the present application will be described with reference to fig. 5.
Referring to fig. 5, fig. 5 is a flowchart illustrating a method for preventing triggering of an over-current protection according to an embodiment of the application.
As shown in fig. 5, the method for preventing triggering over-current protection provided by the present application may include:
s301, acquiring short-circuit fault data of a power supply.
The short-circuit fault data of the power supply are used for indicating whether the power supply has an over-short-circuit fault or not.
In some embodiments, the short circuit fault data for the power supply includes: and the electronic equipment can determine whether the power supply has the fault identification according to whether the short circuit fault identification of the power supply is stored in the first register of the power supply.
When the short-circuit fault identification of the power supply is stored in the first register of the power supply, the electronic equipment can determine that the short-circuit fault data of the power supply indicate that the power supply has an excessive short-circuit fault; when the short-circuit fault identification of the power supply is not stored in the first register of the power supply, the electronic device may determine that the short-circuit fault data of the power supply indicates that the power supply has not failed.
In some embodiments, the fault identification may be represented by a binary number.
For example, when the binary number stored in the first register of the power supply is 1, the electronic device determines that the power supply has an over-short fault; when the binary number stored in the first register of the power supply is 0, the electronic device determines that the power supply has not failed due to a short circuit.
S302, judging whether an over-short circuit fault occurs.
When the short-circuit fault data of the power supply indicates that the power supply has an excessive short-circuit fault, the electronic device may execute S303; when the short-circuit fault data of the power supply indicates that the power supply has not failed the short-circuit fault, the electronic device may perform S304.
S303, when the short-circuit fault data of the power supply indicates that the power supply has failed due to a short-circuit, the power supply is not powered on.
The electronic equipment can not power up the power supply when the short-circuit fault data of the power supply indicate that the power supply has an excessive short-circuit fault, and the problem that the electronic equipment cannot be used due to restarting and the like of the electronic equipment caused by the power supply power up under the condition that the power supply has the excessive short-circuit fault is avoided.
S304, when the short-circuit fault data of the power supply indicate that the power supply has not failed in short-circuit, determining a third mode from the plurality of modes.
The level corresponding to the third mode is the lowest level corresponding to the plurality of modes, that is, the current threshold corresponding to the third mode is the minimum current threshold corresponding to the plurality of modes.
The plurality of modes are assumed to be 7 modes, namely mode 1, mode 2, mode 3, mode 4, mode 5, mode 6 and mode 7, respectively, and the level of mode 1 is 1 level and is the lowest level.
Then, when the short-circuit failure data of the power supply indicates that the power supply has not failed in short-circuit, the electronic device may determine the lowest level mode 1 from among the 7 modes.
S305, determining the third mode as the first mode.
Based on S304, the electronic device may determine a lowest-level mode corresponding to the plurality of modes, and thus, the electronic device may determine the lowest-level mode as the first mode.
Let the plurality of modes be 7 modes, and the mode of the lowest level be mode 1.
Then, the electronic device may determine mode 1 as the first mode.
S306, powering up the power supply according to the set first mode.
S307, judging whether to trigger the overcurrent protection function of the power supply.
And S308, storing a first mode for powering up the power supply in a second register of the power supply every time after the overcurrent protection function of the power supply is not triggered.
S309, after triggering the overcurrent protection function of the power supply, determining the current mode of the power supply according to the current threshold corresponding to the power supply when triggering the overcurrent protection function of the power supply.
S310, judging whether the current mode is the mode with the highest level in a plurality of modes.
S311, when the level corresponding to the current mode of the power supply is equal to the highest level corresponding to the modes, recording the first times.
S312, powering down the power supply.
S313, determining a mode which is one level higher than the current mode of the power supply in the plurality of modes as a second mode.
S314, updating the first mode into the second mode, and continuously executing the step of powering on the power supply according to the set first mode until the overcurrent protection function of the power supply is not triggered.
The implementation manners of S306-S314 are similar to those of S201-S209 in the embodiment shown in fig. 4, and are not repeated here.
In the application, when the short-circuit fault data of the power supply indicate that the power supply has an excessive short-circuit fault, the electronic equipment powers down the power supply, and when the power supply has the excessive short-circuit fault, the electronic equipment determines that the hardware of the power supply is damaged, so that the power supply can not be powered up, and the problems that the electronic equipment cannot be used due to restarting and the like caused by triggering the excessive current protection function of the power supply again when the power supply has the excessive short-circuit fault are avoided.
When the short-circuit fault data of the power supply indicates that the power supply has not failed due to short-circuit, the electronic device determines a third mode from the plurality of modes, and determines the third mode as the first mode, and since the level corresponding to the third mode is the lowest level corresponding to the plurality of modes, and the corresponding current threshold is the lowest current threshold corresponding to the plurality of modes, when the power supply is powered on according to the mode with the lowest level, the voltage of the electronic device is unchanged, the current threshold is reduced, the power consumption is reduced, and the electronic device can achieve the effect of saving power.
Based on the foregoing, in one particular embodiment, the following is assumed:
1. the electronic equipment is a mobile phone;
2. the plurality of modes is 7 modes, which are mode 1, mode 2, mode 3, mode 4, mode 5, mode 6, and mode 7, respectively.
3. The level of mode 1 is 1, the level of mode 2 is 2, the level of mode 3 is 3, the level of mode 4 is 4, the level of mode 5 is 5, the level of mode 6 is 6, and the level of mode 7 is 7.
4. The current thresholds corresponding to the 7 modes are: the current threshold corresponding to the mode 1 is 50mA, the current threshold corresponding to the mode 2 is 100mA, the current threshold corresponding to the mode 3 is 150mA, the current threshold corresponding to the mode 4 is 200mA, the current threshold corresponding to the mode 5 is 250mA, the current threshold corresponding to the mode 6 is 300mA, and the current threshold corresponding to the mode 7 is 350mA.
5. The power supply is one path of peripheral power supply for supplying power to the camera.
Based on the above assumption, the method for preventing triggering over-current protection provided by the application can be executed by combining the first case, the second case, the third case and the fourth case.
In a first case, the mobile phone powers on the power supply according to the mode 1, and does not trigger an overcurrent protection function of the power supply, and the method for preventing the triggering of the overcurrent protection performed by the mobile phone may include the following steps:
and 11, the mobile phone acquires short-circuit fault data of the power supply.
And step 12, judging whether the short-circuit fault data of the power supply indicate that the power supply has an excessive short-circuit fault.
And step 13, when the short-circuit fault data of the power supply indicate that the power supply has an excessive short-circuit fault, the mobile phone does not execute the operation of powering on the power supply.
And 14, when the short-circuit fault data of the power supply indicate that the power supply has not failed in short-circuit, determining the mode with the lowest level from 7 modes, namely, the mode 1.
And 15, powering up the power supply by the mobile phone according to the mode 1.
And step 16, judging whether to trigger the overcurrent protection function of the power supply.
And step 17, when the overcurrent protection function of the power supply is not triggered, the mobile phone stores the mode 1 in a second register of the power supply.
In the second case, the mobile phone powers on the power supply according to the mode 2, and does not trigger the overcurrent protection function of the power supply, and the method for preventing the triggering of the overcurrent protection performed by the mobile phone may include the following steps:
And step 21, the mobile phone acquires short-circuit fault data of the power supply.
Step 22, the mobile phone judges whether the short-circuit fault data of the power supply indicate that the power supply has an excessive short-circuit fault.
Step 23, when the short-circuit fault data of the power supply indicate that the power supply has an excessive short-circuit fault, the mobile phone does not execute the operation of powering on the power supply.
And step 24, when the short-circuit fault data of the power supply indicate that the power supply has not failed in short-circuit, determining the mode with the lowest level from 7 modes, namely, the mode 1.
Step 25, the mobile phone powers on the power supply according to the setting mode 1.
Step 26, the mobile phone judges whether to trigger the overcurrent protection function of the power supply.
Step 27, after triggering the overcurrent protection function of the power supply, the mobile phone can determine that the current mode of the power supply is mode 1.
Step 28, the mobile phone may determine that mode 1 is not the highest ranked mode of the 7 modes.
Step 29, the mobile phone updates the mode 1 to the mode 2, and continues to execute the step of powering up the power supply according to the set mode 1.
And step 30, judging whether to trigger the overcurrent protection function of the power supply.
Step 31, when the mobile phone does not trigger the overcurrent protection function of the power supply, the mode 2 is stored in the second register of the power supply.
In the third case, the mobile phone powers on the power supply according to the mode 7, and does not trigger the overcurrent protection function of the power supply, and the method for preventing the triggering of the overcurrent protection performed by the mobile phone may include the following steps:
Step 41, the mobile phone acquires short-circuit fault data of the power supply.
Step 22, the mobile phone judges whether the short-circuit fault data of the power supply indicate that the power supply has an excessive short-circuit fault.
Step 43, when the short-circuit fault data of the power supply indicate that the power supply has an excessive short-circuit fault, the mobile phone does not execute the operation of powering on the power supply.
In step 44, when the short-circuit fault data of the power supply indicate that the power supply has not failed in short-circuit, the mobile phone determines the mode with the lowest level from the 7 modes, namely, the mode 1.
Step 45, the mobile phone powers on the power supply according to the set mode 1.
Step 46, the mobile phone judges whether to trigger the overcurrent protection function of the power supply.
Step 47, after triggering the over-current protection function of the power supply, the mobile phone can determine that the current mode of the power supply is mode 1.
Step 48, the mobile phone may determine that mode 1 is not the highest ranked mode of the 7 modes.
Step 49, the mobile phone updates the mode 1 to the mode 2, and continues to execute the step of powering up the power supply according to the mode 1.
Step 50, the mobile phone judges whether to trigger the overcurrent protection function of the power supply.
Step 51, after triggering the over-current protection function of the power supply, the mobile phone can determine that the current mode of the power supply is mode 2.
Step 52, the handset may determine that mode 2 is not the highest ranked mode of the 7 modes.
Step 53, the mobile phone updates the mode 2 to the mode 3, and continues to execute the step of powering up the power supply according to the set mode 1.
Step 54, repeatedly executing steps 50-52 until the update mode 6 is the mode 7, and continuously executing the step of powering up the power supply according to the mode 1.
Step 55, the mobile phone judges whether to trigger the overcurrent protection function of the power supply.
Step 56, when the over-current protection function of the power supply is not triggered, the mobile phone stores the mode 2 in the second register of the power supply.
In the fourth case, the mobile phone powers on the power supply according to the mode 7 to trigger the overcurrent protection function of the power supply, and the method for preventing the triggering of the overcurrent protection performed by the mobile phone may include the following steps:
step 61, the mobile phone acquires short-circuit fault data of the power supply.
Step 62, the mobile phone judges whether the short-circuit fault data of the power supply indicate that the power supply has an excessive short-circuit fault.
Step 63, when the short-circuit fault data of the power supply indicate that the power supply has an excessive short-circuit fault, the mobile phone does not execute the operation of powering on the power supply.
In step 64, when the short-circuit fault data of the power supply indicate that the power supply has not failed in short-circuit, the mobile phone determines the mode with the lowest level from 7 modes, namely, the mode 1.
Step 65, the mobile phone powers on the power supply according to the set mode 1.
Step 66, the mobile phone judges whether to trigger the overcurrent protection function of the power supply.
Step 67, after triggering the over-current protection function of the power supply, the mobile phone can determine that the current mode of the power supply is mode 1.
Step 68, the handset may determine that mode 1 is not the highest ranked mode of the 7 modes.
Step 69, the mobile phone updates the mode 1 to the mode 2, and continues to execute the step of powering up the power supply according to the set mode 1.
Step 70, the mobile phone judges whether to trigger the overcurrent protection function of the power supply.
Step 71, after triggering the over-current protection function of the power supply, the mobile phone can determine that the current mode of the power supply is mode 2.
Step 72, the handset may determine that mode 2 is not the highest ranked mode of the 7 modes.
Step 73, the mobile phone updates the mode 2 to be the mode 3, and continues to execute the step of powering up the power supply according to the set mode 1.
Step 74, repeating the steps 70-71 until the mobile phone determines that the current mode of the power supply is mode 7, and recording the first time number.
Step 75, powering down the power supply.
The application also provides a device for preventing the triggering of the overcurrent protection.
Next, a device for preventing triggering of over-current protection according to an embodiment of the present application will be described in detail with reference to fig. 6.
Referring to fig. 6, fig. 6 is a schematic block diagram of an apparatus for preventing triggering of over-current protection according to an embodiment of the present application.
As shown in fig. 6, the apparatus 400 for preventing triggering over-current protection may exist independently, may also be integrated in other devices, may be capable of implementing intercommunication with the electronic device, and is used to implement operations corresponding to the electronic device in any of the foregoing method embodiments, where the apparatus 400 for preventing triggering over-current protection of the present application may include: a power-up module 402, a determination module 403, and an update module 404.
A power-up module 402, configured to power up the power supply according to a set first mode, where the first mode is one mode of multiple modes, and the multiple modes correspond to different current thresholds;
a determining module 403, configured to determine a second mode from the plurality of modes after triggering the overcurrent protection function of the power supply, where a current threshold corresponding to the second mode is higher than a current threshold corresponding to the first mode;
and the updating module 404 is configured to update the first mode to the second mode, and continue to perform the step of powering on the power supply according to the set first mode until the overcurrent protection function of the power supply is not triggered.
In some embodiments, the determining module 403 is specifically configured to:
After triggering the overcurrent protection function of the power supply, determining the current mode of the power supply according to the current threshold value corresponding to the power supply when the overcurrent protection function of the power supply is triggered;
and when the level corresponding to the current mode of the power supply is smaller than the highest level corresponding to the modes, determining a mode which is one level higher than the current mode of the power supply in the modes as the second mode.
In some embodiments, the determining module 403 is specifically configured to:
when the level corresponding to the current mode of the power supply is equal to the highest level corresponding to the modes, recording the first time number, wherein the first time number is the total time number for triggering the overcurrent protection function of the power supply;
and powering down the power supply.
In some embodiments, the determining module 403 is specifically configured to:
when the first time number is greater than or equal to the preset times, determining that the power supply has short circuit fault;
and storing a short-circuit fault identifier of the power supply in a first register of the power supply, wherein the short-circuit fault identifier of the power supply is used for indicating that the power supply has an over-short-circuit fault.
In some embodiments, the determining module 403 is specifically configured to:
when the overcurrent protection function of the power supply is not triggered, a first mode of powering up the power supply is stored in a second register of the power supply.
With continued reference to fig. 6, the apparatus 400 for preventing triggering of the overcurrent protection further includes an acquisition module 401 based on the structure shown in fig. 6. In fig. 6, the acquisition module 401 is represented by a dashed line.
In some embodiments, the obtaining module 401 is configured to:
obtaining short-circuit fault data of a power supply, wherein the short-circuit fault data of the power supply are used for indicating whether the power supply has an over-short-circuit fault or not;
when the short-circuit fault data of the power supply indicate that the power supply has no short-circuit fault, determining a third mode from the plurality of modes, wherein the grade corresponding to the third mode is the lowest grade corresponding to the plurality of modes;
the third mode is determined as the first mode.
In some embodiments, the obtaining module 401 is specifically configured to:
determining whether a short-circuit fault identifier of the power supply is stored in a first register of the power supply;
when a short circuit fault identifier of the power supply is stored in a first register of the power supply, determining that short circuit fault data of the power supply indicate that the power supply has an excessive short circuit fault;
and when the short-circuit fault identification of the power supply is not stored in the first register of the power supply, determining that the short-circuit fault data of the power supply indicate that the power supply has not failed in short-circuit.
In some embodiments, the obtaining module 401 is specifically configured to:
When the short-circuit fault data of the power supply indicates that the power supply has an excessive short-circuit fault, the power supply is not powered on.
In some embodiments, the plurality of modes are determined based on the load conditions and the load capabilities of the power supply.
Illustratively, the present application provides an electronic device comprising one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored on the memory, which when executed by the one or more processors, cause the electronic device to perform the method of preventing triggering of over-current protection in the previous embodiments.
It will be appreciated that the electronic device, in order to achieve the above-described functions, includes corresponding hardware and/or software modules that perform the respective functions. The present application can be implemented in hardware or a combination of hardware and computer software, in conjunction with the example algorithm steps described in connection with the embodiments disclosed herein. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application in conjunction with the embodiments, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The present embodiment may divide the functional modules of the electronic device according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated modules described above may be implemented in hardware. It should be noted that, in this embodiment, the division of the modules is schematic, only one logic function is divided, and another division manner may be implemented in actual implementation.
In the case of dividing each functional module by corresponding each function, the electronic device referred to in the above embodiment may further include: the device comprises a power-on module, a determination module and an updating module. Wherein the power-up module, the determination module, and the update module cooperate with one another to support the electronic device to perform the above-described steps, and/or other processes for the techniques described herein.
It should be noted that, all relevant contents of each step related to the above method embodiment may be cited to the functional description of the corresponding functional module, which is not described herein.
The electronic device provided in this embodiment is configured to execute the method for preventing triggering of the overcurrent protection, so that the same effect as that of the implementation method can be achieved.
Illustratively, the present application provides an electronic device comprising: the system power supply, the peripheral power supply, the first electronic component and the second electronic component, wherein the system power supply is used for supplying power to the first electronic component, the peripheral power supply is used for supplying power to the second electronic component, and the overcurrent protection processing module is used for executing the method for preventing the triggering of the overcurrent protection in the previous embodiment so as not to trigger the overcurrent protection function of the system power supply and/or the peripheral power supply.
Illustratively, the present application provides a chip system comprising a processor for invoking and running a computer program from a memory, such that an electronic device in which the chip system is installed performs the method of preventing triggering of over-current protection in the previous embodiments.
Illustratively, the present application provides a computer-readable storage medium having code or instructions stored therein which, when executed on an electronic device, cause the electronic device to perform the method of preventing triggering of over-current protection in the previous embodiments.
The present application illustratively provides a computer program product for causing an electronic device to implement the method of preventing triggering of over-current protection in the previous embodiments when the computer program product is run on a computer.
The electronic device, the computer readable storage medium, the computer program product, or the chip system provided in this embodiment are used to execute the corresponding method provided above, so that the beneficial effects thereof can be referred to the beneficial effects in the corresponding method provided above, and will not be described herein.
It will be appreciated by those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts shown as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (14)

1. A method of preventing triggering of over-current protection, the method comprising:
powering up a power supply according to a set first mode, wherein the first mode is one mode of a plurality of modes, and the plurality of modes correspond to different current thresholds;
after triggering the overcurrent protection function of the power supply, determining a second mode from the plurality of modes, wherein a current threshold corresponding to the second mode is higher than a current threshold corresponding to the first mode;
and updating the first mode into the second mode, and continuously executing the step of powering up the power supply according to the set first mode until the overcurrent protection function of the power supply is not triggered.
2. The method of claim 1, wherein the determining a second mode from the plurality of modes after triggering an over-current protection function of the power supply comprises:
After triggering an overcurrent protection function of the power supply, determining the first mode as a current mode of the power supply;
and when the level corresponding to the current mode of the power supply is smaller than the highest level corresponding to the modes, determining a mode which is one level higher than the current mode of the power supply in the modes as the second mode.
3. The method according to claim 2, wherein the method further comprises:
when the level corresponding to the current mode of the power supply is equal to the highest level corresponding to the modes, recording a first time number, wherein the first time number is the total time number for triggering the overcurrent protection function of the power supply;
and powering down the power supply.
4. A method according to claim 3, characterized in that the method further comprises:
when the first time is greater than or equal to the preset time, determining that the power supply has a short circuit fault;
and storing a short-circuit fault identifier of the power supply in a first register of the power supply, wherein the short-circuit fault identifier of the power supply is used for indicating that the power supply has an over-short-circuit fault.
5. The method according to any one of claims 1-4, further comprising:
And when the overcurrent protection function of the power supply is not triggered, storing the first mode for powering up the power supply currently in a second register of the power supply.
6. The method of any of claims 1-5, wherein prior to powering up the power supply in the first mode, the method further comprises:
obtaining short-circuit fault data of the power supply, wherein the short-circuit fault data of the power supply are used for indicating whether the power supply has an over-short-circuit fault or not;
determining a third mode from the plurality of modes when the short-circuit fault data of the power supply indicate that the power supply has not failed in short-circuit, wherein the grade corresponding to the third mode is the lowest grade corresponding to the plurality of modes;
and determining the third mode as the first mode.
7. The method of claim 6, wherein the short circuit fault data of the power supply comprises: a short circuit fault identifier of the power supply; the method further comprises the steps of:
determining whether a short circuit fault identifier of the power supply is stored in a first register of the power supply;
when a short-circuit fault identifier of the power supply is stored in a first register of the power supply, determining that short-circuit fault data of the power supply indicate that the power supply has an excessive short-circuit fault;
And when the short-circuit fault identification of the power supply is not stored in the first register of the power supply, determining that the short-circuit fault data of the power supply indicate that the power supply has not failed in short-circuit.
8. The method according to claim 6 or 7, characterized in that the method further comprises:
and when the short-circuit fault data of the power supply indicate that the power supply has an excessive short-circuit fault, the power supply is not powered on.
9. The method of any of claims 1-8, wherein the plurality of modes are determined based on a load condition and a load capacity of the power supply.
10. An apparatus for preventing triggering of over-current protection, wherein the apparatus for preventing triggering of over-current protection comprises means for performing the method for preventing triggering of over-current protection as claimed in any one of claims 1-9.
11. An electronic device, the electronic device comprising: a system power supply for supplying power to the first electronic component, a peripheral power supply for supplying power to the second electronic component, a first electronic component, and a second electronic component, the overcurrent protection processing module for executing the method of preventing triggering of overcurrent protection according to any one of claims 1 to 9 so that the overcurrent protection function of the system power supply and/or the peripheral power supply is not triggered.
12. An electronic device, comprising:
one or more processors;
a memory;
and one or more computer programs, wherein the one or more computer programs are stored on the memory, which when executed by the one or more processors, cause the electronic device to perform the method of preventing triggering of over-current protection as recited in any of claims 1-9.
13. A chip system comprising a processor for calling and running a computer program from a memory, such that an electronic device on which the chip system is installed performs the method of preventing triggering of an over-current protection as claimed in any one of claims 1-9.
14. A computer readable storage medium comprising a computer program, characterized in that the computer program, when run on an electronic device, causes the electronic device to perform the method of preventing triggering of an over-current protection according to any of claims 1-9.
CN202211617718.6A 2022-12-15 Method for preventing triggering over-current protection and electronic equipment Active CN116667268B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211617718.6A CN116667268B (en) 2022-12-15 Method for preventing triggering over-current protection and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211617718.6A CN116667268B (en) 2022-12-15 Method for preventing triggering over-current protection and electronic equipment

Publications (2)

Publication Number Publication Date
CN116667268A true CN116667268A (en) 2023-08-29
CN116667268B CN116667268B (en) 2024-07-12

Family

ID=

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104901267A (en) * 2015-06-19 2015-09-09 许昌学院 Ethernet electric equipment low-loss overcurrent protection circuit
CN108199341A (en) * 2018-01-05 2018-06-22 郑州云海信息技术有限公司 The dual threshold Over Current Protection System and method of a kind of Power Supply Hot Swap
CN109828652A (en) * 2018-12-26 2019-05-31 维沃移动通信有限公司 The control method and terminal device of power consumption mode
WO2020140656A1 (en) * 2018-12-30 2020-07-09 惠州三华工业有限公司 Overcurrent protection circuit, and overcurrent protection system
CN211127098U (en) * 2019-12-11 2020-07-28 武汉宝久创美科技有限公司 Overcurrent and short-circuit protection circuit for electromagnetic brake
CN112114647A (en) * 2020-10-29 2020-12-22 苏州浪潮智能科技有限公司 Power supply control method, system and device of server
CN112736839A (en) * 2020-12-11 2021-04-30 苏州浪潮智能科技有限公司 Overcurrent detection and protection method, system and medium
US20210247467A1 (en) * 2020-02-06 2021-08-12 Infineon Technologies Ag Updating a default switching level
CN113572126A (en) * 2021-09-23 2021-10-29 苏州浪潮智能科技有限公司 Overcurrent protection method and device and power supply circuit
CN217848945U (en) * 2022-08-05 2022-11-18 黄山学院 Self-locking type high-power SiC MOS tube overcurrent protection circuit

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104901267A (en) * 2015-06-19 2015-09-09 许昌学院 Ethernet electric equipment low-loss overcurrent protection circuit
CN108199341A (en) * 2018-01-05 2018-06-22 郑州云海信息技术有限公司 The dual threshold Over Current Protection System and method of a kind of Power Supply Hot Swap
CN109828652A (en) * 2018-12-26 2019-05-31 维沃移动通信有限公司 The control method and terminal device of power consumption mode
WO2020140656A1 (en) * 2018-12-30 2020-07-09 惠州三华工业有限公司 Overcurrent protection circuit, and overcurrent protection system
CN211127098U (en) * 2019-12-11 2020-07-28 武汉宝久创美科技有限公司 Overcurrent and short-circuit protection circuit for electromagnetic brake
US20210247467A1 (en) * 2020-02-06 2021-08-12 Infineon Technologies Ag Updating a default switching level
CN112114647A (en) * 2020-10-29 2020-12-22 苏州浪潮智能科技有限公司 Power supply control method, system and device of server
CN112736839A (en) * 2020-12-11 2021-04-30 苏州浪潮智能科技有限公司 Overcurrent detection and protection method, system and medium
CN113572126A (en) * 2021-09-23 2021-10-29 苏州浪潮智能科技有限公司 Overcurrent protection method and device and power supply circuit
CN217848945U (en) * 2022-08-05 2022-11-18 黄山学院 Self-locking type high-power SiC MOS tube overcurrent protection circuit

Similar Documents

Publication Publication Date Title
US10629013B2 (en) Unlocking control methods and related products
CN114443277A (en) Memory management method and device, electronic equipment and computer readable storage medium
CN107407951B (en) Electronic device and battery information providing method thereof
CN113778663B (en) Scheduling method of multi-core processor and electronic equipment
CN108631401B (en) Charging circuit, method, electronic device, and storage medium
CN114116191B (en) Memory cold page processing method and electronic equipment
WO2020103017A1 (en) Power-on process control method, power-on process control apparatus and terminal device
CN115292052B (en) Memory recycling method, electronic device and computer readable storage medium
CN116365079B (en) Electronic device, method for determining whether battery is old or new, and computer-readable storage medium
CN116028210B (en) Resource scheduling method, electronic equipment and storage medium
CN116094083B (en) Charging method, device and storage medium
CN111381996B (en) Memory exception handling method and device
CN116667268B (en) Method for preventing triggering over-current protection and electronic equipment
CN113839438A (en) Battery recharging protection method and electronic equipment
CN113672071A (en) Operating system running method and device, storage medium and terminal
CN116667268A (en) Method for preventing triggering over-current protection and electronic equipment
CN117724599A (en) Dormancy method, electronic equipment and computer readable storage medium
CN116315185A (en) Electronic device and battery management method
CN111581119B (en) Page recovery method and device
CN115083400A (en) Voice assistant awakening method and device
CN117667240B (en) Electronic device wake-up method, electronic device, and computer-readable storage medium
CN116048562B (en) Data updating method, electronic equipment and storage medium
CN116661678B (en) Data dump method and electronic equipment
CN117130825B (en) Method for preventing abnormal operation of electronic equipment and electronic equipment
CN112770002B (en) Heartbeat control method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant