WO2022105707A1 - 电源校准方法和装置、电源系统、电子设备、介质 - Google Patents

电源校准方法和装置、电源系统、电子设备、介质 Download PDF

Info

Publication number
WO2022105707A1
WO2022105707A1 PCT/CN2021/130600 CN2021130600W WO2022105707A1 WO 2022105707 A1 WO2022105707 A1 WO 2022105707A1 CN 2021130600 W CN2021130600 W CN 2021130600W WO 2022105707 A1 WO2022105707 A1 WO 2022105707A1
Authority
WO
WIPO (PCT)
Prior art keywords
power supply
output value
model
sample values
reference output
Prior art date
Application number
PCT/CN2021/130600
Other languages
English (en)
French (fr)
Inventor
邹奇文
李贤利
邵敏
欧阳军
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2022105707A1 publication Critical patent/WO2022105707A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/11Complex mathematical operations for solving equations, e.g. nonlinear equations, general mathematical optimization problems
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/40Testing power supplies

Definitions

  • the present disclosure relates to the field of power supply technology.
  • the power supply output (such as current, voltage, etc.) obtained by detecting the power supply usually deviates from the power supply output obtained by detecting the load connected to the power supply. power supply for calibration.
  • a first aspect of the present disclosure provides a power supply calibration method, which includes: acquiring multiple sets of power supply sample values for a power supply, each set of power supply sample values includes a sampling output value and a reference output value of the power supply at the same time, the sampling output The value is a power supply output value obtained by detecting the power supply, and the reference output value is a power supply output value obtained by detecting a load connected to the power supply; the power supply is determined according to the multiple sets of power supply sample values.
  • the model that the sampled output value and the reference output value satisfy; and the power supply is calibrated according to the model.
  • the determining a model satisfied by the sampled output value of the power supply and the reference output value according to the multiple sets of power supply sample values includes: determining a model of the model satisfied by the sampled output value of the power supply and the reference output value Type; according to the multiple sets of power supply sample values, calculate the model parameters of the model that the sampled output value of the power supply and the reference output value satisfy.
  • the determining the type of the model satisfied by the sampled output value and the reference output value of the power supply comprises: determining whether the model type satisfied by the sampled output value and the reference output value of the power supply is a linear model or a nonlinear model .
  • the calculating, according to the multiple sets of sample values of the power supply, the model parameters of the model that the sampled output values of the power supply and the reference output values satisfy include: determining that the sampled output values of the power supply and the reference output values satisfy
  • the type of the model is a linear model
  • the linear fitting of the least squares method is used to determine the model parameters of the linear model according to the multiple sets of power supply sample values.
  • the calculating, according to the multiple sets of sample values of the power supply, the model parameters of the model that the sampled output values of the power supply and the reference output values satisfy include: determining that the sampled output values of the power supply and the reference output values satisfy
  • the type of the model is a nonlinear model
  • the least squares method of polynomial fitting is used to determine the model parameters of the nonlinear model according to the multiple sets of power supply sample values.
  • the acquiring multiple sets of power supply sample values includes: during the operation of the power supply, acquiring the multiple sets of power supply sample values.
  • a second aspect of the present disclosure provides a power supply calibration device, comprising: a detection module configured to acquire multiple sets of power supply sample values of a power supply, each set of power supply sample values including a sampling output value and a reference of the power supply at the same time an output value, the sampling output value is a power supply output value obtained by detecting the power supply, and the reference output value is a power supply output value obtained by detecting a load connected to the power supply; a calculation module, which uses and a calibration module for calibrating the power supply according to the model, according to the plurality of sets of power supply sample values, to determine a model satisfied by the sampled output value of the power supply and the reference output value.
  • the power supply calibration device is connected to the power supply via an RS485 bus or Ethernet.
  • a third aspect of the present disclosure provides a power supply system including: a power supply; and the power supply calibration apparatus as described above.
  • a fourth aspect of the present disclosure provides an electronic device comprising: one or more processors; a memory having one or more programs stored thereon, when the one or more programs are stored by the one or more programs processor execution, such that the one or more processors implement the power supply calibration method as described above; and one or more I/O interfaces connected between the one or more processors and the memory, for enabling information interaction between the one or more processors and the memory.
  • a fifth aspect of the present disclosure provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, implements the above-described power supply calibration method.
  • FIG. 1 is a flowchart of a power supply calibration method according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a power supply calibration method according to another embodiment of the present disclosure.
  • step S102 in the power supply calibration method shown in FIGS. 1 and 2 is a detailed flowchart of step S102 in the power supply calibration method shown in FIGS. 1 and 2 according to an embodiment of the present disclosure
  • FIG. 4 is a detailed flowchart of steps S1021 and S1022 in the power supply calibration method shown in FIG. 3 according to an embodiment of the present disclosure
  • FIG. 5 is a block diagram of a power supply calibration apparatus according to an embodiment of the present disclosure.
  • 6a is a schematic diagram of the connection between a power supply calibration device and a power supply according to an embodiment of the present disclosure
  • 6b is a schematic diagram of the connection between a power supply calibration device and a power supply according to another embodiment of the present disclosure
  • FIG. 7 is a schematic diagram of a communication process between a power supply calibration device and a power supply according to an embodiment of the present disclosure
  • FIG. 8 is a schematic diagram of a communication process between a power supply calibration apparatus and a power supply according to another embodiment of the present disclosure
  • FIG. 9 is a block diagram of a power supply system according to an embodiment of the present disclosure.
  • FIG. 10 is a block diagram of a computer-readable medium according to an embodiment of the present disclosure.
  • FIG. 11 is a block diagram of a computer-readable medium according to an embodiment of the present disclosure.
  • Embodiments of the present disclosure may be described with reference to plan views and/or cross-sectional views with the aid of idealized schematic illustrations of the present disclosure. Accordingly, example illustrations may be modified according to manufacturing techniques and/or tolerances.
  • Embodiments of the present disclosure are not limited to the embodiments shown in the drawings, but include modifications of configurations formed based on manufacturing processes.
  • the regions illustrated in the figures have schematic properties and the shapes of regions illustrated in the figures are illustrative of the specific shapes of regions of elements and are not intended to be limiting.
  • sampling output value of the power supply and the corresponding reference output value are obtained, they are substituted into the binary linear equation, and the mathematical relationship satisfied by the sampling output value of the power supply and the corresponding reference output value is obtained through calculation, and The power supply is calibrated using the calculated mathematical relationship.
  • the sampling output value of the power supply refers to the output value (such as voltage value, current value, etc.) of the power supply obtained by detecting the power supply itself, that is, the output value of the power supply "self-considered".
  • the reference output value of the power supply refers to the output value of the power supply obtained by detecting the load connected to the power supply, that is, the output value that the power supply actually acts on the load, such as the voltage value detected by the power supply connected to the voltmeter (that is, the voltmeter is the load connected to the power supply). It is the output value of the power supply obtained by detecting the "load" connected to the power supply, that is, the reference output value of the power supply.
  • the sampling output value of the power supply at different times may be different, and naturally the reference output value of the power supply may also be different at different times. Therefore, the sampling output value and reference output of each group of power supplies The value is the sample output value and the reference output value of the power supply at the same time.
  • sampling output value and reference output value of the power supply may both be voltage values or current values, but one of them cannot be a voltage value and the other is a current value.
  • the linear equation represents a linear change, that is, the calculated sampling output value and the reference output value satisfy a linear relationship.
  • the calibration result obtained by using the linear equation to calibrate the power supply is obviously inaccurate, and the calibration error will be relatively large.
  • FIG. 1 is a flowchart of a power supply calibration method according to an embodiment of the present disclosure.
  • a power supply calibration method includes steps S101 to S103.
  • step S101 multiple sets of power supply sample values of the power supply are obtained, and each set of power supply sample values includes a sampling output value and a reference output value of the power supply at the same time.
  • multiple sets of power supply sample values may be acquired by the power supply calibration apparatus, and each set of power supply sample values includes a sampled output value of the power supply and a corresponding reference output value.
  • the sampling output value of the power supply refers to the output value (such as voltage value, current value, etc.) of the power supply obtained by detecting the power supply itself, that is, the output value of the power supply "self-considered".
  • the specific value of the voltage value is the sampling output value of the power supply.
  • the reference output value of the power supply refers to the output value of the power supply obtained by detecting the load connected to the power supply, that is, the output value that the power supply actually acts on the load, such as the voltage value detected by the power supply connected to the voltmeter (that is, the voltmeter is the load connected to the power supply). It is the output value of the power supply obtained by detecting the "load" connected to the power supply, that is, the reference output value of the power supply.
  • the sampling output value of the power supply at different times may be different, and naturally the reference output value of the power supply may also be different at different times. Therefore, the sampling output value in each group of power supply sample values and the reference output value are the sample output value and the reference output value of the power supply at the same time.
  • sampling output value and reference output value of the power supply may both be voltage values or current values, but one of them cannot be a voltage value and the other is a current value.
  • the process of testing the power supply and the load to obtain the sampled output value and the reference output value is not necessarily completed by the power supply calibration device. of.
  • the sampling output value and the corresponding reference output value can be obtained by other devices (such as the device where the power supply is located) by detecting the power supply, and the device sends the obtained sampling output value and the corresponding reference output value to the power supply calibration device.
  • the power supply calibration device Obtain the sample output value and the corresponding reference output value by receiving the data.
  • the power supply calibration device and the device where the power supply is located are connected through, for example, RS485 bus or Ethernet, and the device where the power supply is located detects the power supply and the load connected to the power supply to obtain the power supply sample value, and uses the Modbus protocol (serial). communication protocol) to the power calibration device.
  • Modbus protocol serial
  • communication protocol Modbus protocol
  • step S102 a model satisfying the sampled output value of the power supply and the reference output value is determined according to the multiple sets of sample values of the power supply.
  • the power supply calibration device determines the model that the sampled output value of the power supply and the reference output value satisfy according to the acquired multiple sets of power supply sample values.
  • the model satisfied by the sampled output value of the power supply and the reference output value is a mathematical relationship, which consists of a model type and specific model parameters.
  • the model type refers to the type of mathematical relationship that the sampled output value and the reference output value satisfy, such as a linear model (that is, the sampled output value and the reference output value have a linear relationship), and a nonlinear model (that is, the sampled output value and the reference output value are nonlinear.
  • the model parameter refers to the specific parameter value of the model, such as the slope of the linear model and the specific value of the zero point.
  • step S103 the power supply is calibrated according to a model that the sampled output value of the power supply and the reference output value satisfy.
  • the power supply calibration device calibrates the power supply according to the model that the sampled output value of the power supply and the reference output value satisfy.
  • the output value that the power supply "thinks" (that is, the sampled output value of the power supply) is input into the model (that is, the model that the sampled output value of the power supply and the reference output value satisfy), and the corresponding power supply actually acts on the model.
  • the output value of the load (that is, the reference output value of the power supply), and the power supply is calibrated according to the actual output value of the power supply.
  • the sampling output value of the power supply needs to be obtained. If the currently set voltage value of the power supply is directly obtained as the sampling output value of the voltage, it is only necessary to input the voltage value into the sampling output value of the power supply and the reference output value.
  • the model obtains its corresponding reference output value through calculation, and calibrates the power supply according to the deviation between the obtained reference output value and the sampled output value.
  • the power supply calibration method can calibrate the power supply according to the model after determining the model that the sampled output value of the power supply and the reference output value satisfy by using multiple sets of power supply sample values, thereby avoiding the occurrence of the sampling output and the output of the power supply.
  • the use of a linear equation to calibrate the power supply improves the accuracy of the calibration result and reduces the calibration error.
  • FIG. 2 is a flowchart of a power supply calibration method according to another embodiment of the present disclosure.
  • a power supply calibration method includes step S1011 and steps S102 and S103. Steps S102 and S103 included in the power supply calibration method described with reference to FIG. 2 are the same as steps S102 and S103 included in the power supply calibration method described with reference to FIG. 1 , and thus will not be described repeatedly for brevity of description.
  • step S1011 during the operation of the power supply, multiple sets of power supply sample values are acquired.
  • the power supply calibration device or other devices obtains multiple sets of power supply sample values by detecting the power supply. That is to say, the sample value of the power supply is obtained during the operation of the power supply, not when the power supply is debugged from the factory.
  • the power supply is only calibrated when the equipment is debugged before the power supply leaves the factory.
  • the electrical properties of the hardware equipment may change due to the influence of environmental temperature, humidity and other aspects. Calibrating the power supply before it leaves the factory may not be able to adapt to the requirements of the power supply operation.
  • the power supply sample value in the power supply calibration method according to the embodiment of the present disclosure may be obtained during the operation of the power supply, so the power supply may be calibrated after the power supply has been working for a period of time according to the obtained power supply sample value, not only The power supply is calibrated before the power supply leaves the factory.
  • FIG. 3 is a detailed flowchart of step S102 in the power supply calibration method shown in FIG. 2 according to an embodiment of the present disclosure.
  • determining the model satisfying the sampling output value and the reference output value of the power supply according to multiple sets of power supply sample values includes steps S1021 and S1022 .
  • step S1021 the type of model that the sampled output value of the power supply and the reference output value satisfy is determined.
  • step S1022 the model parameters of the model satisfying the sampled output value of the power supply and the reference output value are calculated according to the plurality of sets of power supply sample values.
  • the power supply calibration device first determines the type of model that the sampled output value of the power supply and the reference output value satisfy (ie, the mathematical relationship that the sampled output value of the power supply and the reference output value satisfy). On the basis of determining the type of the model that the sampled output value and the reference output value of the power supply satisfy, the sampled output value and the reference output value in the sampled power supply value are substituted into the model, and the model parameters are calculated and obtained.
  • the type of model that the sampled output value of the power supply and the reference output value satisfy can be determined by the power supply calibration device according to the type of power supply, the accuracy and speed of power supply calibration, etc., or it can be confirmed by receiving information sent by other devices or users, that is, Other devices or users determine the type of model that the sampled output values and reference output values of the power supply satisfy and send the information indicative of that type to the power supply calibration device.
  • FIG. 4 is a detailed flowchart of steps S1021 and S1022 in the power supply calibration method shown in FIGS. 1 and 2 according to an embodiment of the present disclosure.
  • determining the type of model that the sampled output value of the power supply and the reference output value satisfy includes step S10211 .
  • step S10211 it is determined whether the type of the model satisfied by the sampled output value of the power supply and the reference output value is a linear model or a nonlinear model.
  • the power supply calibration device determines the type of model satisfied by the sampled output value of the power supply and the reference output value, that is, determines the mathematical relationship satisfied by the sampled output value of the power supply and the reference output value.
  • the power supply calibration device determines whether the model satisfied by the sampled output value and the reference output value of the power supply is a linear model or a nonlinear model according to the type of the power supply, the accuracy and speed of the power supply calibration, etc.
  • the model satisfying the sampling output value of the power supply and the reference output value is a linear model.
  • the model satisfying the sampling output value and the reference output value of the power supply is a nonlinear model.
  • the power supply calibration device receives the determination sent by other devices or users. As a result, it is determined that the model satisfied by the sampled output value and the reference output value of the power supply is a linear model or a nonlinear model.
  • the power supply calibration device provides the choice of linear calibration and nonlinear calibration through software with an interactive interface for the user to choose, and according to the user's choice, determines whether the model satisfied by the sampled output value and the reference output value of the power supply is a linear model or a nonlinear model .
  • the model type satisfied by the sampled output value and the reference output value of the power supply is a linear model or a nonlinear model, and then perform power supply calibration according to the power supply sample value, which can avoid the waste of computing power and the calibration failure caused by the calibration results failing to meet the requirements, such as
  • the model is calculated directly using the power sample value, the calculation may be a nonlinear model.
  • the calibration accuracy is high, the calibration speed may be caused by the complexity of the calculation. If it is too low, the calibration effect will be affected.
  • calculating the model parameters of the model satisfying the sampling output value of the power supply and the reference output value includes steps S10221 and S10222 .
  • step S10221 when it is determined that the type of the model satisfied by the sampled output value of the power supply and the reference output value is a linear model, the linear fitting of the least squares method is used to determine the model parameters of the linear model according to the multiple sets of power supply sample values.
  • the power supply calibration device uses the linear fitting method in the least squares method to determine the model parameters of the linear model through the obtained power supply sample value.
  • x 1 and y 1 are the sampling output value and reference output value in the first group of power supply sample values
  • x 2 and y 2 are the sampling output value and reference output value in the second group of power supply sample values
  • x n and yn are the sampling output value and the reference output value in the nth group of power supply sample values.
  • the least squares method is to fit the relationship between x (sampling output value) and y (reference output value) in the sample by minimizing the squared sum of errors, that is, to find the model’s model parameters (slope a and zero b), so make The smallest slope a and zero point b are the model parameters of the linear model.
  • the slope a and the zero point b calculated by the more groups of power supply sample values may be more accurate, but as more power supply sample values participate in the calculation, the calculation amount is also larger, and the participation calculation can be determined according to the requirements for calibration accuracy.
  • the number of power sample values may be more accurate, but as more power supply sample values participate in the calculation, the calculation amount is also larger, and the participation calculation can be determined according to the requirements for calibration accuracy. The number of power sample values.
  • step S10222 when it is determined that the type of the model satisfied by the sampled output value of the power supply and the reference output value is a nonlinear model, the polynomial fitting of the least squares method is used to determine the model parameters of the nonlinear model according to the multiple sets of sampled values of the power supply .
  • the power supply calibration device uses the polynomial fitting method in the least squares method to determine the model parameters of the linear model through the obtained power supply sample value.
  • x 1 and y 1 are the sampling output value and reference output value in the first group of power supply sample values
  • x 2 and y 2 are the sampling output value and reference output value in the second group of power supply sample values
  • x n and y n are the sampled output value and the reference output value in the nth group of power samples.
  • the least squares method is to fit the relationship between x (sampling output value) and y (reference output value) in the sample by minimizing the sum of squares of errors, that is, to obtain the model parameters of the model (ie a 0 , a 1 , a 2 , ..., a k ), so make
  • the smallest a 0 , a 1 , a 2 ,..., ak are the model parameters of the nonlinear model.
  • a 0 , a 1 , a 2 , ..., ak calculated by more groups of power supply sample values may be more accurate, but as more power supply sample values participate in the calculation, the calculation amount is also greater, and can The need for calibration accuracy determines the number of power supply sample values involved in the calculation.
  • FIG. 5 is a block diagram of a power supply calibration apparatus according to an embodiment of the present disclosure
  • a power supply calibration apparatus includes a detection module, a calculation module, and a calibration module.
  • the detection module is used to obtain multiple groups of power supply sample values of the power supply.
  • Each group of power supply sample values includes the sampling output value and the reference output value of the power supply at the same time.
  • the sampling output value is the power supply output value obtained by detecting the power supply, and the reference output value It is the output value of the power supply obtained by detecting the load connected to the power supply.
  • the calculation module is used to determine the model that the sampled output value of the power supply and the reference output value satisfy according to the multiple sets of power supply sample values.
  • the calibration module is used to calibrate the power supply according to the model.
  • the power calibration device can have two working modes, one is modeling mode and the other is calibration mode.
  • the detection module and the calculation module of the power supply calibration device work, the detection module obtains multiple sets of power supply sample values, and the calculation module determines the model that the sampling output value of the power supply and the reference output value satisfy according to the obtained multiple sets of power supply sample values.
  • the calibration module of the power supply calibration device works, and it calibrates the power supply through a model satisfying the determined sampling output value of the power supply and the reference output value.
  • the power supply calibration device calibrates the power supply according to the model after determining the model satisfying the sampling output value and the reference output value of the power supply through multiple sets of power supply sample values, so as to avoid the occurrence of the sampling output and the reference output of the power supply
  • the linear equation is used to calibrate the power supply, which improves the accuracy of the calibration result and reduces the calibration error.
  • FIG. 6a is a schematic diagram of the connection between a power supply calibration apparatus and a power supply according to an embodiment of the present disclosure
  • FIG. 6b is a schematic diagram of a connection between a power supply calibration apparatus and a power supply according to another embodiment of the present disclosure.
  • the power supply calibration device is connected to the power supply through an RS485 bus or Ethernet.
  • the power calibration device and the power supply are connected via RS485 bus or Ethernet and communicate using Modbus protocol.
  • FIG. 7 is a schematic diagram of a communication process between a power supply calibration apparatus and a power supply according to an embodiment of the present disclosure
  • FIG. 8 is a schematic diagram of a communication process between a power supply calibration apparatus and a power supply according to another embodiment of the present disclosure.
  • the communication process between the power supply and the power supply calibration device may be: the power supply sends a command to the power supply calibration device through the RS485 bus or Ethernet to switch it to the modeling mode, and the power supply calibration device switches to the modeling mode after switching to the modeling mode. Send a response indicating that the switching is successful to the power supply (if the switching fails, it will also send a response indicating that the switching fails). After receiving the response indicating that the switching is successful, the power supply sends modeling information to the power supply calibration device, and the modeling information identifies the sampled output value of the power supply.
  • the power supply when the model is a nonlinear model, the power supply also sends information indicating the polynomial order of the nonlinear model, and after receiving the ready-to-finish information sent by the power supply calibration device After the information is received, the power supply sample value is sent to the power supply calibration device, and the power supply calibration device calculates the model parameters according to the received power supply sample value.
  • the power supply sends a command to the power supply calibration device through the RS485 bus or Ethernet to switch it to the calibration mode. ), the power supply sends the real-time sampling output value to the power supply calibration device after receiving the response of the successful identification, and the power supply calibration device calculates the corresponding reference output value according to the sampling output value, and sends the calculated reference output value to the power supply As the calibration value, make the power supply complete the calibration according to the calibration value.
  • the power supply may not communicate with the power supply calibration device directly, but communicate with the power supply calibration device through software that controls the power supply calibration device, that is, sends information to the software that controls the power supply calibration device, and the software that controls the power supply calibration device.
  • the power calibration is performed through the information control power calibration device.
  • FIG. 9 is a block diagram of a power supply system according to an embodiment of the present disclosure.
  • a power supply system includes a power supply and a power supply calibration device as described above.
  • the power supply is calibrated according to the model, so as to avoid the occurrence of the sampling output value and the reference output of the power supply
  • the use of a linear equation to calibrate the power supply improves the accuracy of the calibration result and reduces the calibration error.
  • FIG. 10 is a block diagram of a computer-readable medium according to an embodiment of the present disclosure.
  • an electronic device includes one or more processors, memory, and one or more I/O interfaces.
  • One or more programs are stored on the memory, and when executed by the one or more processors, the one or more programs cause the one or more processors to implement the power supply calibration method as described above.
  • One or more I/O interfaces are connected between the processor and the memory, and are used to realize the information exchange between the processor and the memory.
  • a processor is a device with data processing capability, including but not limited to a central processing unit (CPU), etc.; a memory is a device with data storage capability, including but not limited to random access memory (RAM, more specifically such as SDRAM, DDR, etc.) etc.), read-only memory (ROM), electrified erasable programmable read-only memory (EEPROM), flash memory (FLASH); I/O interface (read and write interface) is connected between the processor and the memory to realize the memory and processing The information exchange of the device, which includes but is not limited to the data bus (Bus) and so on.
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrified erasable programmable read-only memory
  • FLASH flash memory
  • I/O interface read and write interface
  • FIG. 11 is a block diagram of a computer-readable medium according to an embodiment of the present disclosure.
  • FIG. 11 shows a computer-readable medium according to an embodiment of the present disclosure, on which a computer program is stored, and when the program is executed by a processor, implements the power supply calibration method as described above.
  • a processor is a device with data processing capability, including but not limited to a central processing unit (CPU), etc.; a memory is a device with data storage capability, including but not limited to random access memory (RAM, more specifically such as SDRAM, DDR, etc.) etc.), read-only memory (ROM), electrified erasable programmable read-only memory (EEPROM), flash memory (FLASH); I/O interface (read-write interface) is connected between the processor and the memory, which can realize the memory and the processor. information exchange, including but not limited to data bus (Bus) and so on.
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrified erasable programmable read-only memory
  • FLASH flash memory
  • I/O interface read-write interface
  • the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical components Components execute cooperatively.
  • Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit (CPU), digital signal processor or microprocessor, or as hardware, or as an integrated circuit such as Application-specific integrated circuits.
  • a processor such as a central processing unit (CPU), digital signal processor or microprocessor, or as hardware, or as an integrated circuit such as Application-specific integrated circuits.
  • Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media).
  • computer storage media includes both volatile and nonvolatile implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules or other data flexible, removable and non-removable media.
  • Computer storage media include, but are not limited to, random access memory (RAM, more specifically SDRAM, DDR, etc.), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory (FLASH), or other disk storage ; compact disc read only (CD-ROM), digital versatile disk (DVD), or other optical disk storage; magnetic cartridge, tape, magnetic disk storage or other magnetic storage; any other storage that can be used to store desired information and that can be accessed by a computer medium.
  • communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and can include any information delivery media, as is well known to those of ordinary skill in the art .

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Operations Research (AREA)
  • Algebra (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Sources (AREA)

Abstract

一种电源校准方法、电源校准装置、电源系统、电子设备和计算机可读介质,其中该方法包括:获取电源的多组电源样本值,每组电源样本值包括所述电源在同一时刻的采样输出值和基准输出值,所述采样输出值为通过对所述电源进行检测得到的电源输出值,所述基准输出值为通过对与所述电源连接的负载进行检测得到的电源输出值(S101);根据所述多组电源样本值,确定所述电源的采样输出值和基准输出值满足的模型(S102);根据所述模型对所述电源进行校准(S103)。

Description

电源校准方法和装置、电源系统、电子设备、介质 技术领域
本公开涉及电源技术领域。
背景技术
由于电源本身的特性以及元器件差异性的普遍存在,通过对电源进行检测得到的电源输出(如电流、电压等)与通过对电源连接的负载进行检测得到的电源输出通常存在偏差,因此需要对电源进行校准。
发明内容
本公开的第一方面提供了一种电源校准方法,其包括:获取电源多组电源样本值,每组电源样本值包括所述电源在同一时刻的采样输出值和基准输出值,所述采样输出值为通过对所述电源进行检测得到的电源输出值,所述基准输出值为通过对与所述电源连接的负载进行检测得到的电源输出值;根据所述多组电源样本值确定所述电源的采样输出值和基准输出值满足的模型;以及根据所述模型对所述电源进行校准。
在一些实施例中,所述根据所述多组电源样本值,确定所述电源的采样输出值和基准输出值满足的模型包括:确定所述电源的采样输出值和基准输出值满足的模型的类型;根据所述多组电源样本值,计算所述电源的采样输出值和基准输出值满足的模型的模型参数。
在一些实施例中,所述确定所述电源的采样输出值和基准输出值满足的模型的类型包括:确定所述电源的采样输出值和基准输出值满足的模型类型为线性模型还是非线性模型。
在一些实施例中,所述根据所述多组电源样本值计算所述电源的采样输出值和基准输出值满足的模型的模型参数包括:在确定所述 电源的采样输出值和基准输出值满足的模型的类型为线性模型的情况下,使用最小二乘法的线性拟合,根据所述多组电源样本值确定所述线性模型的模型参数。
在一些实施例中,所述根据所述多组电源样本值计算所述电源的采样输出值和基准输出值满足的模型的模型参数包括:在确定所述电源的采样输出值和基准输出值满足的模型的类型为非线性模型的情况下,使用最小二乘法的多项式拟合,根据所述多组电源样本值确定所述非线性模型的模型参数。
在一些实施例中,所述获取多组电源样本值包括:在所述电源工作过程中,获取所述多组电源样本值。
本公开的第二方面提供了一种电源校准装置,其包括:检测模块,其用于获取电源的多组电源样本值,每组电源样本值包括所述电源在同一时刻的采样输出值和基准输出值,所述采样输出值为通过对所述电源进行检测得到的电源输出值,所述基准输出值为通过对与所述电源连接的负载进行检测得到的电源输出值;计算模块,其用于根据所述多组电源样本值,确定所述电源的采样输出值和基准输出值满足的模型;以及校准模块,其用于根据所述模型对所述电源进行校准。
在一些实施例中,所述电源校准装置通过RS485总线或以太网与所述电源连接。
本公开的第三方面提供了一种电源系统,其包括:电源;以及如上所述的电源校准装置。
本公开的第四方面提供了一种电子设备,其包括:一个或多个处理器;存储器,其上存储有一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如上所述的电源校准方法;以及一个或多个I/O接口,其连接在所述一个或多个处理器与所述存储器之间,用于实现所述一个或多个处理器与所述存储器的信息交互。
本公开的第五方面提供了一种计算机可读介质,其上存储有计算机程序,所述程序被处理器执行时实现如上所述的电源校准方法。
附图说明
在本公开实施例的附图中:
图1为根据本公开的实施例的电源校准方法的流程图;
图2为根据本公开的另一实施例的电源校准方法的流程图;
图3为根据本公开的实施例的图1和图2所示的电源校准方法中的步骤S102的详细流程图;
图4为根据本公开的实施例的图3所示的电源校准方法中的步骤S1021和S1022的详细流程图;
图5为根据本公开的实施例的电源校准装置的框图;
图6a为根据本公开的实施例的电源校准装置和电源的连接示意图;
图6b为根据本公开的另一实施例的电源校准装置和电源的连接示意图;
图7为根据本公开的实施例的电源校准装置和电源的通信过程示意图;
图8为根据本公开的另一实施例的电源校准装置和电源的通信过程示意图;
图9为根据本公开的实施例的电源系统的框图;
图10为根据本公开的实施例的计算机可读介质的框图;
图11为根据本公开的实施例的计算机可读介质的框图。
具体实施方式
为使本领域的技术人员更好地理解本公开实施例的技术方案,下面结合附图对本公开实施例提供的电源校准方法和装置、电源系统、电子设备和计算机可读介质进行详细描述。
在下文中将参考附图更充分地描述本公开实施例,但是所示的实施例可以以不同形式来体现,且不应当被解释为限于本公开阐述的实施例。反之,提供这些实施例的目的在于使本公开透彻和完整,并将使本领域技术人员充分理解本公开的范围。
本公开实施例的附图用来提供对本公开实施例的进一步理解, 并且构成说明书的一部分,与本公开实施例一起用于解释本公开,并不构成对本公开的限制。通过参考附图对详细示例实施例进行描述,以上和其他特征和优点对本领域技术人员将变得更加显而易见,
本公开实施例可借助本公开的理想示意图而参考平面图和/或截面图进行描述。因此,可根据制造技术和/或容限来修改示例图示。
在不冲突的情况下,本公开各实施例及实施例中的各特征可相互组合。
本公开所使用的术语仅用于描述特定实施例,且不意欲限制本公开。如本公开所使用的术语“和/或”包括一个或多个相关列举条目的任何和所有组合。如本公开所使用的单数形式“一个”和“该”也意欲包括复数形式,除非上下文另外清楚指出。如本公开所使用的术语“包括”、“由……制成”,指定存在所述特征、整体、步骤、操作、元件和/或组件,但不排除存在或添加一个或多个其他特征、整体、步骤、操作、元件、组件和/或其群组。
除非另外限定,否则本公开所用的所有术语(包括技术和科学术语)的含义与本领域普通技术人员通常理解的含义相同。还将理解,诸如那些在常用字典中限定的那些术语应当被解释为具有与其在相关技术以及本公开的背景下的含义一致的含义,且将不解释为具有理想化或过度形式上的含义,除非本公开明确如此限定。
本公开实施例不限于附图中所示的实施例,而是包括基于制造工艺而形成的配置的修改。因此,附图中例示的区具有示意性属性,并且图中所示区的形状例示了元件的区的具体形状,但并不是旨在限制性的。
在一些相关技术中,在获取电源的采样输出值以及对应的基准输出值后,将其代入二元一次方程中,通过计算获取电源的采样输出值和对应的基准输出值满足的数学关系,并使用计算得到的数学关系对电源进行校准。
电源的采样输出值是指对电源本身进行检测得到的电源的输出值(如电压值、电流值等),即电源“自认为”的输出值。
电源的基准输出值是指对电源连接的负载进行检测得到的电源 输出值,即电源真正作用于负载的输出值,如电源连接电压表(即电压表就是电源连接的负载)检测的电压值,就是对电源连接的“负载”进行检测得到的电源输出值,也就是电源的基准输出值。
由于电源的电压、电流等可能会发生变化,即不同时刻电源的采样输出值可能是不同的,自然不同时刻电源的基准输出值也可能是不同的,因此每组电源的采样输出值和基准输出值是同一时刻电源的采样输出值和基准输出值。
需要强调的是,获取的电源的采样输出值和基准输出值可以都是电压值,也可以都是电流值,但不能其中一个为电压值,另一个为电流值。
校准过程为:将电源的采样输出值和基准输出值代入二元一次方程y=ax+b中,其中,采样输出值代入x,基准输出值代入y,通过两组不同的采样输出值和基准输出值组成方程组,计算二元一次方程y=ax+b的斜率a以及零点b,得到采样输出值和基准输出值满足的数学关系,通过得到的数学关系对电源进行校准。
由于y=ax+b是线性方程,线性方程代表的是线性变化,也就是说,计算得到的采样输出值和基准输出值满足的是线性关系。当电源的采样输出量和基准输出量并不满足线性关系时,使用线性方程对电源进行校准的校准结果显然是不准确的,校准的误差也会比较大。
同时,由于电源的不同硬件之间电气属性不一致,导致针对不同的硬件计算的斜率a和零点b彼此不相同,因此需要针对每一个硬件都计算一个斜率a和零点b显然会浪费大量的算力。
图1为根据本公开的实施例的电源校准方法的流程图。
参照图1,根据本公开的实施例的电源校准方法包括步骤S101至S103。
在步骤S101,获取电源的多组电源样本值,每组电源样本值包括电源在同一时刻的采样输出值和基准输出值。
根据本公开的实施例,可以由电源校准装置获取多组电源样本值,每一组电源样本值包括电源的采样输出值和对应的基准输出值。
电源的采样输出值是指对电源本身进行检测得到的电源的输出 值(如电压值、电流值等),即电源“自认为”的输出值,如通过对电源进行设定,设定电源的电压值的具体数值就是电源的采样输出值。
电源的基准输出值是指对电源连接的负载进行检测得到的电源输出值,即电源真正作用于负载的输出值,如电源连接电压表(即电压表就是电源连接的负载)检测的电压值,就是对电源连接的“负载”进行检测得到的电源输出值,也就是电源的基准输出值。
由于电源的电压、电流等可能会发生变化,即不同时刻电源的采样输出值可能是不同的,自然不同时刻电源的基准输出值也可能是不同的,因此每组电源样本值中的采样输出值和基准输出值是同一时刻电源的采样输出值和基准输出值。
需要强调的是,获取的电源的采样输出值和基准输出值可以都是电压值,也可以都是电流值,但不能其中一个为电压值,另一个为电流值。
采样输出值和对应的基准输出值虽然是通过对电源和与电源连接的负载进行检测获取的,但对电源和负载进行检测获取采样输出值和基准输出值的过程并不一定是电源校准装置完成的。采样输出值和对应的基准输出值可以是其他装置(如电源所在的装置)对电源进行检测得到的,该装置将得到的采样输出值和对应的基准输出值发送至电源校准装置,电源校准装置通过接收数据获取采样输出值和对应的基准输出值。
电源校准装置和电源所在的装置通过例如RS485总线或以太网进行连接,电源所在的装置对电源和与电源连接的负载进行检测得到电源样本值,并将得到的电源样本值使用Modbus协议(串行通信协议)发送至电源校准装置。
在步骤S102,根据多组电源样本值确定电源的采样输出值和基准输出值满足的模型。
电源校准装置根据获取的多组电源样本值确定电源的采样输出值和基准输出值满足的模型。
电源的采样输出值和基准输出值满足的模型是一种数学关系,其由模型类型和具体的模型参数组成。模型类型是指采样输出值和基 准输出值满足的数学关系的类型,如线性模型(即采样输出值和基准输出值为线性关系),非线性模型(即采样输出值和基准输出值为非线性关系)等,模型参数则是指模型的具体的参数数值,如线性模型的斜率、零点的具体数值。
在步骤S103,根据电源的采样输出值和基准输出值满足的模型对电源进行校准。
电源校准装置根据电源的采样输出值和基准输出值满足的模型对电源进行校准。
根据本公开的实施例,将电源“自认为”的输出值(即电源的采样输出值)输入该模型(即电源的采样输出值和基准输出值满足的模型),得到对应的电源真正作用于负载的输出值(即电源的基准输出值),根据得到的电源实际输出值对电源进行校准。
也就是说,只需要获取电源的采样输出值,如直接获取电源当前被设定的电压值作为电压的采样输出值,则只需要将该电压值输入电源的采样输出值和基准输出值满足的模型,通过计算来获取其对应的基准输出值,根据得到的基准输出值与采样输出值之间的偏差对电源进行校准。
根据本公开的实施例的电源校准方法能够在通过多组电源样本值确定电源的采样输出值和基准输出值满足的模型后,再根据模型对电源进行校准,避免了出现电源的采样输出量和基准输出量不满足线性关系时,使用线性方程对电源进行校准的情况,提升了校准结果的准确性,减少了校准误差。
图2为根据本公开的另一实施例的电源校准方法的流程图。
参照图2,根据本公开的另一实施例的电源校准方法包括步骤S1011以及步骤S102和S103。参照图2描述的电源校准方法中包括的步骤S102和S103与参见图1描述的电源校准方法中包括的步骤S102和S103相同,因此为了描述简洁,将不对其进行重复描述。
在步骤S1011、在电源工作过程中,获取多组电源样本值。
在电源工作的过程中,电源校准装置或其他装置(如电源所在的装置)通过对电源进行检测得到多组电源样本值。也就是说,电源 样本值是在电源工作的过程中获取的,而不是电源出厂进行调试时获取的。
在一些相关技术中,只在电源出厂之前进行设备调试时对电源进行校准,而电源在不同的应用环境下,受环境温度、湿度等多方面影响,硬件设备的电气属性是可能发生改变的,在电源出厂之前进行校准可能已经无法适应电源工作的要求。
根据本公开的实施例的电源校准方法中的电源样本值可以是在电源工作的过程中获取的,因此可以根据获取的电源样本值在电源已经工作了一段时间之后对电源进行校准,而不仅仅是在电源出厂之前对电源进行校准。
图3为根据本公开的实施例的图2所示的电源校准方法中的步骤S102的详细流程图。
参照图3,参照图1和图2所述的电源校准方法中的根据多组电源样本值确定电源的采样输出值和基准输出值满足的模型(步骤S102)包括步骤S1021和S1022。
在步骤S1021,确定电源的采样输出值和基准输出值满足的模型的类型。
在步骤S1022,根据多组电源样本值计算电源的采样输出值和基准输出值满足的模型的模型参数。
电源校准装置首先确定电源的采样输出值和基准输出值满足的模型的类型(即电源的采样输出值和基准输出值满足的数学关系)。在确定电源的采样输出值和基准输出值满足的模型的类型的基础上,将电源样本值中的采样输出值和基准输出值代入模型,计算求取模型参数。
电源的采样输出值和基准输出值满足的模型的类型可以通过电源校准装置根据电源的类型、电源校准的准确度、速度等来进行确定,也可以通过接收其他装置或用户发送的信息确认,即其他装置或用户确定电源的采样输出值和基准输出值满足的模型的类型并将该指示该类型的信息发送至电源校准装置。
电源校准装置根据用户选择的模型类型,建立模型对应的方程 (如线性模型对应的方程为y=ax+b,非线性模型对应的方程为y=a kx k+…+a 2x 2+a 1x+a 0),将每组电源样本值中采样输出值和基准输出值都代入建立的方程中来构成方程组,通过计算获取模型参数。
图4为根据本公开的实施例的图1和图2所示的电源校准方法中的步骤S1021和S1022的详细流程图。
参照图4,参照图3所述的电源校准方法中的确定电源的采样输出值和基准输出值满足的模型的类型(步骤S1021)包括步骤S10211。
在步骤S10211,确定电源的采样输出值和基准输出值满足的模型的类型为线性模型还是非线性模型。
电源校准装置确定电源的采样输出值和基准输出值满足的模型的类型,即确定电源的采样输出值和基准输出值满足的数学关系。
电源校准装置根据电源的类型、电源校准的准确度、速度等确定电源的采样输出值和基准输出值满足的模型为线性模型还是非线性模型。
如在对校准精度要求较低,对校准速度要求较高的情况下,可以确定电源的采样输出值和基准输出值满足的模型为线性模型。在对校准精度要求较高,对校准速度要求较低的情况下,可以确定电源的采样输出值和基准输出值满足的模型为非线性模型。
也可以在其他装置或用户确定电源的采样输出值和基准输出值满足的模型为线性模型或非线性模型后,将确定结果发送至电源校准装置,电源校准装置通过接收其他装置或用户发送的确定结果确定电源的采样输出值和基准输出值满足的模型为线性模型或非线性模型。
例如,电源校准装置通过有交互界面的软件提供线性校准和非线性校准的选择,供用户进行选择,根据用户的选择确定电源的采样输出值和基准输出值满足的模型为线性模型还是非线性模型。
先确定电源的采样输出值和基准输出值满足的模型类型为线性模型还是非线性模型,再根据电源样本值进行电源校准,可以避免算力的浪费和校准结果无法满足要求造成的校准失败,如在对校准精度要求较低,对校准速度要求较高的情况下,若直接使用电源样本值计 算模型,则可能计算得到的是非线性模型,虽然校准精度很高,但可能由于计算复杂造成校准速度过低,影响校准效果。
参照图3所述的电源校准方法中的计算电源的采样输出值和基准输出值满足的模型的模型参数(步骤S1022)包括步骤S10221和S10222。
在步骤S10221,在确定电源的采样输出值和基准输出值满足的模型的类型为线性模型的情况下,使用最小二乘法的线性拟合,根据多组电源样本值确定线性模型的模型参数。
在确定电源的采样输出值和基准输出值满足的模型类型为线性模型的情况下,电源校准装置使用最小二乘法中的线性拟合方法,通过获取的电源样本值确定线性模型的模型参数。
假设电源样本值中的采样输出值为{x n}=x 1,x 2,...,x n,基准输出值为{y n}=y 1,y 2,..., n,其中,x 1和y 1为第一组电源样本值中的采样输出值和基准输出值,x 2和y 2为第二组电源样本值中的采样输出值和基准输出值,以此类推,x n和y n为第n组电源样本值中的采样输出值和基准输出值。
线性模型对应的数学方程为y=ax+b,最小二乘法是通过最小化误差的平方和来拟合样本中x(采样输出值)与y(基准输出值)的关系,即求取模型的模型参数(斜率a和零点b),因此使
Figure PCTCN2021130600-appb-000001
最小的斜率a和零点b就是线性模型的模型参数。
故对
Figure PCTCN2021130600-appb-000002
求偏导数(具体是分别对a和b求取偏导数)并使之为0,可得:
Figure PCTCN2021130600-appb-000003
约定A(xy)=∑x iy i,A(x 2)=∑x i 2,A(x)=∑x i
Figure PCTCN2021130600-appb-000004
Figure PCTCN2021130600-appb-000005
则上式则可以化为:
Figure PCTCN2021130600-appb-000006
可得:
Figure PCTCN2021130600-appb-000007
将至少两组不同的电源样本值中的采样输出值代入上式中的x,基准输出值代入上式中的y,就可以得到斜率a和零点b的值,即线性模型的具体参数。
显然,通过越多组电源样本值计算得到的斜率a和零点b可能越准确,但随着参加计算的电源样本值越多,计算量也越大,可以根据对校准精度的需求来确定参与计算的电源样本值的数量。
在步骤S10222,在确定电源的采样输出值和基准输出值满足的模型的类型为非线性模型的情况下,使用最小二乘法的多项式拟合,根据多组电源样本值确定非线性模型的模型参数。
在确定电源的采样输出值和基准输出值满足的模型类型为非线性模型的情况下,电源校准装置使用最小二乘法中的多项式拟合方法,通过获取的电源样本值确定线性模型的模型参数。
假设电源样本值中的采样输出值为{x n}=x 1,x 2,...,x n,基准输出值为{y n}=y 1,y 2,..., n,其中,x 1和y 1为第一组电源样本值中的采样输出值和基准输出值,x 2和y 2为第二组电源样本值中的采样输出值和基准输出值,以此类推,x n和y n为第n组电源样本量中的采样输出值和基准输出值。
非线性模型对应的方程为y=a kx k+…+a 2x 2+a 1x+a 0,其中k代表此非线性方程的阶数,可根据要求自由设置(例如,默认为9次),具体可以是用户根据对校准精度等的需求通过软件设置后发送至电源校准装置。
最小二乘法是通过最小化误差的平方和来拟合样本中x(采样输出值)与y(基准输出值)的关系,即求取模型的模型参数(即 a 0,a 1,a 2,…,a k),因此使
Figure PCTCN2021130600-appb-000008
最小的a 0,a 1,a 2,…,a k就是非线性模型的模型参数。
故对
Figure PCTCN2021130600-appb-000009
求偏导数(具体是分别对a 0、a 1、a 2、……、a k求取偏导数)并使之为0,可得:
Figure PCTCN2021130600-appb-000010
转换方程组可得矩阵:
Figure PCTCN2021130600-appb-000011
将至少k+1组电源样本值中的采样输出值代入上式中的x,基准输出值代入上式中的y,就可以得到a 0、a 1、a 2、……、a k的值,即线性模型的具体参数。
显然,通过越多组电源样本值计算得到的a 0、a 1、a 2、……、a k可能越准确,但随着参加计算的电源样本值越多,计算量也越大,可以根据对校准精度的需求来确定参与计算的电源样本值的数量。
图5为根据本公开的实施例的电源校准装置的框图
参照图5,根据本公开的实施例的电源校准装置包括检测模块、计算模块和校准模块。
检测模块用于获取电源的多组电源样本值,每组电源样本值包括电源在同一时刻的采样输出值和基准输出值,采样输出值为通过对电源进行检测得到的电源输出值,基准输出值为通过对电源连接的负 载进行检测得到的电源输出值。
计算模块用于根据多组电源样本值确定电源的采样输出值和基准输出值满足的模型。
校准模块用于根据模型对电源进行校准。
电源校准装置可以有两种工作模式,一种是建模模式,一种是校准模式。
在建模模式下,电源校准装置的检测模块和计算模块工作,检测模块获取多组电源样本值,计算模块根据获取的多组电源样本值确定电源的采样输出值和基准输出值满足的模型。
在校准模式下,电源校准装置的校准模块工作,其通过确定的电源的采样输出值和基准输出值满足的模型对电源进行校准。
根据本公开的实施例的电源校准装置在通过多组电源样本值确定电源的采样输出值和基准输出值满足的模型后根据模型对电源进行校准,避免了出现电源的采样输出量和基准输出量不满足线性关系时,使用线性方程对电源进行校准的情况,提升了校准结果的准确性,减少了校准误差。
图6a为根据本公开的实施例的电源校准装置和电源的连接示意图,图6b为根据本公开的另一实施例的电源校准装置和电源的连接示意图。
参照图6a和6b,电源校准装置通过RS485总线或以太网与电源连接。
电源校准装置和电源通过RS485总线或以太网进行连接,使用Modbus协议进行通信。
图7为根据本公开的实施例的电源校准装置和电源的通信过程示意图,图8为根据本公开的另一实施例的电源校准装置和电源的通信过程示意图。
参照图7和图8,电源与电源校准装置的通信过程可以是:电源通过RS485总线或以太网向电源校准装置发送命令,使其切换至建模模式,电源校准装置在切换至建模模式后向电源发送标识切换成功的响应(若切换失败,也发送切换失败的响应),电源在接收到标识成 功的响应后,向电源校准装置发送建模信息,该建模信息标识电源的采样输出值和基准输出值满足的模型为线性模型还是非线性模型,当该模型为非线性模型时,电源还发送指示非线性模型的多项式阶数的信息,并在接收到电源校准装置发送的准备完成的信息后,向电源校准装置发送电源样本值,电源校准装置根据接收的电源样本值,计算模型参数。
电源通过RS485总线或以太网向电源校准装置发送命令,使其切换至校准模式,电源校准装置在切换至建模模式后向电源发送标识切换成功的响应(若切换失败,也发送切换失败的响应),电源在接收到标识成功的响应后,向电源校准装置发送实时采集的采样输出值,电源校准装置根据采样输出值计算出对应的基准输出值,并将计算得到的基准输出值发送至电源作为校准值,使得电源根据该校准值完成校准。
根据本公开的实施例,电源也可以不直接与电源校准装置通信,而是通过控制电源校准装置的软件与电源校准装置通信,即将信息发送至控制电源校准装置的软件,控制电源校准装置的软件通过信息控制电源校准装置进行电源校准。
图9为根据本公开的实施例的电源系统的框图。
根据本公开的实施例额电源系统包括电源和如上所述的电源校准装置。
根据本公开的实施例的电源系统,在通过多组电源样本值确定电源的采样输出值和基准输出值满足的模型后根据该模型对电源进行校准,避免了出现电源的采样输出量和基准输出量不满足线性关系时,使用线性方程对电源进行校准的情况,提升了校准结果的准确性,减少了校准误差。
图10为根据本公开的实施例的计算机可读介质的框图。
参照图10,根据本公开的实施例的电子设备包括一个或多个处理器、存储器和一个或多个I/O接口。
存储器上存储有一个或多个程序,当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如上所述的电源校准方 法。
一个或多个I/O接口连接在处理器与存储器之间,用于实现处理器与存储器的信息交互。
处理器为具有数据处理能力的器件,其包括但不限于中央处理器(CPU)等;存储器为具有数据存储能力的器件,其包括但不限于随机存取存储器(RAM,更具体如SDRAM、DDR等)、只读存储器(ROM)、带电可擦可编程只读存储器(EEPROM)、闪存(FLASH);I/O接口(读写接口)连接在处理器于存储器间,用于实现存储器与处理器的信息交互,其包括但不限于数据总线(Bus)等。
图11为根据本公开的实施例的计算机可读介质的框图。
图11示出了根据本公开的实施例的计算机可读介质,其上存储有计算机程序,程序被处理器执行时实现如上所述的电源校准方法。
处理器为具有数据处理能力的器件,其包括但不限于中央处理器(CPU)等;存储器为具有数据存储能力的器件,其包括但不限于随机存取存储器(RAM,更具体如SDRAM、DDR等)、只读存储器(ROM)、带电可擦可编程只读存储器(EEPROM)、闪存(FLASH);I/O接口(读写接口)连接在处理器与存储器间,能实现存储器与处理器的信息交互,其包括但不限于数据总线(Bus)等。
本领域普通技术人员可以理解,上文中所公开的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。
在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。
某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器(CPU)、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计 算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于随机存取存储器(RAM,更具体如SDRAM、DDR等)、只读存储器(ROM)、带电可擦可编程只读存储器(EEPROM)、闪存(FLASH)或其他磁盘存储器;只读光盘(CD-ROM)、数字多功能盘(DVD)或其他光盘存储器;磁盒、磁带、磁盘存储或其他磁存储器;可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。
本公开已经公开了示例实施例,并且虽然采用了具体术语,但它们仅用于并仅应当被解释为一般说明性含义,并且不用于限制的目的。在一些实例中,对本领域技术人员显而易见的是,除非另外明确指出,否则可单独使用与特定实施例相结合描述的特征、特性和/或元素,或可与其他实施例相结合描述的特征、特性和/或元件组合使用。因此,本领域技术人员将理解,在不脱离由所附的权利要求阐明的本公开的范围的情况下,可进行各种形式和细节上的改变。

Claims (11)

  1. 一种电源校准方法,包括:
    获取电源的多组电源样本值,每组电源样本值包括所述电源在同一时刻的采样输出值和基准输出值,所述采样输出值为通过对所述电源进行检测得到的电源输出值,所述基准输出值为通过对与所述电源连接的负载进行检测得到的电源输出值;
    根据所述多组电源样本值确定所述电源的采样输出值和基准输出值满足的模型;以及
    根据所述模型对所述电源进行校准。
  2. 根据权利要求1所述的方法,其中,所述根据所述多组电源样本值确定所述电源的采样输出值和基准输出值满足的模型包括:
    确定所述电源的采样输出值和基准输出值满足的模型的类型;
    根据所述多组电源样本值计算所述电源的采样输出值和基准输出值满足的模型的模型参数。
  3. 根据权利要求2所述的方法,其中,所述确定所述电源的采样输出值和基准输出值满足的模型的类型包括:
    确定所述电源的采样输出值和基准输出值满足的模型的类型为线性模型还是非线性模型。
  4. 根据权利要求3所述的方法,其中,所述根据所述多组电源样本值计算所述电源的采样输出值和基准输出值满足的模型的模型参数包括:
    在确定所述电源的采样输出值和基准输出值满足的模型的类型为线性模型的情况下,使用最小二乘法的线性拟合,根据所述多组电源样本值确定所述线性模型的模型参数。
  5. 根据权利要求3所述的方法,其中,所述根据所述多组电源 样本值计算所述电源的采样输出值和基准输出值满足的模型的模型参数包括:
    在确定所述电源的采样输出值和基准输出值满足的模型的类型为非线性模型的情况下,使用最小二乘法的多项式拟合,根据所述多组电源样本值确定所述非线性模型的模型参数。
  6. 根据权利要求1所述的方法,其中,所述获取多组电源样本值包括:
    在所述电源工作过程中,获取所述多组电源样本值。
  7. 一种电源校准装置,包括:
    检测模块,其用于获取电源的多组电源样本值,每组电源样本值包括所述电源在同一时刻的采样输出值和基准输出值,所述采样输出值为通过对所述电源进行检测得到的电源输出值,所述基准输出值为通过对与所述电源连接的负载进行检测得到的电源输出值;
    计算模块,其用于根据所述多组电源样本值,确定所述电源的采样输出值和基准输出值满足的模型;以及
    校准模块,其用于根据所述模型对所述电源进行校准。
  8. 根据权利要求7所述的装置,其中,所述电源校准装置通过RS485总线或以太网与所述电源连接。
  9. 一种电源系统,包括:
    电源;以及
    根据权利要求7或8任意一项所述的电源校准装置。
  10. 一种电子设备,其包括:
    一个或多个处理器;
    存储器,其上存储有一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现根据 权利要求1至6中任意一项所述的电源校准方法;以及
    一个或多个I/O接口,其连接在所述一个或多个处理器与所述存储器之间,用于实现所述一个或多个处理器与所述存储器的信息交互。
  11. 一种计算机可读介质,其上存储有计算机程序,所述程序被处理器执行时实现根据权利要求1至6中任意一项所述的电源校准方法。
PCT/CN2021/130600 2020-11-20 2021-11-15 电源校准方法和装置、电源系统、电子设备、介质 WO2022105707A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011307872.4 2020-11-20
CN202011307872.4A CN114595421A (zh) 2020-11-20 2020-11-20 电源校准方法和装置、电源系统、电子设备、介质

Publications (1)

Publication Number Publication Date
WO2022105707A1 true WO2022105707A1 (zh) 2022-05-27

Family

ID=81708346

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/130600 WO2022105707A1 (zh) 2020-11-20 2021-11-15 电源校准方法和装置、电源系统、电子设备、介质

Country Status (2)

Country Link
CN (1) CN114595421A (zh)
WO (1) WO2022105707A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102074928A (zh) * 2009-11-20 2011-05-25 北京普源精电科技有限公司 一种恒压恒流电源及其过压、过流保护的自校准方法
CN102411075A (zh) * 2011-11-29 2012-04-11 宁波高新区新诚电子有限公司 一种太阳能光伏电池模拟系统及用于该系统的模拟方法
CN103048530A (zh) * 2011-10-12 2013-04-17 鸿富锦精密工业(深圳)有限公司 数字电源电流校准装置
CN106918789A (zh) * 2017-05-10 2017-07-04 成都理工大学 一种soc‑soh联合在线实时估计和在线修正方法
US20190079121A1 (en) * 2015-10-20 2019-03-14 Telefonaktiebolaget Lm Ericsson (Publ) Estimating a current in an smps

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102074928A (zh) * 2009-11-20 2011-05-25 北京普源精电科技有限公司 一种恒压恒流电源及其过压、过流保护的自校准方法
CN103048530A (zh) * 2011-10-12 2013-04-17 鸿富锦精密工业(深圳)有限公司 数字电源电流校准装置
CN102411075A (zh) * 2011-11-29 2012-04-11 宁波高新区新诚电子有限公司 一种太阳能光伏电池模拟系统及用于该系统的模拟方法
US20190079121A1 (en) * 2015-10-20 2019-03-14 Telefonaktiebolaget Lm Ericsson (Publ) Estimating a current in an smps
CN106918789A (zh) * 2017-05-10 2017-07-04 成都理工大学 一种soc‑soh联合在线实时估计和在线修正方法

Also Published As

Publication number Publication date
CN114595421A (zh) 2022-06-07

Similar Documents

Publication Publication Date Title
US7082045B2 (en) Offset compensated sensing for magnetic random access memory
CN108474820A (zh) 用于计量系统的参考电路
CN107024294B (zh) 一种多通道芯片温度测量电路及方法
US20150134287A1 (en) Method and apparatus for improving differential direct current (dc) measurement accuracy
CN111383684A (zh) 一种参考电压确定方法、装置及存储介质
WO2018095092A1 (zh) 测量功耗的方法、装置和计算机存储介质
CN114499521A (zh) 信号校准方法、装置、计算机设备及存储介质
CN112799493B (zh) 一种电源vr芯片的电流自动校准电路及校准方法
WO2022105707A1 (zh) 电源校准方法和装置、电源系统、电子设备、介质
CN110726937A (zh) 用于确定状态噪声协方差矩阵的方法和相应设备
US20210235570A1 (en) Filament current control method and apparatus
CN105227184A (zh) 一种adc/dac信号数字校正方法及系统
CN116521480A (zh) 功耗读取精度测试系统、方法、装置、设备和存储介质
CN110569165A (zh) 一种用于检测服务器的功耗的方法和装置
CN116243048A (zh) 一种电压检测方法、电路、设备及存储介质
CN111857307B (zh) 电源复位电路的控制装置、控制系统及控制方法
Walendziuk et al. Temperature influence analysis on the selected current sources stability in the static and dynamic operating states
CN115598579B (zh) 车载域控电压采样系统及其误差补偿方法、系统
TWI484142B (zh) A multi-sensing element correction system, a correction method and a recording medium
CN108681275B (zh) 电压线性隔离调理电路输出电压参数化补偿方法与装置
CN117310454B (zh) 芯片测试方法及相关装置
TWI835306B (zh) 快閃記憶體測試裝置
US20240094064A1 (en) Semiconductor device and temperature characteristic test method thereof
CN116610200A (zh) 一种性能调整方法、装置及计算设备
KR101950918B1 (ko) 저항성 메모리 및 그 메모리 셀

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21893854

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06.10.2023)