CN111897669B - 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 PDFInfo
- Publication number
- CN111897669B CN111897669B CN202010663051.8A CN202010663051A CN111897669B CN 111897669 B CN111897669 B CN 111897669B CN 202010663051 A CN202010663051 A CN 202010663051A CN 111897669 B CN111897669 B CN 111897669B
- Authority
- CN
- China
- Prior art keywords
- target
- overcurrent protection
- circuit
- data corresponding
- state data
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 238000004590 computer program Methods 0.000 claims description 9
- 238000012546 transfer Methods 0.000 claims description 6
- 230000005540 biological transmission Effects 0.000 claims description 3
- 238000004806 packaging method and process Methods 0.000 claims description 3
- 238000012545 processing Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 230000001680 brushing effect Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000011835 investigation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error 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/0766—Error or fault reporting or storing
- G06F11/0775—Content or structure details of the error report, e.g. specific table structure, specific error fields
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error 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/0766—Error or fault reporting or storing
- G06F11/0778—Dumping, i.e. gathering error/state information after a fault for later diagnosis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error 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/079—Root 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 an electronic device circuit, wherein the method comprises the following steps: when initializing target electronic equipment, acquiring target overcurrent protection state data corresponding to each target circuit of the target electronic equipment; the target overcurrent protection state data corresponding to each target circuit is transferred to a kernel log after being subjected to preset program processing; and after the initialization of the target electronic equipment is completed, outputting the target overcurrent protection state data stored in the kernel log to a designated address. According to the invention, fault analysis personnel can rapidly judge the position of the circuit where the overcurrent protection occurs and analyze the reason by checking the target overcurrent protection state data output to the designated address, so that the efficiency of processing the overcurrent protection problem is improved.
Description
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 an electronic device circuit.
Background
When designing many embedded electronic devices (based on Android system) such as mobile phones and watches, when external sensors, circuits or other hardware problems are abnormal, PMICs (PowerManagementIC, power management integrated circuits, which are used for managing power supply devices in host systems, are commonly used for short circuits or heavy currents of one or more electronic device circuits controlled by mobile phones and various mobile terminal devices), so that OCP (Over Current Protection, over-current protection) is triggered. Aiming at the problem, the traditional debugging means is to need hardware investigation, access the state of each register of the serial port printing PMIC, and obtain the OCP condition of each path of electronic equipment circuit according to the state of each register, and although the operation process can also obtain the OCP condition of each path of electronic equipment circuit, the operation is complicated, and the operation cost of the machine which is produced in quantity is too high.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a method and an apparatus for detecting the overcurrent protection of the electronic device circuit, so that a fault analyst can quickly locate the circuit with the overcurrent protection, and the efficiency of the fault analyst in handling the overcurrent protection problem of the electronic device circuit is improved.
The first technical scheme of the embodiment of the invention is as follows:
A method of detecting electronic device circuit over-current protection, comprising: when initializing target electronic equipment, acquiring target overcurrent protection state data corresponding to each target circuit of the target electronic equipment; the target overcurrent protection state data corresponding to each target circuit are transferred to a kernel log after being subjected to preset program processing; and after the initialization of the target electronic equipment is completed, outputting the target overcurrent protection state data stored in the kernel log to a designated address.
The second technical scheme of the embodiment of the invention is as follows:
An apparatus for detecting over-current protection of an electronic device circuit, comprising: the data acquisition module is used for acquiring target overcurrent protection state data corresponding to each target circuit of the target electronic equipment when the target electronic equipment is initialized; the data transfer module is used for transferring 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 designated address after the initialization of the target electronic equipment is completed.
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 which, when executed by the processor, causes the processor to perform the steps of: when initializing target electronic equipment, acquiring target overcurrent protection state data corresponding to each target circuit of the target electronic equipment; the target overcurrent protection state data corresponding to each target circuit are transferred to a kernel log after being subjected to preset program processing; and after the initialization of the target electronic equipment is completed, outputting the target overcurrent protection state data stored in the kernel log to a designated 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 initializing target electronic equipment, acquiring target overcurrent protection state data corresponding to each target circuit of the target electronic equipment; the target overcurrent protection state data corresponding to each target circuit are transferred to a kernel log after being subjected to preset program processing; and after the initialization of the target electronic equipment is completed, outputting the target overcurrent protection state data stored in the kernel log to a designated 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 are obtained, the target overcurrent protection state data corresponding to each target circuit are processed by a preset program and are transferred to the kernel log, and finally, the target overcurrent protection state data stored in the kernel log are transmitted to the designated address, so that fault analysts can check and improve analysis of line reasons, the fault analysts can quickly locate the circuit with overcurrent protection, the states of each register of the PMIC are printed without brushing in a debug version and an access serial port, and the efficiency of the fault analysts in treating the overcurrent protection problem of the electronic equipment circuit is greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Wherein:
FIG. 1 is a flow chart illustrating an implementation of a method for detecting over-current protection of an electronic device circuit in one embodiment;
FIG. 2 is a flow chart of another implementation of a method of detecting over-current protection of an electronic device circuit in one embodiment;
FIG. 3 is a diagram of an application environment for one implementation of a method of detecting over-current protection of an electronic device circuit in one embodiment;
FIG. 4 is a block diagram of an embodiment of an apparatus for detecting over-current protection of an electronic device circuit;
fig. 5 is a block diagram of one implementation of a computer device in one embodiment.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a flowchart showing an implementation of a method for detecting over-current protection of an electronic device circuit according to an embodiment, referring to fig. 1, the method for detecting over-current protection of an electronic device circuit according to the embodiment includes the following steps:
Step S101: and when the target electronic equipment is initialized, acquiring target overcurrent protection state data corresponding to each target circuit of the target electronic equipment.
The target electronic device, i.e. the electronic device to be detected, may be selected from a plurality of embedded electronic devices, such as terminal devices of a mobile phone, a watch, and the like. The 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 can influence the realization of the function, especially if one circuit has overcurrent protection, the function of the whole electronic device can be influenced, so that the current state of each circuit of the electronic device needs to be monitored in real time. And acquiring target overcurrent protection state data corresponding to each target circuit of the target electronic device, wherein the target overcurrent protection state data comprises overcurrent protection state data and normal current state data of each target circuit, and the position data of each target circuit is unique. In this embodiment, optionally, the target over-current protection state data corresponding to each target circuit of the target electronic device is obtained through a Resource Power Manager (RPM) of the target electronic device, specifically, the current state data corresponding to each target circuit is obtained through 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 are subjected to preset program processing, the target overcurrent protection state data are 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 stored into the kernel log after being processed by a preset program, fault analysis personnel can check the target overcurrent protection state data corresponding to each target circuit by checking the kernel log, further, the reason that one or more target circuits are subjected to overcurrent protection (OCP) can be clearly known, further, the reason that overcurrent protection occurs is analyzed, the efficiency of processing the overcurrent protection problem is improved, and the cost of the overcurrent protection problem is reduced.
The step of performing preset program processing on the target overcurrent protection state data corresponding to each target circuit refers to that the target overcurrent protection state data corresponding to each target circuit is transferred to a kernel log after a series of transfer. In this embodiment, optionally, the target overcurrent protection state data corresponding to each target circuit may be written into the shared memory, packaged into the kernel command line, packaged into the data interface, and transferred into the kernel log, and finally transferred into the kernel log.
Step S103: and after the initialization of the target electronic equipment is completed, outputting the target overcurrent protection state data stored in the kernel log to a designated address.
The outputting the target overcurrent protection state data stored in the kernel log to the specified address refers to outputting the target overcurrent protection state data stored in the kernel log to a specified display area of the target electronic device for a fault analysis person to view, such as a display screen area of a mobile phone or a watch, but is not limited to the specified display area of the target electronic device.
In another embodiment, as shown in fig. 2, a method for detecting over-current protection of an electronic device circuit is provided, and referring to fig. 2, the method is applied to a terminal or a server, and the embodiment is applied to the terminal for illustration, where the method for detecting over-current protection of an electronic device circuit specifically includes the following steps:
Step 201: and when the 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 acquiring the target overcurrent protection state data corresponding to each target circuit according to the current state data corresponding to each target circuit.
When the target electronic equipment is initialized, the RPM is powered on first, the PMIC is controlled to initialize the firmware, and in the initialization stage, the PMIC can perform self-checking on each controlled target circuit, wherein 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 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 self-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, wherein the current state of the target circuit is recorded as 1 when overcurrent protection occurs, and the current state of the target circuit is recorded as 0 when no overcurrent protection occurs. And recording and storing position data corresponding to each target circuit, and positioning the target circuit with the over-current protection.
Step 203: after the target electronic device 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 finally packaging the position data corresponding to the target overcurrent protection circuit into a kernel command line corresponding to a log system of the target electronic device.
The position data and the current state data corresponding to each target circuit originally stored in the shared memory comprise position data and current state data corresponding to the target circuit with overcurrent protection and position data and current state data corresponding to the target circuit without overcurrent protection, and in order to reduce the data quantity in a kernel command line and enable fault analysts to better and faster check the current state of each target circuit, the target circuit with the current state being the overcurrent protection state needs to be acquired first and used as a target overcurrent protection circuit, and then the position data and the current state data corresponding to the target overcurrent protection circuit are packaged into the kernel command line corresponding to a log system of the target electronic equipment.
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 initialization of the target electronic equipment is completed, analyzing position data corresponding to each target overcurrent protection circuit corresponding to the target overcurrent protection data interface.
Step 206: filling position data corresponding to each target overcurrent protection circuit into a position corresponding to a preset data table, and transmitting the preset data table after filling the position data to a designated display area of the target electronic equipment for a fault analysis person to check. The position data corresponding to the target overcurrent protection circuits are filled into positions corresponding to the preset data tables, so that fault analysis personnel can conveniently check the position data corresponding to the target overcurrent protection circuits only by checking the relevant positions of the preset data tables, and further, the position data corresponding to the target overcurrent protection circuits can be clearly known which one or more target circuits are subjected to overcurrent protection (OCP), the reasons of overcurrent protection are analyzed, the efficiency of processing the overcurrent protection problem is improved, and the cost of the overcurrent protection problem is reduced.
In another embodiment, as shown in fig. 4, there is provided an apparatus for detecting an overcurrent protection of an electronic device circuit, which is available with reference to fig. 4, the apparatus 100 for detecting an overcurrent protection of an electronic device circuit, specifically includes:
the data acquisition module 10 is configured to acquire target overcurrent protection state data corresponding to each target circuit of the 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 terminal devices of a mobile phone, a watch, and the like. The 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 can influence the realization of the function, especially if one circuit has overcurrent protection, the function of the whole electronic device can be influenced, so that the current state of each circuit of the electronic device needs to be monitored in real time. And acquiring target overcurrent protection state data corresponding to each target circuit of the target electronic device, wherein the target overcurrent protection state data comprises overcurrent protection state data and normal current state data of each target circuit, and the position data of each target circuit is unique. In this embodiment, optionally, the target over-current protection state data corresponding to each target circuit of the target electronic device is obtained through a Resource Power Manager (RPM) of the target electronic device, specifically, the current state data corresponding to each target circuit is obtained through 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.
The data transfer module 20 is configured to transfer the target overcurrent protection state data corresponding to each target circuit to a kernel log after performing a preset program processing.
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 stored into the kernel log after being processed by a preset program, fault analysis personnel can check the target overcurrent protection state data corresponding to each target circuit by checking the kernel log, further, the reason that one or more target circuits are subjected to overcurrent protection (OCP) can be clearly known, further, the reason that overcurrent protection occurs is analyzed, the efficiency of processing the overcurrent protection problem is improved, and the cost of the overcurrent protection problem is reduced.
The step of performing preset program processing on the target overcurrent protection state data corresponding to each target circuit refers to that the target overcurrent protection state data corresponding to each target circuit is transferred to a kernel log after a series of transfer. In this embodiment, optionally, the target overcurrent protection state data corresponding to each target circuit may be written into the shared memory, packaged into the kernel command line, packaged into the data interface, and transferred into the kernel log, and finally transferred into the kernel log.
And the data transmission module 30 is configured to output the target overcurrent protection state data stored in the kernel log to a specified address after the target electronic device is initialized.
The outputting the target overcurrent protection state data stored in the kernel log to the specified address refers to outputting the target overcurrent protection state data stored in the kernel log to a specified display area of the target electronic device for a fault analysis person to view, such as a display screen area of a mobile phone or a watch, but is not limited to the specified display area of the target electronic device.
In order to more clearly illustrate the principles and processes of the detection method of the embodiments of the present invention, examples are described below. As shown in fig. 3, an application environment diagram of the method for detecting over-current protection of an electronic device circuit according to the present embodiment is shown, and as can be obtained in conjunction with 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, wherein a first path is a camera, a second path is a light sense, a third path is a gravity sensor, a fourth path is a flash lamp, and a fifth path is a motor. The working process for detecting the overcurrent protection of the electronic equipment circuit comprises the following steps:
1. When the electronic equipment is started, the RPM is powered on first, the PMIC is controlled to perform firmware initialization, the PMIC performs self-checking of 1-5 paths (module) of circuits in an initialization stage, and when the first path and the third path have over-current protection (OCP), the current states of the 1-5 paths (module) of circuits are written into the shared memory according to the 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 the boot loader, the OCP record data in the shared memory is checked, if the OCP problem occurs in the first path and the OC problem P occurs in the third path after analysis, the following parameters are added in the kernel parameters: ocp= "1:1,3:1".
3. After the electronic equipment is started, the kernel reads the analysis kernel log, and when the parameter OCP is detected, the values of OCP '1:1, 3 and 1' are analyzed, and the following contents are printed through analysis: the PMIC itself generates errors, the first power supply generates OCP, and the third power supply generates OCP.
4. After the log system is started, the kernel log is collected and stored in a log file, and after the kernel log is analyzed and read by a related fault analysis engineer, specific reasons of OCP (optical code point) occurrence of a first path and a third path can be directly checked.
FIG. 5 illustrates an internal block diagram of a computer device in one embodiment. The computer device may specifically be a terminal or a server. As shown in fig. 5, the computer device includes a processor, a memory, and a network interface connected by a system bus. The memory includes a nonvolatile 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 a processor, causes the processor to implement an age identification method. The internal memory may also have stored therein a computer program which, when executed by the processor, causes the processor to perform the age identification method. It will be appreciated by those skilled in the art that the structure shown in FIG. 5 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the 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 that, when executed by the processor, causes the processor to perform the steps of:
firstly, when initializing target electronic equipment, 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 are subjected to preset program processing, the target overcurrent protection state data are transferred to a kernel log;
Thirdly, after the initialization of the target electronic device is completed, outputting the target overcurrent protection state data stored in the kernel log to a designated address.
In another embodiment, a computer-readable storage medium is provided, storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
firstly, when initializing target electronic equipment, 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 are subjected to preset program processing, the target overcurrent protection state data are transferred to a kernel log;
Thirdly, after the initialization of the target electronic device is completed, outputting the target overcurrent protection state data stored in the kernel log to a designated address.
According to the invention, the target overcurrent protection state data corresponding to each target circuit of the target electronic equipment are obtained, the target overcurrent protection state data corresponding to each target circuit are processed by a preset program and are transferred to the kernel log, and finally, the target overcurrent protection state data stored in the kernel log are transmitted to the designated address, so that fault analysts can check and improve analysis of line reasons, the fault analysts can quickly locate the circuit with overcurrent protection, the states of each register of the PMIC are printed without brushing in a debug version and an access serial port, and the efficiency of the fault analysts in treating the overcurrent protection problem of the electronic equipment circuit is greatly improved.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile 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 (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.
Claims (5)
1. A method of detecting overcurrent protection of an electronic device circuit, comprising:
When initializing target electronic equipment, acquiring target overcurrent protection state data corresponding to each target circuit of the target electronic equipment; when the 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; obtaining the target overcurrent protection state data corresponding to each target circuit according to the current state data corresponding to each target circuit;
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 self-defined data format; storing the position data and the current state data corresponding to each target circuit into a shared memory;
The target overcurrent protection state data corresponding to each target circuit are transferred to a kernel log after being subjected to preset program processing; 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 the overcurrent protection state and taking the target circuit as a target overcurrent protection circuit; packaging position data corresponding to the target overcurrent protection circuit into a kernel command line corresponding to a log system of the target electronic equipment;
After the kernel of the target electronic device is started, encapsulating position data corresponding to each target overcurrent protection circuit contained in the kernel command line into a target overcurrent protection data interface;
after the initialization of the target electronic equipment is completed, analyzing position data corresponding to each target overcurrent protection circuit corresponding to the target overcurrent protection data interface;
and after the initialization of the target electronic equipment is completed, outputting the target overcurrent protection state data stored in the kernel log to a designated address.
2. The method for detecting overcurrent protection of an electronic device circuit according to claim 1, wherein the analyzing the position data corresponding to each of the target overcurrent protection circuits corresponding to the target overcurrent protection data interface includes:
Filling position data corresponding to each target overcurrent protection circuit into positions corresponding to a preset data table;
And transmitting the preset data table after the position data filling is completed to a designated display area of the target electronic equipment for being checked by fault analysis personnel.
3. An apparatus for detecting over-current protection of an electronic device circuit, comprising:
The data acquisition module is used for acquiring target overcurrent protection state data corresponding to each target circuit of the target electronic equipment when the target electronic equipment is initialized; when the 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; obtaining the target overcurrent protection state data corresponding to each target circuit according to the current state data corresponding to each target circuit; 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 self-defined data format; storing the position data and the current state data corresponding to each target circuit into a shared memory;
The data transfer module is used for transferring 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; 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 the overcurrent protection state and taking the target circuit as a target overcurrent protection circuit; packaging position data corresponding to the target overcurrent protection circuit into a kernel command line corresponding to a log system of the target electronic equipment; after the kernel of the target electronic device is started, encapsulating position data corresponding to each target overcurrent protection circuit contained in the kernel command line into a target overcurrent protection data interface; after the initialization of the target electronic equipment is completed, analyzing position data corresponding to each target overcurrent protection circuit corresponding to the target overcurrent protection data interface;
and the data transmission module is used for outputting the target overcurrent protection state data stored in the kernel log to a designated address after the initialization of the target electronic equipment is completed.
4. A computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of the method of detecting electronic device circuit overcurrent protection as claimed in any one of claims 1 to 2.
5. 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 electronic device circuit overcurrent protection as claimed in any one of claims 1 to 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010663051.8A CN111897669B (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 CN111897669B (en) | 2020-07-10 | 2020-07-10 | Method and device for detecting overcurrent protection of electronic equipment circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111897669A CN111897669A (en) | 2020-11-06 |
CN111897669B true CN111897669B (en) | 2024-09-06 |
Family
ID=73192221
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010663051.8A Active CN111897669B (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) | CN111897669B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005328632A (en) * | 2004-05-14 | 2005-11-24 | Bosch Corp | Overcurrent protection method and overcurrent protective device |
CN107276789A (en) * | 2017-05-19 | 2017-10-20 | 努比亚技术有限公司 | Daily record method for uploading, device and computer-readable recording medium |
Family Cites Families (7)
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 |
CN101599628B (en) * | 2009-07-10 | 2011-06-29 | 西安电子科技大学 | FPGA-based solid-state power controller inverse time over-current protection device |
JP2012168728A (en) * | 2011-02-14 | 2012-09-06 | Mitsumi Electric Co Ltd | Protection module and state information management method in protection module |
US8587246B2 (en) * | 2012-04-17 | 2013-11-19 | GM Global Technology Operations LLC | System and method for estimating electrical current in motor control circuits to improve performance and diagnostic capability |
CN106602670B (en) * | 2017-01-24 | 2019-04-23 | 成都芯源系统有限公司 | Electronic equipment, power supply and control method of power supply |
-
2020
- 2020-07-10 CN CN202010663051.8A patent/CN111897669B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005328632A (en) * | 2004-05-14 | 2005-11-24 | Bosch Corp | Overcurrent protection method and overcurrent protective device |
CN107276789A (en) * | 2017-05-19 | 2017-10-20 | 努比亚技术有限公司 | Daily record method for uploading, device and computer-readable recording medium |
Also Published As
Publication number | Publication date |
---|---|
CN111897669A (en) | 2020-11-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108459962B (en) | Code normalization detection method and device, terminal equipment and storage medium | |
US8572443B2 (en) | System, method, and computer program product for determining a retention behavior for at least one block of a memory device having finite endurance and/or retention | |
EP2092530B1 (en) | Method and device for reconfiguration of reliability data in flash eeprom storage pages | |
CN108427613B (en) | Abnormal interface positioning method and device, computer equipment and storage medium | |
JP2009537887A (en) | Contactless programming and testing of memory elements | |
CN111027800A (en) | Method and device for processing equipment inspection abnormal information and electronic equipment | |
CN112363937A (en) | Method and device for testing differential coverage rate, computer equipment and storage medium | |
CN112445490B (en) | File sequence processing method, device, terminal 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 | |
CN111897669B (en) | Method and device for detecting overcurrent protection of electronic equipment circuit | |
CN114385418A (en) | Protection method, device, equipment and storage medium for communication equipment | |
CN112086119B (en) | Memory device | |
US20060277444A1 (en) | Recordation of error information | |
US11467896B2 (en) | Sections in crash dump files | |
CN116820932A (en) | BMC fault diagnosis method, device, equipment and medium | |
CN114444082A (en) | Container vulnerability scanning method and device | |
US10191481B2 (en) | Numerical controller and numerical control system in which the controller is connected by network | |
CN111880078A (en) | Method and equipment for automated instruction testing | |
CN117234789B (en) | Verification and error correction method and device, electronic equipment and storage medium | |
CN112463042A (en) | Data volume import data verification method, device, terminal and storage medium | |
US20230221893A1 (en) | Dual in-line memory moudule and operating method thereof | |
CN111625784B (en) | Anti-debugging method of application, related device and storage medium | |
CN113836528B (en) | Android application shell checking method and device | |
CN113408845B (en) | Processing method and device of production flow, computer equipment and storage medium |
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 | ||
GR01 | Patent grant |