A method and device for detecting overcurrent protection of electronic equipment circuit

By acquiring and processing overcurrent protection status data during the initialization of embedded electronic devices and outputting it to the kernel log, it solves the cumbersome and costly problems of traditional debugging methods and achieves rapid location and efficient fault analysis.

CN111897669BActive Publication Date: 2024-09-06GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010663051.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-10
Publication Date
2024-09-06
Estimated Expiration
2040-07-10

AI Technical Summary

Technical Problem

When designing embedded electronic devices, external sensor or circuit anomalies may cause a short circuit or large current in the circuit controlled by the PMIC, triggering overcurrent protection. Traditional debugging methods are cumbersome and costly for mass production equipment.

Method used

When the target electronic device is initialized, the overcurrent protection status data of each circuit is obtained, processed by the preset program and transferred to the kernel log, and output to the specified address, which facilitates fault analysts to quickly locate the faulty circuit.

Benefits of technology

It greatly improves the efficiency of fault analysts in dealing with over-current protection problems, reduces operating costs, and avoids the need to flash the debug version and access the serial port to print the status of the PMIC register.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111897669B
    Figure CN111897669B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method and device for detecting overcurrent protection of electronic device circuits, wherein the method comprises: when the target electronic device is initialized, obtaining target overcurrent protection status data corresponding to each target circuit of the target electronic device; after the target overcurrent protection status data corresponding to each target circuit is processed by a preset program, it is transferred to a kernel log; after the target electronic device is initialized, the target overcurrent protection status data stored in the kernel log is output to a specified address. The present invention allows fault analysts to quickly determine the circuit location where overcurrent protection occurs and conduct cause analysis by viewing the target overcurrent protection status data output to the specified address, thereby improving the efficiency of handling overcurrent protection problems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of overcurrent protection, and in particular to a method and device for detecting overcurrent protection of electronic equipment circuits. Background Art

[0002] When designing many embedded electronic devices (based on Android system) such as mobile phones and watches, abnormal external sensors, circuits themselves or other hardware problems will cause short circuits or high currents in one or more electronic device circuits controlled by PMIC (Power Management IC, which is used to manage power devices in the host system, commonly used in mobile phones and various mobile terminal devices), thereby triggering OCP (Over Current Protection). To address this problem, the traditional debugging method requires hardware troubleshooting, connecting to the serial port to print the status of each register of PMIC, and obtaining the OCP status of each electronic device circuit based on the status of each register. Although such an operation process can also obtain the OCP status of each electronic device circuit, such operation is relatively cumbersome and the operation cost is too high for mass-produced machines. Summary of the invention

[0003] Based on this, it is necessary to propose a method and device for detecting overcurrent protection of electronic equipment circuits in response to the above problems, so that fault analysts can quickly locate the circuits where overcurrent protection occurs, thereby improving the efficiency of fault analysts in handling overcurrent protection problems of electronic equipment circuits.

[0004] The first technical solution of the embodiment of the present invention is:

[0005] A method for detecting overcurrent protection of electronic device circuits, comprising: when a target electronic device is initialized, obtaining target overcurrent protection status data corresponding to each target circuit of the target electronic device; after the target overcurrent protection status data corresponding to each target circuit is processed by a preset program, transferring it to a kernel log; after the initialization of the target electronic device is completed, outputting the target overcurrent protection status data stored in the kernel log to a specified address.

[0006] The second technical solution of the embodiment of the present invention is:

[0007] A device for detecting overcurrent protection of electronic device circuits, comprising: a data acquisition module, used to acquire target overcurrent protection status data corresponding to each target circuit of the target electronic device when the target electronic device is initialized; a data transfer module, used to transfer the target overcurrent protection status data corresponding to each target circuit to a kernel log after performing preset program processing; and a data transmission module, used to output the target overcurrent protection status data stored in the kernel log to a specified address after the initialization of the target electronic device is completed.

[0008] The third technical solution of the embodiment of the present invention is:

[0009] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps: when a target electronic device is initialized, obtaining target overcurrent protection status data corresponding to each target circuit of the target electronic device; performing preset program processing on the target overcurrent protection status data corresponding to each target circuit, and transferring the data to a kernel log; after the initialization of the target electronic device is completed, outputting the target overcurrent protection status data stored in the kernel log to a specified address.

[0010] The fourth technical solution of the embodiment of the present invention is:

[0011] A computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the processor performs the following steps: when a target electronic device is initialized, obtaining target overcurrent protection status data corresponding to each target circuit of the target electronic device; after the target overcurrent protection status data corresponding to each target circuit is processed by a preset program, transferring it to a kernel log; after the initialization of the target electronic device is completed, outputting the target overcurrent protection status data stored in the kernel log to a specified address.

[0012] The embodiments of the present invention have the following beneficial effects:

[0013] The present invention obtains target overcurrent protection status data corresponding to each target circuit of the target electronic device, processes the target overcurrent protection status data corresponding to each target circuit with a preset program, and then transfers the data to a kernel log. Finally, the target overcurrent protection status data stored in the kernel log is transferred to a specified address, so that the data can be viewed by a fault analyst and the cause can be analyzed. This helps the fault analyst to quickly locate the circuit with overcurrent protection without having to flash a debugging version and access a serial port to print the status of each register of a PMIC. This greatly improves the efficiency of the fault analyst in handling the problem of overcurrent protection of the electronic device circuit. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0015] in:

[0016] Figure 1 It is a flowchart of an implementation method of an embodiment of a method for detecting overcurrent protection of an electronic device circuit in one embodiment;

[0017] Figure 2 Another implementation flow chart of an implementation method of an embodiment of detecting overcurrent protection of an electronic device circuit in an embodiment;

[0018] Figure 3 An application environment diagram of an implementation method of detecting overcurrent protection of an electronic device circuit in an embodiment;

[0019] Figure 4 It is a structural block diagram of an implementation method of an apparatus for detecting overcurrent protection of an electronic device circuit in one embodiment;

[0020] Figure 5 It is a structural block diagram of an implementation scheme of a computer device in one embodiment. DETAILED DESCRIPTION

[0021] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0022] Figure 1 FIG. 1 is a flowchart of a method for detecting overcurrent protection of an electronic device circuit in an embodiment, referring to FIG. Figure 1 , a method for detecting overcurrent protection of an electronic device circuit in this embodiment includes the following steps:

[0023] Step S101: when a target electronic device is initialized, target overcurrent protection state data corresponding to each target circuit of the target electronic device is obtained.

[0024] Among them, the target electronic device is the electronic device to be detected, which can be selected as many embedded electronic devices, such as mobile phones and watches and other terminal devices. Among them, a target electronic device is provided with multiple circuits (structures), each circuit corresponds to more than one function, and the current state of each circuit will affect the realization of its function, especially if a circuit has overcurrent protection, it will even affect the function of the entire electronic device, so it is necessary to monitor the current state of each circuit of the electronic device in real time. Obtain the target overcurrent protection state data corresponding to each target circuit of the target electronic device, including the 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 overcurrent protection state data corresponding to each target circuit of the target electronic device is obtained through the resource power manager (RPM) of the target electronic device, specifically, the resource power manager (RPM) traverses the state data of each register corresponding to the PMIC to obtain the current state data corresponding to each of the target circuits, 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.

[0025] Step S102: the target overcurrent protection state data corresponding to each target circuit is processed by a preset program and then transferred to a kernel log.

[0026] Among them, each electronic device is equipped with a log system, and the kernel log is a kernel part of the log system. The target overcurrent protection status data corresponding to each target circuit is processed by a preset program and then transferred to the kernel log. Fault analysts can view the target overcurrent protection status data corresponding to each target circuit by checking the kernel log, and then clearly know which one or several target circuits have overcurrent protection (OCP), and then analyze the cause of the overcurrent protection, improve the efficiency of handling overcurrent protection problems, and reduce the cost of overcurrent protection problems.

[0027] The target overcurrent protection status data corresponding to each target circuit is processed by a preset program, which means that the target overcurrent protection status data corresponding to each target circuit is transferred to the kernel log after a series of transfers. In this embodiment, the target overcurrent protection status data corresponding to each target circuit can be optionally written into a shared memory, encapsulated into a kernel command line, encapsulated into a data interface, and transferred to the kernel log, and finally transferred to the kernel log.

[0028] Step S103: After the target electronic device is initialized, the target overcurrent protection status data stored in the kernel log is output to a designated address.

[0029] Among them, outputting the target overcurrent protection status data stored in the kernel log to the specified address means outputting the target overcurrent protection status data stored in the kernel log to a specified display area of ​​the target electronic device for fault analysts to view, such as a display area of ​​a mobile phone or a watch, but is not limited to the specified display area of ​​the target electronic device.

[0030] like Figure 2 In another embodiment, a method for detecting overcurrent protection of an electronic device circuit is provided, referring to Figure 2 The method can be applied to both a terminal and a server. This embodiment is described by taking the application to a terminal as an example. The method for detecting overcurrent protection of an electronic device circuit specifically includes the following steps:

[0031] Step 201: When the target electronic device is initialized, the current status data corresponding to each target circuit is obtained by traversing the status data of each register corresponding to the PMIC, and the target overcurrent protection status data corresponding to each target circuit is obtained based on the current status data corresponding to each target circuit.

[0032] Among them, when the target electronic device is initialized, the RPM is powered on first and controls the PMIC to initialize the firmware. During the initialization phase, the PMIC will perform self-inspection on each target circuit it controls. The status data of each register corresponding to the PMIC is associated with the current status data of each circuit, and the current status data of each circuit can be obtained from the status data of each register.

[0033] Step 202: Acquire the position data corresponding to each of the target circuits, write the position data and current status data corresponding to each of the target circuits into a custom data format, and then save the position data and current status data corresponding to each of the target circuits into a shared memory.

[0034] The customized data format may be selected such that if the target circuit has overcurrent protection, its current state is recorded as 1, and if it does not have overcurrent protection, its current state is recorded as 0. Recording and saving the position data corresponding to each target circuit can locate the target circuit that has overcurrent protection later.

[0035] Step 203: After the target electronic device enters the boot loader stage, read and parse the position data and current status data corresponding to each of the target circuits stored in the shared memory, then obtain the target circuit whose current state is the overcurrent protection state and use it as the target overcurrent protection circuit, and finally encapsulate the position data corresponding to the target overcurrent protection circuit into the kernel command line corresponding to the log system of the target electronic device.

[0036] Among them, the position data and current status data corresponding to each of the target circuits originally stored in the shared memory include the position data and current status data corresponding to the target circuit where overcurrent protection occurs and the position data and current status data corresponding to the target circuit where overcurrent protection does not occur. In order to reduce the amount of data in the kernel command line and allow fault analysts to better and faster view the current status of each target circuit, it is necessary to first obtain the target circuit whose current status is the overcurrent protection status and use it as the target overcurrent protection circuit, and then encapsulate the position data and current status data corresponding to the target overcurrent protection circuit into the kernel command line corresponding to the log system of the target electronic device.

[0037] Step 204: After the kernel of the target electronic device is started, the location data corresponding to each target overcurrent protection circuit included in the kernel command line is encapsulated into a target overcurrent protection data interface.

[0038] Step 205: After the target electronic device is initialized, the position data corresponding to each target overcurrent protection circuit corresponding to the target overcurrent protection data interface is parsed.

[0039] Step 206: Fill the position data corresponding to each of the target overcurrent protection circuits into the position corresponding to the preset data table, and transmit the preset data table after the position data is filled to the designated display area of ​​the target electronic device for the fault analyst to view. Among them, filling the position data corresponding to each of the target overcurrent protection circuits into the position corresponding to the preset data table can facilitate the fault analyst to view. The fault analyst only needs to view the relevant position of the preset data table to view the position data corresponding to each of the target overcurrent protection circuits, and then clearly know which one or several target circuits have overcurrent protection (OCP), and then analyze the cause of the overcurrent protection, improve the efficiency of handling overcurrent protection problems, and reduce the cost of overcurrent protection problems.

[0040] like Figure 4 In another embodiment, a device for detecting overcurrent protection of an electronic device circuit is provided, referring to Figure 4 It can be obtained that the device 100 for detecting overcurrent protection of electronic equipment circuits specifically includes:

[0041] The data acquisition module 10 is used to acquire target overcurrent protection state data corresponding to each target circuit of the target electronic device when the target electronic device is initialized.

[0042] Among them, the target electronic device is the electronic device to be detected, which can be selected as many embedded electronic devices, such as mobile phones and watches and other terminal devices. Among them, a target electronic device is provided with multiple circuits (structures), each circuit corresponds to more than one function, and the current state of each circuit will affect the realization of its function, especially if a circuit has overcurrent protection, it will even affect the function of the entire electronic device, so it is necessary to monitor the current state of each circuit of the electronic device in real time. Obtain the target overcurrent protection state data corresponding to each target circuit of the target electronic device, including the 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 overcurrent protection state data corresponding to each target circuit of the target electronic device is obtained through the resource power manager (RPM) of the target electronic device, specifically, the resource power manager (RPM) traverses the state data of each register corresponding to the PMIC to obtain the current state data corresponding to each of the target circuits, 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.

[0043] The data transfer module 20 is used to transfer the target overcurrent protection state data corresponding to each target circuit to the kernel log after being processed by a preset program.

[0044] Among them, each electronic device is equipped with a log system, and the kernel log is a kernel part of the log system. The target overcurrent protection status data corresponding to each target circuit is processed by a preset program and then transferred to the kernel log. Fault analysts can view the target overcurrent protection status data corresponding to each target circuit by checking the kernel log, and then clearly know which one or several target circuits have overcurrent protection (OCP), and then analyze the cause of the overcurrent protection, improve the efficiency of handling overcurrent protection problems, and reduce the cost of overcurrent protection problems.

[0045] The target overcurrent protection status data corresponding to each target circuit is processed by a preset program, which means that the target overcurrent protection status data corresponding to each target circuit is transferred to the kernel log after a series of transfers. In this embodiment, the target overcurrent protection status data corresponding to each target circuit can be optionally written into a shared memory, encapsulated into a kernel command line, encapsulated into a data interface, and transferred to the kernel log, and finally transferred to the kernel log.

[0046] The data transmission module 30 is used to output the target overcurrent protection status data stored in the kernel log to a designated address after the target electronic device is initialized.

[0047] Among them, outputting the target overcurrent protection status data stored in the kernel log to the specified address means outputting the target overcurrent protection status data stored in the kernel log to a specified display area of ​​the target electronic device for fault analysts to view, such as a display area of ​​a mobile phone or a watch, but is not limited to the specified display area of ​​the target electronic device.

[0048] In order to more clearly illustrate the principle and process of the detection method of the embodiment of the present invention, the following examples are given for illustration. Figure 3 FIG. 1 is an application environment diagram of the method for detecting overcurrent protection of electronic equipment circuits according to the present embodiment, combined with Figure 3 It can be obtained that the power resource manager (RPM) manages the power management integrated circuit PMIC, and controls the power management integrated circuit PMIC to power 5 (module) circuits, among which the first circuit is the camera, the second circuit is the light sensor, the third circuit is the gravity sensor, the fourth circuit is the flash, and the fifth circuit is the motor. Among them, the working process of detecting the overcurrent protection of the electronic equipment circuit is as follows:

[0049] 1. When the electronic device is turned on, RPM is powered on first and controls PMIC to initialize the firmware. During the initialization phase, PMIC will perform self-tests on 1 to 5 circuits (modules). When overcurrent protection (OCP) occurs on the first and third circuits, the current status of 1 to 5 circuits (modules) will be written into the shared memory in the data format of 1:1, 2:0, 3:1, 4:0 and 5:0, where the first and third circuits are 1:1 and 3:1 respectively.

[0050] 2. During the boot loader phase, the OCP record data in the shared memory will be checked. If, after analysis, it is found that an OCP problem occurs on the first path and an OC problem P also occurs on the third path, the above records will be parsed and the following parameters will be added to the kernel parameters: OCP = "1:1, 3:1".

[0051] 3. When the electronic device is turned on, the kernel will read and parse the kernel log. When the parameter OCP is detected, the OCP value "1:1, 3, 1" will be parsed. After parsing, the following content will be printed: an error occurred in the PMIC itself, OCP occurred in the first power supply, and OCP occurred in the third power supply.

[0052] 4. After the log system is started, the above kernel logs will be collected and saved in the log file. After analyzing and reading the above kernel logs, the relevant fault analysis engineer can directly check the specific reasons for the OCP of the first and third paths.

[0053] Figure 5 FIG. 1 shows an internal structure diagram of a computer device in an embodiment. The computer device may be a terminal or a server. Figure 5As shown, the computer device includes a processor, a memory and a network interface connected via a system bus. 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. When the computer program is executed by the processor, the processor can implement the age recognition method. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor can implement the age recognition method. Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0054] In another embodiment, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:

[0055] First, when the target electronic device is initialized, target overcurrent protection state data corresponding to each target circuit of the target electronic device is obtained;

[0056] Second, the target overcurrent protection state data corresponding to each target circuit is processed by a preset program and then transferred to a kernel log;

[0057] Third, after the target electronic device is initialized, the target overcurrent protection status data stored in the kernel log is output to a designated address.

[0058] In another embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the processor performs the following steps:

[0059] First, when the target electronic device is initialized, target overcurrent protection state data corresponding to each target circuit of the target electronic device is obtained;

[0060] Second, the target overcurrent protection state data corresponding to each target circuit is processed by a preset program and then transferred to a kernel log;

[0061] Third, after the target electronic device is initialized, the target overcurrent protection status data stored in the kernel log is output to a designated address.

[0062] The present invention obtains target overcurrent protection status data corresponding to each target circuit of the target electronic device, processes the target overcurrent protection status data corresponding to each target circuit with a preset program, and then transfers the data to a kernel log. Finally, the target overcurrent protection status data stored in the kernel log is transferred to a specified address, so that the data can be viewed by a fault analyst and the cause can be analyzed. This helps the fault analyst to quickly locate the circuit with overcurrent protection without having to flash a debugging version and access a serial port to print the status of each register of a PMIC. This greatly improves the efficiency of the fault analyst in handling the problem of overcurrent protection of the electronic device circuit.

[0063] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many 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).

[0064] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0065] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for detecting overcurrent protection of electronic equipment circuits, characterized in that: include: When the target electronic device is initialized, obtaining target overcurrent protection state data corresponding to each target circuit of the target electronic device; When the target electronic device is initialized, the current state data corresponding to each of the target circuits is obtained by traversing the state data of each register corresponding to the PMIC; and the target overcurrent protection state data corresponding to each of the target circuits is obtained according to the current state data corresponding to each of the target circuits; Acquire the position data corresponding to each of the target circuits, and write the position data and current state data corresponding to each of the target circuits into a custom data format; Saving the position data and current state data corresponding to each of the target circuits into a shared memory; After the target overcurrent protection status data corresponding to each target circuit is processed by a preset program, it is transferred to the kernel log; after the target electronic device enters the boot loader stage, the position data and current status data corresponding to each target circuit stored in the shared memory are read and parsed; Acquire the target circuit whose current state is an overcurrent protection state and use it as a target overcurrent protection circuit; Encapsulating the location data corresponding to the target overcurrent protection circuit into a kernel command line corresponding to the log system of the target electronic device; After the kernel of the target electronic device is started, the position data corresponding to each target overcurrent protection circuit included in the kernel command line is encapsulated into a target overcurrent protection data interface; When the target electronic device is initialized, the position data corresponding to each of the target overcurrent protection circuits corresponding to the target overcurrent protection data interface is parsed; After the target electronic device is initialized, the target overcurrent protection status data stored in the kernel log is output to a designated address.

2. The method for detecting overcurrent protection of electronic equipment circuit according to claim 1, characterized in that: The step of parsing the position data corresponding to each of the target overcurrent protection circuits corresponding to the target overcurrent protection data interface comprises: Filling the position data corresponding to each of the target overcurrent protection circuits into the corresponding position of the preset data table; The preset data table after filling the position data is transmitted to a designated display area of ​​the target electronic device for viewing by a fault analyst.

3. A device for detecting overcurrent protection of electronic equipment circuits, characterized in that: include: A data acquisition module, used to acquire target overcurrent protection state data corresponding to each target circuit of the target electronic device when the target electronic device is initialized; When the target electronic device is initialized, the current state data corresponding to each of the target circuits is obtained by traversing the state data of each register corresponding to the PMIC; the target overcurrent protection state data corresponding to each of the target circuits is obtained according to the current state data corresponding to each of the target circuits; the position data corresponding to each of the target circuits is obtained, and the position data and current state data corresponding to each of the target circuits are written into a custom data format; Saving the position data and current state data corresponding to each of the target circuits into a shared memory; A data transfer module is used to transfer the target overcurrent protection state data corresponding to each target circuit to a kernel log after being processed by a preset program; after the target electronic device enters the boot loader stage, read and parse the position data and current state data corresponding to each target circuit stored in the shared memory; Acquire the target circuit whose current state is an overcurrent protection state and use it as a target overcurrent protection circuit; Encapsulating the position data corresponding to the target overcurrent protection circuit into the kernel command line corresponding to the log system of the target electronic device; after the kernel of the target electronic device is started, encapsulating the position data corresponding to each of the target overcurrent protection circuits contained in the kernel command line into a target overcurrent protection data interface; after the initialization of the target electronic device is completed, parsing out the position data corresponding to each of the target overcurrent protection circuits corresponding to the target overcurrent protection data interface; The data transmission module is used to output the target overcurrent protection status data stored in the kernel log to a specified address after the target electronic device is initialized.

4. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the method for detecting overcurrent protection of an electronic device circuit as claimed in any one of claims 1 to 2.

5. A computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method for detecting overcurrent protection of electronic device circuits as described in any one of claims 1 to 2.