CN111897669A - Method and device for detecting overcurrent protection of electronic equipment circuit - Google Patents

Method and device for detecting overcurrent protection of electronic equipment circuit Download PDF

Info

Publication number
CN111897669A
CN111897669A CN202010663051.8A CN202010663051A CN111897669A CN 111897669 A CN111897669 A CN 111897669A CN 202010663051 A CN202010663051 A CN 202010663051A CN 111897669 A CN111897669 A CN 111897669A
Authority
CN
China
Prior art keywords
target
overcurrent protection
circuit
state data
electronic equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010663051.8A
Other languages
Chinese (zh)
Inventor
刘兆龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN202010663051.8A priority Critical patent/CN111897669A/en
Publication of CN111897669A publication Critical patent/CN111897669A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • G06F11/0775Content or structure details of the error report, e.g. specific table structure, specific error fields
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • G06F11/0778Dumping, i.e. gathering error/state information after a fault for later diagnosis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Emergency Protection Circuit Devices (AREA)

Abstract

The embodiment of the invention discloses a method and a device for detecting overcurrent protection of a circuit of electronic equipment, wherein the method comprises the following steps: when target electronic equipment is initialized, acquiring target overcurrent protection state data corresponding to each target circuit of the target electronic equipment; performing preset program processing on target overcurrent protection state data corresponding to each target circuit, and then transferring the target overcurrent protection state data to a kernel log; and after the target electronic equipment is initialized, outputting the target overcurrent protection state data stored in the kernel log to a specified address. The invention can enable a fault analyst to quickly judge the circuit position of overcurrent protection and analyze the reason by checking the target overcurrent protection state data output to the designated address, thereby improving the efficiency of processing the overcurrent protection problem.

Description

Method and device for detecting overcurrent protection of electronic equipment circuit
Technical Field
The present invention relates to the field of overcurrent protection technologies, and in particular, to a method and an apparatus for detecting overcurrent protection of a circuit of an electronic device.
Background
When many embedded electronic devices (based on the Android system) such as mobile phones and watches are designed, when external sensors, circuits themselves or other hardware problems are abnormal, PMIC (power management ic, which is used to manage power devices in host systems, and is commonly used for mobile phones and various mobile terminal devices) may cause short circuit or large Current to occur in one or more circuits of the electronic devices controlled by the PMIC, thereby triggering OCP (Over Current Protection). For the problem, the conventional debugging means needs hardware checking, accesses the state of each register of the serial port printing PMIC, and obtains the OCP condition of each electronic device circuit according to the state of each register.
Disclosure of Invention
Accordingly, it is necessary to provide a method and an apparatus for detecting an overcurrent protection of an electronic device circuit, so that a fault analyst can quickly locate the circuit with the overcurrent protection, thereby improving the efficiency of the fault analyst in dealing with the overcurrent protection problem of the electronic device circuit.
The first technical scheme of the embodiment of the invention is as follows:
a method of detecting electronic device circuit overcurrent protection, comprising: when target electronic equipment is initialized, acquiring target overcurrent protection state data corresponding to each target circuit of the target electronic equipment; performing preset program processing on the target overcurrent protection state data corresponding to each target circuit, and then transferring the target overcurrent protection state data to a kernel log; and after the target electronic equipment is initialized, outputting the target overcurrent protection state data stored in the kernel log to a specified address.
The second technical scheme of the embodiment of the invention is as follows:
an apparatus for detecting overcurrent protection for an electronic device circuit, comprising: the data acquisition module is used for acquiring target overcurrent protection state data corresponding to each target circuit of target electronic equipment when the target electronic equipment is initialized; the data unloading module is used for unloading the target overcurrent protection state data corresponding to each target circuit to a kernel log after the preset program processing is carried out on the target overcurrent protection state data; and the data transmission module is used for outputting the target overcurrent protection state data stored in the kernel log to a specified address after the target electronic equipment is initialized.
The third technical scheme of the embodiment of the invention is as follows:
a computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of: when target electronic equipment is initialized, acquiring target overcurrent protection state data corresponding to each target circuit of the target electronic equipment; performing preset program processing on the target overcurrent protection state data corresponding to each target circuit, and then transferring the target overcurrent protection state data to a kernel log; and after the target electronic equipment is initialized, outputting the target overcurrent protection state data stored in the kernel log to a specified address.
The fourth technical scheme of the embodiment of the invention is as follows:
a computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of: when target electronic equipment is initialized, acquiring target overcurrent protection state data corresponding to each target circuit of the target electronic equipment; performing preset program processing on the target overcurrent protection state data corresponding to each target circuit, and then transferring the target overcurrent protection state data to a kernel log; and after the target electronic equipment is initialized, outputting the target overcurrent protection state data stored in the kernel log to a specified address.
The embodiment of the invention has the following beneficial effects:
according to the invention, the target overcurrent protection state data corresponding to each target circuit of the target electronic equipment is obtained, the target overcurrent protection state data corresponding to each target circuit is subjected to preset program processing and then is stored to the kernel log, and finally, the target overcurrent protection state data stored in the kernel log is transmitted to the designated address, so that fault analysis personnel can check and improve the analysis of line reasons, the circuit with overcurrent protection can be rapidly positioned by the fault analysis personnel, the debugging version is not required to be swiped in, the state of each register of the PMIC is printed by accessing a serial port, and the efficiency of the fault analysis personnel in processing the overcurrent protection problem of the electronic equipment circuit is greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a flow diagram illustrating an implementation of one embodiment of a method for detecting over-current protection in an electronic device circuit;
FIG. 2 is a flowchart illustrating another embodiment of a method for detecting over-current protection of an electronic device circuit according to an embodiment;
FIG. 3 is a diagram of an exemplary implementation of a method for detecting over-current protection in an electronic device circuit;
FIG. 4 is a block diagram of an embodiment of an apparatus for detecting overcurrent protection in an electronic device circuit;
FIG. 5 is a block diagram illustrating an embodiment of a computer device in one embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart illustrating an implementation of a method for detecting an overcurrent protection of a circuit of an electronic device according to an embodiment, and referring to fig. 1, the method for detecting an overcurrent protection of a circuit of an electronic device according to the embodiment includes the following steps:
step S101: when target electronic equipment is initialized, target overcurrent protection state data corresponding to each target circuit of the target electronic equipment is acquired.
The target electronic device, i.e., the electronic device to be detected, may be selected from a plurality of embedded electronic devices, such as a mobile phone, a watch, and other terminal devices. The target electronic device is provided with a plurality of circuits (structures), each circuit corresponds to more than one function, and the current state of each circuit affects the realization of the function, especially if one circuit has overcurrent protection, the function of the whole electronic device is affected, so that the current state of each circuit of the electronic device needs to be monitored in real time. Target overcurrent protection state data corresponding to each target circuit of the target electronic equipment are acquired, the target overcurrent protection state data comprise overcurrent protection state data and normal current state data of each target circuit, and the position data of each target circuit are unique. In this embodiment, optionally, the target overcurrent protection state data corresponding to each target circuit of the target electronic device is obtained by a Resource Power Manager (RPM) of the target electronic device, specifically, the current state data corresponding to each target circuit is obtained by traversing state data of each register corresponding to the PMIC by the Resource Power Manager (RPM), where the state data of each register corresponding to the PMIC is associated with the current state data of each circuit, and the current state data of each circuit can be obtained from the state data of each register.
Step S102: and after the target overcurrent protection state data corresponding to each target circuit is processed by a preset program, the target overcurrent protection state data is transferred to a kernel log.
Each electronic device is provided with a log system, the kernel log is a kernel part of the log system, target overcurrent protection state data corresponding to each target circuit are subjected to preset program processing and then are stored in the kernel log, a fault analysis worker can check the target overcurrent protection state data corresponding to each target circuit by checking the kernel log, and then can clearly know which target circuit or target circuits are subjected to overcurrent protection (OCP), and further can analyze the reason of the overcurrent protection, so that the efficiency of processing the overcurrent protection problem is improved, and the cost of the overcurrent protection problem is reduced.
The processing of the target overcurrent protection state data corresponding to each target circuit by the preset program means that the target overcurrent protection state data corresponding to each target circuit is subjected to a series of unloading and finally unloaded to the kernel log. In this embodiment, optionally, the target overcurrent protection state data corresponding to each target circuit may be finally transferred to the core log through several steps of writing the target overcurrent protection state data into the shared memory, encapsulating the target overcurrent protection state data into the core command line, encapsulating the target overcurrent protection state data into the data interface, and transferring the data interface and the core log.
Step S103: and after the target electronic equipment is initialized, outputting the target overcurrent protection state data stored in the kernel log to a specified address.
The step of outputting the target overcurrent protection state data stored in the kernel log to the designated address refers to outputting the target overcurrent protection state data stored in the kernel log to a designated display area of the target electronic device for the fault analyst to view, such as a display screen area of a mobile phone or a watch, but is not limited to the designated display area of the target electronic device.
As shown in fig. 2, in another embodiment, a method for detecting overcurrent protection of a circuit of an electronic device is provided, and referring to fig. 2, the method may be applied to a terminal or a server, and this embodiment is exemplified by being applied to a terminal, where the method for detecting overcurrent protection of a circuit of an electronic device specifically includes the following steps:
step 201: when target electronic equipment is initialized, current state data corresponding to each target circuit is obtained by traversing state data of each register corresponding to the PMIC, and the target overcurrent protection state data corresponding to each target circuit is obtained according to the current state data corresponding to each target circuit.
When the target electronic equipment is initialized, the RPM is firstly electrified, the PMIC is controlled to carry out firmware initialization, the PMIC carries out self-test on each target circuit controlled by the PMIC in an initialization stage, state data of each register corresponding to the PMIC is related to current state data of each circuit, and the current state data of each circuit can be obtained from the state data of each register.
Step 202: and acquiring position data corresponding to each target circuit, writing the position data and the current state data corresponding to each target circuit into a user-defined data format, and storing the position data and the current state data corresponding to each target circuit into a shared memory.
The custom data format is selected such that the current state of the target circuit is recorded as 1 if overcurrent protection occurs, and the current state of the target circuit is recorded as 0 if no overcurrent protection occurs. And recording and storing the position data corresponding to each target circuit, and positioning the target circuit with overcurrent protection later.
Step 203: after the target electronic equipment enters a stage of a boot loader, reading and analyzing position data and current state data corresponding to each target circuit stored in the shared memory, then obtaining the target circuit with the current state being an overcurrent protection state and using the target circuit as a target overcurrent protection circuit, and finally packaging the position data corresponding to the target overcurrent protection circuit to a kernel command line corresponding to a log system of the target electronic equipment.
In order to reduce the data amount in the kernel command line and enable the fault analyst to better and faster check the current state of each target circuit, it is necessary to first obtain the target circuit whose current state is the overcurrent protection state and use the target circuit as the target overcurrent protection circuit, and then package the position data and the current state data corresponding to the target overcurrent protection circuit into the kernel command line corresponding to the log system of the target electronic device.
Step 204: and after the kernel of the target electronic equipment is started, encapsulating the position data corresponding to each target overcurrent protection circuit contained in the kernel command line into a target overcurrent protection data interface.
Step 205: and after the target electronic equipment is initialized, analyzing the position data corresponding to each target overcurrent protection circuit corresponding to the target overcurrent protection data interface.
Step 206: and filling position data corresponding to each target overcurrent protection circuit to a position corresponding to a preset data table, and transmitting the preset data table after the position data is filled to a specified display area of the target electronic equipment for a fault analysis worker to check. The position data corresponding to the target overcurrent protection circuit is filled into the position corresponding to the preset data table, so that fault analysis personnel can check conveniently, the fault analysis personnel can check each position data corresponding to the target overcurrent protection circuit only by checking the relevant position of the preset data table, and then can definitely know which target circuit or target circuits have overcurrent protection (OCP), and further analyze the reason of overcurrent protection, improve the efficiency of processing the overcurrent protection problem, and reduce the cost of the overcurrent protection problem.
As shown in fig. 4, in another embodiment, an apparatus for detecting an overcurrent protection of an electronic device circuit is provided, which can be obtained with reference to fig. 4, and the apparatus 100 for detecting an overcurrent protection of an electronic device circuit specifically includes:
the data obtaining module 10 is configured to obtain target overcurrent protection state data corresponding to each target circuit of a target electronic device when the target electronic device is initialized.
The target electronic device, i.e., the electronic device to be detected, may be selected from a plurality of embedded electronic devices, such as a mobile phone, a watch, and other terminal devices. The target electronic device is provided with a plurality of circuits (structures), each circuit corresponds to more than one function, and the current state of each circuit affects the realization of the function, especially if one circuit has overcurrent protection, the function of the whole electronic device is affected, so that the current state of each circuit of the electronic device needs to be monitored in real time. Target overcurrent protection state data corresponding to each target circuit of the target electronic equipment are acquired, the target overcurrent protection state data comprise overcurrent protection state data and normal current state data of each target circuit, and the position data of each target circuit are unique. In this embodiment, optionally, the target overcurrent protection state data corresponding to each target circuit of the target electronic device is obtained by a Resource Power Manager (RPM) of the target electronic device, specifically, the current state data corresponding to each target circuit is obtained by traversing state data of each register corresponding to the PMIC by the Resource Power Manager (RPM), where the state data of each register corresponding to the PMIC is associated with the current state data of each circuit, and the current state data of each circuit can be obtained from the state data of each register.
And the data unloading module 20 is configured to unload the target overcurrent protection state data corresponding to each target circuit to the kernel log after performing preset program processing on the target overcurrent protection state data.
Each electronic device is provided with a log system, the kernel log is a kernel part of the log system, target overcurrent protection state data corresponding to each target circuit are subjected to preset program processing and then are stored in the kernel log, a fault analysis worker can check the target overcurrent protection state data corresponding to each target circuit by checking the kernel log, and then can clearly know which target circuit or target circuits are subjected to overcurrent protection (OCP), and further can analyze the reason of the overcurrent protection, so that the efficiency of processing the overcurrent protection problem is improved, and the cost of the overcurrent protection problem is reduced.
The processing of the target overcurrent protection state data corresponding to each target circuit by the preset program means that the target overcurrent protection state data corresponding to each target circuit is subjected to a series of unloading and finally unloaded to the kernel log. In this embodiment, optionally, the target overcurrent protection state data corresponding to each target circuit may be finally transferred to the core log through several steps of writing the target overcurrent protection state data into the shared memory, encapsulating the target overcurrent protection state data into the core command line, encapsulating the target overcurrent protection state data into the data interface, and transferring the data interface and the core log.
The data transmission module 30 is configured to output the target overcurrent protection state data stored in the kernel log to a designated address after the target electronic device is initialized.
The step of outputting the target overcurrent protection state data stored in the kernel log to the designated address refers to outputting the target overcurrent protection state data stored in the kernel log to a designated display area of the target electronic device for the fault analyst to view, such as a display screen area of a mobile phone or a watch, but is not limited to the designated display area of the target electronic device.
To more clearly illustrate the principles and processes of the detection method of the embodiments of the present invention, the following examples are given. As shown in fig. 3, which is an application environment diagram of the method for detecting an over-current protection of a circuit of an electronic device according to the present embodiment, with reference to fig. 3, a power resource manager (RPM) manages a power management integrated circuit PMIC, and controls the power management integrated circuit PMIC to supply power to 5 (module) circuits, where a first circuit is a camera, a second circuit is a light sensor, a third circuit is a gravity sensor, a fourth circuit is a flash lamp, and a fifth circuit is a motor. The working process of detecting the overcurrent protection of the electronic equipment circuit is as follows:
1. when the electronic equipment is started, the RPM is firstly electrified to control the PMIC to carry out firmware initialization, the PMIC can carry out self-checking of 1-5 paths (module) circuits in an initialization stage, and when overcurrent protection (OCP) occurs in a first path and a third path, the current states of the 1-5 paths (module) circuits can be written into a shared memory according to data formats of 1:1, 2:0, 3:1, 4:0 and 5:0, wherein the first path and the third path are respectively 1:1 and 3: 1.
2. In the stage of loading the program by the boot loader, the OCP record data in the shared memory is checked, and if the first path is analyzed to find that an OCP problem occurs and the third path also has an OC problem P, the record is analyzed, and then the following parameters are added to the kernel parameters: OCP is "1: 1, 3: 1".
3. After the electronic equipment is started, the kernel reads and analyzes the kernel log, when the parameter OCP is detected, the value 1:1, 3, 1 of the OCP is analyzed, and the following contents are printed after the analysis: the PMIC has errors, the first path of power supply generates OCP, and the third path of power supply generates OCP.
4. After the log system is started, the kernel logs are collected and stored in a log file, and after a related fault analysis engineer analyzes and reads the kernel logs, the specific reasons of OCP occurring in the first path and the third path can be directly checked.
FIG. 5 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be a terminal, and may also be a server. As shown in fig. 5, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the age identification method. The internal memory may also have a computer program stored therein, which when executed by the processor, causes the processor to perform the age identification method. Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In another embodiment, a computer device is presented, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of:
firstly, when target electronic equipment is initialized, acquiring target overcurrent protection state data corresponding to each target circuit of the target electronic equipment;
secondly, after the target overcurrent protection state data corresponding to each target circuit is processed by a preset program, the target overcurrent protection state data is transferred to a kernel log;
thirdly, after the target electronic device is initialized, the target overcurrent protection state data stored in the kernel log is output to a designated address.
In another embodiment, a computer-readable storage medium is proposed, in which a computer program is stored which, when executed by a processor, causes the processor to carry out the steps of:
firstly, when target electronic equipment is initialized, acquiring target overcurrent protection state data corresponding to each target circuit of the target electronic equipment;
secondly, after the target overcurrent protection state data corresponding to each target circuit is processed by a preset program, the target overcurrent protection state data is transferred to a kernel log;
thirdly, after the target electronic device is initialized, the target overcurrent protection state data stored in the kernel log is output to a designated address.
According to the invention, the target overcurrent protection state data corresponding to each target circuit of the target electronic equipment is obtained, the target overcurrent protection state data corresponding to each target circuit is subjected to preset program processing and then is stored to the kernel log, and finally, the target overcurrent protection state data stored in the kernel log is transmitted to the designated address, so that fault analysis personnel can check and improve the analysis of line reasons, the circuit with overcurrent protection can be rapidly positioned by the fault analysis personnel, the debugging version is not required to be swiped in, the state of each register of the PMIC is printed by accessing a serial port, and the efficiency of the fault analysis personnel in processing the overcurrent protection problem of the electronic equipment circuit is greatly improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of detecting overcurrent protection in a circuit of an electronic device, comprising:
when target electronic equipment is initialized, acquiring target overcurrent protection state data corresponding to each target circuit of the target electronic equipment;
performing preset program processing on the target overcurrent protection state data corresponding to each target circuit, and then transferring the target overcurrent protection state data to a kernel log;
and after the target electronic equipment is initialized, outputting the target overcurrent protection state data stored in the kernel log to a specified address.
2. The method for detecting overcurrent protection of electronic equipment circuit according to claim 1, wherein the obtaining target overcurrent protection state data corresponding to each target circuit of the target electronic equipment at initialization of the target electronic equipment comprises:
when target electronic equipment is initialized, acquiring current state data corresponding to each target circuit by traversing state data of each register corresponding to the PMIC;
and obtaining the target overcurrent protection state data corresponding to each target circuit according to the current state data corresponding to each target circuit.
3. The method of claim 2, wherein the obtaining the current status data of each target circuit by traversing the status data of each register corresponding to the PMIC during initialization of the target electronic device comprises:
acquiring position data corresponding to each target circuit, and writing the position data and the current state data corresponding to each target circuit into a user-defined data format;
and storing the position data and the current state data corresponding to each target circuit into a shared memory.
4. The method according to claim 3, wherein the transferring the target overcurrent protection state data corresponding to each target circuit to a kernel log after the preset program processing comprises:
after the target electronic equipment enters a stage of a boot loader, reading and analyzing position data and current state data corresponding to each target circuit stored in the shared memory;
acquiring the target circuit with the current state being an overcurrent protection state and taking the target circuit as a target overcurrent protection circuit;
and packaging the position data corresponding to the target overcurrent protection circuit to a kernel command line corresponding to a log system of the target electronic equipment.
5. The method for detecting overcurrent protection of electronic equipment circuit according to claim 4, wherein encapsulating the location data corresponding to the target overcurrent protection circuit into a core command line corresponding to a log system of the target electronic equipment, then includes:
and after the kernel of the target electronic equipment is started, encapsulating the position data corresponding to each target overcurrent protection circuit contained in the kernel command line into a target overcurrent protection data interface.
6. The method for detecting overcurrent protection of electronic device circuits according to claim 5, wherein the encapsulating the position data corresponding to each target overcurrent protection circuit included in the kernel command line into a target overcurrent protection data interface comprises:
and after the target electronic equipment is initialized, analyzing the position data corresponding to each target overcurrent protection circuit corresponding to the target overcurrent protection data interface.
7. The method of claim 6, wherein the analyzing the position data of each target over-current protection circuit corresponding to the target over-current protection data interface comprises:
filling position data corresponding to each target overcurrent protection circuit to a position corresponding to a preset data table;
and transmitting the preset data table filled with the position data to a designated display area of the target electronic equipment for a fault analysis worker to view.
8. An apparatus for detecting overcurrent protection in a circuit of an electronic device, comprising:
the data acquisition module is used for acquiring target overcurrent protection state data corresponding to each target circuit of target electronic equipment when the target electronic equipment is initialized;
the data unloading module is used for unloading the target overcurrent protection state data corresponding to each target circuit to a kernel log after the preset program processing is carried out on the target overcurrent protection state data;
and the data transmission module is used for outputting the target overcurrent protection state data stored in the kernel log to a specified address after the target electronic equipment is initialized.
9. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method of detecting overcurrent protection for an electronic device circuit as claimed in any one of claims 1 to 7.
10. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method of detecting overcurrent protection for an electronic device circuit as claimed in any one of claims 1 to 7.
CN202010663051.8A 2020-07-10 2020-07-10 Method and device for detecting overcurrent protection of electronic equipment circuit Pending CN111897669A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010663051.8A CN111897669A (en) 2020-07-10 2020-07-10 Method and device for detecting overcurrent protection of electronic equipment circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010663051.8A CN111897669A (en) 2020-07-10 2020-07-10 Method and device for detecting overcurrent protection of electronic equipment circuit

Publications (1)

Publication Number Publication Date
CN111897669A true CN111897669A (en) 2020-11-06

Family

ID=73192221

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010663051.8A Pending CN111897669A (en) 2020-07-10 2020-07-10 Method and device for detecting overcurrent protection of electronic equipment circuit

Country Status (1)

Country Link
CN (1) CN111897669A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0498328A (en) * 1990-08-10 1992-03-31 Nec Corp Diagnostic device
JP2000152485A (en) * 1998-11-06 2000-05-30 Nec Eng Ltd Protective circuit against overcurrent
JP2001025149A (en) * 1999-07-09 2001-01-26 Canon Inc Overcurrent protective system and overcurrent protecting method
JP2005328632A (en) * 2004-05-14 2005-11-24 Bosch Corp Overcurrent protection method and overcurrent protective device
CN101599628A (en) * 2009-07-10 2009-12-09 西安电子科技大学 Solid-state power controller inverse time over-current protection device based on FPGA
CN102637910A (en) * 2011-02-14 2012-08-15 三美电机株式会社 Protection module and method for managing status data of the protection module
US20130271057A1 (en) * 2012-04-17 2013-10-17 GM Global Technology Operations LLC System and method for estimating electrical current in motor control circuits to improve performance and diagnostic capability
CN106602670A (en) * 2017-01-24 2017-04-26 成都芯源系统有限公司 Electronic equipment, power supply and control method of power supply
CN107276789A (en) * 2017-05-19 2017-10-20 努比亚技术有限公司 Daily record method for uploading, device and computer-readable recording medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0498328A (en) * 1990-08-10 1992-03-31 Nec Corp Diagnostic device
JP2000152485A (en) * 1998-11-06 2000-05-30 Nec Eng Ltd Protective circuit against overcurrent
JP2001025149A (en) * 1999-07-09 2001-01-26 Canon Inc Overcurrent protective system and overcurrent protecting method
JP2005328632A (en) * 2004-05-14 2005-11-24 Bosch Corp Overcurrent protection method and overcurrent protective device
CN101599628A (en) * 2009-07-10 2009-12-09 西安电子科技大学 Solid-state power controller inverse time over-current protection device based on FPGA
CN102637910A (en) * 2011-02-14 2012-08-15 三美电机株式会社 Protection module and method for managing status data of the protection module
US20130271057A1 (en) * 2012-04-17 2013-10-17 GM Global Technology Operations LLC System and method for estimating electrical current in motor control circuits to improve performance and diagnostic capability
CN106602670A (en) * 2017-01-24 2017-04-26 成都芯源系统有限公司 Electronic equipment, power supply and control method of power supply
CN107276789A (en) * 2017-05-19 2017-10-20 努比亚技术有限公司 Daily record method for uploading, device and computer-readable recording medium

Similar Documents

Publication Publication Date Title
CN111027800A (en) Method and device for processing equipment inspection abnormal information and electronic equipment
CN111739575B (en) Storage chip quality detection method, device, equipment and readable storage medium
EP3895939A1 (en) Electronic control device and security verification method for electronic control device
CN115756984A (en) Memory test method, device, equipment and storage medium
CN113760619A (en) Storage device testing method and device, electronic device and storage medium
US11023335B2 (en) Computer and control method thereof for diagnosing abnormality
CN114996064A (en) Memory detection method, device, equipment and storage medium
CN113129939B (en) Device with temperature mitigation mechanism and method of operation thereof
CN111897669A (en) Method and device for detecting overcurrent protection of electronic equipment circuit
CN109976970B (en) Method, system and storage medium for prolonging service life of mainboard chip
CN115756309A (en) Battery management equipment parameter storage method, battery management equipment and energy storage system
US20130124925A1 (en) Method and apparatus for checking a main memory of a processor
CN114385418A (en) Protection method, device, equipment and storage medium for communication equipment
CN113470725A (en) Method and device for testing dynamic random access memory
CN111880078A (en) Method and equipment for automated instruction testing
US10191481B2 (en) Numerical controller and numerical control system in which the controller is connected by network
CN114691347A (en) Thread memory obtaining method and device, intelligent terminal and storage medium
CN111429962A (en) Method and device for periodically performing BIST test on memory, computer equipment and storage medium
CN111124814A (en) SOC memory access monitoring method and device and computer equipment
CN112463042A (en) Data volume import data verification method, device, terminal and storage medium
US20230221893A1 (en) Dual in-line memory moudule and operating method thereof
EP3557422A1 (en) Method for accessing code sram, and electronic device
CN112506820B (en) USB port hardware parameter analysis method, device, equipment and storage medium
CN112817611B (en) Interception method and device for system test abnormal environment, computer equipment and storage medium
CN117215966B (en) Test method and test device for chip SDK interface 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