Load high-end current detection method and device, electronic equipment and storage medium

By employing a multi-ADC differential architecture and integrating the common-mode voltage coefficient, the efficiency and accuracy issues of high-voltage, high-current load detection under high-voltage conditions are resolved, achieving efficient and accurate high-voltage load current detection.

CN121114554APending Publication Date: 2025-12-12WUHAN PUSAISI INSTR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511193215.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-25
Publication Date
2025-12-12

AI Technical Summary

Technical Problem

Traditional high-current detection systems are susceptible to common-mode voltage interference in high-voltage and high-current environments, which can lead to measurement deviations and affect detection efficiency, timeliness, and accuracy.

Method used

Multiple high-precision ADC modules are used to form a symmetrical sampling channel. The common-mode voltage is canceled by a differential algorithm. The common-mode intercept coefficient of the common-mode voltage and the conversion intercept coefficient of the analog-to-digital converter are pre-integrated. The integration slope coefficient is calculated to obtain the high-side current of the load in one calculation.

Benefits of technology

It improves the efficiency, timeliness, and accuracy of high-side load current detection, while reducing computational load and storage space requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121114554A_ABST
    Figure CN121114554A_ABST
Patent Text Reader

Abstract

The invention relates to the field of electricity, and discloses a load high-end current detection method, a load high-end current detection device, electronic equipment and a computer readable storage medium, and the method comprises the steps: obtaining a preset coefficient array which comprises an integrated intercept coefficient and a plurality of integrated slope coefficients, the integrated intercept coefficient is calculated based on a common-mode intercept coefficient of a common-mode voltage of the load high-end current detection device and a conversion intercept coefficient of each analog-to-digital converter, and each integrated slope coefficient is calculated based on a conversion slope coefficient of each analog-to-digital converter and a common-mode slope coefficient of the common-mode voltage; obtaining the load voltage of the to-be-detected load collected by each analog-to-digital converter; and calculating the load high-end current of the to-be-detected load based on the integrated intercept coefficient, the plurality of integrated slope coefficients and the load voltage. According to the invention, the load high-end current detection efficiency, timeliness and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electrical engineering, specifically to a method for detecting high-side current in a load, a device for detecting high-side current in a load, an electronic device, and a computer-readable storage medium. Background Technology

[0002] In the power source meter industry, the high-side load current detection system is a core component of high-power current source meters. Its performance directly determines the measurement accuracy and long-term operational reliability of the equipment's high-side load current. These systems are widely used in high-end fields such as new energy storage, semiconductor manufacturing, and aerospace, requiring accurate detection of load currents from microamps to kiloamps under high voltage and high current environments.

[0003] Traditional single-ADC (Analog-to-Digital Converter) acquisition solutions often suffer from measurement errors due to common-mode voltage interference in high-power scenarios. Common-mode voltage is primarily caused by uneven line impedance, electromagnetic radiation coupling, and load fluctuations. In high-end sampling architectures, this interference superimposed on the useful signal, causing distortion of the ADC input signal. This is especially problematic when the common-mode voltage amplitude approaches or exceeds the ADC's range, easily leading to sampling saturation or nonlinear errors, severely impacting data reliability. Multi-ADC acquisition solutions overcome this challenge through a differential architecture. This approach uses multiple high-precision ADC modules to form symmetrical sampling channels, acquiring voltage signals from both ends of the load separately, and using a differential algorithm to achieve real-time cancellation of common-mode voltage.

[0004] However, when there are many loads requiring high-side current detection, each ADC at both ends of the load needs to undergo separate floating-point operations to obtain the high-side current corresponding to each ADC. Then, the load's high-side current is calculated based on the high-side currents of all ADCs. Performing separate calculations for each ADC not only increases the computational load and time consumption, affecting the efficiency and timeliness of high-side current detection, but multiple calculations may also introduce larger computational errors, impacting the accuracy of high-side current detection. Summary of the Invention

[0005] In view of this, it is necessary to provide a method, device, electronic device and computer-readable storage medium for detecting high-side load current, in order to solve the technical problems of low efficiency, timeliness and accuracy of high-side load current detection in the prior art.

[0006] To address the aforementioned technical problems, in a first aspect, this application provides a load high-side current detection method, applied to a load high-side current detection device including several analog-to-digital converters. The load high-side current detection method includes: Obtain a preset coefficient array, which includes an integrated intercept coefficient and several integrated slope coefficients. The integrated intercept coefficient is calculated based on the common-mode intercept coefficient of the common-mode voltage of the load high-side current detection device and the conversion intercept coefficient of each analog-to-digital converter. The integrated slope coefficient is calculated based on the conversion slope coefficient of each analog-to-digital converter and the common-mode slope coefficient of the common-mode voltage. Obtain the load voltage of the load to be detected collected by each of the analog-to-digital converters; The high-side current of the load to be tested is calculated based on the integrated intercept coefficient, the several integrated slope coefficients, and the load voltage.

[0007] In one possible embodiment, the analog-to-digital converter includes a first analog-to-digital converter for measuring the voltage across the load under test and a second analog-to-digital converter for detecting the voltage between the high end of the load under test and ground. The integrated intercept coefficient is calculated based on the common-mode intercept coefficient of the common-mode voltage of the load high-side current sensing device and the conversion intercept coefficients of each of the analog-to-digital converters, including: The integrated intercept coefficient B1 is calculated based on the formula B1=(0.5×k3×b1+b1-b3-k3×b2) / R, where k3 is the common-mode slope coefficient of the common-mode voltage, b1 is the conversion intercept coefficient of the first analog-to-digital converter, b2 is the conversion intercept coefficient of the second analog-to-digital converter, and b3 is the common-mode intercept coefficient.

[0008] In one possible embodiment, the integration slope coefficient is calculated based on the conversion slope coefficients of each of the individual analog-to-digital converters and the common-mode slope coefficient of the common-mode voltage, including: The integration slope coefficient K1 of the first analog-to-digital converter is calculated based on the formula K1=(0.5×k1×k3+k1) / R, and the integration slope coefficient K2 of the second analog-to-digital converter is calculated based on the formula K2=(k2×k3) / R, where k1 is the conversion slope coefficient of the first analog-to-digital converter, k2 is the conversion slope coefficient of the second analog-to-digital converter, and k3 is the common-mode slope coefficient.

[0009] In one possible embodiment, calculating the high-side load current of the load under test based on the integrated intercept coefficient, the plurality of integrated slope coefficients, and the load voltage includes: Based on the formula I=K1×V ADC1 -K2×V ADC2 +B1 calculates the high-side current I of the load, where V ADC1 The load voltage, V, is acquired by the first analog-to-digital converter. ADC2The load voltage acquired by the second analog-to-digital converter.

[0010] In one possible embodiment, the load high-side current detection method further includes: For any of the analog-to-digital converters, acquire multiple measured load voltages of the load under test collected by the analog-to-digital converter; Obtain the standard load voltage corresponding to each of the measured load voltages to form multiple load voltage pairs, each load voltage pair including the corresponding measured load voltage and the standard load voltage; Linear fitting is performed on the multiple load voltage pairs to obtain the conversion intercept coefficient and the conversion slope coefficient.

[0011] In one possible embodiment, obtaining the preset coefficient array includes: Obtain the load operating status of the load to be detected; Based on the first preset correspondence, obtain the preset coefficient array corresponding to the load operating state.

[0012] In one possible embodiment, obtaining the preset coefficient array includes: Obtain the load type of the load to be detected; Based on the second preset correspondence, obtain the preset coefficient array corresponding to the load type.

[0013] Secondly, this application also provides a load high-side current detection device, comprising: A plurality of analog-to-digital converters, each of which is used to acquire the load voltage of the load to be detected; A coefficient determination module is used to obtain a preset coefficient array, which includes an integrated intercept coefficient and several integrated slope coefficients. The integrated intercept coefficient is calculated based on the common-mode intercept coefficient of the common-mode voltage of the load high-side current detection device and the conversion intercept coefficient of each analog-to-digital converter. The integrated slope coefficients are calculated based on the conversion slope coefficient of each analog-to-digital converter and the common-mode slope coefficient of the common-mode voltage. The current calculation module is used to calculate the high-side load current of the load to be detected based on the integrated intercept coefficient, the several integrated slope coefficients and the load voltage.

[0014] Thirdly, this application also provides an electronic device, including a memory and a processor, wherein, The memory is used to store programs; The processor, coupled to the memory, is used to execute the program stored in the memory to implement the steps in the load high-side current detection method described in any of the above implementations.

[0015] Fourthly, this application also provides a computer-readable storage medium for storing a computer-readable program or instructions, which, when executed by a processor, can implement the steps of the load high-side current detection method described in any of the above implementations.

[0016] The beneficial effects of this application are: Compared with related technologies, the load high-side current detection method provided in this application integrates the common-mode intercept coefficient of the common-mode voltage and the conversion intercept coefficient of each analog-to-digital converter (ADC) to obtain an integrated intercept coefficient, and integrates the conversion slope coefficient of each ADC and the common-mode slope coefficient of the common-mode voltage to obtain an integrated slope coefficient. In the actual measurement process, after each ADC acquires the load voltage of the load to be detected, the load high-side current of the load to be detected can be obtained by performing a single calculation on each load voltage based on the integrated slope coefficient and the integrated intercept coefficient. Compared with the related technologies that perform floating-point calculations separately for each ADC, the single calculation in this application can not only reduce the amount of calculation and the calculation time, but also improve the detection efficiency, timeliness and accuracy of load high-side current detection. In addition, this application only needs to store the integrated load high-side current detection efficiency and timeliness, which can also reduce the amount of data to be stored and save storage space. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a schematic flowchart of the load high-side current detection method provided in the embodiments of this application; Figure 2 This is a schematic diagram of the load high-side current detection device provided in the embodiments of this application; Figure 3 This is a schematic diagram of the circuit structure of the analog-to-digital converter in the load high-side current detection method provided in the embodiments of this application; Figure 4 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0019] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0020] In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more. "And / or" describes the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.

[0021] The terms "first," "second," etc., used in the embodiments of this application are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a technical feature defined with "first" or "second" may explicitly or implicitly include at least one of those features.

[0022] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0023] This application provides a method for detecting high-side load current, a device for detecting high-side load current, an electronic device, and a computer-readable storage medium, which are described below.

[0024] like Figure 1 As shown, this application provides a method for detecting high-side current of a load, applicable to applications such as... Figure 2 The diagram shows a load high-side current detection device comprising several analog-to-digital converters. Specifically, the load high-side current detection device includes the following steps: Step S101: Obtain a preset coefficient array, which includes integrated intercept coefficients and several integrated slope coefficients.

[0025] In this step, the integrated intercept coefficient is calculated based on the common-mode intercept coefficient of the common-mode voltage of the load high-side current sensing device and the conversion intercept coefficient of each analog-to-digital converter, and the integrated slope coefficient is calculated based on the conversion slope coefficient of each analog-to-digital converter and the common-mode slope coefficient of the common-mode voltage.

[0026] Specifically, before integrating the coefficients to obtain the integrated intercept coefficient and integrated slope coefficient, the conversion slope coefficient and conversion intercept coefficient of each analog-to-digital converter, as well as the common-mode slope coefficient and common-mode intercept coefficient of the common-mode voltage, are measured separately.

[0027] Specifically, measuring the conversion slope coefficient and conversion intercept coefficient of any analog-to-digital converter may include: acquiring multiple measured load voltages of the load to be tested collected by the analog-to-digital converter; acquiring standard load voltages corresponding to each measured load voltage to form multiple load voltage pairs, each load voltage pair including the corresponding measured load voltage and standard load voltage; and performing linear fitting on the multiple load voltage pairs to obtain the conversion intercept coefficient and conversion slope coefficient.

[0028] For example, several analog-to-digital converters may specifically include a first analog-to-digital converter for measuring the voltage across the load under test and a second analog-to-digital converter for detecting the voltage between the high end of the load under test and ground. Based on this, the conversion slope coefficient and conversion intercept coefficient of the first and second analog-to-digital converters can be measured respectively. The measurement process includes: For the first analog-to-digital converter, the measured load voltages x1, x2, x3...xi at both ends of the load to be tested can be acquired multiple times using the first analog-to-digital converter. At the same time, the standard load voltages y1, y2, y3...yi can be acquired using standard equipment. The measured load voltages x1, x2, x3...xi and the standard load voltages y1, y2, y3...yi are matched one-to-one to form multiple load voltage pairs (x1, y1), (x2, y2), (x3, y3)...(xi, yi). Linear fitting is performed on multiple load voltage pairs to obtain the fitted line y=kx+b. In order to find the optimal values ​​of k and b, the fitting objective is to minimize the sum of the squares of the distances from each point to the linear equation.

[0029] In this embodiment, the least squares method can be used to perform linear fitting on multiple load voltage pairs. The specific calculation formula for the least squares method is as follows:

[0030] Taking the partial derivative of the above formula, the optimal values ​​of k and b are found when the partial derivative is 0. These optimal values ​​of k and b can then be used as the conversion slope coefficient k1 and conversion intercept coefficient b1 of the first analog-to-digital converter. The derivative formula is as follows:

[0031]

[0032]

[0033]

[0034] It is understood that the above-described method of using the least squares method to perform linear fitting of multiple load voltage pairs is merely an example of a specific fitting method for performing linear fitting of multiple load voltage pairs in this embodiment. In some other embodiments of this application, other fitting methods such as the minimum absolute value deviation method and Bayesian linear fitting can also be used to perform linear fitting of multiple load voltage pairs.

[0035] Similarly, based on the above fitting method, the conversion slope coefficient k2 and conversion intercept coefficient b2 of the second analog-to-digital converter can also be fitted.

[0036] Regarding the common-mode intercept and common-mode slope coefficient of the common-mode voltage, since the common-mode voltage acquired in ADC1 is very small, the common-mode voltage Vcom can be approximately considered to be equal to (2V1-V2) / 2, where V1 is the detection voltage of the first analog-to-digital converter and V2 is the detection voltage of the second analog-to-digital converter. Using the same fitting method, the common-mode intercept coefficient k3 and common-mode slope coefficient b3 of the common-mode voltage can also be fitted.

[0037] After measuring the conversion slope coefficient k1 and conversion intercept coefficient b1 of the first analog-to-digital converter, the conversion slope coefficient k2 and conversion intercept coefficient b2 of the second analog-to-digital converter, and the common-mode intercept coefficient k3 and common-mode slope coefficient b3 of the common-mode voltage, the integrated intercept coefficient B1 can be calculated based on the formula B1=(0.5×k3×b1+b1-b3-k3×b2) / R, the integrated slope coefficient K1 of the first analog-to-digital converter can be calculated based on the formula K1=(0.5×k1×k3+k1) / R, and the integrated slope coefficient K2 of the second analog-to-digital converter can be calculated based on the formula K2=(k2×k3) / R.

[0038] In some embodiments of this application, while calculating the integrated intercept coefficient B1, integrated slope coefficient K1, and integrated slope coefficient K2, the load operating state of the load to be detected can also be detected. Then, the load operating state is correspondingly stored with the integrated intercept coefficient B1, integrated slope coefficient K1, and integrated slope coefficient K2. Based on this, obtaining the preset coefficient array in this step can specifically involve obtaining the actual operating state of the load to be detected, matching the actual operating state with the pre-stored load operating states, and obtaining the integrated intercept coefficient B1, integrated slope coefficient K1, and integrated slope coefficient K2 corresponding to the load operating state that matches the actual operating state as the preset coefficient array.

[0039] Furthermore, in some embodiments of this application, while calculating the integrated intercept coefficient B1, integrated slope coefficient K1, and integrated slope coefficient K2, the load type of the load to be detected can also be detected. Then, the load type is correspondingly stored with the integrated intercept coefficient B1, integrated slope coefficient K1, and integrated slope coefficient K2. Based on this, obtaining the preset coefficient array in this step can specifically involve obtaining the actual load type of the load to be detected, matching the actual load type with the pre-stored load types, and obtaining the integrated intercept coefficient B1, integrated slope coefficient K1, and integrated slope coefficient K2 corresponding to the load type matching the actual load type as the preset coefficient array.

[0040] It is understandable that the aforementioned corresponding storage of load type with integration intercept coefficient B1, integration slope coefficient K1, and integration slope coefficient K2, and corresponding storage of load operating status with integration intercept coefficient B1, integration slope coefficient K1, and integration slope coefficient K2, can specifically be achieved by creating a multi-row, three-column array in the local software to store load operating status and / or load type with integration intercept coefficient B1, integration slope coefficient K1, and integration slope coefficient K2.

[0041] Step S102: Obtain the load voltage of the load to be tested collected by each analog-to-digital converter.

[0042] In this step, each analog-to-digital converter independently detects the load voltage of the load to be tested. Please refer to... Figure 3 Specifically, the analog-to-digital converters may include a first analog-to-digital converter ADC1 for measuring the voltage across the load 100 under test and a second analog-to-digital converter ADC2 for detecting the voltage between the high end of the load under test and ground. The first analog-to-digital converter is connected to both ends of the load 100 under test to measure the voltage across the load under test; the second analog-to-digital converter is connected to the high end of the load 100 under test and is also grounded to detect the voltage between the high end of the load under test and ground.

[0043] Step S103: Calculate the high-side load current of the load to be tested based on the integrated intercept coefficient, several integrated slope coefficients and load voltage.

[0044] In this step, the product of the integrated slope coefficient and the load voltage for each analog-to-digital converter can be calculated separately. Then, the product of all analog-to-digital converters is subtracted and / or summed with the integrated intercept coefficient to obtain the high-side load current of the load to be tested.

[0045] Taking several analog-to-digital converters as an example, these may include a first analog-to-digital converter for measuring the voltage across the load under test and a second analog-to-digital converter for detecting the voltage between the high end of the load under test and ground. The corresponding preset coefficient array includes an integrated intercept coefficient B1, an integrated slope coefficient K1, and an integrated slope coefficient K2. Specifically, this can be based on the formula I = K1 × V. ADC1 -K2×V ADC2 +B1 calculates the high-side load current I, where V ADC1 The load voltage, V, is collected by the first analog-to-digital converter. ADC2 The load voltage acquired by the second analog-to-digital converter.

[0046] Compared with related technologies, the load high-side current detection method provided in this embodiment integrates the common-mode intercept coefficient of the common-mode voltage and the conversion intercept coefficient of each analog-to-digital converter (ADC) to obtain an integrated intercept coefficient, and integrates the conversion slope coefficient of each ADC and the common-mode slope coefficient of the common-mode voltage to obtain an integrated slope coefficient. In the actual measurement process, after each ADC collects the load voltage of the load to be detected, the load high-side current of the load to be detected can be obtained by performing a single calculation on each load voltage based on the integrated slope coefficient and the integrated intercept coefficient. Compared with the related technologies that perform floating-point calculations separately for each ADC, this application only performs a single calculation, which can not only reduce the amount of calculation and the calculation time, but also improve the detection efficiency, timeliness and accuracy of load high-side current detection. In addition, this application only needs to store the integrated load high-side current detection efficiency and timeliness, which can also reduce the amount of data to be stored and save storage space.

[0047] To better implement the load high-side current detection method in the embodiments of this application, based on the load high-side current detection method, please refer to the corresponding... Figure 2 This application also provides a load high-side current detection device, which includes: A plurality of analog-to-digital converters 201 are provided, each of which is used to acquire the load voltage of the load to be detected; a coefficient determination module 202 is used to obtain a preset coefficient array, which includes an integrated intercept coefficient and a plurality of integrated slope coefficients. The integrated intercept coefficient is calculated based on the common-mode intercept coefficient of the common-mode voltage of the load high-side current detection device and the conversion intercept coefficient of each analog-to-digital converter. The plurality of integrated slope coefficients are calculated based on the conversion slope coefficient of each analog-to-digital converter and the common-mode slope coefficient of the common-mode voltage; a current calculation module 203 is used to calculate the load high-side current of the load to be detected based on the integrated intercept coefficient, the plurality of integrated slope coefficients and the load voltage.

[0048] The load high-side current detection device provided in the above embodiments can realize the technical solutions described in the above load high-side current detection method embodiments. The specific implementation principles of each module or unit can be found in the corresponding content in the above load high-side current detection method embodiments, and will not be repeated here.

[0049] Please refer to Figure 4 This application also provides an electronic device 400. The electronic device 400 includes a processor 401, a memory 402, and a display 403. Figure 4 Only some components of the electronic device 400 are shown, but it should be understood that it is not required to implement all the components shown, and more or fewer components may be implemented instead.

[0050] In some embodiments, processor 401 may be a central processing unit (CPU), microprocessor, or other data processing chip, used to run program code stored in memory 402 or process data, such as the load high-side current detection method in this application.

[0051] In some embodiments, processor 401 may be a single server or a group of servers. The server group may be centralized or distributed. In some embodiments, processor 401 may be local or remote. In some embodiments, processor 401 may be implemented on a cloud platform. In one embodiment, the cloud platform may include a private cloud, public cloud, hybrid cloud, community cloud, distributed cloud, intranet, multi-cloud, etc., or any combination thereof.

[0052] In some embodiments, memory 402 may be an internal storage unit of electronic device 400, such as a hard disk or memory of electronic device 400. In other embodiments, memory 402 may also be an external storage device of electronic device 400, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc. equipped on electronic device 400.

[0053] Furthermore, the memory 402 may include both internal storage units of the electronic device 400 and external storage devices. The memory 402 is used to store application software and various types of data installed on the electronic device 400.

[0054] In some embodiments, display 403 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. Display 403 is used to display information from electronic device 400 and to display a visual user interface. Components 401-403 of electronic device 400 communicate with each other via a system bus.

[0055] In one embodiment, when the processor 401 executes the load high-side current detection program in the memory 402, the following steps can be implemented: Obtain a preset coefficient array, which includes an integrated intercept coefficient and several integrated slope coefficients. The integrated intercept coefficient is calculated based on the common-mode intercept coefficient of the common-mode voltage of the load high-side current detection device and the conversion intercept coefficient of each analog-to-digital converter. The integrated slope coefficient is calculated based on the conversion slope coefficient of each analog-to-digital converter and the common-mode slope coefficient of the common-mode voltage. Acquire the load voltage of the load under test collected by each analog-to-digital converter; The high-side current of the load to be tested is calculated based on the integrated intercept coefficient, several integrated slope coefficients, and the load voltage.

[0056] It should be understood that when the processor 401 executes the load high-side current detection program in the memory 402, in addition to the functions mentioned above, it can also perform other functions, as can be found in the description of the corresponding method embodiments above.

[0057] Furthermore, this application does not specifically limit the type of electronic device 400 mentioned in the embodiments. Electronic device 400 can be a mobile phone, tablet computer, personal digital assistant (PDA), wearable device, laptop computer, or other portable electronic device. Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices running iOS, Android, Microsoft, or other operating systems. The aforementioned portable electronic device can also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of this application, electronic device 400 may not be a portable electronic device, but rather a desktop computer with a touch-sensitive surface (e.g., a touch panel).

[0058] Accordingly, this application also provides a computer-readable storage medium for storing a computer-readable program or instruction. When the program or instruction is executed by a processor, it can implement the steps or functions of the load high-side current detection method provided in the above-described method embodiments.

[0059] Those skilled in the art will understand that all or part of the processes of the methods described in the above embodiments can be implemented by a computer program instructing related hardware (such as a processor, controller, etc.), and the computer program can be stored in a computer-readable storage medium. The computer-readable storage medium may be a disk, optical disk, read-only memory, or random access memory, etc.

[0060] The above provides a detailed description of the load high-side current detection method, device, electronic device, and storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for detecting high-side current of a load, characterized in that, Applied to load high-side current sensing devices including several analog-to-digital converters, the load high-side current sensing methods include: Obtain a preset coefficient array, which includes an integrated intercept coefficient and several integrated slope coefficients. The integrated intercept coefficient is calculated based on the common-mode intercept coefficient of the common-mode voltage of the load high-side current detection device and the conversion intercept coefficient of each analog-to-digital converter. The integrated slope coefficient is calculated based on the conversion slope coefficient of each analog-to-digital converter and the common-mode slope coefficient of the common-mode voltage. Obtain the load voltage of the load to be detected collected by each of the analog-to-digital converters; The high-side current of the load to be tested is calculated based on the integrated intercept coefficient, the several integrated slope coefficients, and the load voltage.

2. The load high-side current detection method according to claim 1, characterized in that, The plurality of analog-to-digital converters include a first analog-to-digital converter for measuring the voltage across the load under test and a second analog-to-digital converter for detecting the voltage between the high end of the load under test and ground. The integrated intercept coefficient is calculated based on the common-mode intercept coefficient of the common-mode voltage of the load high-side current sensing device and the conversion intercept coefficients of each of the analog-to-digital converters, including: The integrated intercept coefficient B1 is calculated based on the formula B1=(0.5×k3×b1+b1-b3-k3×b2) / R, where k3 is the common-mode slope coefficient of the common-mode voltage, b1 is the conversion intercept coefficient of the first analog-to-digital converter, b2 is the conversion intercept coefficient of the second analog-to-digital converter, b3 is the common-mode intercept coefficient, and R is the resistance value of the load to be detected.

3. The load high-side current detection method according to claim 2, characterized in that, The integrated slope coefficient is calculated based on the conversion slope coefficient of each of the analog-to-digital converters and the common-mode slope coefficient of the common-mode voltage, including: The integration slope coefficient K1 of the first analog-to-digital converter is calculated based on the formula K1=(0.5×k1×k3+k1) / R, and the integration slope coefficient K2 of the second analog-to-digital converter is calculated based on the formula K2=(k2×k3) / R, where k1 is the conversion slope coefficient of the first analog-to-digital converter, k2 is the conversion slope coefficient of the second analog-to-digital converter, and k3 is the common-mode slope coefficient.

4. The load high-side current detection method according to claim 3, characterized in that, The calculation of the high-side load current of the load under test based on the integrated intercept coefficient, the plurality of integrated slope coefficients, and the load voltage includes: Based on the formula I=K1×V ADC1 -K2×V ADC2 +B1 calculates the high-side current I of the load, where V ADC1 The load voltage, V, is acquired by the first analog-to-digital converter. ADC2 The load voltage acquired by the second analog-to-digital converter.

5. The load high-side current detection method according to claim 1, characterized in that, The load high-side current detection method further includes: For any of the analog-to-digital converters, acquire multiple measured load voltages of the load under test collected by the analog-to-digital converter; Obtain the standard load voltage corresponding to each of the measured load voltages to form multiple load voltage pairs, each load voltage pair including the corresponding measured load voltage and the standard load voltage; Linear fitting is performed on the multiple load voltage pairs to obtain the conversion intercept coefficient and the conversion slope coefficient.

6. The load high-side current detection method according to claim 1, characterized in that, The process of obtaining the preset coefficient array includes: Obtain the load operating status of the load to be detected; Based on the first preset correspondence, obtain the preset coefficient array corresponding to the load operating state.

7. The load high-side current detection method according to claim 1, characterized in that, The process of obtaining the preset coefficient array includes: Obtain the load type of the load to be detected; Based on the second preset correspondence, obtain the preset coefficient array corresponding to the load type.

8. A load high-side current detection device, characterized in that, include: A plurality of analog-to-digital converters, each of which is used to acquire the load voltage of the load to be detected; A coefficient determination module is used to obtain a preset coefficient array, which includes an integrated intercept coefficient and several integrated slope coefficients. The integrated intercept coefficient is calculated based on the common-mode intercept coefficient of the common-mode voltage of the load high-side current detection device and the conversion intercept coefficient of each analog-to-digital converter. The integrated slope coefficient is calculated based on the conversion slope coefficient of each analog-to-digital converter and the common-mode slope coefficient of the common-mode voltage. The current calculation module is used to calculate the high-side load current of the load to be detected based on the integrated intercept coefficient, the several integrated slope coefficients and the load voltage.

9. An electronic device, characterized in that, Including memory and processor, among which, The memory is used to store programs; The processor, coupled to the memory, is used to execute the program stored in the memory to implement the steps in the load high-side current detection method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, Used to store computer-readable programs or instructions, which, when executed by a processor, can implement the steps in the load high-side current detection method according to any one of claims 1 to 7.